diff options
| author | Fredric Cover <fredric.cover.lkernel@gmail.com> | 2026-07-24 15:01:45 -0700 |
|---|---|---|
| committer | Paulo Alcantara <pc@manguebit.org> | 2026-08-19 12:30:19 -0300 |
| commit | bf86c08123c6ab8c61cc0be1dad7540db93738ff (patch) | |
| tree | 651338516d482e45ae214a9c6e1b8e140fa244cb /include/linux/debugobjects.h | |
| parent | b8e5dc4f95e5484159b343903f302eb6d783f2e6 (diff) | |
smb: client: harden DFS cache against invalid target hints
Currently, get_tgt_name() returns ERR_PTR(-ENOENT) when ce->tgthint is
NULL, and dfs_cache_noreq_update_tgthint() assumes ce->tgthint is always
valid.
In preparation for clearing ce->tgthint in free_tgts(), harden callers
of get_tgt_name() against ERR_PTR results and harden
dfs_cache_noreq_update_tgthint() against NULL pointer dereferences.
Cc: stable@vger.kernel.org
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
