From: Theodore Ts'o Date: Fri, 20 Dec 2013 14:29:35 +0000 (-0500) Subject: ext4: add explicit casts when masking cluster sizes X-Git-Tag: v3.2.55~24 X-Git-Url: http://git.openpandora.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=f3f8d67db827d4206999fc81bca6df60c96c9448;p=pandora-kernel.git ext4: add explicit casts when masking cluster sizes commit f5a44db5d2d677dfbf12deee461f85e9ec633961 upstream. 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 Reported-by: Emese Revfy Signed-off-by: "Theodore Ts'o" [bwh: Backported to 3.2: - Adjust context - Drop inapplicable change to ext4_ext_rm_leaf()] Signed-off-by: Ben Hutchings --- Reading git-diff-tree failed