Bug 454276 - Some IPC syscalls is missing for x86 linux
Summary: Some IPC syscalls is missing for x86 linux
Status: RESOLVED FIXED
Alias: None
Product: valgrind
Classification: Developer tools
Component: general (other bugs)
Version First Reported In: 3.19.0
Platform: Other Linux
: NOR normal
Target Milestone: ---
Assignee: Julian Seward
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2022-05-23 14:49 UTC by Maxim
Modified: 2025-10-17 17:42 UTC (History)
1 user (show)

See Also:
Latest Commit:
Version Fixed In:
Sentry Crash Report:


Attachments
Possible fix (1.63 KB, patch)
2022-05-23 14:49 UTC, Maxim
Details

Note You need to log in before you can comment on or make changes to this bug.
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