lkml.org 
[lkml]   [2021]   [May]   [5]   [last100]   RSS Feed
Views: [wrap][no wrap]   [headers]  [forward] 
 
Messages in this thread
/
From
Date
SubjectRe: [PATCH v4 3/4] x86/uaccess: Use pointer masking to limit uaccess speculation
On Wed, May 5, 2021 at 1:48 AM David Laight <David.Laight@aculab.com> wrote:
>
> This would error requests for address 0 earlier - but I don't
> believe they are ever valid in Linux.
> (Some historic x86 a.out formats did load to address 0.)

Not only loading at address 0 - there are various real reason s why
address 0 might actually be needed.

Anybody who still runs a 32-bit kernel and wants to use vm86 mode, for
example, requires address 0 because that's simply how the hardware
works.

So no. "mask to zero and make zero invalid" is not a proper model.

Linus

\
 
 \ /
  Last update: 2021-05-05 20:33    [W:0.128 / U:1.724 seconds]
©2003-2020 Jasper Spaans|hosted at Digital Ocean and TransIP|Read the blog|Advertise on this site