]> git.hungrycats.org Git - linux/commit
[PATCH] dm: prevent possible buffer overflow in ioctl interface
authorKevin Corry <corryk@us.ibm.com>
Wed, 26 Feb 2003 23:15:16 +0000 (15:15 -0800)
committerLinus Torvalds <torvalds@home.transmeta.com>
Wed, 26 Feb 2003 23:15:16 +0000 (15:15 -0800)
commit61a295e889e2097ff515ad74c3082fd794ef5dbb
tree47237fb1a6fc41ddf9c8948d0d9f7c234df5f1bb
parent7e2ec88a6e031eac73d064ab6c056b8dacbe1911
[PATCH] dm: prevent possible buffer overflow in ioctl interface

Use the correct size for "name" in register_with_devfs().

During Al Viro's devfs cleanup a few versions ago, this function was
rewritten, and the "name" string added. The 32-byte size is not large
enough to prevent a possible buffer overflow in the sprintf() call,
since the hash cell can have a name up to 128 characters.
drivers/md/dm-ioctl.c