Received: by 2002:a05:6a10:9afc:0:0:0:0 with SMTP id t28csp328290pxm; Wed, 2 Mar 2022 16:30:39 -0800 (PST) X-Google-Smtp-Source: ABdhPJzWY1rH9rXyWrjCW8S4+8fYxKKxG3XO1HlUc98IcsrSU6Ilg0etwLmlGS9QKdgzVy2CzdzT X-Received: by 2002:a17:90a:3e0f:b0:1be:db1b:96de with SMTP id j15-20020a17090a3e0f00b001bedb1b96demr2473996pjc.141.1646267439508; Wed, 02 Mar 2022 16:30:39 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1646267439; cv=none; d=google.com; s=arc-20160816; b=qpPxUh2g4A+zdMacNWazHZa02Y2kcL+uxK4QnUbGVgS/uwctLVNWt1GTh+CxBgd/Pt mVGE0lNLV1xKP6IFMxGYid5wlBJuxFOFeqRaF0nhdpvTe1PiMyvlpUZ4eh6E9H21DZCC 5FvZSY5fFzLhv3FCT1YLlBaCS2cyUTyMZqNX6x4uyxrpFwA5axtGSXh/ompdvsUl0742 nisUxj0cbHuimJw1Rtke0B2ZLkDJt0P0+0B/ClRRuUB1iz8mRAIhCWsMQzjNcqDxzejB gf4+o4xeW42JcW8K12yieWvFK2GhxDHGI1choEhUQ27SGdkdGBQ9mvX4yZDrfRowQ1kQ 2TKw== 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=Itg7kojCU9M7jNydPvywNFcN9feHi6kS1E+RTlv74mo=; b=j5sddTtDlimEYJMMs5BPZYNDYAKw2PHrIwp0AdaacPtI4MJfzjqiiUYXjSGI5vceKO FcxpxDPllTO1IsJXCpN4cXanav9v4WxAE/bAr5kDrQZ4Io1vmJlCP1lJ3KV5vm+shNXw tsMXR4/X++iuWPjeB1gG4X3GJ9d3TdRuQH4Dl5Yg1/v+h+JT2uXyhlqnoc5vc1H/EHI3 1JToz+ob42jGxOZ6ZYX8S9RR6uxyK9Ff3D4QKco18I7a4BhngoAKblXE5C4jgYW6fMVs sNSEz0RIxEVkhCS3XQk3JHlZ9S/w7VQrKj/tx315lZVmdOVr7GDLCi1QDlXLdBI0KJD/ MtCw== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@linuxfoundation.org header.s=korg header.b=m+YEZ5Bf; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:18 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. [2620:137:e000::1:18]) by mx.google.com with ESMTPS id y4-20020a655b04000000b0037474629904si519036pgq.659.2022.03.02.16.30.38 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Wed, 02 Mar 2022 16:30:39 -0800 (PST) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:18 as permitted sender) client-ip=2620:137:e000::1:18; Authentication-Results: mx.google.com; dkim=pass header.i=@linuxfoundation.org header.s=korg header.b=m+YEZ5Bf; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:18 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 209D916AA6D; Wed, 2 Mar 2022 15:41:35 -0800 (PST) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S243260AbiCBOwU (ORCPT + 99 others); Wed, 2 Mar 2022 09:52:20 -0500 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:48952 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S243255AbiCBOwT (ORCPT ); Wed, 2 Mar 2022 09:52:19 -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 18AA9C7D5A for ; Wed, 2 Mar 2022 06:51:36 -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 B37C061633 for ; Wed, 2 Mar 2022 14:51:35 +0000 (UTC) Received: by smtp.kernel.org (Postfix) with ESMTPSA id C9965C004E1; Wed, 2 Mar 2022 14:51:34 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=linuxfoundation.org; s=korg; t=1646232695; bh=55OowXDED0T4vPvUE/5AM8e5SF3G5PjA0k0ySt2ITdg=; h=Date:From:To:Cc:Subject:References:In-Reply-To:From; b=m+YEZ5Bfg7TqQzSIBDab8rx+gNq7K9v9aRtf9fYksmhqqKINQYWK705moc1pAiu4X tWhFcZoNX0PGkRozS1ynXICP3uXAOU/Nllueri+G5+qwieI8SOlldjMRqMNeUka5nz B0HrIG0UC5GKpifl98DqtWGAbMztgC5pEL022tOs= Date: Wed, 2 Mar 2022 15:51:32 +0100 From: Greg KH To: Nguyen Dinh Phi 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> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <20220302120759.380932-1-phind.uet@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 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. > > 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