aboutsummaryrefslogtreecommitdiffstats
path: root/lib/spinlock_debug.c
diff options
context:
space:
mode:
authorXi Wang <[email protected]>2012-02-09 01:13:37 +0000
committerLinus Torvalds <[email protected]>2012-02-09 03:03:51 +0000
commit1ecd3c7ea76488c63b4b0a2561fd7eaf96cc8028 (patch)
tree3bc88fd0b4fd61c86141c66e86cf5492753bcd22 /lib/spinlock_debug.c
parentMerge tag 'fbdev-fixes-for-3.3-1' of git://github.com/schandinat/linux-2.6 (diff)
downloadkernel-1ecd3c7ea76488c63b4b0a2561fd7eaf96cc8028.tar.gz
kernel-1ecd3c7ea76488c63b4b0a2561fd7eaf96cc8028.zip
nilfs2: avoid overflowing segment numbers in nilfs_ioctl_clean_segments()
nsegs is read from userspace. Limit its value and avoid overflowing nsegs * sizeof(__u64) in the subsequent call to memdup_user(). This patch complements 481fe17e973fb9 ("nilfs2: potential integer overflow in nilfs_ioctl_clean_segments()"). Signed-off-by: Xi Wang <[email protected]> Cc: Haogang Chen <[email protected]> Acked-by: Ryusuke Konishi <[email protected]> Signed-off-by: Andrew Morton <[email protected]> Signed-off-by: Linus Torvalds <[email protected]>
Diffstat (limited to 'lib/spinlock_debug.c')
0 files changed, 0 insertions, 0 deletions