Skip to content

Commit

Permalink
net/xfrm_user: use in_compat_syscall to deny compat syscalls
Browse files Browse the repository at this point in the history
The code wants to prevent compat code from receiving messages.  Use
in_compat_syscall for this.

Signed-off-by: Andy Lutomirski <[email protected]>
Cc: Steffen Klassert <[email protected]>
Cc: Herbert Xu <[email protected]>
Cc: "David S. Miller" <[email protected]>
Signed-off-by: Andrew Morton <[email protected]>
Signed-off-by: Linus Torvalds <[email protected]>
  • Loading branch information
amluto authored and torvalds committed Mar 22, 2016
1 parent 96c0e0a commit 2bf8c47
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion net/xfrm/xfrm_user.c
Original file line number Diff line number Diff line change
Expand Up @@ -2449,7 +2449,7 @@ static int xfrm_user_rcv_msg(struct sk_buff *skb, struct nlmsghdr *nlh)
int type, err;

#ifdef CONFIG_COMPAT
if (is_compat_task())
if (in_compat_syscall())
return -ENOTSUPP;
#endif

Expand Down

0 comments on commit 2bf8c47

Please sign in to comment.