]> git.baikalelectronics.ru Git - kernel.git/commit
binfmt_elf_fdpic: remove the set_fs(KERNEL_DS) in elf_fdpic_core_dump
authorChristoph Hellwig <hch@lst.de>
Tue, 5 May 2020 10:12:56 +0000 (12:12 +0200)
committerAl Viro <viro@zeniv.linux.org.uk>
Tue, 5 May 2020 20:46:10 +0000 (16:46 -0400)
commit59fc58d5eb79368e7bfa37d87d6c0d8987152585
treebb873e9bb679e0ffc1819a7d305b6cdd8060134b
parent62d5e67941463793bbb4eb1d70b5a9bae32278b6
binfmt_elf_fdpic: remove the set_fs(KERNEL_DS) in elf_fdpic_core_dump

There is no logic in elf_fdpic_core_dump itself or in the various arch
helpers called from it which use uaccess routines on kernel pointers
except for the file writes thate are nicely encapsulated by using
__kernel_write in dump_emit.

Signed-off-by: Christoph Hellwig <hch@lst.de>
Signed-off-by: Al Viro <viro@zeniv.linux.org.uk>
fs/binfmt_elf_fdpic.c