diff options
author | Haogang Chen <[email protected]> | 2012-03-16 17:08:38 -0700 |
---|---|---|
committer | Linus Torvalds <[email protected]> | 2012-03-16 17:14:44 -0700 |
commit | 3d777a64066f3b9db8a94834aaed6a9cf09808fd (patch) | |
tree | 6cf49f30feef97f0cd0397e21769930c6d5ea52c /net/lapb/lapb_timer.c | |
parent | cf2b94daab9f3d21b0a393bef91292622f6a8ca4 (diff) |
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 <[email protected]>
Signed-off-by: Ryusuke Konishi <[email protected]>
Signed-off-by: Andrew Morton <[email protected]>
Signed-off-by: Linus Torvalds <[email protected]>
Diffstat (limited to 'net/lapb/lapb_timer.c')
0 files changed, 0 insertions, 0 deletions