]> git.ipfire.org Git - thirdparty/kernel/stable.git/commit
slab: mark slab->obj_exts allocation failures unconditionally
authorSuren Baghdasaryan <surenb@google.com>
Mon, 15 Sep 2025 20:09:18 +0000 (13:09 -0700)
committerVlastimil Babka <vbabka@suse.cz>
Tue, 16 Sep 2025 12:32:51 +0000 (14:32 +0200)
commitf7381b9116407ba2a429977c80ff8df953ea9354
treebb59e093f29632f3dfbd741fe681fb16524bd9f6
parent4038016397da5c1cebb10e7c85a36d06123724a8
slab: mark slab->obj_exts allocation failures unconditionally

alloc_slab_obj_exts() should mark failed obj_exts vector allocations
independent on whether the vector is being allocated for a new or an
existing slab. Current implementation skips doing this for existing
slabs. Fix this by marking failed allocations unconditionally.

Fixes: 09c46563ff6d ("codetag: debug: introduce OBJEXTS_ALLOC_FAIL to mark failed slab_ext allocations")
Reported-by: Shakeel Butt <shakeel.butt@linux.dev>
Closes: https://lore.kernel.org/all/avhakjldsgczmq356gkwmvfilyvf7o6temvcmtt5lqd4fhp5rk@47gp2ropyixg/
Signed-off-by: Suren Baghdasaryan <surenb@google.com>
Cc: stable@vger.kernel.org # v6.10+
Acked-by: Shakeel Butt <shakeel.butt@linux.dev>
Signed-off-by: Vlastimil Babka <vbabka@suse.cz>
mm/slub.c