Files
linux/fs/ocfs2
Joseph Qi 32e5a2a2be ocfs2: fix shift left overflow
When using a large volume, for example 9T volume with 2T already used,
frequent creation of small files with O_DIRECT when the IO is not
cluster aligned may clear sectors in the wrong place.  This will cause
filesystem corruption.

This is because p_cpos is a u32.  When calculating the corresponding
sector it should be converted to u64 first, otherwise it may overflow.

Signed-off-by: Joseph Qi <[email protected]>
Cc: Mark Fasheh <[email protected]>
Cc: Joel Becker <[email protected]>
Cc: <[email protected]>	[4.0+]
Signed-off-by: Andrew Morton <[email protected]>
Signed-off-by: Linus Torvalds <[email protected]>
2015-08-07 04:39:41 +03:00
..
2015-08-07 04:39:41 +03:00
2015-06-24 17:49:40 -07:00
…
2015-07-09 11:42:21 -07:00
…
…
…
2014-01-21 16:19:41 -08:00
…
…
…
…
…
2015-06-24 17:49:40 -07:00