Received: by 2002:a05:6902:102b:0:0:0:0 with SMTP id x11csp2022472ybt; Sun, 21 Jun 2020 06:57:23 -0700 (PDT) X-Google-Smtp-Source: ABdhPJwMBW8AfRWDq4ISnax9rnXnROKEv3fxJgshvwDuQCmThWZQu+aTeFfzekng5zQbeY3HhEy7 X-Received: by 2002:a05:6402:1481:: with SMTP id e1mr12580428edv.113.1592747843447; Sun, 21 Jun 2020 06:57:23 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1592747843; cv=none; d=google.com; s=arc-20160816; b=sr+tDlKk/MbY+5NP+y4aqciSmLBNrqCq1omKx9ixIoPb1JJTWv4OhH/yAg9t8ZjP21 mHOnU9GqnpiAGBtDFLJ0pWKrHdFPF0M1jw//U7ToYkKb5T4E5CLwqOnWq1nADfDovJ5M VC1g0p/zf6zSDmmA22Z6Gn3MBboyfniy5F/8sx/2e3NxKQgJxn9tKoEmeH9Q0DvHMchQ DaXC/G7JEOqXA4O1xt3HxDZTnW8Fo1yCxehVI4Gupqh91FfawoDGUTWWWPHXjtTLFEob 9l0m9OWMuzc8wULmyNzv4ieAyLwRrWrWMzmLEHYdkOP2yikpr2izQc/R+bfPireGrNVl eD7Q== 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; bh=c5QXGe8t5rZyLg9/pG2HVxu27C//Rw/QBIpnZ5/zAG0=; b=bCpyGp6iD0h6QoP8OkdRT3yDW+WAK+YPuVCVVQelFSPIumJLvPXTHZ3R6NVD4pkz/b HypMk8u2nF0rfQ5o4vxccWAbGrROmrNLkdkHAl6E170zo9Q/ndu42e47ZTMa3r1H93so gpm/IPyv6G3dvWrCD2rYD9DKpHAmFIzMqhytoe63LhUpZyOt1y36M7Onu4b3DDqV6Fnx 3hNmjIAIgxm2GwZWBxjBKJTo/L+mPGqee3VRYGp5jgk/yKuLeGE3COmMEtQGCMHU+smo gI39nq7q25DFjwUaZuF92O947jvD4WmzrX8vTOl1ZaBl+a6Qdk/6PzqA34XJALwtJVPH CLRA== ARC-Authentication-Results: i=1; mx.google.com; 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 Return-Path: Received: from vger.kernel.org (vger.kernel.org. [23.128.96.18]) by mx.google.com with ESMTP id s15si3098180edx.230.2020.06.21.06.57.01; Sun, 21 Jun 2020 06:57:23 -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; 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 Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1730120AbgFUNyy (ORCPT + 99 others); Sun, 21 Jun 2020 09:54:54 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:56150 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1729862AbgFUNyy (ORCPT ); Sun, 21 Jun 2020 09:54:54 -0400 Received: from nautica.notk.org (ipv6.notk.org [IPv6:2001:41d0:1:7a93::1]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id E49CBC061794 for ; Sun, 21 Jun 2020 06:54:53 -0700 (PDT) Received: by nautica.notk.org (Postfix, from userid 1001) id 4D589C01A; Sun, 21 Jun 2020 15:54:52 +0200 (CEST) Date: Sun, 21 Jun 2020 15:54:37 +0200 From: Dominique Martinet To: Alexander Kapshuk Cc: linux-kernel@vger.kernel.org, christian.brauner@ubuntu.com, oleg@redhat.com, ebiederm@xmission.com, akpm@linux-foundation.org, liuzhiqiang26@huawei.com, joel@joelfernandes.org, paulmck@linux.vnet.ibm.com, kernel test robot Subject: Re: [PATCH] kernel/signal.c: Export symbol __lock_task_sighand Message-ID: <20200621135437.GA18092@nautica> References: <20200621133704.77896-1-alexander.kapshuk@gmail.com> MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Disposition: inline In-Reply-To: <20200621133704.77896-1-alexander.kapshuk@gmail.com> User-Agent: Mutt/1.5.21 (2010-09-15) Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org 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? If we don't want to export it for some reason, I'm the one who suggested using lock_task_sighand() so would be interested in how to go forward as well; 9p probably shouldn't mess with signals at all... That part of the code is especially bad as it makes the task unkillable in a weird way. Actually I do have a patch that makes flush asynchronous and removes the need for this altogether, maybe it's time I finish that patch serie instead :P Thanks, -- Dominique