Received: by 2002:a05:6a10:9afc:0:0:0:0 with SMTP id t28csp287871pxm; Wed, 2 Mar 2022 15:30:34 -0800 (PST) X-Google-Smtp-Source: ABdhPJwYjZjymvuTZ0eHsTbtEZ7SAmz3lu1rB6jH1kiQqUUSQnh/fF7aoNuVwnNzdVL5wNleN2Vg X-Received: by 2002:a17:90a:8591:b0:1b9:da10:2127 with SMTP id m17-20020a17090a859100b001b9da102127mr2244917pjn.13.1646263834687; Wed, 02 Mar 2022 15:30:34 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1646263834; cv=none; d=google.com; s=arc-20160816; b=p2bOwlgyWgwetw7/8Tx/OjHmsZ/J9pKGPLeNpcMXWo/GyedXtLlniikh8D4/QcN7Ev Oa9t5Lm26ostT5NjyziGhqssGYWXwvmNxUZTPCVtCncrtolMtBJyMnIYJrHfYGip5yha CW+AB4Xow1MROC2DtAHNisNjij85dPFHLMrtGwv0HWC4EJzWQIIUtAz7ZrM/F4XM7gSy tEXFTzYWvac16VKprr/j1pGZBo8sstL8YRmIhSByTeuJRSBXS2woHXlDiW13tLQb8m5x zloosJEXG5mEzMfGDdILyOijtGBXMUm+/8LBqKV+gWQIlGCbv0OvkLIt+bKIg7qbVQCI VrLw== 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=L+c8nHzqkzxGLzq9i8yXNjTQated8NeU+yeoKXV49ac=; b=pqoTxurdUrm2b/n4HyOmARp8fAu+8mGHOEWrs4KOw+HrCQju61q2UtxA9+bLkTCrtb MAjiedRqWk66vxScxZ0zMYAc8AJ9kIpqhYZVEhcG2QGg2gQaIb6vfRPHdqrtPeVyOBxf 8DkKcwFU4AesLei/VX866FLm60fLaRHjrdG8GZyczDSkt9Pfj/MKfUth6deYwKrMiMwI G6DTuTfp2aI8MaP4Bve7TA91SYc3MFNCntp7JDHT+Iaqxl4QlvmIh5qtGOuOLz9KQt0u BYwz7WUjyWpdniiocGihw7cqAyEJRLDHsH2BiSTMet/6ntjsfZTlrI8g5Pr8xn2p1Sy3 FXXw== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@linuxfoundation.org header.s=korg header.b=dsoclcJZ; spf=softfail (google.com: domain of transitioning linux-kernel-owner@vger.kernel.org does not designate 23.128.96.19 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 lindbergh.monkeyblade.net (lindbergh.monkeyblade.net. [23.128.96.19]) by mx.google.com with ESMTPS id l1-20020a633e01000000b00376042ca11bsi379251pga.849.2022.03.02.15.30.34 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Wed, 02 Mar 2022 15:30:34 -0800 (PST) Received-SPF: softfail (google.com: domain of transitioning linux-kernel-owner@vger.kernel.org does not designate 23.128.96.19 as permitted sender) client-ip=23.128.96.19; Authentication-Results: mx.google.com; dkim=pass header.i=@linuxfoundation.org header.s=korg header.b=dsoclcJZ; spf=softfail (google.com: domain of transitioning linux-kernel-owner@vger.kernel.org does not designate 23.128.96.19 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=linuxfoundation.org Received: from vger.kernel.org (vger.kernel.org [23.128.96.18]) by lindbergh.monkeyblade.net (Postfix) with ESMTP id B8C6E14D267; Wed, 2 Mar 2022 15:02:06 -0800 (PST) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S243119AbiCBUXl (ORCPT + 99 others); Wed, 2 Mar 2022 15:23:41 -0500 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:41456 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S234311AbiCBUXj (ORCPT ); Wed, 2 Mar 2022 15:23:39 -0500 Received: from ams.source.kernel.org (ams.source.kernel.org [IPv6:2604:1380:4601:e00::1]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id C160047046 for ; Wed, 2 Mar 2022 12:22:55 -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 5DDF8B821E6 for ; Wed, 2 Mar 2022 20:22:54 +0000 (UTC) Received: by smtp.kernel.org (Postfix) with ESMTPSA id C9833C004E1; Wed, 2 Mar 2022 20:22:52 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=linuxfoundation.org; s=korg; t=1646252573; bh=7bgPLeBtkLeGd8gJ+7qdnLVYUIka++VhaBDdQviQPBs=; h=Date:From:To:Cc:Subject:References:In-Reply-To:From; b=dsoclcJZIIrMPfpUOZn+wjyXElL+QXbU8vCvegWeNIFu9zbpgQJ9b2FD7nWbxyKAD 0v+FwRCcFrKehULZ6PQ7UUhpTy5vmEtmiY3dkbyAJXrKlzp/S0+B58EdMVzsrUi9cQ zrV5hxJhcavOlkPYJDGDNhzfvsClwgdacvTuZSts= Date: Wed, 2 Mar 2022 21:22:49 +0100 From: Greg KH To: Phi Nguyen Cc: linux-kernel@vger.kernel.org Subject: Re: [PATCH RESEND] samples/kobject: Use sysfs_emit instead of snprintf Message-ID: References: <20220302120759.380932-1-phind.uet@gmail.com> <32164620-9ba6-db62-bc61-95c7f255d087@gmail.com> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <32164620-9ba6-db62-bc61-95c7f255d087@gmail.com> X-Spam-Status: No, score=-2.4 required=5.0 tests=BAYES_00,DKIMWL_WL_HIGH, DKIM_SIGNED,DKIM_VALID,DKIM_VALID_AU,HEADER_FROM_DIFFERENT_DOMAINS, MAILING_LIST_MULTI,RDNS_NONE,SPF_HELO_NONE,T_SCC_BODY_TEXT_LINE autolearn=unavailable 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 Thu, Mar 03, 2022 at 02:11:36AM +0800, Phi Nguyen wrote: > On 3/2/2022 10:51 PM, Greg KH wrote: > > On Wed, Mar 02, 2022 at 08:07:59PM +0800, Nguyen Dinh Phi wrote: > > > Convert sprintf() to sysfs_emit() in order to check buffer overrun on sysfs > > > outputs. > > > > There are no such buffer overruns on these sysfs files. > > > I don't want to duplicate the title so I use the description of sysfs_emit() > as the patch message. I have just realized that the title is also incorrect, > sorry for my mistake. > > > > > > > Signed-off-by: Nguyen Dinh Phi > > > --- > > > samples/kobject/kobject-example.c | 4 ++-- > > > samples/kobject/kset-example.c | 4 ++-- > > > 2 files changed, 4 insertions(+), 4 deletions(-) > > > > Why is this a resend? What happened to the first version? > > > > thanks, > > > > greg k-h > > There is no response for the first version. Actually, there is no Maintainer > is associated with these two files (in MAINTAINERS files), hence, my first > patch was only sent to the linux-kernel mailing list. You need to give reviewers a hint as to what is going on when you do this, we can't read minds :) thanks, greg k-h