From mboxrd@z Thu Jan 1 00:00:00 1970 MIME-Version: 1.0 References: <20190218232308.11241-1-tobin@kernel.org> <20190218232308.11241-6-tobin@kernel.org> <20190221052435.GF11758@eros.localdomain> <20190222072652.2441e8a2@canb.auug.org.au> In-Reply-To: <20190222072652.2441e8a2@canb.auug.org.au> From: Kees Cook Date: Thu, 21 Feb 2019 15:16:14 -0800 Message-ID: Subject: Re: [PATCH 5/6] lib: Fix function documentation for strncpy_from_user Content-Type: text/plain; charset="UTF-8" To: Stephen Rothwell Cc: "Tobin C. Harding" , Jann Horn , "Tobin C. Harding" , Shuah Khan , Alexander Shishkin , Greg Kroah-Hartman , Andy Shevchenko , Kernel Hardening , kernel list , Andy Lutomirski , Rasmus Villemoes , Daniel Micay , Arnd Bergmann , Miguel Ojeda , "Gustavo A. R. Silva" List-ID: On Thu, Feb 21, 2019 at 12:27 PM Stephen Rothwell wrote: > > Hi Kees, > > On Wed, 20 Feb 2019 22:02:32 -0800 Kees Cook wrote: > > > > What I can't quite figure out yet is how to find a way for sfr to flag > > newly added users of strcpy, strncpy, and strlcpy. We might need to > > bring back __deprecated, but hide it behind a W=linux-next flag or > > something crazy. Stephen, in your builds you're already injecting > > -Wimplicit-fallthrough: do you do W=1 or anything like that? If not, I > > think we need some W= setting for your linux-next builds that generate > > the maintainer-nag warnings... > > I just have a set of compiler flags that my build scripts explicitly > enable by setting KCFLAGS. Okay, so you could include some -D option to enable it. I'll see if I can cook something up. -- Kees Cook