From: Haogang Chen Date: Sat, 17 Mar 2012 00:08:38 +0000 (-0700) Subject: nilfs2: clamp ns_r_segments_percentage to [1, 99] X-Git-Tag: v3.3~4^2~1 X-Git-Url: http://git.openpandora.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=3d777a64066f3b9db8a94834aaed6a9cf09808fd;p=pandora-kernel.git nilfs2: clamp ns_r_segments_percentage to [1, 99] ns_r_segments_percentage is read from the disk. Bogus or malicious value could cause integer overflow and malfunction due to meaningless disk usage calculation. This patch reports error when mounting such bogus volumes. Signed-off-by: Haogang Chen Signed-off-by: Ryusuke Konishi Signed-off-by: Andrew Morton Signed-off-by: Linus Torvalds --- Reading git-diff-tree failed