binfmt_elf: remove the set_fs(KERNEL_DS) in elf_core_dump
authorChristoph Hellwig <hch@lst.de>
Tue, 5 May 2020 10:12:55 +0000 (12:12 +0200)
committerAl Viro <viro@zeniv.linux.org.uk>
Tue, 5 May 2020 20:46:10 +0000 (16:46 -0400)
commitd2530b436f114dfbd1adc70c59d8d31038318726
treeee9aed56f555de9359bd026b00330ec191c6fe95
parentfa4751f454e6b51ef93babfd8b6c8b43a65c9db2
binfmt_elf: remove the set_fs(KERNEL_DS) in elf_core_dump

There is no logic in elf_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.c