]> git.baikalelectronics.ru Git - kernel.git/commit
ext4: in ext4_dir_llseek, check syscall bitness directly
authorAndy Lutomirski <luto@kernel.org>
Tue, 22 Mar 2016 21:25:04 +0000 (14:25 -0700)
committerLinus Torvalds <torvalds@linux-foundation.org>
Tue, 22 Mar 2016 22:36:02 +0000 (15:36 -0700)
commit3958fad6dd480ca5b67b973b0175a3934e1f4d13
treeabb5b964a9b46db982e78ce546095cef8b7b257a
parentad69d3a29a9d7d8874f64b9d2b48108764ab9001
ext4: in ext4_dir_llseek, check syscall bitness directly

ext4 treats directory offsets differently for 32-bit and 64-bit callers.
Check the caller type using in_compat_syscall, not is_compat_task.  This
changes behavior on SPARC slightly.

Signed-off-by: Andy Lutomirski <luto@kernel.org>
Cc: "Theodore Ts'o" <tytso@mit.edu>
Cc: Andreas Dilger <adilger.kernel@dilger.ca>
Signed-off-by: Andrew Morton <akpm@linux-foundation.org>
Signed-off-by: Linus Torvalds <torvalds@linux-foundation.org>
fs/ext4/dir.c