aboutsummaryrefslogtreecommitdiffstats
path: root/drivers/gpu/drm/amd/amdgpu/amdgpu_ras.c
diff options
context:
space:
mode:
authorYuezhang Mo <[email protected]>2025-03-17 02:53:10 +0000
committerNamjae Jeon <[email protected]>2025-03-27 12:18:03 +0000
commitb0522303f67255926b946aa66885a0104d1b2980 (patch)
treedc334e9fc1a9b32c9d028b463b517117087bd870 /drivers/gpu/drm/amd/amdgpu/amdgpu_ras.c
parentexfat: fix random stack corruption after get_block (diff)
downloadkernel-b0522303f67255926b946aa66885a0104d1b2980.tar.gz
kernel-b0522303f67255926b946aa66885a0104d1b2980.zip
exfat: fix the infinite loop in exfat_find_last_cluster()
In exfat_find_last_cluster(), the cluster chain is traversed until the EOF cluster. If the cluster chain includes a loop due to file system corruption, the EOF cluster cannot be traversed, resulting in an infinite loop. If the number of clusters indicated by the file size is inconsistent with the cluster chain length, exfat_find_last_cluster() will return an error, so if this inconsistency is found, the traversal can be aborted without traversing to the EOF cluster. Reported-by: [email protected] Closes: https://syzkaller.appspot.com/bug?extid=f7d147e6db52b1e09dba Tested-by: [email protected] Fixes: 31023864e67a ("exfat: add fat entry operations") Signed-off-by: Yuezhang Mo <[email protected]> Signed-off-by: Namjae Jeon <[email protected]>
Diffstat (limited to 'drivers/gpu/drm/amd/amdgpu/amdgpu_ras.c')
0 files changed, 0 insertions, 0 deletions