Re: [PATCH 1/2] Revert "mm/kmemleak: move the initialisation of object to __link_object"

From: Geert Uytterhoeven
Date: Wed Nov 15 2023 - 03:19:27 EST


On Wed, Nov 15, 2023 at 8:23 AM Liu Shixin <liushixin2@xxxxxxxxxx> wrote:
> Move the initialisation of object back to__alloc_object() because
> set_track_prepare() attempt to acquire zone->lock(spinlocks) while
> __link_object is holding kmemleak_lock(raw_spinlocks). This is not
> right for RT mode.
>
> This reverts commit 245245c2fffd0050772a3f30ba50e2be92537a32.
>
> Signed-off-by: Liu Shixin <liushixin2@xxxxxxxxxx>

Reported-by: Geert Uytterhoeven <geert+renesas@xxxxxxxxx>

Gr{oetje,eeting}s,

Geert

--
Geert Uytterhoeven -- There's lots of Linux beyond ia32 -- geert@xxxxxxxxxxxxxx

In personal conversations with technical people, I call myself a hacker. But
when I'm talking to journalists I just say "programmer" or something like that.
-- Linus Torvalds