Re: [linus:master] [mm] c6307674ed: BUG:sleeping_function_called_from_invalid_context_at_mm/vmalloc.c
From: Herbert Xu
Date: Wed Apr 22 2026 - 23:35:14 EST
On Wed, Apr 22, 2026 at 10:32:16AM +0200, Uladzislau Rezki wrote:
>
> We have added non-sleeping flags for vmalloc() to extend kvmalloc()
> functionality as folk need those.
>
> Another option, would be: always use vfree_atomic() from the kvfree()
> path.
>
> Any thoughts?
Perhaps add a kvfree_atomic that just calls vfree_atomic?
For rhashtable it really makes no difference either way. But it
would eliminate the unsightly call to is_vmalloc_addr in rhashtable.
Thanks,
--
Email: Herbert Xu <herbert@xxxxxxxxxxxxxxxxxxx>
Home Page: http://gondor.apana.org.au/~herbert/
PGP Key: http://gondor.apana.org.au/~herbert/pubkey.txt