diff -urN linux-4.9.239/kernel/kmod.c linux-4.9.239-patched/kernel/kmod.c --- linux-4.9.239/kernel/kmod.c 2020-10-14 08:48:17.000000000 +0100 +++ linux-4.9.239-patched/kernel/kmod.c 2020-10-26 18:39:30.289915349 +0000 @@ -570,7 +570,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; @@ -604,7 +605,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);