On 2021-08-10 14:41:25 [+0100], Valentin Schneider wrote: > [ 4.172817] BUG: sleeping function called from invalid context at kernel/locking/spinlock_rt.c:35 Would it work to allocate the memory upfront and invoke the HP callback via smp_function_call()? That is implemented via the hp-callback. It is invoked after all CPUs are up. There is one "memory allocation" per "node". This does not change during runtime, right? Sebastian