Suppressing SIGBUS signals
Suppressing SIGBUS signals
Posted Jun 27, 2021 8:13 UTC (Sun) by randomguy3 (subscriber, #71063)In reply to: Suppressing SIGBUS signals by randomguy3
Parent article: Suppressing SIGBUS signals
I went and looked up the link:
The reason is that there will always exist clients which are either old (and predate file sealing) or refuse to use Linux-only APIs (they don't use memfd and file sealing, instead they use e.g. shm_open). Requiring sealed memfds in compositors would break these clients.I don't believe the situation is about to change.
Rather than requiring changes in all compositors *and* clients, can we maybe only require changes in compositors? For instance, OpenBSD has a __MAP_NOFAULT flag. When passed to mmap, it means that out-of-bound accesses will read as zeroes instead of triggering SIGBUS. Such a flag would be very helpful to unblock the annoying SIGBUS situation.