Re: [PATCH 0/3] fix null-ptr-deref in nbd_open()

From: Josef Bacik
Date: Mon Nov 20 2023 - 12:08:10 EST


On Fri, Nov 17, 2023 at 12:23:13AM +0800, linan666@xxxxxxxxxxxxxxx wrote:
> From: Li Nan <linan122@xxxxxxxxxx>
>
> Li Nan (3):
> nbd: fold nbd config initialization into nbd_alloc_config()
> nbd: factor out a helper to get nbd_config without holding
> 'config_lock'
> nbd: fix null-ptr-dereference while accessing 'nbd->config'
>
> drivers/block/nbd.c | 82 +++++++++++++++++++++++++++++----------------
> 1 file changed, 53 insertions(+), 29 deletions(-)
>
> --
> 2.39.2
>

Reviewed-by: Josef Bacik <josef@xxxxxxxxxxxxxx>

Thanks,

Josef