Re: [Xen-devel] [PATCH v3 1/2] xen/xenbus: reference count registered modules

2019-12-04 Thread Jürgen Groß
On 02.12.19 12:41, Paul Durrant wrote: 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

Re: [Xen-devel] [PATCH v3 1/2] xen/xenbus: reference count registered modules

2019-12-03 Thread Jan Beulich
On 02.12.2019 12:41, Paul Durrant wrote: > 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

[Xen-devel] [PATCH v3 1/2] xen/xenbus: reference count registered modules

2019-12-02 Thread Paul Durrant
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.