Received: by 2002:a05:6358:d09b:b0:dc:cd0c:909e with SMTP id jc27csp6728859rwb; Tue, 15 Nov 2022 02:56:04 -0800 (PST) X-Google-Smtp-Source: AA0mqf7q8/nPKihrYM8VGrNmXxhIdDRq7pXp9EePrQh7xIKRtnhNtyA66shoua7daH5tIqfeBkBL X-Received: by 2002:a17:906:6ada:b0:7ad:d7f9:38b0 with SMTP id q26-20020a1709066ada00b007add7f938b0mr13248718ejs.733.1668509763938; Tue, 15 Nov 2022 02:56:03 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1668509763; cv=none; d=google.com; s=arc-20160816; b=hl7L2hSuCPwiM+1K5mA9vImpfkTUdmRDtkDp+mHH4T2MbvnXEDxfj/JjuTLDtCsAxW YtbYc29gqIjoEUPMlm6DILsgei1cCK7WApzgoIuFkLA9gG5lP/Ve6+kEqY8syg6CKOKN EZBDpted3Nguf9N7vHt0JOGDQJFwZGmn7tQU00lrX+HtpoJYU3Urfc+d6prdO+zvOdUy aRF4W0IMD8fzibUMZe1nw3MweAqjLgHg/3/K3k2qBCpiRSUFQUVpHGimQ4hkZmKpsUBk hKIW4IWLiDxbGQc1MB2X7wgGK+Bk9jzC0gnppK2ltEE53yXZ/y/RKP+Lz93MKrLIh/+W Y3mA== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:in-reply-to:content-disposition:mime-version :references:message-id:subject:cc:to:from:date:dkim-signature; bh=NBc+6TQCGJQqwKrWwJVnPEeO1rm++n6hmXxM4Iyb94Y=; b=O5WPVJEpX+Gs9QrTIFhINX1ZGaVtdOmEVb8fiYJ5+CNBg7TH7SNIxWUl94FNKUFzsk pVP88KcRTm04FmkpQOP5MUVYz1P3BelnrPS2telHhI5ssY1hAIpBwj+KywT+gKPJbxch GRBrPMRxUHX1d+c7QwcTVLja4cHri+9GcwM534rs49OrbN1Z/3LwDUODFVFDK9zWU+Te LDaQF6G6PRajIUF+86ZlwFezt+B9qni6R30EmaK5b5vk8GjU1Vn5+Qi8wgdDV0iWTgii 203Tq4DjZ/82sfV0HD48evFDnnD7VEj3Yyj031VryedyWZ//BAVOuQ/UwoAwaQuUXguj 0Tgg== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@linuxfoundation.org header.s=korg header.b=GFb1hsWA; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=linuxfoundation.org Return-Path: Received: from out1.vger.email (out1.vger.email. [2620:137:e000::1:20]) by mx.google.com with ESMTP id s15-20020a056402520f00b004642b0f2357si12025140edd.589.2022.11.15.02.55.41; Tue, 15 Nov 2022 02:56:03 -0800 (PST) Received-SPF: pass (google.com: domain of linux-kernel-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=@linuxfoundation.org header.s=korg header.b=GFb1hsWA; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=linuxfoundation.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S237885AbiKOKcv (ORCPT + 89 others); Tue, 15 Nov 2022 05:32:51 -0500 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:48572 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S229516AbiKOKct (ORCPT ); Tue, 15 Nov 2022 05:32:49 -0500 Received: from dfw.source.kernel.org (dfw.source.kernel.org [IPv6:2604:1380:4641:c500::1]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id DAEC91A83B for ; Tue, 15 Nov 2022 02:32:48 -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 dfw.source.kernel.org (Postfix) with ESMTPS id 7616A615F5 for ; Tue, 15 Nov 2022 10:32:48 +0000 (UTC) Received: by smtp.kernel.org (Postfix) with ESMTPSA id 0D845C433D6; Tue, 15 Nov 2022 10:32:46 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=linuxfoundation.org; s=korg; t=1668508367; bh=J0AqUCNbx/Nxfw1cajX4O1nZtC6ckY4c4ixhv+h6pe4=; h=Date:From:To:Cc:Subject:References:In-Reply-To:From; b=GFb1hsWA8wetK2APjkF+q18gGGqZqpI8+yLsuswnkUuqVjce9x1bqHG0PpCxAMlo/ PX5r9ZijPvovg/xpqtjJIXABL0UJUSITERWFJMSAzBTu8XD+dVOf7G+fTrotZjbpL6 JzsTWalzUxEmWvtAC32IagpEtMnP6rEIRJtudOyU= Date: Tue, 15 Nov 2022 11:32:40 +0100 From: Greg KH To: guo.ziliang@zte.com.cn Cc: tj@kernel.org, linux-kernel@vger.kernel.org Subject: Re: [PATCH linux-next] kernfs: use strscpy() is more robust and safer Message-ID: References: <202211150847452601249@zte.com.cn> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <202211150847452601249@zte.com.cn> 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-kernel@vger.kernel.org On Tue, Nov 15, 2022 at 08:47:45AM +0800, guo.ziliang@zte.com.cn wrote: > From: guo ziliang > > The implementation of strscpy() is more robust and safer. That's now the > recommended way to copy NUL terminated strings. > > Signed-off-by: guo ziliang Note, your email is showing up as "unvalidated" with in invalid signature based on your domain. Please fix that up so that your patches will be able to be accepted, otherwise we have to consider this as a spoofed email :( thanks, greg k-h