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

Muhammad Usama Anjum <[email protected]> Thu, 30 Jul 2026 14:11:22 +0100
Newsgroups gmane.comp.emulators.xen.devel,gmane.linux.kernel,gmane.comp.freedesktop.xorg.drivers.intel,gmane.comp.video.dri.devel,gmane.linux.ports.parisc,gmane.linux.kernel.mm,gmane.linux.file-systems,gmane.linux.kernel.cross-arch,gmane.linux.kernel.bpf,gmane.linux.kernel.perf.user
Message-ID <[email protected]>
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