aboutsummaryrefslogtreecommitdiffstats
path: root/drivers/gpu/drm/amd/amdgpu/amdgpu_gem.c
diff options
context:
space:
mode:
authorBarry Song <[email protected]>2024-05-24 00:54:44 +0000
committerAndrew Morton <[email protected]>2024-06-06 02:19:24 +0000
commit6434e69814b159608a23135ca2be36024f402717 (patch)
tree5c796f3537b4226742247c016c9ff18a26abafc3 /drivers/gpu/drm/amd/amdgpu/amdgpu_gem.c
parentmm: huge_mm: fix undefined reference to `mthp_stats' for CONFIG_SYSFS=n (diff)
downloadkernel-6434e69814b159608a23135ca2be36024f402717.tar.gz
kernel-6434e69814b159608a23135ca2be36024f402717.zip
mm: arm64: fix the out-of-bounds issue in contpte_clear_young_dirty_ptes
We are passing a huge nr to __clear_young_dirty_ptes() right now. While we should pass the number of pages, we are actually passing CONT_PTE_SIZE. This is causing lots of crashes of MADV_FREE, panic oops could vary everytime. Link: https://lkml.kernel.org/r/[email protected] Fixes: 89e86854fb0a ("mm/arm64: override clear_young_dirty_ptes() batch helper") Signed-off-by: Barry Song <[email protected]> Reviewed-by: Baolin Wang <[email protected]> Acked-by: Lance Yang <[email protected]> Acked-by: David Hildenbrand <[email protected]> Acked-by: Chris Li <[email protected]> Cc: Barry Song <[email protected]> Cc: Ryan Roberts <[email protected]> Cc: Jeff Xie <[email protected]> Cc: Kefeng Wang <[email protected]> Cc: Michal Hocko <[email protected]> Cc: Minchan Kim <[email protected]> Cc: Muchun Song <[email protected]> Cc: Peter Xu <[email protected]> Cc: Yang Shi <[email protected]> Cc: Yin Fengwei <[email protected]> Cc: Zach O'Keefe <[email protected]> Cc: Catalin Marinas <[email protected]> Cc: Will Deacon <[email protected]> Signed-off-by: Andrew Morton <[email protected]>
Diffstat (limited to 'drivers/gpu/drm/amd/amdgpu/amdgpu_gem.c')
0 files changed, 0 insertions, 0 deletions