Bug in console_ioctl(4)

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



Using Ubuntu 10.04 64-bit, but I see that this problem is present in the online
man pages as well.

The argp for various of the console keyboard "get" ioctls - KDGETMODE,
KDGKBMODE, KDGKBMETA - is described as "argp points to a long".

This is not correct; in the kernel it's

put_user(ucval, (int __user *)arg)

This will work with a 32-bit binary, but will leave the upper part of the word
unset with a 64-bit (LP64) binary.

	John
-- 
John DuBois  spcecdt@xxxxxxxxxx  KC6QKZ/AE  http://www.armory.com/~spcecdt/
--
To unsubscribe from this list: send the line "unsubscribe linux-man" in
the body of a message to majordomo@xxxxxxxxxxxxxxx
More majordomo info at  http://vger.kernel.org/majordomo-info.html


[Index of Archives]     [Kernel Documentation]     [Netdev]     [Linux Ethernet Bridging]     [Linux Wireless]     [Kernel Newbies]     [Security]     [Linux for Hams]     [Netfilter]     [Bugtraq]     [Yosemite News]     [MIPS Linux]     [ARM Linux]     [Linux RAID]     [Linux Admin]     [Samba]

  Powered by Linux