Re: [PATCH] ksmbd: fix use-after-free in __ksmbd_close_fd() lock cleanup
From: Namjae Jeon
Date: Sat Apr 04 2026 - 10:28:31 EST
On Sat, Apr 4, 2026 at 2:03 PM ChenXiaoSong
<chenxiaosong@xxxxxxxxxxxxxxxx> wrote:
>
> Hi Namjae and munan,
>
> In `ksmbd_reopen_durable_fd()`, when -EBADF is returned, should
> `list_del(&smb_lock->clist)` be called?
>
> If my understanding is incorrect, please let me know.
I have updated the patch. Please check it.
https://github.com/smfrench/smb3-kernel/commit/38bf2f4ac44b0848677fd4d539404b8c0de15b98
Thanks for the review!