linux uml segfault
Johannes Berg
johannes at sipsolutions.net
Fri Mar 5 20:07:51 GMT 2021
> Ritesh, can you give the following a spin - it renames sem_init as um_sem_init for UML only?
FWIW, this fixes the issue in my reproducer, so should work here too:
diff --git a/ipc/util.h b/ipc/util.h
index 5766c61aed0e..cfed40ba983c 100644
--- a/ipc/util.h
+++ b/ipc/util.h
@@ -14,6 +14,7 @@
#include <linux/unistd.h>
#include <linux/err.h>
#include <linux/ipc_namespace.h>
+#define sem_init uml_sem_init
/*
* The IPC ID contains 2 separate numbers - index and sequence number.
johannes
More information about the linux-um
mailing list