RE: [RFCv2 06/10] x86/uaccess: Remove tags from the address before checking

From: David Laight
Date: Thu May 12 2022 - 09:03:06 EST


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)