[PATCH] mm: arm64: Fix the out-of-bounds issue in contpte_clear_young_dirty_ptes
David Hildenbrand
david at redhat.com
Fri May 24 00:04:47 PDT 2024
On 24.05.24 02:54, Barry Song wrote:
> From: Barry Song <v-songbaohua at oppo.com>
>
> 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.
>
> Fixes: 89e86854fb0a ("mm/arm64: override clear_young_dirty_ptes() batch helper")
> Cc: Lance Yang <ioworker0 at gmail.com>
> Cc: Barry Song <21cnbao at gmail.com>
> Cc: Ryan Roberts <ryan.roberts at arm.com>
> Cc: David Hildenbrand <david at redhat.com>
> Cc: Jeff Xie <xiehuan09 at gmail.com>
> Cc: Kefeng Wang <wangkefeng.wang at huawei.com>
> Cc: Michal Hocko <mhocko at suse.com>
> Cc: Minchan Kim <minchan at kernel.org>
> Cc: Muchun Song <songmuchun at bytedance.com>
> Cc: Peter Xu <peterx at redhat.com>
> Cc: Yang Shi <shy828301 at gmail.com>
> Cc: Yin Fengwei <fengwei.yin at intel.com>
> Cc: Zach O'Keefe <zokeefe at google.com>
> Cc: Catalin Marinas <catalin.marinas at arm.com>
> Cc: Will Deacon <will at kernel.org>
> Signed-off-by: Barry Song <v-songbaohua at oppo.com>
> ---
LGTM
Acked-by: David Hildenbrand <david at redhat.com>
--
Cheers,
David / dhildenb
More information about the linux-arm-kernel
mailing list