Received: by 2002:a05:6358:a55:b0:ec:fcf4:3ecf with SMTP id 21csp3389751rwb; Mon, 16 Jan 2023 07:25:20 -0800 (PST) X-Google-Smtp-Source: AMrXdXvzcf0JNj4B+SGAjgkWY0NqkYW032rOfslVPl4WEaPC5qaJ26tSAITG/DlZaMfNDY3LrAzH X-Received: by 2002:a05:6a20:ce07:b0:af:ee05:fd0b with SMTP id ic7-20020a056a20ce0700b000afee05fd0bmr84348716pzb.3.1673882719898; Mon, 16 Jan 2023 07:25:19 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1673882719; cv=none; d=google.com; s=arc-20160816; b=a7Z3c25KtKktmeHdxRRqI7wl1SjBI541cEh+06tWM/kcUO0qB7sdt3Xe7tjZ2yZurm iBoTNrPYwIXDZ317CRWpnuQ8l3oxqZQba/HrrPhIHywh3fH/RrHtuoxK2Dq5aYTEL+c6 xicCJLdoyK1poxuHuvedsvWRtOzzrI5qbo/vLb8dc89xtUkQixsTpRMGTSjwO21J38Ci GRUJroXqLWYNWl3DxVI28y15UYJqpNWzekWSq6V6EN+ym46suDizcCrclS5TIT4I3jva JA84GhIMV9Bjgybb2ILHuRGf58pNdXJOn9F3PmUiZ/dknnZCNZP9cjQ0kghtPOXjeJZc U2KQ== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:mime-version:user-agent:message-id:in-reply-to :date:references:subject:cc:to:from:dkim-signature; bh=tusHj7lNgk19CQvwyEqLKlcJu3KFGyneY9ttMQuZ2gk=; b=o03DugAcVoaDnONOO2KJp5xabX78tLJ7GUB66vc6u50xT0YjOLBincOo0S7xXoJQmd uG0UWwLMuP8eJGP8W7H885pCnzZRbSKDUYJK/jeQGF1L0r5y0JJpcVlBK1gR8n1/ALrx QxQh1NeGuIorKvn64REJBXSbmv0AO/7PxdIm3ypcTI9kSTp/q/mavelnyPl37cqMD1Zn BR9FeWhc66u7CcJ9cPr3Uw4qr40qgVNl+Lop7FR0rCyB3KifzDYeItBQ1HqxCKEEBVVf 9uzdJx17pOOP2E/MPC0k0UlcCIrA9mXv6p5Ly2cpNbIiu3bSq/3zIVIIOzn2XoC3iz7P npvw== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@kernel.org header.s=k20201202 header.b=P7EsXdVt; spf=pass (google.com: domain of linux-wireless-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) smtp.mailfrom=linux-wireless-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=kernel.org Return-Path: Received: from out1.vger.email (out1.vger.email. [2620:137:e000::1:20]) by mx.google.com with ESMTP id n20-20020a635914000000b00498688359b6si29565716pgb.287.2023.01.16.07.25.09; Mon, 16 Jan 2023 07:25:19 -0800 (PST) Received-SPF: pass (google.com: domain of linux-wireless-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) client-ip=2620:137:e000::1:20; Authentication-Results: mx.google.com; dkim=pass header.i=@kernel.org header.s=k20201202 header.b=P7EsXdVt; spf=pass (google.com: domain of linux-wireless-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) smtp.mailfrom=linux-wireless-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=kernel.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S232156AbjAPPWW (ORCPT + 63 others); Mon, 16 Jan 2023 10:22:22 -0500 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:39904 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S229571AbjAPPVo (ORCPT ); Mon, 16 Jan 2023 10:21:44 -0500 Received: from ams.source.kernel.org (ams.source.kernel.org [145.40.68.75]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id CEF4E22A1D; Mon, 16 Jan 2023 07:18:41 -0800 (PST) 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 8A9A6B80FEE; Mon, 16 Jan 2023 15:18:40 +0000 (UTC) Received: by smtp.kernel.org (Postfix) with ESMTPSA id 276E9C433F0; Mon, 16 Jan 2023 15:18:35 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=kernel.org; s=k20201202; t=1673882319; bh=vmGFW004UDwsmgRU4Zufg89JY7mnDaECKq1b+4Q7dW8=; h=From:To:Cc:Subject:References:Date:In-Reply-To:From; b=P7EsXdVtcWoVtSQUl+9hIOkc1Lqa6E2dCm9xSqlpzYBgAbdky9aRY85PjXEhRq8/Z Hay1qBB/3wovNYTx6blXLJNJBzIgX+nKzvNFMC66+r12zXg8d15cGd5pPMEZfiubi6 u0Pg8Ba5SpFM1DiMV9ULRiCrTDFToS/SDUJd+ro+sVbjLt5CRgHUYvG36d/up89Mce ZViAQXOLasukY7nsYa4myRp4RCupUFW7CDYtsPl2ubaJPnFxRViYCSAKkLW3sYySNX yFh5T1/VHiF4wZmnCcIxoXy69RPTtkWCf5FiZ9EMof143ok8xRZ6O1+1YRbRcydrW0 1hRjaPEpjZKyA== From: Kalle Valo To: Leon Romanovsky Cc: yang.yang29@zte.com.cn, aspriel@gmail.com, franky.lin@broadcom.com, hante.meuleman@broadcom.com, davem@davemloft.net, edumazet@google.com, kuba@kernel.org, pabeni@redhat.com, linux-wireless@vger.kernel.org, brcm80211-dev-list.pdl@broadcom.com, sha-cyfmac-dev-list@infineon.com, netdev@vger.kernel.org, linux-kernel@vger.kernel.org, xu.panda@zte.com.cn Subject: Re: [PATCH net-next] brcm80211: use strscpy() to instead of strncpy() References: <202212231037210142246@zte.com.cn> <167387451256.32134.6493247488948126794.kvalo@kernel.org> Date: Mon, 16 Jan 2023 17:18:32 +0200 In-Reply-To: (Leon Romanovsky's message of "Mon, 16 Jan 2023 15:31:19 +0200") Message-ID: <87y1q2y0c7.fsf@kernel.org> User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/26.1 (gnu/linux) MIME-Version: 1.0 Content-Type: text/plain X-Spam-Status: No, score=-7.1 required=5.0 tests=BAYES_00,DKIMWL_WL_HIGH, DKIM_SIGNED,DKIM_VALID,DKIM_VALID_AU,DKIM_VALID_EF,RCVD_IN_DNSWL_HI, SPF_HELO_NONE,SPF_PASS autolearn=ham autolearn_force=no version=3.4.6 X-Spam-Checker-Version: SpamAssassin 3.4.6 (2021-04-09) on lindbergh.monkeyblade.net Precedence: bulk List-ID: X-Mailing-List: linux-wireless@vger.kernel.org Leon Romanovsky writes: > On Mon, Jan 16, 2023 at 01:08:36PM +0000, Kalle Valo wrote: >> wrote: >> >> > From: Xu Panda >> > >> > The implementation of strscpy() is more robust and safer. >> > That's now the recommended way to copy NUL-terminated strings. >> > >> > Signed-off-by: Xu Panda >> > Signed-off-by: Yang Yang >> >> Mismatch email in From and Signed-off-by lines: >> >> From: >> Signed-off-by: Yang Yang >> >> Patch set to Changes Requested. > > Kalle, please be aware of this response > https://lore.kernel.org/netdev/20230113112817.623f58fa@kernel.org/ > > "I don't trust that you know what you're doing. So please don't send > any more strncpy() -> strscpy() conversions for networking." Good to know, thanks. -- https://patchwork.kernel.org/project/linux-wireless/list/ https://wireless.wiki.kernel.org/en/developers/documentation/submittingpatches