Received: by 2002:a05:6902:102b:0:0:0:0 with SMTP id x11csp2510170ybt; Sun, 21 Jun 2020 23:27:50 -0700 (PDT) X-Google-Smtp-Source: ABdhPJyuck1XTWfD+tTeQHWv/Q0TTsD6lL3fbn05BS55PWqI6CxzqTwGh3QfS+ZiNQ7VKWM8vF7x X-Received: by 2002:a50:fb01:: with SMTP id d1mr15414224edq.94.1592807270504; Sun, 21 Jun 2020 23:27:50 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1592807270; cv=none; d=google.com; s=arc-20160816; b=UabgUHrqxF6LQx1wp5N4S0rqB5eI/cG5N9KWDQJ4PYk4LWAmWh1XOlSJ2Zy530x/4t 4zT31P4zsg1NPbeyBtRhSWWWzyu0UJxK5OE+8z+o2IiLjxro6/83dalUagLhgpE0Q+By sALeW030uApP0NakR24fqEInPcIDTIn4SuSG8iNjhzq8VnZGpAk7WVCQBl5RRm9BmdHT 7XhZs+5jEUOw36FyO8eW5bld8XrgCrMw7m937BCHY5Jw5e1SMfDRmaKR77LYrQPZWkJl Q3qwHQhR8eh8+BOwUddrQmH7bdlzUaDMUArjt799vw3rAD7n+Sr33WPY0K6V7KENDdUT +m9g== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:user-agent:in-reply-to :content-disposition:mime-version:references:message-id:subject:cc :to:from:date:dkim-signature; bh=iWL52GgKhbpQ7k8TUhHZOgGLDFtwgrzAarEVSsatCzw=; b=u/yCloX1xkxJB5zFY4kGx5xVMVO5+5q1fq6eXeZXf1n6Mz+q+lNL8NSDD2sI8y+Ts/ FFsmcZ7NozqzykpBLQNethO0UDCbhAZ/SlX7ObYyVjxmcsesLYvevIKYSlYgnkcOZc4Z VgscJKjK6miMEhFN0k7d7R67UREhd/XsIxSMyqTwFZRP4PffwG0Kv/USgR6OJxPl0vn7 lAYmDFidOFgmcpY2+B9GcW59rq7fiRvBGYYRYyBut1iAB+vjhazJuwW4+PBSEf4jmmRd Nm54Z0cDniaT5haHebjOJIYK18iFih8g3gxBc3nn3+JEQ/h02pBRJfdCPdGtpbOTOpMd kLxA== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@redhat.com header.s=mimecast20190719 header.b=Eb7tmofl; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=redhat.com Return-Path: Received: from vger.kernel.org (vger.kernel.org. [23.128.96.18]) by mx.google.com with ESMTP id v10si8714557ejb.343.2020.06.21.23.27.27; Sun, 21 Jun 2020 23:27:50 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) client-ip=23.128.96.18; Authentication-Results: mx.google.com; dkim=pass header.i=@redhat.com header.s=mimecast20190719 header.b=Eb7tmofl; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=redhat.com Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1731254AbgFVGZk (ORCPT + 99 others); Mon, 22 Jun 2020 02:25:40 -0400 Received: from us-smtp-1.mimecast.com ([207.211.31.81]:39272 "EHLO us-smtp-delivery-1.mimecast.com" rhost-flags-OK-OK-OK-FAIL) by vger.kernel.org with ESMTP id S1731248AbgFVGZj (ORCPT ); Mon, 22 Jun 2020 02:25:39 -0400 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=redhat.com; s=mimecast20190719; t=1592807138; h=from:from:reply-to:subject:subject:date:date:message-id:message-id: to:to:cc:cc:mime-version:mime-version:content-type:content-type: in-reply-to:in-reply-to:references:references; bh=iWL52GgKhbpQ7k8TUhHZOgGLDFtwgrzAarEVSsatCzw=; b=Eb7tmoflb6VBCF4WnplXCDFWv8sfUkiKuN37MbYhS+Wamm0lo7mAa1eUEeGV2LVBwL7hiZ 5TWavyoCqDUV1P2+3vJ8yXlBtVwu8gH1uDE8QxaP6FLGCyOWQeG5l4I6TnFPbFNKuLdhQE cyQ2+VOObj7JAK53IxxowPL5DFsULGc= Received: from mimecast-mx01.redhat.com (mimecast-mx01.redhat.com [209.132.183.4]) (Using TLS) by relay.mimecast.com with ESMTP id us-mta-421-EkiwYrYNOTaGGSmPNZE8MQ-1; Mon, 22 Jun 2020 02:25:34 -0400 X-MC-Unique: EkiwYrYNOTaGGSmPNZE8MQ-1 Received: from smtp.corp.redhat.com (int-mx03.intmail.prod.int.phx2.redhat.com [10.5.11.13]) (using TLSv1.2 with cipher AECDH-AES256-SHA (256/256 bits)) (No client certificate requested) by mimecast-mx01.redhat.com (Postfix) with ESMTPS id 6EEE4800053; Mon, 22 Jun 2020 06:25:32 +0000 (UTC) Received: from dhcp-27-174.brq.redhat.com (unknown [10.40.192.236]) by smtp.corp.redhat.com (Postfix) with SMTP id 583EC7C1FF; Mon, 22 Jun 2020 06:25:29 +0000 (UTC) Received: by dhcp-27-174.brq.redhat.com (nbSMTP-1.00) for uid 1000 oleg@redhat.com; Mon, 22 Jun 2020 08:25:32 +0200 (CEST) Date: Mon, 22 Jun 2020 08:25:28 +0200 From: Oleg Nesterov To: Alexander Kapshuk Cc: linux-kernel@vger.kernel.org, christian.brauner@ubuntu.com, ebiederm@xmission.com, akpm@linux-foundation.org, liuzhiqiang26@huawei.com, joel@joelfernandes.org, paulmck@linux.vnet.ibm.com, asmadeus@codewreck.org, kernel test robot Subject: Re: [PATCH] kernel/signal.c: Export symbol __lock_task_sighand Message-ID: <20200622062527.GA6516@redhat.com> References: <20200621133704.77896-1-alexander.kapshuk@gmail.com> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <20200621133704.77896-1-alexander.kapshuk@gmail.com> User-Agent: Mutt/1.5.24 (2015-08-30) X-Scanned-By: MIMEDefang 2.79 on 10.5.11.13 Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On 06/21, Alexander Kapshuk wrote: > > Export symbol __lock_task_sighand, so it is accessible from code compiled > as modules. > This fixes the following modpost error: > ERROR: modpost: "__lock_task_sighand" [net/9p/9pnet.ko] undefined! > > Where __lock_task_sighand is called via lock_task_sighand in net/9p/client.c > See https://lore.kernel.org/lkml/20200620201456.14304-1-alexander.kapshuk@gmail.com/. Why? current->sighand is stable and can't go away. Unless "current" is exiting and has already passed exit_notify(). So I don't think net/9p needs this helper. However, the games with TIF_SIGPENDING doesn't look right in any case. Oleg.