--- linux-4.6.0/kernel/kmod.c.orig 2016-05-16 01:43:13.000000000 +0300 +++ linux-4.6.0/kernel/kmod.c 2016-05-22 09:49:12.654159691 +0300 @@ -561,7 +561,8 @@ call_usermodehelper_freeinfo(sub_info); return -EINVAL; } - helper_lock(); + if (!(current->flags & PF_FREEZER_SKIP)) + helper_lock(); if (usermodehelper_disabled) { retval = -EBUSY; goto out; @@ -595,7 +596,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);