Received: by 2002:a05:6358:3188:b0:123:57c1:9b43 with SMTP id q8csp9300133rwd; Wed, 21 Jun 2023 05:53:00 -0700 (PDT) X-Google-Smtp-Source: ACHHUZ7LZ/SDTjUgIvqE9b+NVM5QUSOXXJndopXCfjMSLuoLfZ99coh/PwjyjsC9lclkT6ZFCjSn X-Received: by 2002:a05:6a00:134c:b0:65a:cbf3:4687 with SMTP id k12-20020a056a00134c00b0065acbf34687mr15663836pfu.0.1687351980669; Wed, 21 Jun 2023 05:53:00 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1687351980; cv=none; d=google.com; s=arc-20160816; b=MsIpTbgcqJ4V413ey/eJdhvX5Xwlo7rz0tHsNMELi/7x0BBIOyZV2NEPdeztIEXSgl rXdL98KaewfzOT6YvBOfyWiqRQV5u7ywlbOvVcl4aegRhlKqhJjd5H4Z1wLuXQnjoAqv 8SlB5chidyAQlpEzGgbI7SC6LT+Zvx/2KRQiHEKzvnn8gDPEQ3gMFI1EV/9+NxieH0wu uofeQ+4e8zO7xrS3lU3E9kd/z4aWY3yPYWlpzifHtSZAPSgKxVSLeimmcbe8XXppD0ls myEC+4AE3+TPYmNcSlKuXgJp79jfH86d9vtv55bPiRJwGw/IE/MTNSb9Q2SJN9c3EK22 VmzQ== 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=8PdIfEQE5qKLVmM+dbuAdzdn3w59OCD/u/aDJaWNRVY=; b=SzJ2+mYorTHjpiFqnxVipYDlOXjAX+iLMmIyjEYLHHkjTR6XZTYLQwOQISSf+v3hFT 35gST2YfE5WgdjuVtfmoy3BWMydsVXMUOmTiLcbp8etxPmmKx0clJE63ZteyELzmXIT/ UQoPCMLS2lvDZuuuMdR5fbxx8MAyrtZtr6p624iTwKYYXRvQJpX4h2FhLcS6u6YdNMSA Sxlg8q+RKB7uSxtu4hjG+aP1aLcgp86369VZEyrwmsRPyax2Dh2iUUb4SPkpSP8nlBTl FVogie0x4xaOmFtFEoD4PUKcTkAOUxrEovVO/jSIbtyAsRfXgBSKkvp8I0I35HpZ/GFp iKIw== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@gmail.com header.s=20221208 header.b="oXT+JxL/"; 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=QUARANTINE dis=NONE) header.from=gmail.com Return-Path: Received: from out1.vger.email (out1.vger.email. [2620:137:e000::1:20]) by mx.google.com with ESMTP id i189-20020a6387c6000000b0052c87a89084si3849255pge.374.2023.06.21.05.52.40; Wed, 21 Jun 2023 05:53:00 -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=@gmail.com header.s=20221208 header.b="oXT+JxL/"; 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=QUARANTINE dis=NONE) header.from=gmail.com Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S232020AbjFUMt5 (ORCPT + 99 others); Wed, 21 Jun 2023 08:49:57 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:60158 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S229602AbjFUMt4 (ORCPT ); Wed, 21 Jun 2023 08:49:56 -0400 Received: from mail-vs1-xe32.google.com (mail-vs1-xe32.google.com [IPv6:2607:f8b0:4864:20::e32]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 327F51717; Wed, 21 Jun 2023 05:49:55 -0700 (PDT) Received: by mail-vs1-xe32.google.com with SMTP id ada2fe7eead31-440db8e60c8so49698137.0; Wed, 21 Jun 2023 05:49:55 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20221208; t=1687351794; x=1689943794; 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=8PdIfEQE5qKLVmM+dbuAdzdn3w59OCD/u/aDJaWNRVY=; b=oXT+JxL/7NBOvVrMWn+Xlf9j+mWJgDxO6CMZzQHe0vouHmGpEYx/slqSGR7MIKi+1X 7a5EJ94R0GKUnIrYbbxoVDdqRuaovmA6NEE4JMl2odCYKXIHssunN9af6Du4p4Q72GUf gC+bdGSSp0EkjN5MG7Ulp0uxiUEWz96j9nH07ZAASJ90+v6FLY85vKYiO+nQDr1LYaDD wQAm5hu4dJmCoB9ZeNCKF0s3RWcDRwuOrLRvGF2x5wZHoVvj3uH7DesXRTSCQGIMV8fx FLYGQVBZhDQZs5695s0ax3jHufydoqL1BFiz13gd9b3DGt5e06JyTcnROQ3tYYu9aYGe PifA== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20221208; t=1687351794; x=1689943794; 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=8PdIfEQE5qKLVmM+dbuAdzdn3w59OCD/u/aDJaWNRVY=; b=kf1cq8cmLeuihw0pXPph9Nz5ViR7FXJm2oFGB+NkL+caixF5yTN6RqWPU6TRST6x0P A6bekUIUGRXcvOP0I7uY3nzGuA3uha4THREcjDWrpbB8Y1dipU3sliMZeqL3uSlNsjjT XQl1GyLesMjOZBryegxh29WoAAVW9jPMviDHNd1l77uq2wH45VD9wxU3rUPjGTXPwHHa UJ55YyGgf9MSsPXkdsoeTePZqNvG6i60kFWkc5dScHQ65NXHP6wbuGaAHB4OjS+3hare oGSy4C4z0grdnimfGJbWnsJHGq6Bt9DBbsNSJo5nC2BuntwRO/I9Ex/4pyCByOVxYHxU QoqQ== X-Gm-Message-State: AC+VfDwHdGopPsoAdGwXmcC3V0/oNSqL24KLL1iRrPVXHxzaeFJsunY5 MxAVyQe1tsbS900HTzTrgkqxO/cYkFuouLE8HTo= X-Received: by 2002:a05:6102:41b:b0:440:9f9a:4bbb with SMTP id d27-20020a056102041b00b004409f9a4bbbmr5517461vsq.20.1687351794168; Wed, 21 Jun 2023 05:49:54 -0700 (PDT) MIME-Version: 1.0 References: <32530c36-91d0-d351-0689-aed6a0975a4b@linaro.org> <2f285607-cbf9-6abc-f436-edb6e9a3938b@linaro.org> <4fe39d77-eb7c-a578-aefa-45b76e2247c2@linaro.org> <86d8e252-975f-5d48-4567-0911d5ef9a44@linaro.org> <85851031-cf43-07d2-8ec7-b40c8c00be91@linaro.org> In-Reply-To: <85851031-cf43-07d2-8ec7-b40c8c00be91@linaro.org> From: Anna Schumaker Date: Wed, 21 Jun 2023 08:49:38 -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=-2.1 required=5.0 tests=BAYES_00,DKIM_SIGNED, DKIM_VALID,DKIM_VALID_AU,DKIM_VALID_EF,FREEMAIL_FROM, RCVD_IN_DNSWL_NONE,SPF_HELO_NONE,SPF_PASS,T_SCC_BODY_TEXT_LINE autolearn=ham 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 Sat, Jun 17, 2023 at 6:09=E2=80=AFAM Krzysztof Kozlowski wrote: > > On 15/06/2023 21:38, Anna Schumaker wrote: > > On Thu, Jun 15, 2023 at 1:16=E2=80=AFPM Anna Schumaker wrote: > >> > >> On Thu, Jun 15, 2023 at 1:04=E2=80=AFPM Anna Schumaker wrote: > >>> > >>> On Thu, Jun 15, 2023 at 9:01=E2=80=AFAM Anna Schumaker wrote: > >>>> > >>>> On Thu, Jun 15, 2023 at 4:55=E2=80=AFAM Krzysztof Kozlowski > >>>> wrote: > >>>>> > >>>>> On 15/06/2023 10:52, Krzysztof Kozlowski wrote: > >>>>>> On 14/06/2023 22:55, Anna Schumaker wrote: > >>>>>>>>>> Still null ptr (built on 420b2d4 with your patch): > >>>>>>>>> > >>>>>>>>> We're through the merge window and at rc1 now, so I can spend m= ore > >>>>>>>>> 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 t= he > >>>>>>>>> kernel thinks is going on. Do you mind trying it out and lettin= g us > >>>>>>>>> know what gets printed out? You'll need to make sure > >>>>>>>>> CONFIG_NFS_V4_2_READ_PLUS is enabled when compiling the kernel. > >>>>>>>> > >>>>>>>> The patch does not apply. I tried: v6.4-rc1, v6.4-rc5, next-2023= 0609. > >>>>>>> > >>>>>>> Can you try the attached patch on top of my 3-patch series from t= he > >>>>>>> other day, and let me know what gets printed out? It adds a bunch= of > >>>>>>> printk()s at strategic points to print out what is going on with = the > >>>>>>> xdr scratch buffer since it's suddenly a bad memory address after > >>>>>>> working for a bit on your machine. > >>>>>>> > >>>>>> > >>>>>> Here you have entire log - attached (113 kB, I hope goes past mail= ing > >>>>>> lists/spam filters). > >>>>> > >>>>> As expected this bounced from the mailing lists, but I hope you got= it. > >>>>> If not, let me know. > >>>> > >>>> I did still receive it. Thanks! > >>> > >>> Can you swap out yesterday's patch with this patch? I've adjusted wha= t > >>> gets printed out, and added printk()s to xdr_copy_to_scratch(). I'm > >>> starting to think that the xdr scratch buffer is fine, and that it's > >>> the other pointer passed to memcpy() in that function that's the > >>> problem, and the output from this patch will confirm for me. > >> > >> Oh, and can you add this one on top of the v2 patch as well? > > > > Sorry about the noise today. Can you use this patch instead of the two > > I attached earlier? I cleaned up the output and cut down on extra > > output.. > > > > Here you have - attached. This is good, thanks! I was finally able to figure out how to hit the bug using a 32bit x86 VM, so hopefully the next thing you hear from me is a patch fixing the bug! Anna > > > Best regards, > Krzysztof