Re: [PATCH 06/15] parisc: use correct compat recv/recvfrom syscalls

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



On 6/20/24 18:23, Arnd Bergmann wrote:
From: Arnd Bergmann <arnd@xxxxxxxx>

Johannes missed parisc back when he introduced the compat version
of these syscalls, so receiving cmsg messages that require a compat
conversion is still broken.

Use the correct calls like the other architectures do.

Fixes: 1dacc76d0014 ("net/compat/wext: send different messages to compat tasks")
Signed-off-by: Arnd Bergmann <arnd@xxxxxxxx>

Acked-by: Helge Deller <deller@xxxxxx>

Nice catch, Arnd!
I'll add a backport tag and take this patch through the parisc git tree.

Thank you!
Helge

---
  arch/parisc/kernel/syscalls/syscall.tbl | 4 ++--
  1 file changed, 2 insertions(+), 2 deletions(-)

diff --git a/arch/parisc/kernel/syscalls/syscall.tbl b/arch/parisc/kernel/syscalls/syscall.tbl
index b13c21373974..39e67fab7515 100644
--- a/arch/parisc/kernel/syscalls/syscall.tbl
+++ b/arch/parisc/kernel/syscalls/syscall.tbl
@@ -108,7 +108,7 @@
  95	common	fchown			sys_fchown
  96	common	getpriority		sys_getpriority
  97	common	setpriority		sys_setpriority
-98	common	recv			sys_recv
+98	common	recv			sys_recv			compat_sys_recv
  99	common	statfs			sys_statfs			compat_sys_statfs
  100	common	fstatfs			sys_fstatfs			compat_sys_fstatfs
  101	common	stat64			sys_stat64
@@ -135,7 +135,7 @@
  120	common	clone			sys_clone_wrapper
  121	common	setdomainname		sys_setdomainname
  122	common	sendfile		sys_sendfile			compat_sys_sendfile
-123	common	recvfrom		sys_recvfrom
+123	common	recvfrom		sys_recvfrom			compat_sys_recvfrom
  124	32	adjtimex		sys_adjtimex_time32
  124	64	adjtimex		sys_adjtimex
  125	common	mprotect		sys_mprotect






[Index of Archives]     [Linux Kernel]     [Kernel Newbies]     [x86 Platform Driver]     [Netdev]     [Linux Wireless]     [Netfilter]     [Bugtraq]     [Linux Filesystems]     [Yosemite Discussion]     [MIPS Linux]     [ARM Linux]     [Linux Security]     [Linux RAID]     [Samba]     [Device Mapper]

  Powered by Linux