Re: [PATCH 13/13] xfs: convert xfs_sysfs attrs to use ->seq_show

From
Christoph Hellwig <hch@lst.de>
Date
2021-09-15 07:04:54
Also in
linux-fsdevel, linux-xfs, lkml
Reply to
Greg Kroah-Hartman, 2021-09-14
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.
Thread (37 messages) 37 messages, 7 authors, last reply 2021-09-15
Keyboard shortcuts
hback out one level
jnext message in thread / next series-diff position
kprevious message in thread / previous series-diff position
ldrill in
Escclose help / fold thread tree
?toggle this help