[PATCH] kernel: bpf: syscall: fix a possible sleep-in-atomic bug in __bpf_prog_put()
From: Ratheesh Kannoth
Date: Tue May 30 2023 - 00:54:48 EST
From: starmiku1207184332@xxxxxxxxx
>
>+ // safely calling vfree() under any context
do we need this comment as code is self explanatory.
> INIT_WORK(&aux->work, bpf_prog_put_deferred);
> schedule_work(&aux->work);
> } else {
>+ // depending on the vfree_atomic() branch in vfree()
same as above.
> bpf_prog_put_deferred(&aux->work);
> }
> }
>--
>2.25.1