From mboxrd@z Thu Jan 1 00:00:00 1970 Received: from mail.zytor.com (terminus.zytor.com [198.137.202.136]) (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 A536A1A4F2F for ; Mon, 6 Apr 2026 21:11:30 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=198.137.202.136 ARC-Seal:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1775509891; cv=none; b=ne9AZfLkHJLfCWj0a5SSzlGAp5Yc31u8sWlqbaemPJ8vSag24xuEzf0ezS0nUvwcgoi9Yx79bryH3Yg7k70akJWW5KE7zF6kO5j49v65rAW860+EWuj/H3sOGnU+AGtQDUBl0ICqBOVcqXtAOt4b3DXatf8cPCKkf4n27EXQ3wc= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1775509891; c=relaxed/simple; bh=G41AIXhob9g+aemP0F6e52I6DsiYUPF07U59JhhS+5Y=; h=Date:From:To:CC:Subject:In-Reply-To:References:Message-ID: MIME-Version:Content-Type; b=dBAGMHD05FJDa+MWVRMAopY0BV6X56afGh5viV49Ob9xcDzBi146iXWT3KITmxRbYoPLWr8d7mbuTNbE5z3ntkp1L6pNG6BZLbLmV2LUgJ4lmeTrwhK7qpGTvYW375IvMAy2O39tZv9QBACysekGbhE4HbPb7p8E80BG3uschKE= ARC-Authentication-Results:i=1; smtp.subspace.kernel.org; dmarc=pass (p=none dis=none) header.from=zytor.com; spf=pass smtp.mailfrom=zytor.com; dkim=pass (2048-bit key) header.d=zytor.com header.i=@zytor.com header.b=W+fsLWe/; arc=none smtp.client-ip=198.137.202.136 Authentication-Results: smtp.subspace.kernel.org; dmarc=pass (p=none dis=none) header.from=zytor.com Authentication-Results: smtp.subspace.kernel.org; spf=pass smtp.mailfrom=zytor.com Authentication-Results: smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=zytor.com header.i=@zytor.com header.b="W+fsLWe/" Received: from ehlo.thunderbird.net (c-76-133-66-138.hsd1.ca.comcast.net [76.133.66.138]) (authenticated bits=0) by mail.zytor.com (8.18.1/8.17.1) with ESMTPSA id 636Ksgk52159997 (version=TLSv1.3 cipher=TLS_AES_128_GCM_SHA256 bits=128 verify=NO); Mon, 6 Apr 2026 13:54:42 -0700 DKIM-Filter: OpenDKIM Filter v2.11.0 mail.zytor.com 636Ksgk52159997 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=zytor.com; s=2026032601; t=1775508884; bh=G41AIXhob9g+aemP0F6e52I6DsiYUPF07U59JhhS+5Y=; h=Date:From:To:CC:Subject:In-Reply-To:References:From; b=W+fsLWe/GHYGMZsHdgjHpYwc3adr7QoeFHM4OblTJ02DRDjeYEGqb5AUJsG0Xf0YI IjuPpcl91KhJ1IeN++l6tLckKYHO5EDDq6qi1l/PNJRiR+Yiwl1yXPz92/8dsIkx5c DU0AW6K3CQcGeIM7nOSYugrRzGRJZi7UvFiGU37dic61PDvk+pi0smvvRE4Leg2KtG OPx23wfKA048mdYzoOC8VzT8ALK670hUrijsc70vuB28BcnYJyQ/5JGoYn/IXzPisK dZuIrM7rVMtE7We13RSGPSex9ZHecfY+ZGGS8REj+vfw2x0KVo01RUlO5cec2hk9Ts fX46TvAQNhByA== Date: Mon, 06 Apr 2026 13:54:36 -0700 From: "H. Peter Anvin" To: Borislav Petkov , Pengpeng Hou CC: Thomas Gleixner , Ingo Molnar , Dave Hansen , x86@kernel.org, Andy Lutomirski , Peter Zijlstra , linux-kernel@vger.kernel.org Subject: =?US-ASCII?Q?Re=3A_=5BPATCH_1/2=5D_x86/setup=5Fdata=3A_validate_in?= =?US-ASCII?Q?direct_entry_sizes_before_dereferencing_them?= User-Agent: K-9 Mail for Android In-Reply-To: <20260405110652.GBadJCTDlWLizvnE1Q@fat_crate.local> References: <20260404190001.1-x86-setup-data-pengpeng@iscas.ac.cn> <20260405094002.2-reply-x86-setup-data-pengpeng@iscas.ac.cn> <20260405110652.GBadJCTDlWLizvnE1Q@fat_crate.local> Message-ID: <73B23E99-5388-4891-A3D4-AA8B56433FFE@zytor.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=utf-8 Content-Transfer-Encoding: quoted-printable On April 5, 2026 4:06:52 AM PDT, Borislav Petkov wrote: >On Sun, Apr 05, 2026 at 09:40:00AM +0800, Pengpeng Hou wrote: >> I think that is worth handling because `setup_data` is still external b= oot >> input to the kernel=2E It can come not only from a normal bootloader pa= th, but >> also from kexec-style handoff and virtualized boot flows=2E > >I'm asking you to explain the attack vector in detail=2E In which of thos= e >examples don't you need physical access to the machine and root? > >IOW, what scenario exactly are we protecting here against?=20 > Sounds like he is more concerned about data corruption than malicious data= =2E At least one possible cause could be a DMA device that has not been pro= perly shut down before kdump =E2=80=93 that's a known problem with no good = solution and thus is probabilistic=2E What is the likelihood that these sanity checks would catch that specific = kind of corruption and still be able to produce a meaningful dump? Probably= infinitesimal=2E