mirror of
https://github.com/FEX-Emu/FEX.git
synced 2026-10-14 11:01:01 +02:00
DRM ioctls are taking advantage of the fact that any ioctl structure that is passed in to the kernel smaller than the expected value will zero out the remaining members of the structure. Some more ioctls coming down the pipe will also abuse this, so we might as well as get started with the v3d ioctl that requires it. Due to how this works, the kernel knows how big an ioctl structure should be and if the userspace passes in a smaller struct, it will memset the remaining size to zero.