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)
commit38cdabb7d83522394aaf2de82c3af017ad94e5d8
treebb873e9bb679e0ffc1819a7d305b6cdd8060134b
parentd2530b436f114dfbd1adc70c59d8d31038318726
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