aboutsummaryrefslogtreecommitdiffstats
path: root/drivers/gpu/drm/amd/amdgpu/amdgpu_gem.c
diff options
context:
space:
mode:
authorNamjae Jeon <[email protected]>2024-10-26 04:06:15 +0000
committerNamjae Jeon <[email protected]>2024-11-25 08:08:21 +0000
commit02dffe9ab092fc4c8800aee68cb7eafd37a980c4 (patch)
tree2306a3537055b803d235a18465cc42809e574319 /drivers/gpu/drm/amd/amdgpu/amdgpu_gem.c
parentexfat: fix out-of-bounds access of directory entries (diff)
downloadkernel-02dffe9ab092fc4c8800aee68cb7eafd37a980c4.tar.gz
kernel-02dffe9ab092fc4c8800aee68cb7eafd37a980c4.zip
exfat: fix uninit-value in __exfat_get_dentry_set
There is no check if stream size and start_clu are invalid. If start_clu is EOF cluster and stream size is 4096, It will cause uninit value access. because ei->hint_femp.eidx could be 128(if cluster size is 4K) and wrong hint will allocate next cluster. and this cluster will be same with the cluster that is allocated by exfat_extend_valid_size(). The previous patch will check invalid start_clu, but for clarity, initialize hint_femp.eidx to zero. Cc: [email protected] Reported-by: [email protected] Tested-by: [email protected] Reviewed-by: Yuezhang Mo <[email protected]> Signed-off-by: Namjae Jeon <[email protected]>
Diffstat (limited to 'drivers/gpu/drm/amd/amdgpu/amdgpu_gem.c')
0 files changed, 0 insertions, 0 deletions