https://bugs.kde.org/show_bug.cgi?id=468575

--- Comment #41 from Mark Wielaard <m...@klomp.org> ---
memcheck/tests/linux/bug480706 fails because mlock2 wasn't wrapped

diff --git a/coregrind/m_syswrap/syswrap-riscv64-linux.c
b/coregrind/m_syswrap/syswrap-riscv64-linux.c
index b959bc861..68c53b0bd 100644
--- a/coregrind/m_syswrap/syswrap-riscv64-linux.c
+++ b/coregrind/m_syswrap/syswrap-riscv64-linux.c
@@ -568,6 +568,7 @@ static SyscallTableEntry syscall_main_table[] = {
    LINXY(__NR_bpf, sys_bpf),                                       /* 280 */
    LINX_(__NR_execveat, sys_execveat),                             /* 281 */
    LINX_(__NR_membarrier, sys_membarrier),                         /* 283 */
+   GENX_(__NR_mlock2, sys_mlock2),                                 /* 284 */
    LINX_(__NR_copy_file_range, sys_copy_file_range),               /* 285 */
    LINXY(__NR_preadv2, sys_preadv2),                               /* 286 */
    LINX_(__NR_pwritev2, sys_pwritev2),                             /* 287 */
diff --git a/include/vki/vki-scnums-riscv64-linux.h
b/include/vki/vki-scnums-riscv64-linux.h
index 773fd6638..15ba9308d 100644
--- a/include/vki/vki-scnums-riscv64-linux.h
+++ b/include/vki/vki-scnums-riscv64-linux.h
@@ -293,6 +293,7 @@
 #define __NR_execveat 281
 #define __NR_userfaultfd 282
 #define __NR_membarrier 283
+#define __NR_mlock2 284
 #define __NR_copy_file_range 285
 #define __NR_preadv2 286
 #define __NR_pwritev2 287

-- 
You are receiving this mail because:
You are watching all bug changes.

Reply via email to