Re: [syzbot] [mm?] WARNING: locking bug in __set_page_owner

From: Peter Zijlstra
Date: Tue Nov 05 2024 - 04:01:02 EST


On Mon, Nov 04, 2024 at 07:33:45PM -0800, Andrew Morton wrote:
> On Sun, 03 Nov 2024 08:49:26 -0800 syzbot <syzbot+56dc65adbd1d2ae1f844@xxxxxxxxxxxxxxxxxxxxxxxxx> wrote:
>
> > Hello,
> >
> > syzbot found the following issue on:
>
> Help. I don't understand this lockdep report.
> add_stack_record_to_list() is taking spin_lock_irqsave(stack_list_lock)
> from within softirq. all seems well?

spinlock_t from hardirq context, which is not fine. Should be
raw_spinlock_t.

Anyway, I send a proposal for this one yesterday, and so far nobody
seems to have screamed murder, so I suppose I'll make it compiler and
send out proper.

https://lkml.kernel.org/r/20241104114506.GC24862@xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx