Received: by 2002:a05:6358:3188:b0:123:57c1:9b43 with SMTP id q8csp9363709rwd; Wed, 21 Jun 2023 06:36:05 -0700 (PDT) X-Google-Smtp-Source: ACHHUZ7gf0KwnYisQu8UiwXUZkxh/hcw9JX+U8YJGpT2/7A9FSzHcAzhtFJNe1G9XmrLlcF7+m4H X-Received: by 2002:a92:c52b:0:b0:33c:1fe9:a612 with SMTP id m11-20020a92c52b000000b0033c1fe9a612mr12575524ili.14.1687354565658; Wed, 21 Jun 2023 06:36:05 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1687354565; cv=none; d=google.com; s=arc-20160816; b=siOaicdFVEG6fn/LGf5dMnuRhwb9rzaoo3QgiNODhe1HF7WmPNwQTIEJn48cNIg9+x S+3FyAyQ4+/GyQk/6GN2PU9exXPaplxi+ZUMCRto7tvlGLR9EqoiGmliZJ04hY9PSzk3 7sXVH3biMjSb+X2g/N9oNlLuERYk9RGvmPgCf8CDDCKVj6CFEq4bIoRlcwBFr05spnZl +KXrj5KaTvbQVIlOO1c561Cuzm9BxXRVv5sAEyZ4SFvSCA7QCcX8rjkjEa8tPeazz20/ 16HgX6zXuuhZFhUptXUZSIENghHB/E1j991UupZnP/e7sjuXogNfEH2hfmCrNiOsiezC i3hw== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:content-transfer-encoding:in-reply-to:from :references:cc:to:content-language:subject:user-agent:mime-version :date:message-id:dkim-signature; bh=967DLvqkZucBWYuQQC7ZvvfSLYp3m3iK1g1tSsAsumo=; b=m/EJPCFpYDl6c4XL7/4/XsF5lvts33pIw0n13IUMD6Fa6AAR0orSb64OYa9u8xpNBQ t8S0bN1qK4DAerc3XjX7CczowlMr95CG1GKN/SjVqUhGeUbnVfrQoDsLqMwFdmulG5cX yjd3azROfSTZMxOcs8mhsLUCMO/JGuBAF5P9m3FT9Bfc54wgv8YYWktBBX2BWJBY0NZM Z+YYo1Ff8E85yz59SGzIoUHmfU8vNEDb6F5+OmntDGxWdX2LchuaxkSx82if9np2bnAY osiYKOM/iiFAQKJGvZee0J7kliE/WXRC9my4zhhjLBiB6y8/N6uTGz1sIjOUEYwIbIfK yPkg== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@linaro.org header.s=google header.b="YD/P6yU9"; 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=linaro.org Return-Path: Received: from out1.vger.email (out1.vger.email. [2620:137:e000::1:20]) by mx.google.com with ESMTP id rj6-20020a17090b3e8600b00260f28b14e4si1850551pjb.4.2023.06.21.06.35.47; Wed, 21 Jun 2023 06:36:05 -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=@linaro.org header.s=google header.b="YD/P6yU9"; 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=linaro.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S232539AbjFUN1j (ORCPT + 99 others); Wed, 21 Jun 2023 09:27:39 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:55712 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S229830AbjFUN1i (ORCPT ); Wed, 21 Jun 2023 09:27:38 -0400 Received: from mail-ed1-x52a.google.com (mail-ed1-x52a.google.com [IPv6:2a00:1450:4864:20::52a]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 3B28B191 for ; Wed, 21 Jun 2023 06:27:37 -0700 (PDT) Received: by mail-ed1-x52a.google.com with SMTP id 4fb4d7f45d1cf-518ff822360so7306712a12.1 for ; Wed, 21 Jun 2023 06:27:37 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=linaro.org; s=google; t=1687354056; x=1689946056; h=content-transfer-encoding:in-reply-to:from:references:cc:to :content-language:subject:user-agent:mime-version:date:message-id :from:to:cc:subject:date:message-id:reply-to; bh=967DLvqkZucBWYuQQC7ZvvfSLYp3m3iK1g1tSsAsumo=; b=YD/P6yU9e+foV/q0Wy0ecEWStAnVi3YxeIDNyWL1sZ2BKGN8SJx6usqEPNYQvdPW8R W9zveRkJlg/JCl3FhGTQ0U+QzCjixD572AOXwCi/sLPAEZUrJluuRKGfunFqW5mrKNFO VbCAbc10yY/ROBuOA6k3c4PovVVvwf8ftya4NQih3Acu0KODgWXon+JSQVM66XvLD3Pb QmIk0YVd+elrQgzFyTL1F7GaS5ZmWzoyLiepRspHpjA0qdywFZ0JgX2BCzUUGOlk5M5p xc9tFwIVBOKvJx4PDCtjTFHqdZ7g7wvhJNz7DIYMxheDXS8UcvNr2hem3YITxJiCpzsN yo7g== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20221208; t=1687354056; x=1689946056; h=content-transfer-encoding:in-reply-to:from:references:cc:to :content-language:subject:user-agent:mime-version:date:message-id :x-gm-message-state:from:to:cc:subject:date:message-id:reply-to; bh=967DLvqkZucBWYuQQC7ZvvfSLYp3m3iK1g1tSsAsumo=; b=flWFbrNepuxORhZJzcIf3eGHulul6rUnMFTXk73EGJfmMLkEMtdv/gzxqC0uydONUM A8Xqmf4LRQRxhgeA8iABKmBr8mQUydUMpjk4BGRmGow2OUd2nwMejCWAEWMt9JUA+3rT slEloW3UDC/XPJCRtulBPbmIf+e4/agXlYJyDZK3TQz1c7NPtzTapyLlFhHgHPrKfi3f bAIPHW8rIusfiCkYPX1C/b3iSOuA3mw7twfMJtjVTGFNxw5ctiTygeWGF1einOxhaq0G qZE4MnxlJLDhoH1Y3Y26psOJN8rWR5308wCdV4fuBRJnTeuk91Lq6HdAwcii6im1riLV S5FQ== X-Gm-Message-State: AC+VfDwKTVLK47aMjPuUO+LwRtYtQTx1qHwH6Q+1Nax7tC/Qwk+Wg5+V NZbprhEhW7Z1YjSM2DpPhh8ACg== X-Received: by 2002:a05:6402:6d8:b0:514:9e2c:90c6 with SMTP id n24-20020a05640206d800b005149e2c90c6mr10332144edy.38.1687354055724; Wed, 21 Jun 2023 06:27:35 -0700 (PDT) Received: from [192.168.1.20] ([178.197.219.26]) by smtp.gmail.com with ESMTPSA id w1-20020aa7da41000000b005163c11700csm2621598eds.74.2023.06.21.06.27.34 (version=TLS1_3 cipher=TLS_AES_128_GCM_SHA256 bits=128/128); Wed, 21 Jun 2023 06:27:35 -0700 (PDT) Message-ID: Date: Wed, 21 Jun 2023 15:27:33 +0200 MIME-Version: 1.0 User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:102.0) Gecko/20100101 Thunderbird/102.12.0 Subject: Re: Regression: NULL pointer dereference after NFS_V4_2_READ_PLUS (commit 7fd461c47) Content-Language: en-US To: Anna Schumaker Cc: Trond Myklebust , Anna Schumaker , linux-nfs , Linux Kernel Mailing List , "regressions@lists.linux.dev" References: <4fe39d77-eb7c-a578-aefa-45b76e2247c2@linaro.org> <86d8e252-975f-5d48-4567-0911d5ef9a44@linaro.org> <85851031-cf43-07d2-8ec7-b40c8c00be91@linaro.org> From: Krzysztof Kozlowski In-Reply-To: Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit X-Spam-Status: No, score=-2.2 required=5.0 tests=BAYES_00,DKIM_SIGNED, DKIM_VALID,DKIM_VALID_AU,DKIM_VALID_EF,NICE_REPLY_A,RCVD_IN_DNSWL_NONE, SPF_HELO_NONE,SPF_PASS,T_SCC_BODY_TEXT_LINE,URIBL_BLOCKED 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 21/06/2023 14:49, Anna Schumaker wrote: > On Sat, Jun 17, 2023 at 6:09 AM Krzysztof Kozlowski > wrote: >> >> On 15/06/2023 21:38, Anna Schumaker wrote: >>> On Thu, Jun 15, 2023 at 1:16 PM Anna Schumaker wrote: >>>> >>>> On Thu, Jun 15, 2023 at 1:04 PM Anna Schumaker wrote: >>>>> >>>>> On Thu, Jun 15, 2023 at 9:01 AM Anna Schumaker wrote: >>>>>> >>>>>> On Thu, Jun 15, 2023 at 4:55 AM 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 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. >>>>>>>>>> >>>>>>>>>> The patch does not apply. I tried: v6.4-rc1, v6.4-rc5, next-20230609. >>>>>>>>> >>>>>>>>> Can you try the attached patch on top of my 3-patch series from the >>>>>>>>> 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 mailing >>>>>>>> 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 what >>>>> 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! QEMU also has 32-bit ARM and x86... Best regards, Krzysztof