--- x/lib/rhashtable.c +++ y/lib/rhashtable.c @@ -1082,7 +1082,10 @@ int rhashtable_init_noprof(struct rhasht RCU_INIT_POINTER(ht->tbl, tbl); - INIT_WORK(&ht->run_work, rht_deferred_worker); + if (object_is_on_stack(&ht->run_work)) + INIT_WORK_ONSTACK(&ht->run_work, rht_deferred_worker); + else + INIT_WORK(&ht->run_work, rht_deferred_worker); return 0; }