Received: by 2002:a05:6902:102b:0:0:0:0 with SMTP id x11csp1929029ybt; Sun, 21 Jun 2020 03:59:04 -0700 (PDT) X-Google-Smtp-Source: ABdhPJySy+DiLIwIV+PMptrf5cbf/y0fodUQ+bwTkcilCSvDccjFM8hFp7Eh/K8y8XnTFrKlLthL X-Received: by 2002:a17:906:fb9b:: with SMTP id lr27mr10954760ejb.405.1592737143791; Sun, 21 Jun 2020 03:59:03 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1592737143; cv=none; d=google.com; s=arc-20160816; b=0iyQuTZx7dXtB17lHjsZseMq3mH/dG+PtZ4twcAcxStsFDsKHsSEWP97iqsc/N09qG 8dw0l5N7wVEvOZv+1xSLrGPAPXRk4q8yBag3vpY9GjvRkWO2HyLED9OIP7a/GHf3PGmX Wb1BLmAhcC+4iuD2P4XN1MsEOtg06u9Bzb1LbALg8kHwlgf0VgQQNIq0ta642JT9+KHp aB8Gn94FQnv7drwbmdZ+2dWQ9Id2s2t0HsglePodyKsDrde5MrqZAzo/W6YsJ5XrbwCx pHgAAkl9jDnFJtvEtt4wfDNa5dG0706kBoNflD25yu7tgySMhlbyhkZEnDQvwyi/lfQk FLUw== 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=R4pN7SkS5BfMMvTV8JKgY9SwTT5ANAZXzz9LK1h0B/c=; b=yNxzXNOT1DrnZHwUA/D0BPBnlTY/7CxPptT2f3OzY/frMaLeQ/fpFgR/AVXCpxaSrd xLdGe0WniAw52JuqlrZTt2H9hZqkA2mdHnfjNo/JfbQtAcSXnH2gB5voPXNsWpDw5Hp7 y9cfNDWLSE+knBKoK4i7Bl2mIVRofKkPmYMbr8vndduWAkPGVjdP191cU29aGdyxgEH2 TpHn5KLolsKjR8qg3LQcklonM2H2TZ6A6NlN0Zk0JZb9ZP5RIK57Y9CBJ6thN6al2RrJ nZhJjqwoA2IfJ3eqAOduunGj5NUJhH9eMPFV9Vl/YJisfvxVpmJLhiTRB7gFu50K69cB eU3g== 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 gu10si7145794ejb.38.2020.06.21.03.58.41; Sun, 21 Jun 2020 03:59:03 -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 S1729898AbgFUK5C (ORCPT + 99 others); Sun, 21 Jun 2020 06:57:02 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:57284 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1729848AbgFUK5C (ORCPT ); Sun, 21 Jun 2020 06:57:02 -0400 X-Greylist: delayed 7891 seconds by postgrey-1.37 at lindbergh.monkeyblade.net; Sun, 21 Jun 2020 03:57:02 PDT Received: from nautica.notk.org (ipv6.notk.org [IPv6:2001:41d0:1:7a93::1]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 1F29DC061794; Sun, 21 Jun 2020 03:57:02 -0700 (PDT) Received: by nautica.notk.org (Postfix, from userid 1001) id 9D08BC01A; Sun, 21 Jun 2020 12:57:00 +0200 (CEST) Date: Sun, 21 Jun 2020 12:56:45 +0200 From: Dominique Martinet To: Alexander Kapshuk Cc: lucho@ionkov.net, ericvh@gmail.com, davem@davemloft.net, kuba@kernel.org, v9fs-developer@lists.sourceforge.net, netdev@vger.kernel.org, linux-kernel Subject: Re: [PATCH] net/9p: Validate current->sighand in client.c Message-ID: <20200621105645.GA21909@nautica> References: <20200618190807.GA20699@nautica> <20200620201456.14304-1-alexander.kapshuk@gmail.com> <20200621084512.GA720@nautica> MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Disposition: inline In-Reply-To: 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: > Thanks for your feedback. > Shall I simply resend the v2 patch with the commit message reworded as > you suggested, or should I make it a v3 patch instead? Yes please resend the same commit reworded. v2 or v3 doesn't matter much, the [PATCH whatever] part of the mail isn't included in the commit message; I don't receive so much patches to be fussy about that :) > One other thing I wanted to clarify is I got a message from kernel > test robot , > https://lists.01.org/hyperkitty/list/kbuild-all@lists.01.org/thread/TMTLPYU6A522JH2VCN3PNZVAP6EE5MDF/, > saying that on parisc my patch resulted in __lock_task_sighand being > undefined during modpost'ing. > I've noticed similar messages about other people's patches on the > linux-kernel mailing list with the responses stating that the issue > was at the compilation site rather than with the patch itself. > As far as I understand, that is the case with my patch also. So no > further action on that is required of me, is it? Thanks, I hadn't noticed this mail -- unfortunately I don't have anything setup to test pa risc, but __lock_task_sighand is defined in kernel/signal.c which is unconditionally compiled so shouldn't have anything to do with arch-specific failures, so I will run into the same problem when I test this. From just looking at the code, it looks like a real problem to me - __lock_task_sighand is never passed to EXPORT_SYMBOL so when building 9p as a module we cannot use the function. Only exported symbols can be called from code that can be built as modules. That looks like an oversight to me more than something on purpose, but it does mean I cannot take the patch right now -- we need to first get the symbol exported before we can use it in 9p. As things stand I'd rather have this patch wait one cycle for this than revert to manipulating rcu directly like you did first -- if you're up for it you can send a patch to get it exported first and I'll pick this patch up next cycle, or I can take care of that too if you don't want to bother. Letting you tell me which you prefer, -- Dominique