summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorSamuel Thibault <samuel.thibault@ens-lyon.org>2018-11-05 23:08:42 +0100
committerSamuel Thibault <samuel.thibault@ens-lyon.org>2018-11-05 23:08:42 +0100
commit546d089ad639440bab342c29997e910bf9655290 (patch)
tree1b1edea3628c456b991fa63decd239d2fb6c236c
parent96cbadd47a46d07fd242f7d06869e9b1a54ceb79 (diff)
tmpfs: Document issue with removed shm files
-rw-r--r--tmpfs/node.c2
1 files changed, 2 insertions, 0 deletions
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);
}