about summary refs log tree commit diff
path: root/debug/read_chk.c
diff options
context:
space:
mode:
authorAndreas Schwab <schwab@suse.de>2022-06-22 13:16:30 +0200
committerAndreas Schwab <schwab@suse.de>2022-06-22 17:00:44 +0200
commitdc30acf20bd635d71cd4c84100e842fdf0429e48 (patch)
tree9b94660663d2cca159afc77e8e41bc41bec31038 /debug/read_chk.c
parent2249ec60a987f9a7aa585890de2bd365b3656d28 (diff)
downloadglibc-dc30acf20bd635d71cd4c84100e842fdf0429e48.tar.gz
glibc-dc30acf20bd635d71cd4c84100e842fdf0429e48.tar.xz
glibc-dc30acf20bd635d71cd4c84100e842fdf0429e48.zip
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.
Diffstat (limited to 'debug/read_chk.c')
-rw-r--r--debug/read_chk.c10
1 files changed, 0 insertions, 10 deletions
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 @@
    <https://www.gnu.org/licenses/>.  */
 
 #include <unistd.h>
-#include <sys/param.h>
-#ifdef HAVE_INLINED_SYSCALLS
-# include <errno.h>
-# include <sysdep.h>
-#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
 }