compat_ioctl: ignore RAID_VERSION ioctl
PATCH 1/1 compat_ioctl: ignore RAID_VERSION ioctl
md ioctls are now handled by the md driver itself, but mdadm may call RAID_VERSION on other devices as well. Mark the command as IGNORE_IOCTL so this fails silently rather than printing an annoying message.
Reported-by "Michael S. Tsirkin" <[email protected]>
Cc "Rafael J. Wysocki" <[email protected]>
Signed-off-by Arnd Bergmann <[email protected]>
--- fs/compat_ioctl.c | 2 ++ 1 files changed, 2 insertions(+), 0 deletions(-)
fs/compat_ioctl.c +2 -0
@@ -1038,6 +1038,8 @@ COMPATIBLE_IOCTL(FIOQSIZE)#ifdef CONFIG_BLOCK /* loop */ IGNORE_IOCTL(LOOP_CLR_FD) +/* md calls this on random blockdevs */ +IGNORE_IOCTL(RAID_VERSION) /* SG stuff */ COMPATIBLE_IOCTL(SG_SET_TIMEOUT) COMPATIBLE_IOCTL(SG_GET_TIMEOUT)
Signature · 1 line
1.6.3.3