Re: [linus:master] [mm] c6307674ed: BUG:sleeping_function_called_from_invalid_context_at_mm/vmalloc.c

Herbert Xu <[email protected]> Thu, 23 Apr 2026 11:34:51 +0800
Newsgroups dev.linux.lists.oe-lkp,org.kernel.vger.linux-kernel,org.kvack.linux-mm
Message-ID <[email protected]>
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 <[email protected]>
Home Page: http://gondor.apana.org.au/~herbert/
PGP Key: http://gondor.apana.org.au/~herbert/pubkey.txt