Re: [PATCH] kasan: Don't call find_vm_area() in RT kernel

From: Andrew Morton
Date: Tue Feb 11 2025 - 19:20:31 EST


On Tue, 11 Feb 2025 19:16:34 -0500 Waiman Long <llong@xxxxxxxxxx> wrote:

> > Fixes: c056a364e954 ("kasan: print virtual mapping info in reports")
> > Cc: <stable@xxxxxxxxxxxxxxx>
> >
> > but c056a364e954 is 3 years old and I don't think we care about -rt in
> > such old kernels. Thoughts?
>
> The KASAN report_lock was changed to a raw_spinlock_t in v6.13 kernel
> with commit e30a0361b851 ("kasan: make report_lock a raw spinlock") to
> fix a similar RT problem. The report_lock is acquired before calling
> print_address_description(). Before commit e30a0361b851, this
> find_vm_area() is a secondary issue. We may consider commit e30a0361b851
> isn't complete and this is a fix for that.

Great, thanks, updated...