git: hammer - Fix coredump bug which can stall processes
dillon at crater.dragonflybsd.org
Fri Mar 4 19:20:06 PST 2016
Author: Matthew Dillon <dillon at apollo.backplane.com>
Date: Fri Mar 4 19:17:28 2016 -0800
hammer - Fix coredump bug which can stall processes
* Fix a coredump bug which can stall the process. If a process > 100MB is
in the process of being coredumped, a signal will cause the hammer_write()
path to hit tstop() due to the core-dump being in progress. Unfortunately
the write might be happening from the kernel core generator itself which
will stall the process forever with a number of locks held.
hammer only checks for signals on very large (> 100MB) read() and write()
calls so the issue does not effect coredumps of smaller processes.
* Use CURSIG_NOBLOCK() instead of CURSIG().
Summary of changes:
sys/vfs/hammer/hammer_signal.c | 8 ++++----
sys/vfs/hammer2/hammer2_subr.c | 2 +-
2 files changed, 5 insertions(+), 5 deletions(-)
DragonFly BSD source repository
More information about the Commits