Re: restore splice and sendfile support on kernfs

From: Robert Karszniewicz
Date: Thu Jan 21 2021 - 12:43:11 EST


On 1/20/21 9:46 PM, Christoph Hellwig wrote:
> Hi Greg and Tejun,
>
> this fixes a regression in Linux 5.10 that stopped sendfile and splice
> from working on kernfs/sysfs files.
>
> Diffstt:
> file.c | 65 ++++++++++++++++++++++++-----------------------------------------
> 1 file changed, 24 insertions(+), 41 deletions(-)
>

Tested-by: Robert Karszniewicz <r.karszniewicz@xxxxxxxxx>

Confirm that it fixes firmwared for me.

Also, I am 100% sure that the commit that actually breaks firmwared for me is
4d03e3cc5982 ("fs: don't allow kernel reads and writes without iter ops")
which is one commit right before
36e2c7421f02 ("fs: don't allow splice read/write without explicit ops")
. I just verified it again.

Thank you,
Robert