Skip to contentSkip to conversation

mm/kasan: zero_p4d_populate() problem?

DISCUSSION Joonsoo Kim 2 participants 2 messages May 12, 2017 Memory management

lore
Share & tools
lore
#0 lore raw

Hello, Kirill.

I found that zero_p4d_populate() in mm/kasan/kasan_init.c of next-20170511 doesn't get the benefit of the kasan_zero_pud. Do we need to fix it by adding "pud_populate(&init_mm, pud, lm_alias(kasan_zero_pud));" when alignment requirement is met?

Thanks.

--
To unsubscribe, send a message with 'unsubscribe linux-mm' in the body to [email protected]. For more info on Linux MM,
see: http://www.linux-mm.org/ .
Don't email: <a href=mailto:"[email protected]"> [email protected] </a>

#1 lore raw
Quoted 7 lines · Joonsoo Kim

Hello, Kirill.

I found that zero_p4d_populate() in mm/kasan/kasan_init.c of next-20170511 doesn't get the benefit of the kasan_zero_pud. Do we need to fix it by adding "pud_populate(&init_mm, pud, lm_alias(kasan_zero_pud));" when alignment requirement is met?

It's not a fix, but optimization. But it makes sense to implement this.

Feel free to send a patch.

Signature · 7 lines
 Kirill A. Shutemov

--
To unsubscribe, send a message with 'unsubscribe linux-mm' in
the body to [email protected].  For more info on Linux MM,
see: http://www.linux-mm.org/ .
Don't email: <a href=mailto:"[email protected]"> [email protected] </a>