Xi Wang 1ecd3c7ea7 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 <xi.wang@gmail.com>
Cc: Haogang Chen <haogangchen@gmail.com>
Acked-by: Ryusuke Konishi <konishi.ryusuke@lab.ntt.co.jp>
Signed-off-by: Andrew Morton <akpm@linux-foundation.org>
Signed-off-by: Linus Torvalds <torvalds@linux-foundation.org>
2012-02-08 19:03:51 -08:00
..
2011-03-23 19:46:18 -07:00
2011-05-10 22:21:56 +09:00
2010-07-23 10:02:14 +09:00
2010-10-23 09:24:38 +09:00
2012-01-03 22:55:04 -05:00
2010-07-23 10:02:14 +09:00
2012-01-03 22:55:04 -05:00
2010-10-23 09:24:38 +09:00
2012-01-03 22:54:54 -05:00
2012-01-03 22:55:04 -05:00
2011-05-10 22:21:56 +09:00
2011-05-10 22:21:56 +09:00
2011-05-10 22:21:46 +09:00
2011-05-10 22:21:46 +09:00