Re: [PATCH] tracing: fix memcpy size when copying stack entries

From: Steven Rostedt
Date: Wed Jul 12 2023 - 10:14:47 EST


On Wed, 12 Jul 2023 16:06:27 +0200
Sven Schnelle <svens@xxxxxxxxxxxxx> wrote:

> > No, still getting the same warning:
> >
> > [ 2.302776] memcpy: detected field-spanning write (size 104) of single field "stack" at kernel/trace/trace.c:3178 (size 64)
>
> BTW, i'm seeing the same error on x86 with current master when
> CONFIG_FORTIFY_SOURCE=y and CONFIG_SCHED_TRACER=y:

As I don't know how the fortifier works, nor what exactly it is checking,
do you have any idea on how to quiet it?

This is a false positive, as I described before.

-- Steve