]> git.baikalelectronics.ru Git - kernel.git/commit
ext4: add explicit casts when masking cluster sizes
authorTheodore Ts'o <tytso@mit.edu>
Fri, 20 Dec 2013 14:29:35 +0000 (09:29 -0500)
committerTheodore Ts'o <tytso@mit.edu>
Fri, 20 Dec 2013 14:29:35 +0000 (09:29 -0500)
commit42801bc9aff7ee214fc6637b1653e722dac57187
treea60c763ab0cfc3a247f10ed36194d238b1e205bd
parent44cbb3895cf3f9e5536ffef9fef74d079677a30c
ext4: add explicit casts when masking cluster sizes

The missing casts can cause the high 64-bits of the physical blocks to
be lost.  Set up new macros which allows us to make sure the right
thing happen, even if at some point we end up supporting larger
logical block numbers.

Thanks to the Emese Revfy and the PaX security team for reporting this
issue.

Reported-by: PaX Team <pageexec@freemail.hu>
Reported-by: Emese Revfy <re.emese@gmail.com>
Signed-off-by: "Theodore Ts'o" <tytso@mit.edu>
Cc: stable@vger.kernel.org
fs/ext4/ext4.h
fs/ext4/extents.c
fs/ext4/mballoc.c