All of lore.kernel.org
 help / color / mirror / Atom feed
* [PATCH V3 0/2] [BUGFIX] virtio/console: Fix two bugs of splice_write
@ 2013-07-22  4:00 Yoshihiro YUNOMAE
  2013-07-22  4:00   ` Yoshihiro YUNOMAE
                   ` (3 more replies)
  0 siblings, 4 replies; 10+ messages in thread
From: Yoshihiro YUNOMAE @ 2013-07-22  4:00 UTC (permalink / raw)
  To: Amit Shah, Greg Kroah-Hartman, linux-kernel
  Cc: Arnd Bergmann, stable, virtualization, Hidehiro Kawai,
	yrl.pp-manager.tt, Masami Hiramatsu

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
          application.

These reports are written in each patch.

Changes in V2:
- Fix a locking problem for error

Changes in V3:
- Add Reviewed-by lines and stable@ line in sign-off area

Thanks!

---

Yoshihiro YUNOMAE (2):
      [BUGFIX] virtio/console: Quit from splice_write if pipe->nrbufs is 0
      [BUGFIX] virtio/console: Add pipe_lock/unlock for splice_write


 drivers/char/virtio_console.c |   23 ++++++++++++++++++++---
 1 file changed, 20 insertions(+), 3 deletions(-)

-- 
Yoshihiro YUNOMAE
Software Platform Research Dept. Linux Technology Center
Hitachi, Ltd., Yokohama Research Laboratory
E-mail: yoshihiro.yunomae.ez@hitachi.com

^ permalink raw reply	[flat|nested] 10+ messages in thread
* [PATCH V3 0/2] [BUGFIX] virtio/console: Fix two bugs of splice_write
@ 2013-07-22  4:00 Yoshihiro YUNOMAE
  0 siblings, 0 replies; 10+ messages in thread
From: Yoshihiro YUNOMAE @ 2013-07-22  4:00 UTC (permalink / raw)
  To: Amit Shah, Greg Kroah-Hartman, linux-kernel
  Cc: Arnd Bergmann, stable, virtualization, Masami Hiramatsu,
	yrl.pp-manager.tt, Hidehiro Kawai

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
          application.

These reports are written in each patch.

Changes in V2:
- Fix a locking problem for error

Changes in V3:
- Add Reviewed-by lines and stable@ line in sign-off area

Thanks!

---

Yoshihiro YUNOMAE (2):
      [BUGFIX] virtio/console: Quit from splice_write if pipe->nrbufs is 0
      [BUGFIX] virtio/console: Add pipe_lock/unlock for splice_write


 drivers/char/virtio_console.c |   23 ++++++++++++++++++++---
 1 file changed, 20 insertions(+), 3 deletions(-)

-- 
Yoshihiro YUNOMAE
Software Platform Research Dept. Linux Technology Center
Hitachi, Ltd., Yokohama Research Laboratory
E-mail: yoshihiro.yunomae.ez@hitachi.com

^ permalink raw reply	[flat|nested] 10+ messages in thread

end of thread, other threads:[~2013-07-23  4:25 UTC | newest]

Thread overview: 10+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2013-07-22  4:00 [PATCH V3 0/2] [BUGFIX] virtio/console: Fix two bugs of splice_write Yoshihiro YUNOMAE
2013-07-22  4:00 ` [PATCH V3 1/2] [BUGFIX] virtio/console: Quit from splice_write if pipe->nrbufs is 0 Yoshihiro YUNOMAE
2013-07-22  4:00   ` Yoshihiro YUNOMAE
2013-07-22  4:00 ` [PATCH V3 2/2] [BUGFIX] virtio/console: Add pipe_lock/unlock for splice_write Yoshihiro YUNOMAE
2013-07-22  4:00   ` Yoshihiro YUNOMAE
2013-07-22  6:33 ` [PATCH V3 0/2] [BUGFIX] virtio/console: Fix two bugs of splice_write Amit Shah
2013-07-23  1:51   ` Rusty Russell
2013-07-23  1:51   ` Rusty Russell
2013-07-22  6:33 ` Amit Shah
  -- strict thread matches above, loose matches on Subject: below --
2013-07-22  4:00 Yoshihiro YUNOMAE

This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.