Bug 454276

Summary: Some IPC syscalls is missing for x86 linux
Product: [Developer tools] valgrind Reporter: Maxim <mussitantesmortem>
Component: generalAssignee: Julian Seward <jseward>
Status: RESOLVED FIXED    
Severity: normal CC: mark
Priority: NOR    
Version First Reported In: 3.19.0   
Target Milestone: ---   
Platform: Other   
OS: Linux   
Latest Commit: Version Fixed In:
Sentry Crash Report:
Attachments: Possible fix

Description Maxim 2022-05-23 14:49:36 UTC
Created attachment 149138 [details]
Possible fix

SUMMARY
New separate IPC syscalls is missing in syscall_table for x86 linux:
* semget
* semctl
* shmget
* shmctl
* shmat
* shmdt
* msgget
* msgsnd
* msgrcv
* msgctl

STEPS TO REPRODUCE
1. Try to call some of syscalls above on kernel i386 >5.1 with actual uapi headers 

OBSERVED RESULT
Gets ENOSYS

EXPECTED RESULT
Syscalls should work =)

SOFTWARE/OS VERSIONS
i386 Linux  with uclibc-ng libc

ADDITIONAL INFORMATION
This issue can be fixed by followed patch:
Comment 1 Mark Wielaard 2025-10-17 17:42:45 UTC
Thanks this fixes some LTP (Linux Test Project) testcases on x86-linux.
Applied as:

commit f4ba277d6edb28ff4ae447b50975799b4a862545
Author: Maxim Zhukov <mussitantesmortem@gmail.com>
Date:   Mon May 23 17:30:22 2022 +0300

    syswrap, i386-linux: add missing ipc syscalls
    
    Kernel 5.1 introduced separate IPC syscalls:
    * semget
    * semctl
    * shmget
    * shmctl
    * shmat
    * shmdt
    * msgget
    * msgsnd
    * msgrcv
    * msgctl
    
    instead of ipc()
    
    Note the new shm wrappers were already added as
    afea9317a1c9 ("Bug 501846 - Add x86 Linux shm wrappers")
    
    Signed-off-by: Maxim Zhukov <mussitantesmortem@gmail.com>
    
    https://bugs.kde.org/show_bug.cgi?id=454276