Files
linux-stable-mirror/include/linux
Uladzislau Rezki (Sony)andHerbert Xu dad0d91cc2 mm/slab: Add kvfree_atomic() helper
kvmalloc() now supports non-sleeping GFP flags, including
the vmalloc fallback path. This means it may return vmalloc
memory even for GFP_ATOMIC and GFP_NOWAIT allocations.

Freeing such memory with kvfree() may then end up calling
vfree(), which is not safe for non-sleeping contexts.

Introduce kvfree_atomic() helper for such cases. It mirrors
kvfree(), but uses vfree_atomic() for vmalloced memory.

Signed-off-by: Uladzislau Rezki (Sony) <urezki@gmail.com>
Acked-by: Vlastimil Babka (SUSE) <vbabka@kernel.org>
Acked-by: Harry Yoo (Oracle) <harry@kernel.org>
Signed-off-by: Herbert Xu <herbert@gondor.apana.org.au>
2026-05-05 16:12:07 +08:00
..
2026-04-07 08:22:24 -06:00
2026-04-16 07:03:40 -07:00
2026-04-07 17:38:07 +02:00
2026-04-06 11:39:54 +02:00
2026-04-20 11:35:17 -07:00
2026-05-05 16:12:07 +08:00
2026-04-13 08:39:51 -07:00
2026-04-06 09:06:39 +02:00