[PATCH 0/3] Linux: Keep termios ioctl constants strictly internal
Andreas Schwab
schwab@suse.de
Tue Jul 15 15:23:17 GMT 2025
On Jul 15 2025, H. Peter Anvin wrote:
> On July 15, 2025 12:39:06 AM PDT, Andreas Schwab <schwab@suse.de> wrote:
>>On Jul 14 2025, H. Peter Anvin wrote:
>>
>>> When this was first discussed I suggested that the Right Thing for the
>>> sanitizer to do is to use <linux/ioctl.h> and <linux/termios.h> instead of
>>> <sys/ioctl.h> and <termios.h>, because what the sanitizer is looking for
>>> (in this case) is specifically the kernel ABIs.
>>
>>But the sanitizer intercepts libc, not syscalls.
>>
>
> It does, but ioctl(3) is basically ioctl(2), much like intercepting syscall(3).
Since it intercepts the libc wrapper, it needs to use the ioctl numbers
that libc uses.
--
Andreas Schwab, SUSE Labs, schwab@suse.de
GPG Key fingerprint = 0196 BAD8 1CE9 1970 F4BE 1748 E4D4 88E3 0EEA B9D7
"And now for something completely different."
More information about the Libc-alpha
mailing list