aboutsummaryrefslogtreecommitdiff
path: root/net/unix/garbage.c
diff options
context:
space:
mode:
authorNeilBrown <neilb@suse.de>2007-05-21 11:33:03 +1000
committerChris Wright <chrisw@sous-sol.org>2007-06-11 11:36:44 -0700
commitfb5cded6f5a16342520eded69b993828965155cf (patch)
treef762383d05fcfb3c3c9dd1dc7ed43461624a3f93 /net/unix/garbage.c
parent6f7355910ccf500158328ee13d65a5cfd87413c9 (diff)
[PATCH] md: Avoid overflow in raid0 calculation with large components.
If a raid0 has a component device larger than 4TB, and is accessed on a 32bit machines, then as 'chunk' is unsigned lock, chunk << chunksize_bits can overflow (this can be as high as the size of the device in KB). chunk itself will not overflow (without triggering a BUG). So change 'chunk' to be 'sector_t, and get rid of the 'BUG' as it becomes impossible to hit. Cc: "Jeff Zheng" <Jeff.Zheng@endace.com> Signed-off-by: Neil Brown <neilb@suse.de> Signed-off-by: Chris Wright <chrisw@sous-sol.org> Signed-off-by: Greg Kroah-Hartman <gregkh@suse.de>
Diffstat (limited to 'net/unix/garbage.c')
0 files changed, 0 insertions, 0 deletions