From 546d089ad639440bab342c29997e910bf9655290 Mon Sep 17 00:00:00 2001 From: Samuel Thibault Date: Mon, 5 Nov 2018 23:08:42 +0100 Subject: tmpfs: Document issue with removed shm files --- tmpfs/node.c | 2 ++ 1 file changed, 2 insertions(+) (limited to 'tmpfs/node.c') diff --git a/tmpfs/node.c b/tmpfs/node.c index e93b8794..c606f94e 100644 --- a/tmpfs/node.c +++ b/tmpfs/node.c @@ -73,6 +73,8 @@ diskfs_free_node (struct node *np, mode_t mode) { case DT_REG: if (np->dn->u.reg.memobj != MACH_PORT_NULL) { + /* XXX GNU Mach will terminate the object, and thus existing mappings + * will get SIGBUS. */ vm_deallocate (mach_task_self (), np->dn->u.reg.memref, 4096); mach_port_deallocate (mach_task_self (), np->dn->u.reg.memobj); } -- cgit v1.2.3