--- linux-3.16.43-orig/kernel/kmod.c 2017-04-04 22:21:58.000000000 +0100 +++ linux-3.16.43/kernel/kmod.c 2017-04-11 18:47:46.000000000 +0100 @@ -572,7 +572,8 @@ call_usermodehelper_freeinfo(sub_info); return -EINVAL; } - helper_lock(); + if (!(current->flags & PF_FREEZER_SKIP)) + helper_lock(); if (!khelper_wq || usermodehelper_disabled) { retval = -EBUSY; goto out; @@ -612,7 +613,8 @@ out: call_usermodehelper_freeinfo(sub_info); unlock: - helper_unlock(); + if (!(current->flags & PF_FREEZER_SKIP)) + helper_unlock(); return retval; } EXPORT_SYMBOL(call_usermodehelper_exec);