Received: by 2002:a05:6a11:4021:0:0:0:0 with SMTP id ky33csp226890pxb; Wed, 15 Sep 2021 00:08:55 -0700 (PDT) X-Google-Smtp-Source: ABdhPJwjg3IeTbcwwYwzGn0cFm/SFs9Wc7M8vEYwPNlKs4vc/F18kLWoLp2oPWnaCuvxDZgGRrg5 X-Received: by 2002:a92:6a02:: with SMTP id f2mr15834514ilc.19.1631689735613; Wed, 15 Sep 2021 00:08:55 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1631689735; cv=none; d=google.com; s=arc-20160816; b=VhY7UC6yMFaWKoMrpdAmOEMxVMSc9BQ2ctTg4RnNWHwT78PALRNbZZwF/f01ji0N9t pAH+UkWq6brBeb+h8+Ty5Yn0HfZs1OMfKLgzcKiRm/iseLD8nU7GSSzPQWllHkeO0H9Z v3jRu/ljkBTiOU/1OgsV4B89eLyys6qKsgH3hGt3eYooAwiNK1dY/KR7NYAHdVYp6DPN /ViN2PHm8az6hmdRca5Fq7oIpAUJhujEFoaUc/nDGK0jk6pPvKIVDHvTJtZUa0/Bpf+f qTkvfASUld6+mfdOi5ZllT0sU1jrrztBUtmZgTAmkWns+lNXqA0yPGKr0nAcDcydJtJI 9vJg== 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=T66V8tm8ezM1ITBpuPIy8ZG7UuYTKwA+j+o1lVSC1Qg=; b=0wQaFc8Md1VD2rUo7WyOTn5ZpRbTgIfMW+u3Eqh/TM7wuMBaNgMSjNFRu2GNxpheJf dCGike74PmL3iGqv1wzdT/H5+R7eImHJaXsnV2g/GeEdQThQw/N2mCzKx2IbHjl+mTdA kay8q6SuZedUGM73Dwd3yHWL0wMeqsUzbmRYx0TvKxWxXVNk3ZzXRSSXO0s+TxSFfpBT ilZKQW07OdONR4Ur5fWYnc+jJ57p4Nk4VBukOCQQYbRs4+ETSvfeao98PHiJYPk3HJWE uutQgO9OlrsnSUxqXUIM3O95CyHGFXvx351kQJL5mXAAv2KPyIY2ypx1boTit5KsR2Nb QuMg== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@linuxfoundation.org header.s=korg header.b=LCojtIhX; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.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 vger.kernel.org (vger.kernel.org. [23.128.96.18]) by mx.google.com with ESMTP id f22si13680124jam.69.2021.09.15.00.08.43; Wed, 15 Sep 2021 00:08:55 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) client-ip=23.128.96.18; Authentication-Results: mx.google.com; dkim=pass header.i=@linuxfoundation.org header.s=korg header.b=LCojtIhX; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.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: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S236563AbhIOHIx (ORCPT + 99 others); Wed, 15 Sep 2021 03:08:53 -0400 Received: from mail.kernel.org ([198.145.29.99]:53864 "EHLO mail.kernel.org" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S231305AbhIOHIw (ORCPT ); Wed, 15 Sep 2021 03:08:52 -0400 Received: by mail.kernel.org (Postfix) with ESMTPSA id B932461178; Wed, 15 Sep 2021 07:07:33 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=linuxfoundation.org; s=korg; t=1631689654; bh=7z7Mazz8BLgGjouZIDVxIflsK7icf1h/qdtmII0eixg=; h=Date:From:To:Cc:Subject:References:In-Reply-To:From; b=LCojtIhXy/qUMIEOJqeqqFKLYrQ/LAg9g3nhSpz1Tb17caxZiQbGMm8Go9sVfrrIC JMmd3mJ2uNiYW6d21z5Jv6GAIEO1AL3Di77DszWHd6j34A0DrMAmfeTM4popRLD5ts PNpzBv0KHsD7ZiVbWSGaP8e4o350E6KO7P2Pt/xo= Date: Wed, 15 Sep 2021 09:07:26 +0200 From: Greg Kroah-Hartman To: Christoph Hellwig Cc: "Rafael J. Wysocki" , Alexander Viro , Jens Axboe , Tejun Heo , linux-block@vger.kernel.org, linux-xfs@vger.kernel.org, linux-fsdevel@vger.kernel.org, linux-kernel@vger.kernel.org Subject: Re: [PATCH 13/13] xfs: convert xfs_sysfs attrs to use ->seq_show Message-ID: References: <20210913054121.616001-1-hch@lst.de> <20210913054121.616001-14-hch@lst.de> <20210914073003.GA31077@lst.de> <20210914153011.GA815@lst.de> <20210915070445.GA17384@lst.de> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <20210915070445.GA17384@lst.de> Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On Wed, Sep 15, 2021 at 09:04:45AM +0200, Christoph Hellwig wrote: > On Tue, Sep 14, 2021 at 05:41:37PM +0200, Greg Kroah-Hartman wrote: > > They huge majority of sysfs attributes are "trivial". So for maybe at > > least 95% of the users, if not more, using sysfs_emit() is just fine as > > all you "should" be doing is emitting a single value. > > It is just fine if no one does the obvious mistakes that an interface > with a char * pointer leads to. And 5% of all attributes is still a huge > attack surface. It is probably less, I just pulled that number out of the air. With the other work we are doing to make sure we have documentation for all sysfs attributes in the kernel, we will soon know the real number. thanks, greg k-h