virtualization.lists.linux-foundation.org archive mirror
 help / color / mirror / Atom feed
* [PATCH v2 00/11] virtio: console: fixes for port unplug
@ 2013-07-19 11:21 Amit Shah
  2013-07-19 11:21 ` [PATCH v2 01/11] virtio: console: fix race with port unplug and open/close Amit Shah
                   ` (11 more replies)
  0 siblings, 12 replies; 13+ messages in thread
From: Amit Shah @ 2013-07-19 11:21 UTC (permalink / raw)
  To: Virtualization List; +Cc: Amit Shah

Hello,

This series fixes a few bugs and races with port unplug and the
various file operations: read(), write(), close() and poll().

There still might be more races lurking, but testing this series looks
good to at least solve the easily-triggerable ones.  I've run the
virtio-serial testsuite and a few open/close/unplug tests, and haven't
seen any badness.

I've marked these patches for stable@ as well.  I went over the list
twice to check if really each one should go to stable, and to me it
looks like all are stable candidates.

v2
 * add patch 11: Jason found a use-after-free in port unplug
 * patch 7 introduced a regression where the wake_up_interruptible was
   done before guest_connected and host_connected were set to false

Please review and apply,

Amit Shah (11):
  virtio: console: fix race with port unplug and open/close
  virtio: console: fix race in port_fops_open() and port unplug
  virtio: console: clean up port data immediately at time of unplug
  virtio: console: return -ENODEV on all read operations after unplug
  virtio: console: update private_data in struct file only on successful
    open
  virtio: console: fix race in port_fops_poll() and port unplug
  virtio: console: fix raising SIGIO after port unplug
  virtio: console: add locks around buffer removal in port unplug path
  virtio: console: add locking in port unplug path
  virtio: console: fix locking around send_sigio_to_port()
  virtio: console: prevent use-after-free of port name in port unplug

 drivers/char/virtio_console.c | 70 +++++++++++++++++++++++++++----------------
 1 file changed, 45 insertions(+), 25 deletions(-)

-- 
1.8.1.4

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

end of thread, other threads:[~2013-07-22  6:30 UTC | newest]

Thread overview: 13+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2013-07-19 11:21 [PATCH v2 00/11] virtio: console: fixes for port unplug Amit Shah
2013-07-19 11:21 ` [PATCH v2 01/11] virtio: console: fix race with port unplug and open/close Amit Shah
2013-07-19 11:21 ` [PATCH v2 02/11] virtio: console: fix race in port_fops_open() and port unplug Amit Shah
2013-07-19 11:21 ` [PATCH v2 03/11] virtio: console: clean up port data immediately at time of unplug Amit Shah
2013-07-19 11:21 ` [PATCH v2 04/11] virtio: console: return -ENODEV on all read operations after unplug Amit Shah
2013-07-19 11:21 ` [PATCH v2 05/11] virtio: console: update private_data in struct file only on successful open Amit Shah
2013-07-19 11:21 ` [PATCH v2 06/11] virtio: console: fix race in port_fops_poll() and port unplug Amit Shah
2013-07-19 11:22 ` [PATCH v2 07/11] virtio: console: fix raising SIGIO after " Amit Shah
2013-07-19 11:22 ` [PATCH v2 08/11] virtio: console: add locks around buffer removal in port unplug path Amit Shah
2013-07-19 11:22 ` [PATCH v2 09/11] virtio: console: add locking " Amit Shah
2013-07-19 11:22 ` [PATCH v2 10/11] virtio: console: fix locking around send_sigio_to_port() Amit Shah
2013-07-19 11:22 ` [PATCH v2 11/11] virtio: console: prevent use-after-free of port name in port unplug Amit Shah
2013-07-22  6:30 ` [PATCH v2 00/11] virtio: console: fixes for " Jason Wang

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).