Re: [PATCH] ksmbd: fix use-after-free in __ksmbd_close_fd() lock cleanup

Namjae Jeon
2026-04-04T14:28:26Z

On Sat, Apr 4, 2026 at 2:03 PM ChenXiaoSong
<chenxiaosong@chenxiaosong.com> 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!