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

Andrew Morton akpm at linux-foundation.org
Tue Nov 12 23:06:44 PST 2024


On Wed, 13 Nov 2024 12:25:43 +0800 Qun-Wei Lin <qun-wei.lin at mediatek.com> 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?




More information about the Linux-mediatek mailing list