]> git.baikalelectronics.ru Git - kernel.git/commit
usercopy: use unsigned long instead of uintptr_t
authorJason A. Donenfeld <Jason@zx2c4.com>
Thu, 16 Jun 2022 14:36:17 +0000 (16:36 +0200)
committerKees Cook <keescook@chromium.org>
Sat, 2 Jul 2022 00:03:38 +0000 (17:03 -0700)
commit6f1c4b16458c331b3badcad57edaf197a2b66718
tree16d6965263382368d7e3f3bde14b353f9fd39c92
parent08aafa0d475a08e31a13403e9df41c7179f4bdcd
usercopy: use unsigned long instead of uintptr_t

A recent commit factored out a series of annoying (unsigned long) casts
into a single variable declaration, but made the pointer type a
`uintptr_t` rather than the usual `unsigned long`. This patch changes it
to be the integer type more typically used by the kernel to represent
addresses.

Fixes: 5c8ea886648f ("usercopy: Cast pointer to an integer once")
Cc: Matthew Wilcox <willy@infradead.org>
Cc: Uladzislau Rezki <urezki@gmail.com>
Cc: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
Cc: Linus Torvalds <torvalds@linux-foundation.org>
Cc: Joe Perches <joe@perches.com>
Signed-off-by: Jason A. Donenfeld <Jason@zx2c4.com>
Signed-off-by: Kees Cook <keescook@chromium.org>
Link: https://lore.kernel.org/r/20220616143617.449094-1-Jason@zx2c4.com
mm/usercopy.c