2
0
mirror of https://github.com/edk2-porting/linux-next.git synced 2024-12-20 11:13:58 +08:00
linux-next/drivers/xen/xenbus
Paul Durrant 196748a276 xen/xenbus: reference count registered modules
To prevent a PV driver module being removed whilst attached to its other
end, and hence xenbus calling into potentially invalid text, take a
reference on the module before calling the probe() method (dropping it if
unsuccessful) and drop the reference after returning from the remove()
method.

Suggested-by: Jan Beulich <jbeulich@suse.com>
Signed-off-by: Paul Durrant <pdurrant@amazon.com>
Reviewed-by: Jan Beulich <jbeulich@suse.com>
Reviewed-by: Juergen Gross <jgross@suse.com>
Signed-off-by: Juergen Gross <jgross@suse.com>
2019-12-04 11:35:32 +01:00
..
Makefile License cleanup: add SPDX GPL-2.0 license identifier to files with no license 2017-11-02 11:10:55 +01:00
xenbus_client.c xen: drop writing error messages to xenstore 2018-10-26 09:17:16 +02:00
xenbus_comms.c xenbus: track caller request id 2018-02-17 09:40:33 +01:00
xenbus_dev_backend.c License cleanup: add SPDX GPL-2.0 license identifier to files with no license 2017-11-02 11:10:55 +01:00
xenbus_dev_frontend.c xen/xenbus: fix self-deadlock after killing user process 2019-10-02 16:40:11 -04:00
xenbus_probe_backend.c xen: modify xenstore watch event interface 2017-02-09 11:26:49 -05:00
xenbus_probe_frontend.c treewide: Add SPDX license identifier for more missed files 2019-05-21 10:50:45 +02:00
xenbus_probe.c xen/xenbus: reference count registered modules 2019-12-04 11:35:32 +01:00
xenbus_xs.c xenbus: Avoid deadlock during suspend due to open transactions 2019-05-28 17:32:15 -04:00
xenbus.h xenbus: Avoid deadlock during suspend due to open transactions 2019-05-28 17:32:15 -04:00