From dc30acf20bd635d71cd4c84100e842fdf0429e48 Mon Sep 17 00:00:00 2001 From: Andreas Schwab Date: Wed, 22 Jun 2022 13:16:30 +0200 Subject: debug: make __read_chk a cancellation point (bug 29274) The __read_chk function, as the implementation behind the fortified read function, must be a cancellation point, thus it cannot use INLINE_SYSCALL. --- debug/read_chk.c | 10 ---------- 1 file changed, 10 deletions(-) (limited to 'debug/read_chk.c') diff --git a/debug/read_chk.c b/debug/read_chk.c index 0cd58db8cb..274b4f93e9 100644 --- a/debug/read_chk.c +++ b/debug/read_chk.c @@ -16,12 +16,6 @@ . */ #include -#include -#ifdef HAVE_INLINED_SYSCALLS -# include -# include -#endif - ssize_t __read_chk (int fd, void *buf, size_t nbytes, size_t buflen) @@ -29,9 +23,5 @@ __read_chk (int fd, void *buf, size_t nbytes, size_t buflen) if (nbytes > buflen) __chk_fail (); -#ifdef HAVE_INLINED_SYSCALLS - return INLINE_SYSCALL (read, 3, fd, buf, nbytes); -#else return __read (fd, buf, nbytes); -#endif } -- cgit 1.4.1