Displaying 20 results from an estimated 28 matches for "splice_write".
2013 Jul 22
4
[PATCH V3 0/2] [BUGFIX] virtio/console: Fix two bugs of splice_write
Hi,
This patch set fixes two bugs of splice_write in the virtio-console driver.
[BUG1] Although pipe->nrbufs is empty, the driver tries to do splice_write.
=> This induces oops in sg_init_table().
[BUG2] No lock for competition of splice_write.
=> This induces oops in splice_from_pipe_feed() by bug of any user
ap...
2013 Jul 22
4
[PATCH V3 0/2] [BUGFIX] virtio/console: Fix two bugs of splice_write
Hi,
This patch set fixes two bugs of splice_write in the virtio-console driver.
[BUG1] Although pipe->nrbufs is empty, the driver tries to do splice_write.
=> This induces oops in sg_init_table().
[BUG2] No lock for competition of splice_write.
=> This induces oops in splice_from_pipe_feed() by bug of any user
ap...
2013 Jul 19
6
[PATCH V2 0/2] [BUGFIX] virtio/console: Fix two bugs of splice_write
Hi,
This patch set fixes two bugs of splice_write in the virtio-console driver.
[BUG1] Although pipe->nrbufs is empty, the driver tries to do splice_write.
=> This induces oops in sg_init_table().
[BUG2] No lock for competition of splice_write.
=> This induces oops in splice_from_pipe_feed() by bug of any user
ap...
2013 Jul 19
6
[PATCH V2 0/2] [BUGFIX] virtio/console: Fix two bugs of splice_write
Hi,
This patch set fixes two bugs of splice_write in the virtio-console driver.
[BUG1] Although pipe->nrbufs is empty, the driver tries to do splice_write.
=> This induces oops in sg_init_table().
[BUG2] No lock for competition of splice_write.
=> This induces oops in splice_from_pipe_feed() by bug of any user
ap...
2013 Jul 19
0
[PATCH V2 0/2] [BUGFIX] virtio/console: Fix two bugs of splice_write
On (Fri) 19 Jul 2013 [18:19:51], Yoshihiro YUNOMAE wrote:
> Hi,
>
> This patch set fixes two bugs of splice_write in the virtio-console driver.
>
> [BUG1] Although pipe->nrbufs is empty, the driver tries to do splice_write.
> => This induces oops in sg_init_table().
>
> [BUG2] No lock for competition of splice_write.
> => This induces oops in splice_from_pipe_feed() b...
2013 Jul 22
0
[PATCH V3 0/2] [BUGFIX] virtio/console: Fix two bugs of splice_write
On (Mon) 22 Jul 2013 [13:00:43], Yoshihiro YUNOMAE wrote:
> Hi,
>
> This patch set fixes two bugs of splice_write in the virtio-console driver.
>
> [BUG1] Although pipe->nrbufs is empty, the driver tries to do splice_write.
> => This induces oops in sg_init_table().
>
> [BUG2] No lock for competition of splice_write.
> => This induces oops in splice_from_pipe_feed() b...
2013 Jul 19
0
[PATCH V2 2/2] [BUGFIX] virtio/console: Add pipe_lock/unlock for splice_write
Add pipe_lock/unlock for splice_write to avoid oops by following competition:
(1) An application gets fds of a trace buffer, virtio-serial, pipe.
(2) The application does fork()
(3) The processes execute splice_read(trace buffer) and
splice_write(virtio-serial) via same pipe.
<parent> <child>...
2013 Jul 19
0
[PATCH V2 1/2] [BUGFIX] virtio/console: Quit from splice_write if pipe->nrbufs is 0
Quit from splice_write if pipe->nrbufs is 0 for avoiding oops in virtio-serial.
When an application was doing splice from a kernel buffer to virtio-serial on
a guest, the application received signal(SIGINT). This situation will normally
happen, but the kernel executed a kernel panic by oops as follows:
BUG: unable...
2013 Jul 19
0
[PATCH 0/2] [BUGFIX] virtio/console: Fix two bugs of splice_write
On (Fri) 19 Jul 2013 [08:19:27], Yoshihiro YUNOMAE wrote:
> Hi,
>
> This patch set fixes two bugs of splice_write in the virtio-console driver.
Oh, and please CC virtualization at lists.linux-foundation.org for any
virtio-related patches.
Thanks,
Amit
2013 Jul 19
0
[PATCH 0/2] [BUGFIX] virtio/console: Fix two bugs of splice_write
On (Fri) 19 Jul 2013 [08:19:27], Yoshihiro YUNOMAE wrote:
> Hi,
>
> This patch set fixes two bugs of splice_write in the virtio-console driver.
Oh, and please CC virtualization at lists.linux-foundation.org for any
virtio-related patches.
Thanks,
Amit
2014 Dec 01
2
Fix for RHEL BZ#771868 in CentOS?
Hey,
We are blocked on a bug fixed by RHEL in
https://rhn.redhat.com/errata/RHBA-2012-0362.html. Specifically, the splice
code in sendfile() incorrectly updating the offset position on the write
side, Red Hat BZ#771868.
I have not been able to figure out if this bugfix is included in any CentOS
releases. If you are better at reading release notes than me, could you
please help me out and let me
2023 May 20
3
[PATCH v21 22/30] ocfs2: Provide a splice-read stub
...ked() */
static loff_t ocfs2_file_llseek(struct file *file, loff_t offset, int whence)
{
@@ -2744,7 +2781,7 @@ const struct file_operations ocfs2_fops = {
#endif
.lock = ocfs2_lock,
.flock = ocfs2_flock,
- .splice_read = generic_file_splice_read,
+ .splice_read = ocfs2_file_splice_read,
.splice_write = iter_file_splice_write,
.fallocate = ocfs2_fallocate,
.remap_file_range = ocfs2_remap_file_range,
diff --git a/fs/ocfs2/ocfs2_trace.h b/fs/ocfs2/ocfs2_trace.h
index dc4bce1649c1..b8c3d1702076 100644
--- a/fs/ocfs2/ocfs2_trace.h
+++ b/fs/ocfs2/ocfs2_trace.h
@@ -1319,6 +1319,8 @@ DEFINE_OCFS2_F...
2012 Jul 24
13
[RFC PATCH 0/6] virtio-trace: Support virtio-trace
...mi Hiramatsu (5):
virtio/console: Allocate scatterlist according to the current pipe size
ftrace: Allow stealing pages from pipe buffer
virtio/console: Wait until the port is ready on splice
virtio/console: Add a failback for unstealable pipe buffer
virtio/console: Add splice_write support
Yoshihiro YUNOMAE (1):
tools: Add guest trace agent as a user tool
drivers/char/virtio_console.c | 198 ++++++++++++++++++--
kernel/trace/trace.c | 8 -
tools/virtio/virtio-trace/Makefile | 14 +
tools/virtio/virtio-trace/README...
2012 Jul 24
13
[RFC PATCH 0/6] virtio-trace: Support virtio-trace
...mi Hiramatsu (5):
virtio/console: Allocate scatterlist according to the current pipe size
ftrace: Allow stealing pages from pipe buffer
virtio/console: Wait until the port is ready on splice
virtio/console: Add a failback for unstealable pipe buffer
virtio/console: Add splice_write support
Yoshihiro YUNOMAE (1):
tools: Add guest trace agent as a user tool
drivers/char/virtio_console.c | 198 ++++++++++++++++++--
kernel/trace/trace.c | 8 -
tools/virtio/virtio-trace/Makefile | 14 +
tools/virtio/virtio-trace/README...
2014 Dec 01
0
Fix for RHEL BZ#771868 in CentOS?
...> Thanks,
> Jeff
Hi Jeff,
It looks like it's fixed in the current kernel.
Hint: try grepping the package changelog:
$ rpm -q --changelog kernel-2.6.32-504.el6.x86_64 | grep sendfile
- [fs] Fix sendfile write-side file position (Steven Whitehouse) [770023]
- [fs] sendfile(): check f_op.splice_write() rather than f_op.sendpage()
(Lukas Czerner) [689426]
Those entries seem to match the bug description in the errata you list
so I'd guess it's fixed.
2014 Nov 13
1
[PATCH 52/56] drivers/char/virtio: support compiling out splice
...pe);
return ret;
}
+#endif /* #ifdef CONFIG_SYSCALL_SPLICE */
static unsigned int port_fops_poll(struct file *filp, poll_table *wait)
{
@@ -1109,7 +1111,7 @@ static const struct file_operations port_fops = {
.open = port_fops_open,
.read = port_fops_read,
.write = port_fops_write,
- .splice_write = port_fops_splice_write,
+ SPLICE_WRITE_INIT(port_fops_splice_write)
.poll = port_fops_poll,
.release = port_fops_release,
.fasync = port_fops_fasync,
--
1.9.1
2014 Nov 13
1
[PATCH 52/56] drivers/char/virtio: support compiling out splice
...pe);
return ret;
}
+#endif /* #ifdef CONFIG_SYSCALL_SPLICE */
static unsigned int port_fops_poll(struct file *filp, poll_table *wait)
{
@@ -1109,7 +1111,7 @@ static const struct file_operations port_fops = {
.open = port_fops_open,
.read = port_fops_read,
.write = port_fops_write,
- .splice_write = port_fops_splice_write,
+ SPLICE_WRITE_INIT(port_fops_splice_write)
.poll = port_fops_poll,
.release = port_fops_release,
.fasync = port_fops_fasync,
--
1.9.1
2023 May 19
0
[PATCH v20 19/32] ocfs2: Provide a splice-read stub
...ked() */
static loff_t ocfs2_file_llseek(struct file *file, loff_t offset, int whence)
{
@@ -2744,7 +2784,7 @@ const struct file_operations ocfs2_fops = {
#endif
.lock = ocfs2_lock,
.flock = ocfs2_flock,
- .splice_read = generic_file_splice_read,
+ .splice_read = ocfs2_file_splice_read,
.splice_write = iter_file_splice_write,
.fallocate = ocfs2_fallocate,
.remap_file_range = ocfs2_remap_file_range,
diff --git a/fs/ocfs2/ocfs2_trace.h b/fs/ocfs2/ocfs2_trace.h
index dc4bce1649c1..b8c3d1702076 100644
--- a/fs/ocfs2/ocfs2_trace.h
+++ b/fs/ocfs2/ocfs2_trace.h
@@ -1319,6 +1319,8 @@ DEFINE_OCFS2_F...
2012 Aug 09
8
[PATCH V2 0/6] virtio-trace: Support virtio-trace
...mi Hiramatsu (5):
virtio/console: Allocate scatterlist according to the current pipe size
ftrace: Allow stealing pages from pipe buffer
virtio/console: Wait until the port is ready on splice
virtio/console: Add a failback for unstealable pipe buffer
virtio/console: Add splice_write support
Yoshihiro YUNOMAE (1):
tools: Add guest trace agent as a user tool
drivers/char/virtio_console.c | 198 ++++++++++++++++++--
kernel/trace/trace.c | 8 -
tools/virtio/virtio-trace/Makefile | 14 +
tools/virtio/virtio-trace/README...
2012 Aug 09
8
[PATCH V2 0/6] virtio-trace: Support virtio-trace
...mi Hiramatsu (5):
virtio/console: Allocate scatterlist according to the current pipe size
ftrace: Allow stealing pages from pipe buffer
virtio/console: Wait until the port is ready on splice
virtio/console: Add a failback for unstealable pipe buffer
virtio/console: Add splice_write support
Yoshihiro YUNOMAE (1):
tools: Add guest trace agent as a user tool
drivers/char/virtio_console.c | 198 ++++++++++++++++++--
kernel/trace/trace.c | 8 -
tools/virtio/virtio-trace/Makefile | 14 +
tools/virtio/virtio-trace/README...