Re: [PATCH v2 09/11] fuse: file: limit splice_read to virtiofs

2024-01-10 Thread Ahelenia Ziemiańska
On Wed, Jan 10, 2024 at 02:43:04PM +0100, Miklos Szeredi wrote: > On Thu, 21 Dec 2023 at 04:09, Ahelenia Ziemiańska > wrote: > > Potentially-blocking splice_reads are allowed for normal filesystems > > like NFS because they're blessed by root. > > > > FUSE is commo

Re: Avoid unprivileged splice(file->)/(->socket) pipe exclusion

2023-12-25 Thread Ahelenia Ziemiańska
On Tue, Dec 26, 2023 at 12:34:44AM +0300, Askar Safin wrote: > In > https://lore.kernel.org/lkml/CAHk-=wgG_2cmHgZwKjydi7=iimyhyn8aessnbm9xq9ufbau...@mail.gmail.com/ > Linus said: > > I have grown to pretty much hate > > splice() over the years, just because it's been a constant source of > >

[PATCH v2 09/11] fuse: file: limit splice_read to virtiofs

2023-12-20 Thread Ahelenia Ziemiańska
s may be extended to include real FUSE mounts by processes which aren't suid, to match the semantics for normal filesystems. Signed-off-by: Ahelenia Ziemiańska --- fs/fuse/file.c | 17 - fs/fuse/fuse_i.h| 3 +++ fs/fuse/virtio_fs.c | 1 + 3 files changed, 20 insertio

[PATCH v2 00/11] Avoid unprivileged splice(file->)/(->socket) pipe exclusion

2023-12-20 Thread Ahelenia Ziemiańska
/11. 8/11 replaces the file type test in v1 10/11. 9/11 and 10/11 are new in v2. Ahelenia Ziemiańska (11): splice: copy_splice_read: do the I/O with IOCB_NOWAIT af_unix: unix_stream_splice_read: always request MSG_DONTWAIT fuse: fuse_dev_splice_read: use nonblocking I/O net/smc: smc_sp

Re: [PATCH RERESEND 00/11] splice(file<>pipe) I/O on file as-if O_NONBLOCK

2023-12-14 Thread Ahelenia Ziemiańska
On Thu, Dec 14, 2023 at 12:06:57PM -0700, Jens Axboe wrote: > On 12/14/23 11:44 AM, Ahelenia Ziemiańska wrote: > > This does that, effectively making splice(file -> pipe) > > request (and require) O_NONBLOCK on reads fron the file: > > this doesn't affect splicing from reg

[PATCH RERESEND 04/11] tracing: tracing_buffers_splice_read: behave as-if non-blocking I/O

2023-12-14 Thread Ahelenia Ziemiańska
Otherwise we risk sleeping with the pipe locked for indeterminate lengths of time. Link: https://lore.kernel.org/linux-fsdevel/qk6hjuam54khlaikf2ssom6custxf5is2ekkaequf4hvode3ls@zgf7j5j4ubvw/t/#u Signed-off-by: Ahelenia Ziemiańska --- kernel/trace/trace.c | 32

[PATCH RERESEND 00/11] splice(file<>pipe) I/O on file as-if O_NONBLOCK

2023-12-14 Thread Ahelenia Ziemiańska
) { ++ctr; fprintf(stderr, "\r%u", ctr); } else fprintf(stderr, "\r%zu", ret); if(!ret) break; } fprintf(stderr, "\n"); } -- >8 -- Ahelenia Ziemiańska (11): splice: copy_splice_read: do the I/O with IOCB_NOWAIT af_unix: unix_strea

[PATCH RESEND 04/11] tracing: tracing_buffers_splice_read: behave as-if non-blocking I/O

2023-12-12 Thread Ahelenia Ziemiańska
Otherwise we risk sleeping with the pipe locked for indeterminate lengths of time. Link: https://lore.kernel.org/linux-fsdevel/qk6hjuam54khlaikf2ssom6custxf5is2ekkaequf4hvode3ls@zgf7j5j4ubvw/t/#u Signed-off-by: Ahelenia Ziemiańska --- kernel/trace/trace.c | 32

[PATCH RESEND 00/11] splice(file<>pipe) I/O on file as-if O_NONBLOCK

2023-12-12 Thread Ahelenia Ziemiańska
if(ret >= 0 || errno != lasterr) { fprintf(stderr, "\n\t%m" + (lasterr == -1)); lasterr = errno; ctr = 0; } if(ret == -1) { ++ctr; fprintf(stderr, "\r%u", ctr); } else fprintf(stderr, "\r%zu", ret); if(!ret)

