Nikhil Adhau has uploaded this change for review. ( https://review.gerrithub.io/c/ffilz/nfs-ganesha/+/1232258?usp=email ) Change subject: delayed_executor: Deny submission after shutdown. ...................................................................... delayed_executor: Deny submission after shutdown. Currently, if delayed_submit() is invoked after delayed_shutdown(), there is a possibility of accessing a destroyed dle_mutex, which can lead to undefined behavior and crash. The shutdown path destroys dle_mutex, but there is no protection preventing concurrent or late calls to delayed_submit(). Crash observed: 0 0x00007f03f3d6752f in raise() from /lib64/libc.so.6 1 0x00007f03f3d3af2e in abort() from /lib64/libc.so.6 2 0x00007f03f696abb9 in delayed_submit() from /lib64/libganesha_nfsd.so.6.5 3 0x00007f03f68b52fe in nfs_start() from /lib64/libganesha_nfsd.so.6.5 4 0x0000000000403909 in main() Change-Id: Ifbb972c74b18a3d3ef751a1dae2684ea7ec8819e Signed-off-by: Nikhil Adhau <nikhiladhau999@gmail.com> --- M src/support/delayed_exec.c 1 file changed, 23 insertions(+), 0 deletions(-) git pull ssh://review.gerrithub.io:29418/ffilz/nfs-ganesha refs/changes/58/1232258/1 -- To view, visit https://review.gerrithub.io/c/ffilz/nfs-ganesha/+/1232258?usp=email To unsubscribe, or for help writing mail filters, visit https://review.gerrithub.io/settings?usp=email Gerrit-MessageType: newchange Gerrit-Project: ffilz/nfs-ganesha Gerrit-Branch: next Gerrit-Change-Id: Ifbb972c74b18a3d3ef751a1dae2684ea7ec8819e Gerrit-Change-Number: 1232258 Gerrit-PatchSet: 1 Gerrit-Owner: Nikhil Adhau <nikhiladhau999@gmail.com>