]> git.ipfire.org Git - thirdparty/glibc.git/commit
support: add check_mem_access function master
authorYury Khrustalev <yury.khrustalev@arm.com>
Tue, 9 Sep 2025 14:15:29 +0000 (15:15 +0100)
committerYury Khrustalev <yury.khrustalev@arm.com>
Mon, 15 Sep 2025 08:47:41 +0000 (09:47 +0100)
commit9be489d77867dd2444ecc044a5f3049d1751ee85
treedb49a4de19a958f9e16a17077a81987b44e8c431
parent041151f4399ff0dcd200aa3fe4f745b28d67d71c
support: add check_mem_access function

Add check_mem_access(addr) function to check if memory at addr can
be written or read returning false if memory is not accessible.

This function changes signal handler for SIGSEGV and SIGBUS signals
when it is called first, and it is not thread-safe.

Co-authored-by: Adhemerval Zanella Netto <adhemerval.zanella@linaro.org>
Reviewed-by: Adhemerval Zanella <adhemerval.zanella@linaro.org>
include/setjmp.h
nptl/tst-guard1.c
support/Makefile
support/check_mem_access.h [new file with mode: 0644]
support/support_mem_access.c [new file with mode: 0644]