Skip to content
Commit f5a44db5 authored by Theodore Ts'o's avatar Theodore Ts'o
Browse files

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: default avatarPaX Team <pageexec@freemail.hu>
Reported-by: default avatarEmese Revfy <re.emese@gmail.com>
Signed-off-by: default avatar"Theodore Ts'o" <tytso@mit.edu>
Cc: stable@vger.kernel.org
parent 34cf865d
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment