From: ChenXiaoSong <chenxiaosong@chenxiaosong.com>
To: Fredric Cover <fredric.cover.lkernel@gmail.com>, sfrench@samba.org
Cc: pc@manguebit.org, ronniesahlberg@gmail.com,
sprasad@microsoft.com, tom@talpey.com, bharathsm@microsoft.com,
linux-cifs@vger.kernel.org, linux-kernel@vger.kernel.org
Subject: Re: [PATCH v3 0/2] smb: client: fix dangling pointer in DFS target hints
Date: Tue, 4 Aug 2026 08:48:14 +0800 [thread overview]
Message-ID: <2300ce0f-5a23-497f-b481-29f42721554f@chenxiaosong.com> (raw)
In-Reply-To: <20260724220146.1859170-1-fredric.cover.lkernel@gmail.com>
It seems that patch 02 should be applied first.
Looks good to me.
Reviewed-by: ChenXiaoSong <chenxiaosong@kylinos.cn>
On 7/25/26 06:01, Fredric Cover wrote:
> This series addresses a Use-After-Free bug where ce->tgthint was left
> pointing to freed memory after free_tgts() was called.
>
> To fix this, Patch 1 hardens the DFS cache readers against ce->tgthint
> being NULL. Also, Patch 1 hardens callers of get_tgt_name(), which
> returns an error pointer when ce->tgthint is NULL.
>
> Patch 2 clears ce->tgthint in free_tgts(), eliminating the dangling
> pointer.
>
> v2 -> v3:
> - Resent series with proper thread structure and subject headers.
>
> v1 -> v2:
> - Addressed automated review by Sashiko:
> https://sashiko.dev/#/patchset/20260724023539.1596955-1-fredric.cover.lkernel%40gmail.com
> - Split into a 2-patch series to harden readers against NULL and
> ERR_PTR target hints.
>
> Fredric Cover (2):
> smb: client: harden DFS cache against invalid target hints
> smb: client: clear ce->tgthint in free_tgts()
>
> fs/smb/client/dfs_cache.c | 33 ++++++++++++++++++++++++++-------
> 1 file changed, 26 insertions(+), 7 deletions(-)
>
--
ChenXiaoSong <chenxiaosong@chenxiaosong.com>
Chinese Homepage: https://chenxiaosong.com
English Homepage: https://chenxiaosong.com/en
prev parent reply other threads:[~2026-08-04 0:49 UTC|newest]
Thread overview: 11+ messages / expand[flat|nested] mbox.gz Atom feed top
2026-07-24 2:35 [PATCH] smb: client: clear ce->tgthint in free_tgts() Fredric Cover
2026-07-24 21:44 ` [PATCH v2 0/2] smb: client: fix dangling pointer in DFS target hints Fredric Cover
2026-07-24 21:44 ` [PATCH v2 1/2] smb: client: harden DFS cache against invalid " Fredric Cover
2026-07-24 21:44 ` [PATCH v2 2/2] smb: client: clear ce->tgthint in free_tgts() Fredric Cover
2026-08-18 1:16 ` [PATCH v2 0/2] smb: client: fix dangling pointer in DFS target hints Namjae Jeon
2026-08-24 22:59 ` Fredric Cover
2026-07-24 22:01 ` [PATCH v3 " Fredric Cover
2026-07-24 22:01 ` [PATCH v3 1/2] smb: client: harden DFS cache against invalid " Fredric Cover
2026-07-24 22:01 ` [PATCH v3 2/2] smb: client: clear ce->tgthint in free_tgts() Fredric Cover
2026-08-03 14:00 ` [PATCH v3 0/2] smb: client: fix dangling pointer in DFS target hints Fredric Cover
2026-08-04 0:48 ` ChenXiaoSong [this message]
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=2300ce0f-5a23-497f-b481-29f42721554f@chenxiaosong.com \
--to=chenxiaosong@chenxiaosong.com \
--cc=bharathsm@microsoft.com \
--cc=fredric.cover.lkernel@gmail.com \
--cc=linux-cifs@vger.kernel.org \
--cc=linux-kernel@vger.kernel.org \
--cc=pc@manguebit.org \
--cc=ronniesahlberg@gmail.com \
--cc=sfrench@samba.org \
--cc=sprasad@microsoft.com \
--cc=tom@talpey.com \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox
all inboxes | Powered by JetHome®