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)
commitf4068af3a6383da3487c07de85db7732de851734
tree7b4db76e75f9d3b4cd870bbea875db8a0b5b603c
parent4f1d2a030db09af4d21695983674a18633cd0ffb
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