Received: by 2002:a05:6359:6284:b0:131:369:b2a3 with SMTP id se4csp269621rwb; Fri, 4 Aug 2023 12:23:47 -0700 (PDT) X-Google-Smtp-Source: AGHT+IHYXyQP/5LPpJtQj6p6w7qJ4kHLK3xvpcRSWZPs1QA9T6hUYkPnR4bfBvltH+W52l6L1dXq X-Received: by 2002:a17:902:f547:b0:1b8:c580:5fb9 with SMTP id h7-20020a170902f54700b001b8c5805fb9mr2581243plf.14.1691177027463; Fri, 04 Aug 2023 12:23:47 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1691177027; cv=none; d=google.com; s=arc-20160816; b=VeD2vHH/cW2/K4gvlnsrHkUM/ur7xdUUaGOI4o5gS/wsyGQWNJuBNx1iLstdueDLMM NviYFdjhRDKtuPo1PS1zauBzCwHeJJZHfF8C7W8nheu3/UHXZ/4A7SYQcGK1A8m4hhiI fwwvL7+OTIMoSZGpjoU8DtEETJ9Nqd+TJlzrW2MxMdFuyqSsFY/BeSW8nLRe5vsPESd+ 9/TGLm0sk/MFoLpGYo/wP8vAGpWVyNbI4Fhm3ZnbfDaHuk3yw8Op5L+jwP0CFXRMte0q Nh3OFYE8rKfU2lzhc8pA5Y+yMIt4A+5rwf3449H+1dAw0Te/egHxb5SB2UuNWJSejTMy ZXcA== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:in-reply-to:content-transfer-encoding :content-disposition:mime-version:references:message-id:subject:cc :to:from:date:dkim-signature; bh=fLs6vLbC3bot13xgwrJ/fB2v8UZa1GQgyp/C81/2sXw=; fh=A+Ov8zFlDD4mzF0FJszbPq7jdXL2csZB+VH1MwmTw9k=; b=FyC3PdFX3MjFqzi5Q9GT1Mmg5SzU3Mxus1bo1SiJcAWDPb5VKLHx21uK28lU9xEhwU 3KYLM8r69UP0/Omg4cpqpF+LCyh5UtvA3uJzce2u2/YaX1kpyEpBApTULm92o/gkp+4F YxQEg0mgw/b/OGOFIfpsTw/0q9IezqEiC2qqojJSB3hjg64vN5zSv2zkjBRoBuazk+jo M9h/FtyaYxT2hMDGDCb/4dqDj6pCOPy5EgJM608w3yhUxjmL3X9x5172OKelnrqG51sm neojOOkGCQCWyCdzj4+PZYXRMZTcx/pSwr2TEVfJwg1ZdmJElooGgqrw5Lb3O5Zmmr4Y 5sfA== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@cloudflare.com header.s=google header.b="BQY5zzs/"; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=REJECT sp=REJECT dis=NONE) header.from=cloudflare.com Return-Path: Received: from out1.vger.email (out1.vger.email. [2620:137:e000::1:20]) by mx.google.com with ESMTP id f1-20020a170902ce8100b001bb0fea7441si2156030plg.634.2023.08.04.12.23.34; Fri, 04 Aug 2023 12:23:47 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel-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=@cloudflare.com header.s=google header.b="BQY5zzs/"; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=REJECT sp=REJECT dis=NONE) header.from=cloudflare.com Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S231394AbjHDQ5e (ORCPT + 99 others); Fri, 4 Aug 2023 12:57:34 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:34058 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S231383AbjHDQ5b (ORCPT ); Fri, 4 Aug 2023 12:57:31 -0400 Received: from mail-io1-xd34.google.com (mail-io1-xd34.google.com [IPv6:2607:f8b0:4864:20::d34]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 9C1E3469C for ; Fri, 4 Aug 2023 09:57:25 -0700 (PDT) Received: by mail-io1-xd34.google.com with SMTP id ca18e2360f4ac-79095499a17so85069839f.3 for ; Fri, 04 Aug 2023 09:57:25 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=cloudflare.com; s=google; t=1691168245; x=1691773045; h=in-reply-to:content-transfer-encoding:content-disposition :mime-version:references:message-id:subject:cc:to:from:date:from:to :cc:subject:date:message-id:reply-to; bh=fLs6vLbC3bot13xgwrJ/fB2v8UZa1GQgyp/C81/2sXw=; b=BQY5zzs/9I6VY6xyhPL8yq1cl+TLPbV3XxYmr4qSB+Za88/G2jhf/8k76NYDcE7Oi3 rU3ucAGOJA9FCr8AjxaFYYi4vg2b4GCVddq4kI81RtSDaH2vcAdEMTpQ45zqBLi1eaxf mHUOR2hY26v/em/o5OD44PUMC10nDsd9mzQY8= X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20221208; t=1691168245; x=1691773045; h=in-reply-to:content-transfer-encoding:content-disposition :mime-version:references:message-id:subject:cc:to:from:date :x-gm-message-state:from:to:cc:subject:date:message-id:reply-to; bh=fLs6vLbC3bot13xgwrJ/fB2v8UZa1GQgyp/C81/2sXw=; b=K0D90bwjPJUc7ByaR8lpRwHLHWqWib+4jNrtqmF6LDuimYjJmmkwCGNAfHk2IQ5qzh Rc32TKjU0lbYPAtF00d4sjdjJ011UCdzcG7zXGtWTdHTiREPEQ65WvYvmWpTXFoP3LLh dwQrFaUbZILcgfJdYMxSftY63bhgMaNAojM3Xr4vIr2GvRueda9PBqcC0FT+4EUkQm/b HXHqQwwfbt2BX/O0ct4p5vn2mMG5iFtYEoHAX0Qsllp9YxWJTcFg43nU05kLiTOU530o SL9MoQ0p9MDowf0XPgA+87NM+Gt2kc/E3HvA2IMp67MPSwQNlpHTLVSu+uUd1omBl267 g6gg== X-Gm-Message-State: AOJu0YwmI8+IrklaCwSpU+qCpz6Q8M6cN1N8VRsnO5bSqDzh3mub4tC/ 9sRLsm/IJaQOQD8ptmg9hQwPBg== X-Received: by 2002:a5d:8d95:0:b0:790:f866:d716 with SMTP id b21-20020a5d8d95000000b00790f866d716mr1101255ioj.15.1691168244913; Fri, 04 Aug 2023 09:57:24 -0700 (PDT) Received: from CMGLRV3 ([2a09:bac5:9478:4be::79:1a]) by smtp.gmail.com with ESMTPSA id z11-20020a6b0a0b000000b007791e286fdbsm753260ioi.21.2023.08.04.09.57.23 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Fri, 04 Aug 2023 09:57:24 -0700 (PDT) Date: Fri, 4 Aug 2023 11:57:22 -0500 From: Frederick Lawler To: Matthew Wilcox Cc: Daniel Dao , linux-fsdevel@vger.kernel.org, Dave Chinner , kernel-team , linux-kernel , djwong@kernel.org Subject: Re: Kernel NULL pointer deref and data corruptions with xfs on 6.1 Message-ID: References: MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Disposition: inline Content-Transfer-Encoding: 8bit In-Reply-To: X-Spam-Status: No, score=-2.1 required=5.0 tests=BAYES_00,DKIMWL_WL_MED, DKIM_SIGNED,DKIM_VALID,DKIM_VALID_AU,DKIM_VALID_EF, RCVD_IN_DNSWL_BLOCKED,SPF_HELO_NONE,SPF_NONE,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-kernel@vger.kernel.org Hi Matthew, On Thu, Jul 27, 2023 at 01:27:56PM +0100, Matthew Wilcox wrote: > On Thu, Jul 27, 2023 at 11:25:33AM +0100, Daniel Dao wrote: > > On Thu, Jul 27, 2023 at 4:27 AM Matthew Wilcox wrote: > > > > > > On Fri, Jul 21, 2023 at 11:49:04AM +0100, Daniel Dao wrote: > > > > We do not have a reproducer yet, but we now have more debugging data > > > > which hopefully > > > > should help narrow this down. Details as followed: > > > > > > > > 1. Kernel NULL pointer deferencences in __filemap_get_folio > > > > > > > > This happened on a few different hosts, with a few different repeated addresses. > > > > The addresses are 0000000000000036, 0000000000000076, > > > > 00000000000000f6. This looks > > > > like the xarray is corrupted and we were trying to do some work on a > > > > sibling entry. > > > > > > I think I have a fix for this one. Please try the attached. > > > > For some reason I do not see the attached patch. Can you resend it, or > > is it the same > > one as in https://bugzilla.kernel.org/show_bug.cgi?id=216646#c31 ? > > Yes, that's the one, sorry. I setup a kernel with this patch to deploy out. It'll take some time to see any results from that. I did run your multiorder.c changes with/without the change to lib/xarray.c and that seemed to work as intended. I didn't see any regressions across multiple seeds with our kernel config. Fred