Received: by 2002:a05:6358:11c7:b0:104:8066:f915 with SMTP id i7csp5295247rwl; Mon, 3 Apr 2023 18:07:27 -0700 (PDT) X-Google-Smtp-Source: AKy350b+nPtxC/hqdaw7O8b5jz4bv5qngUGarVgpgpiEGuXa3o8ELezaPPNhv5rzhS94UndM0fBS X-Received: by 2002:a05:6402:1b0b:b0:4fb:c66f:71c4 with SMTP id by11-20020a0564021b0b00b004fbc66f71c4mr822761edb.11.1680570447519; Mon, 03 Apr 2023 18:07:27 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1680570447; cv=none; d=google.com; s=arc-20160816; b=X6vJfQ5iYXMVzfAQOvg2wLq3CwxQ5vRr5Re9Nx8eSA21o9r62dmX8WWdKWLDt/SdXX qal9r8XLtSSgiLe7z6TptIlVMRf3+XGgzYddXIrTB/Y5okzLsBB7Ho1k9HfiDJtRD9EE p1EVaLRvE8TkGppvrgcF3qmF4w37cGaaiLKH/yjOAjH2Pv9crzHiVO86y11YAq4Pu1xC W3IKTN24tigW8Qe98SCQAxQAe1MLvPQSW0NHxCmcrHdxEWBd4PAlpu1ug418fHV4i+kg AW7/VCgS902dUhsOuwZ+m9aMWtFsMfFyKWo+pHaopO62CJkAduyL/pEvlDJ/Rpvp4/C6 I9hQ== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:content-transfer-encoding:cc:to:subject :message-id:date:from:in-reply-to:references:mime-version :dkim-signature; bh=0CCXfWeH7hgQCw5saAwEpRaRCrJP+i78j7lB5LVUpd8=; b=r03HdFjrqjeQz6y0sBOyUwaTqmOScl/Td6X0Pg7SuU1O4Gxj0VXuevPrAyatp0/YBy aoGYoCwWaqDIh6VmmFIwZr6rQcJSdSsIB1oXlqV3QAygV32a9JrCyHvvivsIr4HOfkU7 9AvtKKhMs0Jy1FQ5wWzDyTI/NR6GHUijWjrgfbIexCVklrMzEmAbt9iGLU45dDAiwzKs DvLPqjWksgrG7pZvUThceqTd1hOTpKxi++G72jm0H+8VtBCmoOJ2ZbDTdP6qY1mkTod3 RqGrPNdsjferh5S2wWw76YrixWOGcrnU+h+fEu+UPWsum1vdcbQbDF/x3/VTpP6JrAyW gVlg== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@umich.edu header.s=google-2016-06-03 header.b="nmWwWUE/"; spf=pass (google.com: domain of linux-nfs-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) smtp.mailfrom=linux-nfs-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=umich.edu Return-Path: Received: from out1.vger.email (out1.vger.email. [2620:137:e000::1:20]) by mx.google.com with ESMTP id v8-20020aa7d9c8000000b004fd2b13b203si824905eds.550.2023.04.03.18.06.52; Mon, 03 Apr 2023 18:07:27 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-nfs-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) client-ip=2620:137:e000::1:20; Authentication-Results: mx.google.com; dkim=pass header.i=@umich.edu header.s=google-2016-06-03 header.b="nmWwWUE/"; spf=pass (google.com: domain of linux-nfs-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) smtp.mailfrom=linux-nfs-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=umich.edu Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S231796AbjDDBBU (ORCPT + 99 others); Mon, 3 Apr 2023 21:01:20 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:32862 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S229699AbjDDBBT (ORCPT ); Mon, 3 Apr 2023 21:01:19 -0400 Received: from mail-pg1-x52f.google.com (mail-pg1-x52f.google.com [IPv6:2607:f8b0:4864:20::52f]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id B4F568F; Mon, 3 Apr 2023 18:01:17 -0700 (PDT) Received: by mail-pg1-x52f.google.com with SMTP id s72so2885263pgs.9; Mon, 03 Apr 2023 18:01:17 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=umich.edu; s=google-2016-06-03; t=1680570077; h=content-transfer-encoding:cc:to:subject:message-id:date:from :in-reply-to:references:mime-version:from:to:cc:subject:date :message-id:reply-to; bh=0CCXfWeH7hgQCw5saAwEpRaRCrJP+i78j7lB5LVUpd8=; b=nmWwWUE/fkCtsfJvnUl82hrVl6oxI9/MYCz/mM+BLSpxE7UKfc9QeAiBde78HSgETr 2bj+URMx3h7FKoHjkRsGnv3SZJEJSzHgE6V7TBpHkrxWjnzRFE/WFSoB5ZMJB4QIUJHZ O8+auzs/J4sGPZ6HWQCZH7D1OYIIolhiFtMPWvXCrh6zYMYEEmEUKteDlgVs+Norjosk FHnGKNHP/20SqRRx7+go+0YwEGivkQ4s/jxl6Ttl31nz/+0G9Me4rF3NMDY435aZgKHc kd6hvFVAP3eu6DLx/6eU+wyJE6syAscIv24RSo/iLvGhoxQ+ogLoDEiHJc2koxG2RhR2 Y0Zw== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20210112; t=1680570077; h=content-transfer-encoding:cc:to:subject:message-id:date:from :in-reply-to:references:mime-version:x-gm-message-state:from:to:cc :subject:date:message-id:reply-to; bh=0CCXfWeH7hgQCw5saAwEpRaRCrJP+i78j7lB5LVUpd8=; b=pMKLbGP9IjmQGYhDo7UhE56ow8n+jGWF6u4irEPA98vSs52f49l54+/DGqRS63110w z+Ebip9xhd/lLpvDlkFFQ9g6wijmJbREKTopGVA4HkYyBaxjXlyYLQWq1Ud1Y5LI+rR/ RBuAMCVGGZM9voT/z2zI6YfdhjZi5I7OK+kxYH1KWQeEHnKKr+e1gMu2t3FjAQHc0BtY EXyUZEwu7w0n4SF87klfmIPOOAA7w15yaHsdByNuemdNMCldUdhbaKnDXvLZQmZ3g0uO pYSteSQMfLC00vV1Jj660brCL8XU2rWg58Ay8sG2IBcJ3xoA3eXoZJjRN5ERhugoEwr+ CHzQ== X-Gm-Message-State: AAQBX9ej2c56TJSlKsyhWvyIsBOLufRzttxGetVKAne3S2Hxb/8sias/ qsKTeJUsJmrVwUyDIZWAepAGl6TMJ52H6bP4UeQEaUyG X-Received: by 2002:a63:2587:0:b0:50f:8d8a:f9b1 with SMTP id l129-20020a632587000000b0050f8d8af9b1mr149466pgl.12.1680570077127; Mon, 03 Apr 2023 18:01:17 -0700 (PDT) MIME-Version: 1.0 References: <82526863-d07a-0a5d-2990-1555b1387f26@linaro.org> <2C5E9725-F152-4D2E-882E-CF92A35481BF@hammerspace.com> <7ba38377-7992-7f0f-d905-cceb42510f39@linaro.org> <51430925-8046-7066-84ed-2ff0db835347@linaro.org> <2add1769-1458-b185-bc78-6d573f61b6fc@linaro.org> <32530c36-91d0-d351-0689-aed6a0975a4b@linaro.org> <2f285607-cbf9-6abc-f436-edb6e9a3938b@linaro.org> <4fe39d77-eb7c-a578-aefa-45b76e2247c2@linaro.org> In-Reply-To: From: Olga Kornievskaia Date: Mon, 3 Apr 2023 21:01:06 -0400 Message-ID: Subject: Re: Regression: NULL pointer dereference after NFS_V4_2_READ_PLUS (commit 7fd461c47) To: Krzysztof Kozlowski Cc: Trond Myklebust , Anna Schumaker , linux-nfs , Linux Kernel Mailing List , "regressions@lists.linux.dev" Content-Type: text/plain; charset="UTF-8" Content-Transfer-Encoding: quoted-printable X-Spam-Status: No, score=0.4 required=5.0 tests=DKIM_SIGNED,DKIM_VALID, DKIM_VALID_AU,FREEMAIL_FORGED_FROMDOMAIN,FREEMAIL_FROM, HEADER_FROM_DIFFERENT_DOMAINS,RCVD_IN_DNSWL_NONE,SPF_HELO_NONE, SPF_PASS autolearn=no autolearn_force=no version=3.4.6 X-Spam-Checker-Version: SpamAssassin 3.4.6 (2021-04-09) on lindbergh.monkeyblade.net Precedence: bulk List-ID: X-Mailing-List: linux-nfs@vger.kernel.org On Mon, Mar 6, 2023 at 12:12=E2=80=AFPM Anna Schumaker wrote: > > Hi Krzysztof, > > On Tue, Feb 14, 2023 at 6:02=E2=80=AFAM Krzysztof Kozlowski > wrote: > > > > On 12/02/2023 15:05, Anna Schumaker wrote: > > >>> From ac2d6c501dbcdb306480edaee625b5496f1fb4f5 Mon Sep 17 00:00:00 2= 001 > > >>> From: Anna Schumaker > > >>> Date: Fri, 10 Feb 2023 15:50:22 -0500 > > >>> Subject: [PATCH] NFSv4.2: Rework scratch handling for READ_PLUS > > >>> > > >> > > >> Patch is corrupted - maybe mail program reformatted it when sending: > > >> > > >> Applying: NFSv4.2: Rework scratch handling for READ_PLUS > > >> error: corrupt patch at line 12 > > >> Patch failed at 0001 NFSv4.2: Rework scratch handling for READ_PLUS > > > > > > That's weird. I wasn't expecting gmail to reformat the patch but I > > > guess it did. I've added it as an attachment so that shouldn't happen > > > again. > > > > Still null ptr (built on 420b2d4 with your patch): > > We're through the merge window and at rc1 now, so I can spend more > time scratching my head over your bug again. We've come up with a > patch (attached) that adds a bunch of printks to show us what the > kernel thinks is going on. Do you mind trying it out and letting us > know what gets printed out? You'll need to make sure > CONFIG_NFS_V4_2_READ_PLUS is enabled when compiling the kernel. Hi Krzystof, Since you are the only one hitting the problem, could you be so kind as to help with getting this resolved. Thank you. > > Thanks, > Anna > > > > > [ 144.690844] mmiocpy from xdr_inline_decode (net/sunrpc/xdr.c:1419 ne= t/sunrpc/xdr.c:1454) > > [ 144.695950] xdr_inline_decode from nfs4_xdr_dec_read_plus (fs/nfs/nf= s42xdr.c:1063 fs/nfs/nfs42xdr.c:1147 fs/nfs/nfs42xdr.c:1360 fs/nfs/nfs42xdr= .c:1341) > > [ 144.702452] nfs4_xdr_dec_read_plus from call_decode (net/sunrpc/clnt= .c:2595) > > [ 144.708429] call_decode from __rpc_execute (include/asm-generic/bito= ps/generic-non-atomic.h:128 net/sunrpc/sched.c:954) > > [ 144.713538] __rpc_execute from rpc_async_schedule (include/linux/sch= ed/mm.h:336 net/sunrpc/sched.c:1035) > > [ 144.719170] rpc_async_schedule from process_one_work (include/linux/= jump_label.h:260 include/linux/jump_label.h:270 include/trace/events/workqu= eue.h:108 kernel/workqueue.c:2294) > > [ 144.725238] process_one_work from worker_thread (include/linux/list.= h:292 kernel/workqueue.c:2437) > > [ 144.730782] worker_thread from kthread (kernel/kthread.c:378) > > [ 144.735547] kthread from ret_from_fork (arch/arm/kernel/entry-common= .S:149) > > > > > > > > Best regards, > > Krzysztof > >