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

From: David Laight
Date: Wed Jun 14 2023 - 07:30:27 EST


From: Sven Schnelle
> Sent: 14 June 2023 11:41
>
> Steven Rostedt <rostedt@xxxxxxxxxxx> writes:
>
> > On Tue, 13 Jun 2023 07:19:14 +0200
> > Sven Schnelle <svens@xxxxxxxxxxxxx> wrote:
> >
> >> > Yes the above may be special, but your patch breaks it.
> >>
> >> Indeed, i'm feeling a bit stupid for sending that patch, should have
> >> used my brain during reading the source. Thanks for the explanation.
> >
> > Does this quiet the fortifier?
> > [..]
>
> 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)

What about:
(memcpy)(......)

Or maybe:
(__builtin_memcpy)(....)


David

-
Registered Address Lakeside, Bramley Road, Mount Farm, Milton Keynes, MK1 1PT, UK
Registration No: 1397386 (Wales)