]> git.baikalelectronics.ru Git - kernel.git/commit
proc: save LOC in vsyscall test
authorBrian Foster <bfoster@redhat.com>
Mon, 15 Aug 2022 09:50:04 +0000 (12:50 +0300)
committerAndrew Morton <akpm@linux-foundation.org>
Mon, 12 Sep 2022 04:55:06 +0000 (21:55 -0700)
commitcbbccd8c30edf2b881e9983ce24e8c95c8aba61c
tree7b4db76e75f9d3b4cd870bbea875db8a0b5b603c
parent0e966edc0d16e08bb303d751cd5b031f46f1e415
proc: save LOC in vsyscall test

Do one fork in vsyscall detection code and let SIGSEGV handler exit and
carry information to the parent saving LOC.

[adobriyan@gmail.com: redo original patch, delete unnecessary variables, minimise code changes]
Link: https://lkml.kernel.org/r/YvoWzAn5dlhF75xa@localhost.localdomain
Signed-off-by: Alexey Dobriyan <adobriyan@gmail.com>
Signed-off-by: Brian Foster <bfoster@redhat.com>
Reviewed-by: Brian Foster <bfoster@redhat.com>
Tested-by: Brian Foster <bfoster@redhat.com>
Signed-off-by: Andrew Morton <akpm@linux-foundation.org>
tools/testing/selftests/proc/proc-pid-vm.c