Messages in this thread | | | From | David Laight <> | Subject | RE: Buggy commit tracked to: "Re: [PATCH 2/9] iov_iter: move rw_copy_check_uvector() into lib/iov_iter.c" | Date | Thu, 22 Oct 2020 22:04:04 +0000 |
| |
From: Nick Desaulniers > Sent: 22 October 2020 20:05 > ... > Passing an `unsigned long` as an `unsigned int` does no such > narrowing: https://godbolt.org/z/TvfMxe (same vice-versa, just tail > calls, no masking instructions).
Right but is the called function going to use 32bit ops and/or mask the register? Certainly that is likely on x86-64.
I've rather lost track of where the masking is expected to happen.
David
- Registered Address Lakeside, Bramley Road, Mount Farm, Milton Keynes, MK1 1PT, UK Registration No: 1397386 (Wales)
| |