]> git.baikalelectronics.ru Git - kernel.git/commit
kernel/sys.c: fix prototype of prctl_get_tid_address()
authorRasmus Villemoes <linux@rasmusvillemoes.dk>
Sat, 24 Oct 2020 01:04:26 +0000 (03:04 +0200)
committerLinus Torvalds <torvalds@linux-foundation.org>
Sun, 25 Oct 2020 18:44:16 +0000 (11:44 -0700)
commit852fc4a5a88066b771f2fde81841e40880d398d8
tree300b9558aac3c868b7a4213b6de09117147b81c5
parentcf9a44f2821a65b7ba138851f1f4477eeff62852
kernel/sys.c: fix prototype of prctl_get_tid_address()

tid_addr is not a "pointer to (pointer to int in userspace)"; it is in
fact a "pointer to (pointer to int in userspace) in userspace".  So
sparse rightfully complains about passing a kernel pointer to
put_user().

Reported-by: kernel test robot <lkp@intel.com>
Signed-off-by: Rasmus Villemoes <linux@rasmusvillemoes.dk>
Signed-off-by: Linus Torvalds <torvalds@linux-foundation.org>
kernel/sys.c