Re: [PATCH v6.1] smb: prevent use-after-free due to open_cached_dir error paths
From: Greg KH
Date: Fri Oct 10 2025 - 06:53:11 EST
On Thu, Oct 09, 2025 at 08:00:33PM -0700, Paul Aurich wrote:
> Thanks for proposing this! I think this backport has the problem I was
> concerned with when Cliff Liu proposed a backport in March [1].
>
> The handling of the 'has_lease' field in this patch depends on work done by
> two other patches, and those should be backported before this one:
>
> - 5c86919455c1 ("smb: client: fix use-after-free in
> smb2_query_info_compound()")
> - 7afb86733685 ("smb: Don't leak cfid when reconnect races with
> open_cached_dir")
>
> I have (somewhere...) a backport of all three of these patches three patches
> to linux-6.1.y, but it was a while ago and I never found the time to _test_
> the backports.
Now dropped from the queue, thanks for the review.
greg k-h