From mboxrd@z Thu Jan 1 00:00:00 1970 Received: from smtp.kernel.org (aws-us-west-2-korg-mail-1.web.codeaurora.org [10.30.226.201]) (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 27A23339875 for ; Fri, 24 Apr 2026 17:06:55 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=10.30.226.201 ARC-Seal:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1777050415; cv=none; b=iwmEU8ZABqzCTFlM84tM81U1RLEoL61/GSW4nlQqOOdOy/hxqyRIiHVSYZmQEn3JRbauUftFEhzTeaBO5Cc+RNwKEowGMiyXNfxc8FCJfYDV1p0VOH/GforXZOS0DEv6akrFPjh77MofGLJZyBIOHhb1XfMS+3NTwvizcr8EOwc= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1777050415; c=relaxed/simple; bh=Cq07aegjH/barrFFwd1M+y5Eh+awY/eNj97Z/kd9gvc=; h=Date:From:To:Cc:Subject:Message-Id:In-Reply-To:References: Mime-Version:Content-Type; b=r8pxX61YPDjbVoTMi4DNfeexet6+s8cNTB9vIEygpZy8bRE+LnS6f+m9o7Ru3r7PVacjJJsQsjHfpOKSO/0Aw8DX0iVYHqEcvTYgK0lvUDklEIlCqvz7JW1UMYoCyyirqosEmbehYhBSSdhuGifEyrVt2gTwv+kg2/COn3/v+RM= ARC-Authentication-Results:i=1; smtp.subspace.kernel.org; dkim=pass (1024-bit key) header.d=linux-foundation.org header.i=@linux-foundation.org header.b=SXKSPlI5; arc=none smtp.client-ip=10.30.226.201 Authentication-Results: smtp.subspace.kernel.org; dkim=pass (1024-bit key) header.d=linux-foundation.org header.i=@linux-foundation.org header.b="SXKSPlI5" Received: by smtp.kernel.org (Postfix) with ESMTPSA id 8AB7BC19425; Fri, 24 Apr 2026 17:06:54 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=linux-foundation.org; s=korg; t=1777050414; bh=Cq07aegjH/barrFFwd1M+y5Eh+awY/eNj97Z/kd9gvc=; h=Date:From:To:Cc:Subject:In-Reply-To:References:From; b=SXKSPlI5VBgMhrWrTOx7SwhVcEga+/4fm5gt8lsrW2nNd+A5cbnTEoIn2iyfNszzh AGN6fmbFgb5qX4fW2L0zPUyY1miJQzJjXuqgexuRd8/ATlHcmmXTx1Q5/N0RUoQg57 1xRda5V/GIW0iKoS8M7LEVufN5EKURNzFgzROme8= Date: Fri, 24 Apr 2026 10:06:54 -0700 From: Andrew Morton To: Ke Zhao Cc: Vlastimil Babka , Suren Baghdasaryan , Michal Hocko , John Hubbard , Brendan Jackman , Johannes Weiner , Zi Yan , linux-mm@kvack.org, linux-kernel@vger.kernel.org, syzbot+2aee6839a252e612ce34@syzkaller.appspotmail.com Subject: Re: [PATCH v2] mm, KMSAN: Add missing shadow memory initialization in special allocation paths Message-Id: <20260424100654.6379109008b57b4affd1cd8f@linux-foundation.org> In-Reply-To: <20260413-fix-kmsan-v2-1-9cc8a53c36c7@gmail.com> References: <20260413-fix-kmsan-v2-1-9cc8a53c36c7@gmail.com> X-Mailer: Sylpheed 3.8.0beta1 (GTK+ 2.24.33; x86_64-pc-linux-gnu) 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-Transfer-Encoding: 7bit On Mon, 13 Apr 2026 10:12:40 +0800 Ke Zhao wrote: > Some page allocation paths that call post_alloc_hook() but skip > kmsan_alloc_page(), leaving stale KMSAN shadow on allocated pages. > Although there is no reproducer for this issue, this patch should > be able to fix it by explicitly calling kmsan_alloc_page() > after they successfully get new pages. > Please refresh, retest and resend this. When doing so, please cc the people who commented on the v1 patch (Vlastimil, Usama). Please also cc the KMSAN developers, as listed in the MAINTAINERS file. Thanks.