Skip to content

Commit be2d1d5

Browse files
amlutosfrothwell
authored andcommitted
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 <[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]>
1 parent 6a55fd4 commit be2d1d5

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

net/xfrm/xfrm_user.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2449,7 +2449,7 @@ static int xfrm_user_rcv_msg(struct sk_buff *skb, struct nlmsghdr *nlh)
24492449
int type, err;
24502450

24512451
#ifdef CONFIG_COMPAT
2452-
if (is_compat_task())
2452+
if (in_compat_syscall())
24532453
return -ENOTSUPP;
24542454
#endif
24552455

0 commit comments

Comments
 (0)