Re: [PATCH] sched/task_stack: Fix object_is_on_stack() for KASAN tagged pointers

From: Andrew Morton
Date: Wed Nov 13 2024 - 02:06:50 EST


On Wed, 13 Nov 2024 12:25:43 +0800 Qun-Wei Lin <qun-wei.lin@xxxxxxxxxxxx> wrote:

> When CONFIG_KASAN_SW_TAGS and CONFIG_KASAN_STACK are enabled, the
> object_is_on_stack() function may produce incorrect results due to the
> presence of tags in the obj pointer, while the stack pointer does not
> have tags. This discrepancy can lead to incorrect stack object detection
> and subsequently trigger warnings if CONFIG_DEBUG_OBJECTS is also
> enabled.
>
> Example of the warning:

Thanks.

Are we able to identify when this started happening? ie, a suitable
Fixes: taret?