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 Received: from vger.kernel.org (vger.kernel.org [23.128.96.18]) by smtp.lore.kernel.org (Postfix) with ESMTP id C92C5C32772 for ; Fri, 19 Aug 2022 17:04:58 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1350727AbiHSRE5 (ORCPT ); Fri, 19 Aug 2022 13:04:57 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:39288 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1349920AbiHSREh (ORCPT ); Fri, 19 Aug 2022 13:04:37 -0400 Received: from ams.source.kernel.org (ams.source.kernel.org [IPv6:2604:1380:4601:e00::1]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 5CCED13729B; Fri, 19 Aug 2022 09:25:00 -0700 (PDT) Received: from smtp.kernel.org (relay.kernel.org [52.25.139.140]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by ams.source.kernel.org (Postfix) with ESMTPS id DFE46B8281F; Fri, 19 Aug 2022 16:23:51 +0000 (UTC) Received: by smtp.kernel.org (Postfix) with ESMTPSA id 7DEF7C433D6; Fri, 19 Aug 2022 16:23:47 +0000 (UTC) Date: Fri, 19 Aug 2022 12:23:59 -0400 From: Steven Rostedt To: Wolfram Sang Cc: linux-kernel@vger.kernel.org, Alexei Starovoitov , Daniel Borkmann , Andrii Nakryiko , Martin KaFai Lau , Song Liu , Yonghong Song , John Fastabend , KP Singh , Stanislav Fomichev , Hao Luo , Jiri Olsa , Tejun Heo , Zefan Li , Johannes Weiner , Peter Zijlstra , Ingo Molnar , Arnaldo Carvalho de Melo , Mark Rutland , Alexander Shishkin , Namhyung Kim , Petr Mladek , Sergey Senozhatsky , John Ogness , John Stultz , Thomas Gleixner , Stephen Boyd , bpf@vger.kernel.org, cgroups@vger.kernel.org, linux-perf-users@vger.kernel.org Subject: Re: [PATCH] kernel: move from strlcpy with unused retval to strscpy Message-ID: <20220819122359.050a3432@gandalf.local.home> In-Reply-To: References: <20220818210202.8227-1-wsa+renesas@sang-engineering.com> <20220818181506.0d838d02@gandalf.local.home> X-Mailer: Claws Mail 3.17.8 (GTK+ 2.24.33; x86_64-pc-linux-gnu) MIME-Version: 1.0 Content-Type: text/plain; charset=US-ASCII Content-Transfer-Encoding: 7bit Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On Fri, 19 Aug 2022 07:53:51 +0200 Wolfram Sang wrote: > > But in my cases I actually do trust the source string. They are all > > The ultimate goal is to remove strlcpy entirely. My motivation is to get > rid of the extra work for maintainers that they need to ensure that the > author of a patch paid attention to the detail that the source string > must be trusted. After reading Linus's rant, I figured as much. -- Steve