xen-devel.lists.xenproject.org archive mirror
 help / color / mirror / Atom feed
* [PATCH net 0/2] xen-netback: update memory leak fix to avoid BUG
@ 2017-03-02 12:54 Paul Durrant
  2017-03-02 12:54 ` [PATCH net 1/2] xen-netback: keep a local pointer for vif in backend_disconnect() Paul Durrant
                   ` (2 more replies)
  0 siblings, 3 replies; 7+ messages in thread
From: Paul Durrant @ 2017-03-02 12:54 UTC (permalink / raw)
  To: netdev, xen-devel; +Cc: Paul Durrant

Commit 9a6cdf52b85e "xen-netback: fix memory leaks on XenBus disconnect"
added missing code to fix a memory leak by calling vfree() in the
appropriate place.
Unfortunately subsequent commit f16f1df65f1c "xen-netback: protect
resource cleaning on XenBus disconnect" then wrapped this call to vfree()
in a spin lock, leading to a BUG due to incorrect context.

Patch #1 makes the existing code more readable
Patch #2 fixes the problem

Paul Durrant (2):
  xen-netback: keep a local pointer for vif in backend_disconnect()
  xen-netback: don't vfree() queues under spinlock

 drivers/net/xen-netback/xenbus.c | 31 +++++++++++++++++++------------
 1 file changed, 19 insertions(+), 12 deletions(-)

-- 
2.1.4


_______________________________________________
Xen-devel mailing list
Xen-devel@lists.xen.org
https://lists.xen.org/xen-devel

^ permalink raw reply	[flat|nested] 7+ messages in thread

end of thread, other threads:[~2017-03-03 17:36 UTC | newest]

Thread overview: 7+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2017-03-02 12:54 [PATCH net 0/2] xen-netback: update memory leak fix to avoid BUG Paul Durrant
2017-03-02 12:54 ` [PATCH net 1/2] xen-netback: keep a local pointer for vif in backend_disconnect() Paul Durrant
2017-03-02 13:35   ` Wei Liu
2017-03-02 12:54 ` [PATCH net 2/2] xen-netback: don't vfree() queues under spinlock Paul Durrant
2017-03-02 13:23   ` Juergen Gross
2017-03-02 13:35   ` Wei Liu
2017-03-03 17:36 ` [PATCH net 0/2] xen-netback: update memory leak fix to avoid BUG David Miller

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).