The patch titled Subject: net/xfrm_user: Use in_compat_syscall to deny compat syscalls has been added to the -mm tree. Its filename is net-xfrm_user-use-in_compat_syscall-to-deny-compat-syscalls.patch This patch should soon appear at http://ozlabs.org/~akpm/mmots/broken-out/net-xfrm_user-use-in_compat_syscall-to-deny-compat-syscalls.patch and later at http://ozlabs.org/~akpm/mmotm/broken-out/net-xfrm_user-use-in_compat_syscall-to-deny-compat-syscalls.patch Before you just go and hit "reply", please: a) Consider who else should be cc'ed b) Prefer to cc a suitable mailing list as well c) Ideally: find the original patch on the mailing list and do a reply-to-all to that, adding suitable additional cc's *** Remember to use Documentation/SubmitChecklist when testing your code *** The -mm tree is included into linux-next and is updated there every 3-4 working days ------------------------------------------------------ From: Andy Lutomirski <luto@xxxxxxxxxx> Subject: net/xfrm_user: Use in_compat_syscall to deny compat syscalls The code wants to prevent compat code from receiving messages. Use in_compat_syscall for this. Signed-off-by: Andy Lutomirski <luto@xxxxxxxxxx> Cc: Steffen Klassert <steffen.klassert@xxxxxxxxxxx> Cc: Herbert Xu <herbert@xxxxxxxxxxxxxxxxxxx> Cc: "David S. Miller" <davem@xxxxxxxxxxxxx> Signed-off-by: Andrew Morton <akpm@xxxxxxxxxxxxxxxxxxxx> --- net/xfrm/xfrm_user.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff -puN net/xfrm/xfrm_user.c~net-xfrm_user-use-in_compat_syscall-to-deny-compat-syscalls net/xfrm/xfrm_user.c --- a/net/xfrm/xfrm_user.c~net-xfrm_user-use-in_compat_syscall-to-deny-compat-syscalls +++ a/net/xfrm/xfrm_user.c @@ -2449,7 +2449,7 @@ static int xfrm_user_rcv_msg(struct sk_b int type, err; #ifdef CONFIG_COMPAT - if (is_compat_task()) + if (in_compat_syscall()) return -ENOTSUPP; #endif _ Patches currently in -mm which might be from luto@xxxxxxxxxx are compat-add-in_compat_syscall-to-ask-whether-were-in-a-compat-syscall.patch sparc-compat-provide-an-accurate-in_compat_syscall-implementation.patch sparc-syscall-fix-syscall_get_arch.patch seccomp-check-in_compat_syscall-not-is_compat_task-in-strict-mode.patch ptrace-in-peek_siginfo-check-syscall-bitness-not-task-bitness.patch auditsc-for-seccomp-events-log-syscall-compat-state-using-in_compat_syscall.patch staging-lustre-switch-from-is_compat_task-to-in_compat_syscall.patch ext4-in-ext4_dir_llseek-check-syscall-bitness-directly.patch net-sctp-use-in_compat_syscall-for-sctp_getsockopt_connectx3.patch net-xfrm_user-use-in_compat_syscall-to-deny-compat-syscalls.patch firewire-use-in_compat_syscall-to-check-ioctl-compatness.patch efivars-use-in_compat_syscall-to-check-for-compat-callers.patch amdkfd-use-in_compat_syscall-to-check-open-caller-type.patch input-redefine-input_compat_test-as-in_compat_syscall.patch uhid-check-write-bitness-using-in_compat_syscall.patch x86-compat-remove-is_compat_task.patch -- To unsubscribe from this list: send the line "unsubscribe mm-commits" in the body of a message to majordomo@xxxxxxxxxxxxxxx More majordomo info at http://vger.kernel.org/majordomo-info.html