Files
twx-linux/drivers
Vitaly Kuznetsov da57b1f7e7 xen-netfront: avoid crashing on resume after a failure in talk_to_netback()
commit d86b5672b1 upstream.

Unavoidable crashes in netfront_resume() and netback_changed() after a
previous fail in talk_to_netback() (e.g. when we fail to read MAC from
xenstore) were discovered. The failure path in talk_to_netback() does
unregister/free for netdev but we don't reset drvdata and we try accessing
it after resume.

Fix the bug by removing the whole xen device completely with
device_unregister(), this guarantees we won't have any calls into netfront
after a failure.

Signed-off-by: Vitaly Kuznetsov <vkuznets@redhat.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
Cc: Ben Hutchings <ben.hutchings@codethink.co.uk>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
2017-12-09 18:42:44 +01:00
..
…
…
…
2017-11-24 08:32:25 +01:00
…
…
2017-12-09 18:42:43 +01:00
…
…
…
…
2017-10-18 09:20:41 +02:00
…
2017-10-12 11:27:33 +02:00
2017-11-08 10:06:29 +01:00
…
…
2017-11-30 08:37:27 +00:00
…
…
…
…
…
…
…
…
…
…
…
…
…
…
…
…
…
…
…
…
…
…
…
…