Received: by 2002:a05:6902:102b:0:0:0:0 with SMTP id x11csp1941933ybt; Sun, 21 Jun 2020 04:21:50 -0700 (PDT) X-Google-Smtp-Source: ABdhPJxzVrcSrtB8zKU1ji+niruJrlObCl9NBSYCCLxKqXgHw6/erF2i5EQSMGTS+pofXcnbVJWq X-Received: by 2002:a05:6402:1597:: with SMTP id c23mr2588743edv.243.1592738509964; Sun, 21 Jun 2020 04:21:49 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1592738509; cv=none; d=google.com; s=arc-20160816; b=hXFGV5e07kLW7X/aCmr0uGMfeZBrDdFopbf4sZQUeY/vAJIRs5C4ZP2zpN0KRozglr I8qNzFUjVgBfvP50bMUPjLhV/TX0J80vgY/42OKCQz/fZB25OVo1o9xqauEPMF6taKEy vz23xAB98OnqKctinJ6zJvOe6RUpfAW5KZPjMAN4hyhSEhVOOiiLJA9ovPZY0wf8D1jo lP0auOwL+G1PGInJ7Bfbm8ry7pMHW17213CUdOZzA3y6qFJ10209kZ8Rogy8WfxoSwSy pfTqV1W3iGnnO8UTs9oFlhWAGDdonYBCvGgEfy+ljYK+jVYso6KcdXxUyEdT6ZRX7yfz zwAQ== 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=suTt0pS+l/ysHThYP3Io+1qHv2Z1U36c1O0c2IABO4g=; b=J3SKCaTvz13TuotnoaxLrAy+DMP7ALzvAFqvQo/kchH8ECL+jaxFVqGEeUjdqO8f69 rhrGBLXdq0qmQbSZdcKfnxC4uWMEtgIqeuzTtQUof/5tcsS6FWQr1zfTtYAcS3tC440I H3hX5DC/kDic8QEWHV6mEZsN0GaWe05sVjaXMmfUiTMIHIshoospsXt9ELV33QwN/MOG JNdcSabFTqrh5WfiVWfFR8odY07NR3eLslo3OQHp9pUvnuas0WEBmxu2MzQVfTtLbgto /AK2Q9lqyr1fz+lZTsJicJNHAHvtg5PLTcbzNW9snPKN2Xi/CYmZbygrKW07SDkVe1R6 TFhw== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@gmail.com header.s=20161025 header.b=VvgZXG3l; 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 i25si1192379ejy.603.2020.06.21.04.21.28; Sun, 21 Jun 2020 04:21:49 -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=VvgZXG3l; 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 S1729955AbgFULTq (ORCPT + 99 others); Sun, 21 Jun 2020 07:19:46 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:60772 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1729878AbgFULTq (ORCPT ); Sun, 21 Jun 2020 07:19:46 -0400 Received: from mail-io1-xd41.google.com (mail-io1-xd41.google.com [IPv6:2607:f8b0:4864:20::d41]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 1BB4BC061794; Sun, 21 Jun 2020 04:19:45 -0700 (PDT) Received: by mail-io1-xd41.google.com with SMTP id c4so2829574iot.4; Sun, 21 Jun 2020 04:19:45 -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=suTt0pS+l/ysHThYP3Io+1qHv2Z1U36c1O0c2IABO4g=; b=VvgZXG3lHfi+DkyCn2tooxxccvdrGVA/0xdHILF/nGY+oCrZG39AT/DCqdGnWlScdG dIndfQpyOaJGhuiKl45InjW9VFoNue6unWwxUHrER/iSRtZ1MMH8pnO1dd1GMBzVpko9 GWJ6cvASrkBXAcJna/GOwtERv8m5BgDOWA6jX8pXIQqhGjSg/Gt9/f6hmXi/K2lK9GWf OXTB9Gc4CdGMQxSvSALp7tCQJwvqvCN4PJF/PMxf1DZdZO4ICvuS2j3JlvLrRptXbgmE vrY5GgRkF13JhkHZou9NvqLVp/05hSOYUTZcbf7bO80VXj2qhfg5jGppbbAne16Bx5Lj HcqA== 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=suTt0pS+l/ysHThYP3Io+1qHv2Z1U36c1O0c2IABO4g=; b=a6CDhYVs07d/DMmP8dCR9Cu+uStULrSGJozoB1SFQgafcg30uykGxyEFa2nFvQCzBS Tw7Zbs1rKmu6tFpauYJRq38v4cRIuq/FyydOXDhTEYN4RHo+rNUslt7PfDqEDOZY3EzN TP5lwF2UHPUPDibEtXm+hP0RyF0KWC+454K78h8C6lJnj4a96TJQK/zsRxauqPVVgbft Q3GvOqVxKNzLhAXLWTOp7w+ezkqX1elqbTbSiwwhCOiYCVGxDxO18+CFt607N5xUTuzF L5lxXxElGEKbY5Ft21V8Ip9/2R6rYcZAlJq0YI5t3sVH9xEGCxn1wwVQ+3K4mNSQN7BR ilew== X-Gm-Message-State: AOAM5327p2m9p6St6QgBgHDXjrEYD8RuyKlq5tqHHOrHHgjdaoj8n67e huCXglDrcZ0KX7R/ZhzJN0kbCYcFcjtGpDF/ta4= X-Received: by 2002:a6b:740a:: with SMTP id s10mr13450032iog.107.1592738384231; Sun, 21 Jun 2020 04:19:44 -0700 (PDT) MIME-Version: 1.0 References: <20200618190807.GA20699@nautica> <20200620201456.14304-1-alexander.kapshuk@gmail.com> <20200621084512.GA720@nautica> <20200621105645.GA21909@nautica> In-Reply-To: <20200621105645.GA21909@nautica> From: Alexander Kapshuk Date: Sun, 21 Jun 2020 14:19:07 +0300 Message-ID: Subject: Re: [PATCH] net/9p: Validate current->sighand in client.c To: Dominique Martinet Cc: lucho@ionkov.net, ericvh@gmail.com, davem@davemloft.net, kuba@kernel.org, v9fs-developer@lists.sourceforge.net, netdev@vger.kernel.org, linux-kernel 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 Sun, Jun 21, 2020 at 1:57 PM Dominique Martinet wrote: > > 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 :) > Understood. Thanks. :) > > 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 I am willing to send in a patch to have the missing symbol exported as well as resend my previous one with the commit message reworded. Thanks.