mirror of
https://github.com/hardkernel/linux.git
synced 2026-06-08 03:40:35 +09:00
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:
@@ -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) {
|
||||
|
||||
@@ -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;
|
||||
|
||||
Reference in New Issue
Block a user