3 ms·
I believe FreeBSD intentionally truncates provided ioctls to the low 32-bit space because of exactly this kind of bogus assumption in userspace: https://github
by loeg 5y ago
I believe FreeBSD intentionally truncates provided ioctls to the low 32-bit space because of exactly this kind of bogus assumption in userspace:
https://github.com/freebsd/freebsd-src/blob/main/sys/kern/sys_generic.c#L662-L668 https://github.com/freebsd/freebsd-src/blob/main/sys/kern/sy...
It's a relatively recent change (2020). Here's the corresponding place OpenBSD doesn't do that:
https://github.com/openbsd/src/blob/master/sys/kern/sys_generic.c#L424 https://github.com/openbsd/src/blob/master/sys/kern/sys_gene...