debug: make __read_chk a cancellation point (bug 29274)

System Internals / glibc - Andreas Schwab [suse.de] - 22 June 2022 15:00 UTC

The __read_chk function, as the implementation behind the fortified read function, must be a cancellation point, thus it cannot use INLINE_SYSCALL.

dc30acf20b debug: make __read_chk a cancellation point (bug 29274)
debug/Makefile | 7 +++++++
debug/read_chk.c | 10 ---------
debug/tst-read-chk-cancel.c | 50 +++++++++++++++++++++++++++++++++++++++++++++
3 files changed, 57 insertions(+), 10 deletions(-)

Upstream: sourceware.org


  • Share