Bug #1284
closed
UST consumer daemon should handle SIGBUS
Added by Mathieu Desnoyers over 3 years ago.
Updated almost 3 years ago.
Description
There is an issue with the security model of lib ring buffer (lttng-ust) vs SIGBUS handling by consumer daemon. We do not trap SIGBUS in the consumer daemon. An application using ftruncate on a ring buffer shm could cause the consumer to be killed with SIGBUS.
One possible way to solve this would be to use memfd and fcntl(2) F_ADD_SEALS (only available since Linux 3.17). It would not however cover kernels older than 3.17 (which we support) and would not work for --shm-path, because it only works for memfd.
So handling SIGBUS in the consumer daemon seems like a better approach to solve this.
- Project changed from LTTng-tools to LTTng
- Status changed from New to Resolved
- % Done changed from 0 to 100
Also available in: Atom
PDF