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

2019-11-29 Thread Durrant, Paul
> -Original Message- > From: Jan Beulich > Sent: 29 November 2019 16:01 > To: Durrant, Paul > Cc: xen-devel@lists.xenproject.org; linux-bl...@vger.kernel.org; linux- > ker...@vger.kernel.org; Stefano Stabellini ; Boris > Ostrovsky ; Juergen Gross > Subject: Re: [PATCH v2 1/2]

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

2019-11-29 Thread Jan Beulich
On 29.11.2019 14:43, Paul Durrant wrote: > To prevent a module being removed whilst attached to a frontend, and Why only frontend? > 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

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

2019-11-29 Thread Jürgen Groß
On 29.11.19 14:43, Paul Durrant wrote: To prevent a module being removed whilst attached to a frontend, 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

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

2019-11-29 Thread Paul Durrant
To prevent a module being removed whilst attached to a frontend, 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. NOTE: This