Re: [PATCH] gpiolib: cdev: add fdinfo output for line request file descriptors

From: Andy Shevchenko
Date: Tue Sep 20 2022 - 13:47:49 EST


On Tue, Sep 20, 2022 at 08:29:29PM +0300, Andy Shevchenko wrote:
> On Tue, Sep 20, 2022 at 08:19:25PM +0300, Andy Shevchenko wrote:
> > On Tue, Sep 20, 2022 at 03:54:35PM +0200, Bartosz Golaszewski wrote:

...

> > Also don't forget that sizes over PAGE_SIZE in sysfs sometimes problematic and
> > racy.(the commit 888be6067b97 ("ACPI: sysfs: Fix a buffer overrun problem with
> > description_show()") for the reference).
>
> This is not the commit I wanted to point to... But suddenly can't find easily
> the one I remembered happened in the kernel.

Found the one:
00ee22c28915 ("PM / wakeup: Use seq_open() to show wakeup stats")

--
With Best Regards,
Andy Shevchenko