summaryrefslogtreecommitdiff
path: root/include/linux/debugobjects.h
diff options
context:
space:
mode:
authorFredric Cover <fredric.cover.lkernel@gmail.com>2026-07-24 15:01:46 -0700
committerPaulo Alcantara <pc@manguebit.org>2026-08-19 12:30:22 -0300
commitb1b741cf8e7ce1b91d937e23decd3d3358748700 (patch)
treef7f828c87527ad74b4dd35313f6f1b90f1fda209 /include/linux/debugobjects.h
parentbf86c08123c6ab8c61cc0be1dad7540db93738ff (diff)
smb: client: clear ce->tgthint in free_tgts()
When free_tgts() frees all structures in ce->tlist, ce->tgthint is left pointing to one of the freed cache_dfs_tgt structures. If ce->tgthint is not reset before it is used later, it results in a use-after-free. Set ce->tgthint to NULL in free_tgts() after the elements are freed to reflect that no elements remain. Fixes: 54be1f6c1c37 ("cifs: Add DFS cache routines") Cc: stable@vger.kernel.org # depends on: smb: client: harden DFS cache against invalid target hints Signed-off-by: Fredric Cover <fredric.cover.lkernel@gmail.com> Reviewed-by: ChenXiaoSong <chenxiaosong@kylinos.cn> Signed-off-by: Namjae Jeon <linkinjeon@kernel.org> Signed-off-by: Paulo Alcantara <pc@manguebit.org>
Diffstat (limited to 'include/linux/debugobjects.h')
0 files changed, 0 insertions, 0 deletions