summaryrefslogtreecommitdiffstats
path: root/fs/proc/loadavg.c
diff options
context:
space:
mode:
authorAlexey Dobriyan <adobriyan@gmail.com>2018-04-20 23:56:03 +0200
committerLinus Torvalds <torvalds@linux-foundation.org>2018-04-21 02:18:35 +0200
commit2e0ad552f5f8cd0fda02bc45fcd2b89821c62fd1 (patch)
tree1b22f2e03dc3d0e82048a454b3daeb5e54efd11b /fs/proc/loadavg.c
parentautofs: mount point create should honour passed in mode (diff)
downloadlinux-2e0ad552f5f8cd0fda02bc45fcd2b89821c62fd1.tar.xz
linux-2e0ad552f5f8cd0fda02bc45fcd2b89821c62fd1.zip
proc: revalidate kernel thread inodes to root:root
task_dump_owner() has the following code: mm = task->mm; if (mm) { if (get_dumpable(mm) != SUID_DUMP_USER) { uid = ... } } Check for ->mm is buggy -- kernel thread might be borrowing mm and inode will go to some random uid:gid pair. Link: http://lkml.kernel.org/r/20180412220109.GA20978@avx2 Signed-off-by: Alexey Dobriyan <adobriyan@gmail.com> Cc: "Eric W. Biederman" <ebiederm@xmission.com> Signed-off-by: Andrew Morton <akpm@linux-foundation.org> Signed-off-by: Linus Torvalds <torvalds@linux-foundation.org>
Diffstat (limited to 'fs/proc/loadavg.c')
0 files changed, 0 insertions, 0 deletions