mbox series

[v2,0/2] nbd: fix use-after-freed and double lock bugs

Message ID 20201103030758.317781-1-xiubli@redhat.com (mailing list archive)
Headers show
Series nbd: fix use-after-freed and double lock bugs | expand

Message

Xiubo Li Nov. 3, 2020, 3:07 a.m. UTC
From: Xiubo Li <xiubli@redhat.com>

Changed in V2:
- fixed possible double lock issue in recv_work().
- adding comments instead to explain why there won't have double lock
issue.

Xiubo Li (2):
  nbd: fix use-after-freed crash for nbd->recv_workq
  nbd: add comments about double lock for config_lock confusion

 drivers/block/nbd.c | 36 +++++++++++++++++++++++++++++++-----
 1 file changed, 31 insertions(+), 5 deletions(-)