tests/tcg: Check that shmat() does not break /proc/self/maps
authorIlya Leoshkevich <iii@linux.ibm.com>
Fri, 23 Feb 2024 11:31:40 +0000 (12:31 +0100)
committerRichard Henderson <richard.henderson@linaro.org>
Fri, 1 Mar 2024 18:09:55 +0000 (08:09 -1000)
commit04dadd22aed00e5a2955ab078d7edd676812cf41
tree3fb4fa7d97211d4bb7032c2a6bd431a7345d073a
parent78bc8ed9a8f092f6666d7a949ad67dac33cc014d
tests/tcg: Check that shmat() does not break /proc/self/maps

Add a regression test for a recently fixed issue, where shmat()
desynced the guest and the host view of the address space and caused
open("/proc/self/maps") to SEGV.

Signed-off-by: Ilya Leoshkevich <iii@linux.ibm.com>
Message-Id: <jwyuvao4apydvykmsnvacwshdgy3ixv7qvkh4dbxm3jkwgnttw@k4wpaayou7oq>
Signed-off-by: Richard Henderson <richard.henderson@linaro.org>
tests/tcg/multiarch/linux/linux-shmat-maps.c [new file with mode: 0644]