[<prev] [next>] [<thread-prev] [day] [month] [year] [list]
Message-ID: <20200721090901.GC620@8bytes.org>
Date: Tue, 21 Jul 2020 11:09:01 +0200
From: Joerg Roedel <joro@...tes.org>
To: Thomas Gleixner <tglx@...utronix.de>
Cc: Arvind Sankar <nivedita@...m.mit.edu>, hpa@...or.com,
Andy Lutomirski <luto@...capital.net>,
Ingo Molnar <mingo@...hat.com>, Borislav Petkov <bp@...en8.de>,
x86@...nel.org, Andy Lutomirski <luto@...nel.org>,
Peter Zijlstra <peterz@...radead.org>,
Joerg Roedel <jroedel@...e.de>, linux-kernel@...r.kernel.org
Subject: Re: [PATCH] x86/idt: Make sure idt_table takes a whole page
On Mon, Jul 20, 2020 at 06:48:03PM +0200, Thomas Gleixner wrote:
> But with explicit sections which store only page aligned objects there
> is an implicit guarantee that the object is alone in the page in which
> it is placed. That works for all objects except the last one. That's
> inconsistent.
>
> By enforcing page sized objects for this section you might also wreckage
> memory sanitizers, because your object is artificially larger than it
> should be and out of bound access becomes legit.
Okay, valid points about the consistency and the memory sanitizers. I'll
submit a patch for the linker scripts soon.
Regards,
Joerg
Powered by blists - more mailing lists