Re: [PATCH v3 06/10] mm/kasan: Use pXd_leaf() in shadow_mapped()

2024-03-05 Thread Mike Rapoport
On Tue, Mar 05, 2024 at 12:37:46PM +0800, pet...@redhat.com wrote: > From: Peter Xu > > There is an old trick in shadow_mapped() to use pXd_bad() to detect huge > pages. After commit 93fab1b22ef7 ("mm: add generic p?d_leaf() macros") we > have a global API for huge mappings. Use that to replace

[PATCH v3 06/10] mm/kasan: Use pXd_leaf() in shadow_mapped()

2024-03-04 Thread peterx
From: Peter Xu There is an old trick in shadow_mapped() to use pXd_bad() to detect huge pages. After commit 93fab1b22ef7 ("mm: add generic p?d_leaf() macros") we have a global API for huge mappings. Use that to replace the trick. Cc: Andrey Ryabinin Cc: Alexander Potapenko Cc: Andrey Konoval