[PATCH 0/3] Linux: Keep termios ioctl constants strictly internal

H. Peter Anvin hpa@zytor.com
Wed Jul 16 14:50:57 GMT 2025


On July 16, 2025 12:19:29 AM PDT, Andreas Schwab <schwab@suse.de> wrote:
>On Jul 15 2025, H. Peter Anvin wrote:
>
>> There are exactly four ioctls intercepted by Linux glibc, and only on the PowerPC platform. The error of using the libc headers is vastly higher than the converse would be.
>
>It doesn't matter how many there are, fact is that libsanitizer operates
>on the libc level, thus it needs to use the libc API whenever possible.
>

But if it does it to the exclusion of the actual API, then it is incorrect.  The four PowerPC ioctls can be added as exceptions. 

At this point the sanitizer misses something like 90% of all ioctls.

I am talking specifically about ioctl() and syscall() here. They are very special.


More information about the Libc-alpha mailing list