[PATCH 04/11] tracing: tracing_buffers_splice_read: behave as-if non-blocking I/O

2023-10-16 Thread Ahelenia Ziemiańska
Otherwise we risk sleeping with the pipe locked for indeterminate lengths of time. Link: https://lore.kernel.org/linux-fsdevel/qk6hjuam54khlaikf2ssom6custxf5is2ekkaequf4hvode3ls@zgf7j5j4ubvw/t/#u Signed-off-by: Ahelenia Ziemiańska --- kernel/trace/trace.c | 32

[PATCH 00/11] splice(file<>pipe) I/O on file as-if O_NONBLOCK

2023-10-16 Thread Ahelenia Ziemiańska
f(ret == -1) { ++ctr; fprintf(stderr, "\r%u", ctr); } else fprintf(stderr, "\r%zu", ret); if(!ret) break; } fprintf(stderr, "\n"); } -- >8 -- Ahelenia Ziemiańska (11): splice: copy_splice_read: do the I/O with IOCB_NOWA

[PATCH v2 4/4] HID: input: work around Win8 stylus-on-touchscreen reporting

2021-03-08 Thread Ahelenia Ziemiańska
-by: Ahelenia Ziemiańska --- Notes: changes in v2: * hidinput_fixup_win8_inrange() became hidinput_is_win8_touching() * BarrelSwitch now anded with TipSwitch drivers/hid/hid-input.c | 48 + 1 file changed, 48 insertions(+) diff --git

[PATCH v2 2/4] HID: multitouch: set Stylus suffix for Stylus-application devices, too

2021-03-08 Thread Ahelenia Ziemiańska
This re-adds the suffix to Win8 stylus-on-touchscreen devices, now that they aren't erroneously marked as MT Signed-off-by: Ahelenia Ziemiańska --- drivers/hid/hid-multitouch.c | 8 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/drivers/hid/hid-multitouch.c b/drivers/hid

[PATCH v2 3/4] HID: input: replace outdated HID numbers+comments with macros

2021-03-08 Thread Ahelenia Ziemiańska
These were untouched since 2.3.99-pre3, and the explanatory comment for HID_DG_TIPPRESSURE is TipPressure in other places Signed-off-by: Ahelenia Ziemiańska --- drivers/hid/hid-input.c | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/drivers/hid/hid-input.c b/drivers

[PATCH v2 1/4] HID: multitouch: require Finger field to mark Win8 reports as MT

2021-03-08 Thread Ahelenia Ziemiańska
the accompanying touchscreen device's collection correctly Signed-off-by: Ahelenia Ziemiańska --- drivers/hid/hid-multitouch.c | 10 +++--- 1 file changed, 7 insertions(+), 3 deletions(-) diff --git a/drivers/hid/hid-multitouch.c b/drivers/hid/hid-multitouch.c index 8429ebe7097e..8580ace596c2 100644

[PATCH 3/4] HID: input: replace outdated HID numbers+comments with macros

2021-02-17 Thread Ahelenia Ziemiańska
These were untouched since 2.3.99-pre3, and the explanatory comment for HID_DG_TIPPRESSURE is TipPressure on other places Signed-off-by: Ahelenia Ziemiańska --- drivers/hid/hid-input.c | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/drivers/hid/hid-input.c b/drivers

[PATCH 4/4] HID: input: work around Win8 stylus-on-touchscreen reporting

2021-02-17 Thread Ahelenia Ziemiańska
With this, these devices now behave as tablets as expected by userspace Signed-off-by: Ahelenia Ziemiańska --- drivers/hid/hid-input.c | 41 + 1 file changed, 41 insertions(+) diff --git a/drivers/hid/hid-input.c b/drivers/hid/hid-input.c index

[PATCH 2/4] HID: multitouch: set Stylus suffix for Stylus-application devices, too

2021-02-17 Thread Ahelenia Ziemiańska
This re-adds the suffix to Win8 stylus-on-touchscreen devices, now that they aren't erroneously marked as MT Signed-off-by: Ahelenia Ziemiańska --- drivers/hid/hid-multitouch.c | 8 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/drivers/hid/hid-multitouch.c b/drivers/hid

[PATCH 1/4] HID: multitouch: require Finger field to mark Win8 reports as MT

2021-02-17 Thread Ahelenia Ziemiańska
the accompanying touchscreen device's collection correctly Signed-off-by: Ahelenia Ziemiańska --- drivers/hid/hid-multitouch.c | 10 +++--- 1 file changed, 7 insertions(+), 3 deletions(-) diff --git a/drivers/hid/hid-multitouch.c b/drivers/hid/hid-multitouch.c index 8429ebe7097e..8580ace596c2 100644