net: xfrm: enable compat xfrm syscall

PD#170491: net: xfrm: enable compat xfrm syscall

When using 32bit user space and 64bit kernel in ARM64 platform,
we do not need to disable compat syscall, since there is struct size
difference between user space and kernel space.

This will fix error in xfrm test cases of VtsKernelNetTest.

Change-Id: Ifd6c1f5e678138286678d5c119c0efa42d5b3a59
Signed-off-by: Yixun Lan <yixun.lan@amlogic.com>
This commit is contained in:
Yixun Lan
2018-07-13 16:20:13 +08:00
parent 42f5d936ca
commit d14b49bef6
2 changed files with 4 additions and 0 deletions

View File

@@ -1886,8 +1886,10 @@ int xfrm_user_policy(struct sock *sk, int optname, u8 __user *optval, int optlen
struct xfrm_policy *pol = NULL;
#ifdef CONFIG_COMPAT
#ifndef CONFIG_AMLOGIC_MODIFY
if (in_compat_syscall())
return -EOPNOTSUPP;
#endif
#endif
if (!optval && !optlen) {

View File

@@ -2501,8 +2501,10 @@ static int xfrm_user_rcv_msg(struct sk_buff *skb, struct nlmsghdr *nlh)
int type, err;
#ifdef CONFIG_COMPAT
#ifndef CONFIG_AMLOGIC_MODIFY
if (in_compat_syscall())
return -EOPNOTSUPP;
#endif
#endif
type = nlh->nlmsg_type;