From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from smtp1.linuxfoundation.org (smtp1.linux-foundation.org [172.17.192.35]) by mail.linuxfoundation.org (Postfix) with ESMTPS id A3E5CCFE for ; Fri, 7 Sep 2018 07:03:46 +0000 (UTC) Received: from mx1.suse.de (mx2.suse.de [195.135.220.15]) by smtp1.linuxfoundation.org (Postfix) with ESMTPS id 09730A8 for ; Fri, 7 Sep 2018 07:03:45 +0000 (UTC) Date: Fri, 07 Sep 2018 09:03:43 +0200 Message-ID: From: Takashi Iwai To: Kees Cook In-Reply-To: References: <20180906094158.1eba4f50@canb.auug.org.au> <20180905222437.5d2a1730@vmware.local.home> <20180907091842.6c55bd9a@canb.auug.org.au> MIME-Version: 1.0 (generated by SEMI 1.14.6 - "Maruoka") Content-Type: text/plain; charset=US-ASCII Cc: ksummit Subject: Re: [Ksummit-discuss] [MAINTAINERS SUMMIT] API replacement/deprecation List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , On Fri, 07 Sep 2018 01:24:03 +0200, Kees Cook wrote: > > On Thu, Sep 6, 2018 at 4:18 PM, Stephen Rothwell wrote: > > Hi Kees, > > > > On Thu, 6 Sep 2018 11:24:11 -0700 Kees Cook wrote: > >> > >> If there was an agreement by all maintainers that deprecated > >> functions/patterns should not be added, and we documented the > >> deprecation somewhere like Documentation/process/deprecated.rst, then > >> we could make the declaration that if such functions got added (it's > >> easy to mechanically check for them), it would be the responsibility > >> of the author and maintainer chain to see that it got fixed before the > >> release is cut. We already have this for things like "breaks the x86 > >> allmodconfig build" or similar. The checking would be manual, and the > >> enforcement would be by agreement, but it'd be better than the kind of > >> "please don't do this" hand-waving we've had in the past. > > > > I could do this in linux-next, of course, the same way I check for > > missing signed-off-bys. All I would need is the list of deprecated > > things. > > Hopefully we can all agree on deprecating strcpy() and strncpy() in > favor of strscpy()? How about providing some lightweight check script for git commit hook, and let each maintainer install it? thanks, Takashi