Amit Shah
d7a62cd033
virtio: console: Don't access vqs if device was unplugged
...
If a virtio-console device gets unplugged while a port is open, a
subsequent close() call on the port accesses vqs to free up buffers.
This can lead to a crash.
The buffers are already freed up as a result of the call to
unplug_ports() from virtcons_remove(). The fix is to simply not access
vq information if port->portdev is NULL.
Reported-by: juzhang <juzhang@redhat.com>
CC: stable@kernel.org
Signed-off-by: Amit Shah <amit.shah@redhat.com>
Signed-off-by: Rusty Russell <rusty@rustcorp.com.au>
Signed-off-by: Linus Torvalds <torvalds@linux-foundation.org>
2011-03-06 10:44:13 -08:00
..
2011-02-24 12:19:43 +10:00
2011-01-13 10:25:58 -08:00
2010-12-10 15:20:15 -08:00
2011-02-10 18:00:21 -08:00
2010-10-27 18:03:15 -07:00
2011-02-19 12:22:36 +01:00
2010-10-27 18:03:15 -07:00
2011-03-01 13:23:27 -08:00
2010-10-22 10:52:56 -07:00
2010-11-17 08:59:32 -08:00
2010-10-24 13:41:39 -07:00
2010-10-27 18:03:14 -07:00
2011-01-26 10:50:06 +10:00
2010-10-15 15:53:27 +02:00
2010-11-17 08:59:32 -08:00
2010-10-15 15:53:27 +02:00
2010-10-22 10:20:05 -07:00
2010-10-22 10:52:56 -07:00
2010-10-22 10:52:56 -07:00
2010-10-22 10:52:56 -07:00
2010-10-22 10:52:56 -07:00
2009-12-16 07:19:59 -08:00
2010-08-10 13:47:40 -07:00
2010-10-05 15:01:04 +02:00
2010-03-30 22:02:32 +09:00
2010-10-22 10:52:56 -07:00
2010-08-21 00:34:45 -07:00
2010-11-17 08:59:32 -08:00
2010-11-15 13:27:06 -08:00
2010-08-10 13:47:40 -07:00
2010-11-17 08:59:32 -08:00
2011-01-20 17:02:14 -08:00
2010-10-22 10:52:56 -07:00
2011-02-03 14:43:12 -08:00
2010-10-05 15:01:04 +02:00
2010-10-25 21:18:21 -04:00
2010-10-15 15:53:27 +02:00
2010-10-27 18:03:14 -07:00
2010-03-30 22:02:32 +09:00
2010-10-15 15:53:27 +02:00
2010-10-27 18:03:15 -07:00
2010-11-09 14:49:38 -08:00
2010-10-05 15:01:04 +02:00
2010-10-15 15:53:27 +02:00
2010-10-05 15:01:04 +02:00
2010-10-15 15:53:27 +02:00
2010-10-27 18:03:14 -07:00
2010-05-27 22:05:02 -04:00
2011-01-13 08:03:23 -08:00
2010-12-17 15:18:05 +01:00
2010-11-13 11:55:17 +01:00
2010-08-10 13:47:40 -07:00
2009-01-02 10:19:39 -08:00
2010-12-10 15:20:14 -08:00
2009-01-02 10:19:39 -08:00
2010-08-06 09:25:50 -06:00
2009-02-22 09:23:02 -08:00
2010-10-15 15:53:27 +02:00
2009-10-11 11:20:58 -07:00
2010-11-17 08:59:32 -08:00
2010-03-30 22:02:32 +09:00
2010-10-22 10:52:56 -07:00
2011-01-10 08:51:44 -08:00
2010-12-24 15:59:07 +01:00
2011-01-07 14:39:20 -08:00
2010-11-17 08:59:32 -08:00
2010-11-17 08:59:32 -08:00
2010-10-27 18:03:14 -07:00
2010-10-22 10:20:05 -07:00
2010-10-22 10:20:05 -07:00
2010-10-15 15:53:27 +02:00
2010-10-22 10:52:56 -07:00
2010-10-22 10:52:56 -07:00
2010-10-22 10:20:02 -07:00
2010-11-17 08:59:32 -08:00
2010-10-22 10:52:56 -07:00
2011-03-06 10:44:13 -08:00
2010-03-30 22:02:32 +09:00