mirror of https://lore.kernel.org/lkml/
 help / color / mirror / Atom feed
From: "H. Peter Anvin" <hpa@zytor.com>
To: Borislav Petkov <bp@alien8.de>, Pengpeng Hou <pengpeng@iscas.ac.cn>
Cc: Thomas Gleixner <tglx@kernel.org>, Ingo Molnar <mingo@redhat.com>,
	Dave Hansen <dave.hansen@linux.intel.com>,
	x86@kernel.org, Andy Lutomirski <luto@kernel.org>,
	Peter Zijlstra <peterz@infradead.org>,
	linux-kernel@vger.kernel.org
Subject: Re: [PATCH 1/2] x86/setup_data: validate indirect entry sizes before dereferencing them
Date: Mon, 06 Apr 2026 13:54:36 -0700	[thread overview]
Message-ID: <73B23E99-5388-4891-A3D4-AA8B56433FFE@zytor.com> (raw)
In-Reply-To: <20260405110652.GBadJCTDlWLizvnE1Q@fat_crate.local>

On April 5, 2026 4:06:52 AM PDT, Borislav Petkov <bp@alien8.de> 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 boot
>> input to the kernel. It can come not only from a normal bootloader path, but
>> also from kexec-style handoff and virtualized boot flows.
>
>I'm asking you to explain the attack vector in detail. In which of those
>examples don't you need physical access to the machine and root?
>
>IOW, what scenario exactly are we protecting here against? 
>

Sounds like he is more concerned about data corruption than malicious data. At least one possible cause could be a DMA device that has not been properly shut down before kdump – that's a known problem with no good solution and thus is probabilistic.

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.

  reply	other threads:[~2026-04-06 21:11 UTC|newest]

Thread overview: 7+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2026-04-04 13:48 Pengpeng Hou
2026-04-04  9:32 ` [PATCH 2/2] x86/boot/compressed/kaslr: validate indirect setup_data payloads Pengpeng Hou
2026-04-04 21:53 ` [PATCH 1/2] x86/setup_data: validate indirect entry sizes before dereferencing them Borislav Petkov
2026-04-05  1:40 ` Pengpeng Hou
2026-04-05 11:06   ` Borislav Petkov
2026-04-06 20:54     ` H. Peter Anvin [this message]
2026-04-05  3:20 ` Pengpeng Hou

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=73B23E99-5388-4891-A3D4-AA8B56433FFE@zytor.com \
    --to=hpa@zytor.com \
    --cc=bp@alien8.de \
    --cc=dave.hansen@linux.intel.com \
    --cc=linux-kernel@vger.kernel.org \
    --cc=luto@kernel.org \
    --cc=mingo@redhat.com \
    --cc=pengpeng@iscas.ac.cn \
    --cc=peterz@infradead.org \
    --cc=tglx@kernel.org \
    --cc=x86@kernel.org \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox

all inboxes | Powered by JetHome®