Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Commit ab1865af authored by Saranya R's avatar Saranya R Committed by Swetha Chikkaboraiah
Browse files

Configured process_madvise with upstream syscall number



Fixing the syscall mapping which was done wrongly by
'commit f4ed7311 ("mm/madvise: introduce process_madvise()
syscall: an external memory hinting API")' by correcting the syscall
number.

unistd#close_range cts testcase is expecting errno as ENOSYS
because msm-5.4 does not support close_range syscall, but it
receives errno as EINVAL because process_madvise is configured
with 436 which is close_range syscall number which leads to
this cts testcase failure. Hence, configured process_madvise
with proper upstream syscall number to fix this cts failure.

Applications using process_madvise that are built with previous
headers needs to be rebuilt. Otherwise the program would not
work as expected.

Change-Id: If524d109aa1f4072e9ed03d7d9f70cc517fd59dc
Signed-off-by: default avatarSaranya R <quic_sarar@quicinc.com>
parent 02923fa8
Loading
Loading
Loading
Loading
+5 −1
Original line number Diff line number Diff line
@@ -475,4 +475,8 @@
543	common	fspick				sys_fspick
544	common	pidfd_open			sys_pidfd_open
# 545 reserved for clone3
546	common	process_madvise			sys_process_madvise
# 546 reserved for close_range
# 547 reserved for openat2
# 548 reserved for pidfd_getfd
# 549 reserved for faccessat2
550	common	process_madvise			sys_process_madvise
+5 −1
Original line number Diff line number Diff line
@@ -449,4 +449,8 @@
433	common	fspick				sys_fspick
434	common	pidfd_open			sys_pidfd_open
435	common	clone3				sys_clone3
436	common	process_madvise			sys_process_madvise
# 436 reserved for close_range
# 437 reserved for openat2
# 438 reserved for pidfd_getfd
# 439 reserved for faccessat2
440	common	process_madvise			sys_process_madvise
+1 −1
Original line number Diff line number Diff line
@@ -38,7 +38,7 @@
#define __ARM_NR_compat_set_tls		(__ARM_NR_COMPAT_BASE + 5)
#define __ARM_NR_COMPAT_END		(__ARM_NR_COMPAT_BASE + 0x800)

#define __NR_compat_syscalls		437
#define __NR_compat_syscalls		441
#endif

#define __ARCH_WANT_SYS_CLONE
+1 −1
Original line number Diff line number Diff line
@@ -879,7 +879,7 @@ __SYSCALL(__NR_fspick, sys_fspick)
__SYSCALL(__NR_pidfd_open, sys_pidfd_open)
#define __NR_clone3 435
__SYSCALL(__NR_clone3, sys_clone3)
#define __NR_process_madvise 436
#define __NR_process_madvise 440
__SYSCALL(__NR_process_madvise, sys_process_madvise)

/*
+5 −1
Original line number Diff line number Diff line
@@ -356,4 +356,8 @@
433	common	fspick				sys_fspick
434	common	pidfd_open			sys_pidfd_open
# 435 reserved for clone3
436	common	process_madvise			sys_process_madvise
# 436 reserved for close_range
# 437 reserved for openat2
# 438 reserved for pidfd_getfd
# 439 reserved for faccessat2
440	common	process_madvise			sys_process_madvise
Loading