Re: [PATCH 6.6.y v2 2/3] ksmbd: add durable scavenger timer

From: Namjae Jeon

Date: Tue May 26 2026 - 00:32:36 EST


On Tue, May 26, 2026 at 12:08 PM Alva Lan <alvalan9@xxxxxxxxxxx> wrote:
>
>
> On 5/26/2026 10:22 AM, Namjae Jeon wrote:
> > @@ -817,6 +968,7 @@ int ksmbd_reopen_durable_fd(struct ksmbd_work
> > *work, struct ksmbd_file *fp)
> > }
> > up_write(&ci->m_lock);
> > + fp->f_state = FP_NEW;
> > __open_id(&work->sess->file_table, fp, OPEN_ID_TYPE_VOLATILE_ID);
> > You seem to have missed this change above.
> I remove this line for:
> fp->f_state = FP_NEW was moved the beginning of ksmbd_reopen_durable_fd ()
> in upstream commit 235e32320a47 ("ksmbd: fix use-after-free in
> __ksmbd_close_fd() via durable scavenger")
> in v7.1. This upstream commit 235e32320a47 have been backported into
> v6.6 [1] before this patch,
Okay, I would appreciate it if you could also include what Sasha
pointed out in the next version.
Thanks!