Re: [PATCH RFC 06/11] mm/kasan: use hw_pte_t for the early shadow PTE table

From: Muhammad Usama Anjum

Date: Thu Jul 30 2026 - 09:21:13 EST


On 30/07/2026 12:26 pm, Alexander Gordeev wrote:
> On Mon, Jul 27, 2026 at 05:46:57PM +0100, Muhammad Usama Anjum wrote:
>> diff --git a/mm/ptdump.c b/mm/ptdump.c
>> index 376880071ca2a..8f19f20be3c44 100644
>> --- a/mm/ptdump.c
>> +++ b/mm/ptdump.c
>> @@ -19,7 +19,7 @@ static inline int note_kasan_page_table(struct mm_walk *walk,
>> {
>> struct ptdump_state *st = walk->private;
>>
>> - st->note_page_pte(st, addr, kasan_early_shadow_pte[0]);
>> + st->note_page_pte(st, addr, ptep_get(kasan_early_shadow_pte));
>>
>> walk->action = ACTION_CONTINUE;
>
> I suppose this chunk could be posted as a follow-up to commit c33c794828f2
> ("mm: ptep_get() conversion") independent of this series.
This hunk has to be changed when the type of kasan_early_shadow_pte is changed
to hw_pte_t as note_page_pte() expects a pte.

--
Thanks,
Usama