fanotify: Fix sys_fanotify_mark() on native x86-32
authorBrian Gerst <brgerst@gmail.com>
Mon, 30 Nov 2020 22:30:59 +0000 (17:30 -0500)
committerBorislav Petkov <bp@suse.de>
Mon, 28 Dec 2020 10:58:59 +0000 (11:58 +0100)
commit2ca408d9c749c32288bc28725f9f12ba30299e8f
treeed7eff796318b8a87b1c88ca7e490529626df089
parent5c8fe583cce542aa0b84adc939ce85293de36e5e
fanotify: Fix sys_fanotify_mark() on native x86-32

Commit

  121b32a58a3a ("x86/entry/32: Use IA32-specific wrappers for syscalls taking 64-bit arguments")

converted native x86-32 which take 64-bit arguments to use the
compat handlers to allow conversion to passing args via pt_regs.
sys_fanotify_mark() was however missed, as it has a general compat
handler. Add a config option that will use the syscall wrapper that
takes the split args for native 32-bit.

 [ bp: Fix typo in Kconfig help text. ]

Fixes: 121b32a58a3a ("x86/entry/32: Use IA32-specific wrappers for syscalls taking 64-bit arguments")
Reported-by: Paweł Jasiak <pawel@jasiak.xyz>
Signed-off-by: Brian Gerst <brgerst@gmail.com>
Signed-off-by: Borislav Petkov <bp@suse.de>
Acked-by: Jan Kara <jack@suse.cz>
Acked-by: Andy Lutomirski <luto@kernel.org>
Link: https://lkml.kernel.org/r/20201130223059.101286-1-brgerst@gmail.com
arch/Kconfig
arch/x86/Kconfig
fs/notify/fanotify/fanotify_user.c
include/linux/syscalls.h