mbox series

[0/2] fix races between nbd setup and module removal

Message ID 20210903024803.1056229-1-houtao1@huawei.com (mailing list archive)
Headers show
Series fix races between nbd setup and module removal | expand

Message

Hou Tao Sept. 3, 2021, 2:48 a.m. UTC
Hi,

The patch series aims to fix the races between nbd setup and module
removal which will lead to oops. Patch #1 serializes the concurrently
calling of nbd_genl_connect() and nbd_cleanup(), and patch #2 fixes
race between nbd_alloc_config() and nbd_cleanup().

Any comments are welcome.

Regards,
Tao

Hou Tao (2):
  nbd: call genl_unregister_family() first in nbd_cleanup()
  nbd: fix race between nbd_alloc_config() and module removal

 drivers/block/nbd.c | 32 ++++++++++++++++++++++----------
 1 file changed, 22 insertions(+), 10 deletions(-)