aboutsummaryrefslogtreecommitdiff
path: root/net/lapb/lapb_timer.c
diff options
context:
space:
mode:
authorMilan Broz <[email protected]>2009-03-16 16:56:01 +0000
committerAlasdair G Kergon <[email protected]>2009-03-16 16:56:01 +0000
commitbc0fd67feba2e0770aad85393500ba77c6489f1c (patch)
tree898f91bc16492588dc74f191979dcca5462cdc36 /net/lapb/lapb_timer.c
parent5bee17f18b595937e6beafeee5197868a3f74a06 (diff)
dm ioctl: validate name length when renaming
When renaming a mapped device validate the length of the new name. The rename ioctl accepted any correctly-terminated string enclosed within the data passed from userspace. The other ioctls enforce a size limit of DM_NAME_LEN. If the name is changed and becomes longer than that, the device can no longer be addressed by name. Fix it by properly checking for device name length (including terminating zero). Cc: [email protected] Signed-off-by: Milan Broz <[email protected]> Reviewed-by: Jonathan Brassow <[email protected]> Reviewed-by: Alasdair G Kergon <[email protected]> Signed-off-by: Alasdair G Kergon <[email protected]>
Diffstat (limited to 'net/lapb/lapb_timer.c')
0 files changed, 0 insertions, 0 deletions