Re: v6.13-rc1 build errors from kernel/auditsc.c
From: Yafang Shao
Date: Mon Dec 02 2024 - 23:04:10 EST
On Tue, Dec 3, 2024 at 11:35 AM Paul Moore <paul@xxxxxxxxxxxxxx> wrote:
>
> On Mon, Dec 2, 2024 at 10:19 PM Zhuo, Qiuxu <qiuxu.zhuo@xxxxxxxxx> wrote:
> >
> > Hi,
> >
> > I got the following build errors from kernel/auditsc.c file.
> >
> > The GCC version : 7.5.0
> > Kernel version : v6.13-rc1
> > The bisect commit : 286d7a54c8a2 ("auditsc: replace memcpy() with strscpy()")
>
> Unfortunately this is a known GCC bug, see the lore link below. Kees,
> Yafang, do you have any more information or compiler-based workarounds
> for this bug?
>
> https://lore.kernel.org/all/CALOAHbBB-__eyERw82QnS3Wmgi7_BpPaacY2urVmpWX3ZkVtvQ@xxxxxxxxxxxxxx/
I'll prepare a patch based on Kees's changes soon. For now, let's
implement a workaround.
--
Regards
Yafang