]> git.baikalelectronics.ru Git - kernel.git/commit
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)
commit62d5e67941463793bbb4eb1d70b5a9bae32278b6
treeee9aed56f555de9359bd026b00330ec191c6fe95
parent3ece04218e4e6984f18249db98197833cecf4c31
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