]> git.ipfire.org Git - thirdparty/valgrind.git/commitdiff
Linux x86: fix shm* syscall wrappers
authorPaul Floyd <pjfloyd@wanadoo.fr>
Sat, 14 Mar 2026 19:22:16 +0000 (20:22 +0100)
committerPaul Floyd <pjfloyd@wanadoo.fr>
Sat, 14 Mar 2026 19:22:16 +0000 (20:22 +0100)
Someone (me) didn't use LINXY for the ones that have both PRE
and POST.

Problem reported / fix suggested by Andre Noll.
Thanks!

coregrind/m_syswrap/syswrap-x86-linux.c

index 922585a87a0caf648a89b0cd14d7d8213ef0f45c..d644ed5563b97e1f12a9e598e853581469f8f93c 100644 (file)
@@ -1628,9 +1628,9 @@ static SyscallTableEntry syscall_table[] = {
    LINXY(__NR_semctl,            sys_semctl),           // 394
 
    LINX_(__NR_shmget,            sys_shmget),           // 395
-   LINX_(__NR_shmctl,            sys_shmctl),           // 396
-   LINX_(__NR_shmat,             sys_shmat),            // 397
-   LINX_(__NR_shmdt,             sys_shmdt),            // 398
+   LINXY(__NR_shmctl,            sys_shmctl),           // 396
+   LINXY(__NR_shmat,             sys_shmat),            // 397
+   LINXY(__NR_shmdt,             sys_shmdt),            // 398
 
    LINX_(__NR_msgget,            sys_msgget),           // 399
    LINX_(__NR_msgsnd,            sys_msgsnd),           // 400