diff options
| author | Lizhi Xu <[email protected]> | 2025-04-28 14:36:26 +0000 |
|---|---|---|
| committer | Jens Axboe <[email protected]> | 2025-05-05 13:18:05 +0000 |
| commit | f5c84eff634ba003326aa034c414e2a9dcb7c6a7 (patch) | |
| tree | 9f808b9e4344dff4bc0dd6fdcd6d4f13d2ac64d3 /drivers/usb/cdns3/cdns3-starfive.c | |
| parent | Merge tag 'nvme-6.15-2025-05-01' of git://git.infradead.org/nvme into block-6.15 (diff) | |
| download | kernel-f5c84eff634ba003326aa034c414e2a9dcb7c6a7.tar.gz kernel-f5c84eff634ba003326aa034c414e2a9dcb7c6a7.zip | |
loop: Add sanity check for read/write_iter
Some file systems do not support read_iter/write_iter, such as selinuxfs
in this issue.
So before calling them, first confirm that the interface is supported and
then call it.
It is releavant in that vfs_iter_read/write have the check, and removal
of their used caused szybot to be able to hit this issue.
Fixes: f2fed441c69b ("loop: stop using vfs_iter__{read,write} for buffered I/O")
Reported-by: [email protected]
Closes: https://syzkaller.appspot.com/bug?extid=6af973a3b8dfd2faefdc
Signed-off-by: Lizhi Xu <[email protected]>
Reviewed-by: Christoph Hellwig <[email protected]>
Link: https://lore.kernel.org/r/[email protected]
Signed-off-by: Jens Axboe <[email protected]>
Diffstat (limited to 'drivers/usb/cdns3/cdns3-starfive.c')
0 files changed, 0 insertions, 0 deletions
