From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: X-Spam-Checker-Version: SpamAssassin 3.4.0 (2014-02-07) on aws-us-west-2-korg-lkml-1.web.codeaurora.org X-Spam-Level: X-Spam-Status: No, score=-2.3 required=3.0 tests=HEADER_FROM_DIFFERENT_DOMAINS, MAILING_LIST_MULTI,SPF_PASS,USER_AGENT_MUTT autolearn=ham autolearn_force=no version=3.4.0 Received: from mail.kernel.org (mail.kernel.org [198.145.29.99]) by smtp.lore.kernel.org (Postfix) with ESMTP id 0E570ECDFB0 for ; Fri, 13 Jul 2018 08:13:28 +0000 (UTC) Received: from vger.kernel.org (vger.kernel.org [209.132.180.67]) by mail.kernel.org (Postfix) with ESMTP id AE52B2124D for ; Fri, 13 Jul 2018 08:13:27 +0000 (UTC) DMARC-Filter: OpenDMARC Filter v1.3.2 mail.kernel.org AE52B2124D Authentication-Results: mail.kernel.org; dmarc=none (p=none dis=none) header.from=codewreck.org Authentication-Results: mail.kernel.org; spf=none smtp.mailfrom=linux-kernel-owner@vger.kernel.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S2387865AbeGMI06 (ORCPT ); Fri, 13 Jul 2018 04:26:58 -0400 Received: from nautica.notk.org ([91.121.71.147]:37613 "EHLO nautica.notk.org" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1731968AbeGMI06 (ORCPT ); Fri, 13 Jul 2018 04:26:58 -0400 Received: by nautica.notk.org (Postfix, from userid 1001) id 054E5C01A; Fri, 13 Jul 2018 10:13:24 +0200 (CEST) Date: Fri, 13 Jul 2018 10:13:08 +0200 From: Dominique Martinet To: Arend van Spriel Cc: Greg Kroah-Hartman , Kalle Valo , "David S. Miller" , Thomas Gleixner , Kate Stewart , Philippe Ombredanne , Joe Perches , linux-wireless@vger.kernel.org, netdev@vger.kernel.org, linux-kernel@vger.kernel.org Subject: Re: [PATCH 11/18] wireless/ti: change strncpy+truncation to strlcpy Message-ID: <20180713081308.GC9638@nautica> References: <1531444483-17338-1-git-send-email-asmadeus@codewreck.org> <1531445149-19607-1-git-send-email-asmadeus@codewreck.org> <20180713073810.GA31984@kroah.com> <5B485917.7090102@broadcom.com> MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Disposition: inline In-Reply-To: <5B485917.7090102@broadcom.com> User-Agent: Mutt/1.5.21 (2010-09-15) Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Arend van Spriel wrote on Fri, Jul 13, 2018: > The patch adding that script contains a good motivation, but I would want to > see that in commit message of every patch or at least the gist of > it. In retrospect, I definitely agree - I was happy I got coccinelle to work and a bit too tired to make rationale decisions when I sent the serie as it's not a kind of thing I'm used to. For the patch you ack'd, in particular, there would be no gcc warning in the first place because the source string's size is not known at compile time and for some reason gcc does not mind silent truncation in that case, so the usefulnes of the patch is fairly limited in the first place (it's possibly simpler/good to aim for consistency but that's about it). I however didn't take the time to make that analysis for all the patches. > especially as that script is not in the kernel tree yet. I did think about that, but wasn't sure what was appropriate in this case. I now think it would have been better to save everyone a dozen of mails and wait for the coccinelle patch to land first; but it's a bit late for regret :) I'll only catter after the coccinelle script until it lands, so if anyone is inclined to take one of the rest as they are, great, but otherwise feel free to ignore them for now. (In particular, this very patch should not remove the first comment here, as pointed out by Himanshu Jha in reply to the first patch) Thanks for taking the time to give feedback, -- Dominique Martinet