[<prev] [next>] [<thread-prev] [thread-next>] [day] [month] [year] [list]
Message-ID: <202410170946.C3D7594@keescook>
Date: Thu, 17 Oct 2024 09:48:18 -0700
From: Kees Cook <kees@...nel.org>
To: Paul Moore <paul@...l-moore.com>
Cc: Yafang Shao <laoar.shao@...il.com>, linux-hardening@...r.kernel.org
Subject: Re: Fwd: [linux-next:master 4380/4439]
include/linux/fortify-string.h:293:17: error: call to '__write_overflow'
declared with attribute error: detected write beyond size of object (1st
parameter)
On Thu, Oct 17, 2024 at 09:23:25AM -0700, Kees Cook wrote:
> On Thu, Oct 17, 2024 at 09:07:13AM -0700, Kees Cook wrote:
> > Something in the .config is causing the error. (!?) I will start a
> > CONFIG bisect...
>
> Well, I did a code bisect first, and it reported this which makes _no_
> sense:
> 8afd8c8faa24 ("lsm: remove lsm_prop scaffolding")
>
> O_o
Looks like a GCC inlining bug. If I query the size of the destination
buffer before calling strscpy the warning magically vanishes. :|
Lovely. I will see if I can construct a work-around.
--
Kees Cook
Powered by blists - more mailing lists