Received: by 2002:a05:7412:a9a3:b0:f9:93eb:408e with SMTP id o35csp9421rdh; Wed, 20 Dec 2023 20:31:21 -0800 (PST) X-Google-Smtp-Source: AGHT+IEhUZcuv3QtpY5Nn6ZRoBMtFazYMoBwIMLDxkjCIv1KqHyuFGDeyQJFQFzmK6RUD2lK0fgI X-Received: by 2002:a05:620a:29c4:b0:77f:5c8c:1b23 with SMTP id s4-20020a05620a29c400b0077f5c8c1b23mr26929719qkp.108.1703133080967; Wed, 20 Dec 2023 20:31:20 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1703133080; cv=none; d=google.com; s=arc-20160816; b=0tjT0QBm8QrCbIG5dqzk+otbC4edQls60y7Kc0T4W1odH/iNQO7owb49issADNmn2+ 1cSHQXwD91Seawz5adL3HXY25RJkS9INa3RsvDMyUh+qgE8WNByLtbvanfk93rrbfXk6 sxVQEzIxUInwSPlOYC3p304QVHxDZ7TO6WenBZxf6bAox6V5XfKsPA4HQTUvsd9AFMFM w9SPHvhYfrj4BwGxknMDqBJkBgJEOESWZIDC2c4p7prs4wGNC9okZ2bJDD5hCQoX3rNm CH5krzUr8GSBQnK15ZNxJ3QtG10SBVRbg10UAGjgYtOiSdxUdpIHmNCu/WnX+sp3s62a 92Hw== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=in-reply-to:content-disposition:mime-version:list-unsubscribe :list-subscribe:list-id:precedence:references:message-id:subject:cc :to:from:date:dkim-signature; bh=vjSvREHYlgRP4KPFfJJx3croJSE9ASfBYCOZeqoZmi0=; fh=B/p63PW20ts2dMRKyib0DAGWwQGsfWx0pho/Q+R7CaQ=; b=Q+OQIpLXVqEtipNC/LKNH2X4M597tO3J6+71DASSb+/mQMcylMUPbIs0Aoph1/fD1N oDE2wF9DuIkw6cX6T6wNJtuM9mkCYssQ/mDxWApoPRi21fz9/3wfxJFYjRn1YHSREtUQ FScAacMU8qntC3MDhujMfl6b+kS2b5mnMS90FqmSgHs39LL5AH0ppcV1vb/tIyc0uJZj 0LWDBon1FMXAIDt0+J67W1EgsrYNyLjC2WvG4gotI/p2OblsI5hlHL95Caew+9+KXSkS 8CfAKc4ndcFyuSMSaGCZdiVR21H9ZBNLz8MS7oL2Mf7thi5L6fn5koeMy9Qt+mtnqkOW Xp/g== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@infradead.org header.s=casper.20170209 header.b="l4/KW0+H"; spf=pass (google.com: domain of linux-kernel+bounces-7835-linux.lists.archive=gmail.com@vger.kernel.org designates 147.75.199.223 as permitted sender) smtp.mailfrom="linux-kernel+bounces-7835-linux.lists.archive=gmail.com@vger.kernel.org" Return-Path: Received: from ny.mirrors.kernel.org (ny.mirrors.kernel.org. [147.75.199.223]) by mx.google.com with ESMTPS id r6-20020a05620a298600b007811461931csi1447149qkp.160.2023.12.20.20.31.20 for (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Wed, 20 Dec 2023 20:31:20 -0800 (PST) Received-SPF: pass (google.com: domain of linux-kernel+bounces-7835-linux.lists.archive=gmail.com@vger.kernel.org designates 147.75.199.223 as permitted sender) client-ip=147.75.199.223; Authentication-Results: mx.google.com; dkim=pass header.i=@infradead.org header.s=casper.20170209 header.b="l4/KW0+H"; spf=pass (google.com: domain of linux-kernel+bounces-7835-linux.lists.archive=gmail.com@vger.kernel.org designates 147.75.199.223 as permitted sender) smtp.mailfrom="linux-kernel+bounces-7835-linux.lists.archive=gmail.com@vger.kernel.org" Received: from smtp.subspace.kernel.org (wormhole.subspace.kernel.org [52.25.139.140]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by ny.mirrors.kernel.org (Postfix) with ESMTPS id B6AB91C2312B for ; Thu, 21 Dec 2023 04:31:20 +0000 (UTC) Received: from localhost.localdomain (localhost.localdomain [127.0.0.1]) by smtp.subspace.kernel.org (Postfix) with ESMTP id CA0D68C00; Thu, 21 Dec 2023 04:31:13 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=infradead.org header.i=@infradead.org header.b="l4/KW0+H" X-Original-To: linux-kernel@vger.kernel.org Received: from casper.infradead.org (casper.infradead.org [90.155.50.34]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by smtp.subspace.kernel.org (Postfix) with ESMTPS id A4C2079DC; Thu, 21 Dec 2023 04:31:11 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; dmarc=none (p=none dis=none) header.from=infradead.org Authentication-Results: smtp.subspace.kernel.org; spf=none smtp.mailfrom=infradead.org DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=infradead.org; s=casper.20170209; h=In-Reply-To:Content-Type:MIME-Version: References:Message-ID:Subject:Cc:To:From:Date:Sender:Reply-To: Content-Transfer-Encoding:Content-ID:Content-Description; bh=vjSvREHYlgRP4KPFfJJx3croJSE9ASfBYCOZeqoZmi0=; b=l4/KW0+HYaarxW8csL/nK0Qz/k k2VNtZdlbQD6jeaS4A1kS52xCWOWRDpLMoBLNQA+mDakkhij36vCRh88mTsumcPWW/RCU0Q4M25HN V7/oSjXGtMNjtlEoorDlWuzx+gV4qATD2E3R3n7d8ejDhcK6ohykPNdLAzi/F5LnJe0sVjKqqhxP8 Dpns6X8kHeV/nTs+iwaWORyzsBcAZTpAE6idQyh4E1W/j7/f3b/XyR+p0zWU2RcQ3RFAxFOhT6dEW NECroiBcjlbT0B5LSyZqVEaMusADi9PQlcOUQ/+n8BBzZpzPpPBl03tIoNcAo9cPo6occiJgi0EH8 mROxThQg==; Received: from willy by casper.infradead.org with local (Exim 4.94.2 #2 (Red Hat Linux)) id 1rGAi3-004evm-1e; Thu, 21 Dec 2023 04:30:59 +0000 Date: Thu, 21 Dec 2023 04:30:59 +0000 From: Matthew Wilcox To: "Aithal, Srikanth" Cc: kernel test robot , oe-lkp@lists.linux.dev, lkp@intel.com, Linux Memory Management List , Andrew Morton , David Hildenbrand , linux-kernel@vger.kernel.org Subject: Re: [linux-next:master] [mm] bbcbf2a3f0: kernel_BUG_at_mm/memory.c Message-ID: References: <202312192319.fa8f5709-oliver.sang@intel.com> <2b7ae17e-0429-47ab-8101-00486ef9841e@amd.com> Precedence: bulk X-Mailing-List: linux-kernel@vger.kernel.org List-Id: List-Subscribe: List-Unsubscribe: MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <2b7ae17e-0429-47ab-8101-00486ef9841e@amd.com> On Thu, Dec 21, 2023 at 08:26:37AM +0530, Aithal, Srikanth wrote: > Starting from next-20231214 until next-20231220 have noted regression where > kernel hangs randomly while running virtualization tests [multiple > start-shutdown and reboot] against AMD sev guest type, with below call > trace: This is an entirely different problem, already reported and fix sent about 24 hours ago. diff --git a/mm/swap_state.c b/mm/swap_state.c index 793b5b9e4f96..8a3a8f1ab20a 100644 --- a/mm/swap_state.c +++ b/mm/swap_state.c @@ -894,6 +894,9 @@ struct page *swapin_readahead(swp_entry_t entry, gfp_t gfp_mask, swap_vma_readahead(entry, gfp_mask, mpol, ilx, vmf) : swap_cluster_readahead(entry, gfp_mask, mpol, ilx); mpol_cond_put(mpol); + + if (!folio) + return NULL; return folio_file_page(folio, swp_offset(entry)); }