lkml.org 
[lkml]   [2022]   [May]   [12]   [last100]   RSS Feed
Views: [wrap][no wrap]   [headers]  [forward] 
 
Messages in this thread
/
From
SubjectRE: [RFCv2 06/10] x86/uaccess: Remove tags from the address before checking
Date
From: Kirill A. Shutemov
> Sent: 11 May 2022 03:28
>
> The tags must not be included into check whether it's okay to access the
> userspace address.
>
> Strip tags in access_ok().

Why?
Just change the test to check the buffer doesn't cross 1u << 63.


David

-
Registered Address Lakeside, Bramley Road, Mount Farm, Milton Keynes, MK1 1PT, UK
Registration No: 1397386 (Wales)

\
 
 \ /
  Last update: 2022-05-12 15:04    [W:0.286 / U:0.304 seconds]
©2003-2020 Jasper Spaans|hosted at Digital Ocean and TransIP|Read the blog|Advertise on this site