Commit 3f00171125384b46e5088b7d7a5d0b3e6972f1ee
Committed by
Greg Kroah-Hartman
1 parent
24bc7347da
Exists in
master
and in
20 other branches
compat_ioctl: Supress "unknown cmd" message on serial /dev/console
After the commit fb07a5f8 ("compat_ioctl: remove all VT ioctl handling"), I got this error message on 64-bit mips kernel with 32-bit busybox userland: ioctl32(init:1): Unknown cmd fd(0) cmd(00005600){t:'V';sz:0} arg(7fd76480) on /dev/console The cmd 5600 is VT_OPENQRY. The busybox's init issues this ioctl to know vt-console or serial-console. If the console was serial console, VT ioctls are not handled by the serial driver. And by quick search, I found some programs using VT_GETMODE to check vt-console is available or not. Signed-off-by: Atsushi Nemoto <anemo@mba.ocn.ne.jp> Cc: Arnd Bergmann <arnd@arndb.de> Signed-off-by: Greg Kroah-Hartman <gregkh@suse.de>
Showing 1 changed file with 3 additions and 0 deletions Side-by-side Diff
fs/compat_ioctl.c
... | ... | @@ -1005,6 +1005,9 @@ |
1005 | 1005 | COMPATIBLE_IOCTL(SCSI_IOCTL_PROBE_HOST) |
1006 | 1006 | COMPATIBLE_IOCTL(SCSI_IOCTL_GET_PCI) |
1007 | 1007 | #endif |
1008 | +/* Big V (don't complain on serial console) */ | |
1009 | +IGNORE_IOCTL(VT_OPENQRY) | |
1010 | +IGNORE_IOCTL(VT_GETMODE) | |
1008 | 1011 | /* Little p (/dev/rtc, /dev/envctrl, etc.) */ |
1009 | 1012 | COMPATIBLE_IOCTL(RTC_AIE_ON) |
1010 | 1013 | COMPATIBLE_IOCTL(RTC_AIE_OFF) |