Received: by 2002:a05:6902:102b:0:0:0:0 with SMTP id x11csp2579430ybt; Mon, 22 Jun 2020 01:52:56 -0700 (PDT) X-Google-Smtp-Source: ABdhPJw/D/IZAvfIhdlS6+eLPwflTuBswxE8zbmSSIIXxF6aBsVYCBSlRY0vXpudEiYnpIyfMte7 X-Received: by 2002:a50:ec0f:: with SMTP id g15mr16258441edr.359.1592815976101; Mon, 22 Jun 2020 01:52:56 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1592815976; cv=none; d=google.com; s=arc-20160816; b=Hu+32yBWHIerm4oGua0XCU5RzUvwf4qNm9/+cExU0OBqt7SNVY6s6lg3F0ZnTmt8rE ETP5Ojk5JKdPkF0WNgnctDy6SofwH5oZqRwQohdgqGbm02aYpYhrM/cSIyyUjatnlaa/ nSlNklZA0KQ5CR6ctLL30ZtZqw8201kIW47J6z8jqurYrGt7UNbp2qUJGuBq/VYf3upk ipCYxSSSz5WqaMpb7ukaTOuMM7XIwatAm+IO1HrymXC6N27LWOFnkq7p895AF80I6sFR Nn/1pzsBdO/RZKirnBMu/JySa1uSZBbLVf2TVGL2+/5IwLur3bTpuJwWVGWN+hNUG/Ce yOtw== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:cc:to:subject:message-id:date:from :in-reply-to:references:mime-version:dkim-signature; bh=yBGCr/V9grcgTVKtjGPTu3uIDpYRoMlulyR+BOcCRPM=; b=aPZD5NwjxmWGTrRXpd4PHeb3s7nAGrXqzE3rdwsNcvYbQj5DF8tpjPTOQplHkt7bIp RDrEsPbH3g9vv8mk1f4GWy5jdcg9X6WPihUnlTRvzo2Dp/wavCI6qo5t0YRrSL5xqF9u oXOPCZ1YtWEscM29kYrqPFRoHNcF6reiwPu+Ru0HJjhIUK8b5N03GHT5Nle61GgaUdxr tupfyrO+LLw0Pggy8S4K+5ys3DFZneNJp3k9AtHLRBHwpZ3OnKkqQU4K6C9FsDJfOG8T XqAR+PSoup5YFYBtaGp5ghdcBh8SO1Zz94Hfe41T662VLi76MJ0CMphCoDo9RBq1GUx1 mdZA== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@gmail.com header.s=20161025 header.b=JjvyfnVU; 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=QUARANTINE dis=NONE) header.from=gmail.com Return-Path: Received: from vger.kernel.org (vger.kernel.org. [23.128.96.18]) by mx.google.com with ESMTP id k9si8705972ejp.499.2020.06.22.01.52.34; Mon, 22 Jun 2020 01:52:56 -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=@gmail.com header.s=20161025 header.b=JjvyfnVU; 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=QUARANTINE dis=NONE) header.from=gmail.com Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1726987AbgFVIul (ORCPT + 99 others); Mon, 22 Jun 2020 04:50:41 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:32824 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1725952AbgFVIul (ORCPT ); Mon, 22 Jun 2020 04:50:41 -0400 Received: from mail-il1-x141.google.com (mail-il1-x141.google.com [IPv6:2607:f8b0:4864:20::141]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id DB812C061794 for ; Mon, 22 Jun 2020 01:50:39 -0700 (PDT) Received: by mail-il1-x141.google.com with SMTP id c75so15139488ila.8 for ; Mon, 22 Jun 2020 01:50:39 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20161025; h=mime-version:references:in-reply-to:from:date:message-id:subject:to :cc; bh=yBGCr/V9grcgTVKtjGPTu3uIDpYRoMlulyR+BOcCRPM=; b=JjvyfnVU/VrzPRA4p3VAEpiukaK7042CHJJ9Msht32f/G58yo+vV2CgRHYLgTuQGMP oDLiRgzQWku62N4w/CTwZhe8C2qjieyLjNWO8MMxCsE0nz5yNEUhWmkpp9BBDVZ2uxwN ugcRkFazsc0m30EKhzkpUe8RTAqkMxsCpn3xLWgLmqrbOmo2mu11SUl+jWgzZT+LLqyt p8SJC9VBNqDfcjhlFD91INM7jAcIn4M4Gl6DKSikaCi9pj83XB6Czyc8TfPGd61eKaBe OmTOoCnLQJuBjR5G0hbY8Kxqc4pkjZn+m5X33HJzvKE/RfNoMWF1rkJRAKqq9B5M2xgY VhoQ== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:mime-version:references:in-reply-to:from:date :message-id:subject:to:cc; bh=yBGCr/V9grcgTVKtjGPTu3uIDpYRoMlulyR+BOcCRPM=; b=jXhKz5UykwKQu6rSVzjm8DdbpzTaQhInOkT05jTS1NNTQ4EXc23M6gCv3HGNDLzCCD S5w/Vz2Uf+nYO0jowF3HDeFUaarnYA+UuFayyzk0RrwmyWfQ2EKEYzJM9NsgIPfJ9KwF nEx5VcHDS+KLNpwr+qjWwpin26aHY2d5T6asVAfTdr6v59jTaTYDiIF8Dbv77KtEHrT3 jPbKgg2hDGlPBXFDcA4gnnSC+fifVpMgwPn8gzbNT0w0en7rZXr3F9Yshb50chUWtKDo 8YO35dJTD6LOOISwZmnSyD4XB2IPL06KwDHmprlUzr6u0X2WjZKK78HiNNACQgt6jZEA luvQ== X-Gm-Message-State: AOAM5339XfERLDkhqWnpRXJ2oU0/dEPeXTwjKa3T1B+NIM+1K2fnfC4x fd/6+b3mRw3tDSnmy1CkxNQvg6R1gw8Gg28osXU= X-Received: by 2002:a92:db49:: with SMTP id w9mr14874855ilq.188.1592815839182; Mon, 22 Jun 2020 01:50:39 -0700 (PDT) MIME-Version: 1.0 References: <20200621133704.77896-1-alexander.kapshuk@gmail.com> <20200621135437.GA18092@nautica> <20200622083957.lfgz4j2dop5ryiz6@wittgenstein> In-Reply-To: <20200622083957.lfgz4j2dop5ryiz6@wittgenstein> From: Alexander Kapshuk Date: Mon, 22 Jun 2020 11:50:03 +0300 Message-ID: Subject: Re: [PATCH] kernel/signal.c: Export symbol __lock_task_sighand To: Christian Brauner Cc: Dominique Martinet , linux-kernel , oleg@redhat.com, ebiederm@xmission.com, Andrew Morton , liuzhiqiang26@huawei.com, joel@joelfernandes.org, paulmck@linux.vnet.ibm.com, kernel test robot Content-Type: text/plain; charset="UTF-8" Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On Mon, Jun 22, 2020 at 11:40 AM Christian Brauner wrote: > > On Sun, Jun 21, 2020 at 03:54:37PM +0200, Dominique Martinet wrote: > > Alexander Kapshuk wrote on Sun, Jun 21, 2020: > > > 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! > > > > This can't fix something that's not broken (yet)! :) > > > > I think it'd make more sense to describe why you think we should export > > it, rather than describe a precise usecase e.g. justify why this would > > be interesting to use from modules (e.g. it would help modules like 9p > > take a lock on the current signal handler safely and cleanly through > > lock_task_sighand()) > > > > > > > > Christian, Andrew - assuming this passes reviews from someone else I'm > > not sure how to go forward with this; it'd be simpler for me if I could > > take it in the 9p tree as I need it for the patch Alexander pointed at, > > but I'm not normally touching any file outside of the 9p tree. > > Is it better to let either of you take it normally (I think it'd be > > you?) and wait for that to land, or can I take it in my tree for the > > next merge window? > > Hm, I don't think the patch is really needed though; see my other mail. :) > > Christian Thanks Oleg and Christian for your feedback. Based on what you both expressed, my patch that exported __lock_task_sighand as well as the original patch to address a sparse warning in net/9p/client.c should be dropped and the warning considered a false positive. I'll let Dominique have the final say on this. Thanks.