* mm/kasan: zero_p4d_populate() problem?
@ 2017-05-12 5:53 Joonsoo Kim
2017-05-12 11:04 ` Kirill A. Shutemov
0 siblings, 1 reply; 2+ messages in thread
From: Joonsoo Kim @ 2017-05-12 5:53 UTC (permalink / raw)
To: kirill.shutemov; +Cc: Andrey Ryabinin, linux-mm
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 majordomo@kvack.org. For more info on Linux MM,
see: http://www.linux-mm.org/ .
Don't email: <a href=mailto:"dont@kvack.org"> email@kvack.org </a>
^ permalink raw reply [flat|nested] 2+ messages in thread
* Re: mm/kasan: zero_p4d_populate() problem?
2017-05-12 5:53 mm/kasan: zero_p4d_populate() problem? Joonsoo Kim
@ 2017-05-12 11:04 ` Kirill A. Shutemov
0 siblings, 0 replies; 2+ messages in thread
From: Kirill A. Shutemov @ 2017-05-12 11:04 UTC (permalink / raw)
To: Joonsoo Kim; +Cc: Andrey Ryabinin, linux-mm
On Fri, May 12, 2017 at 02:53:22PM +0900, Joonsoo Kim wrote:
> 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.
--
Kirill A. Shutemov
--
To unsubscribe, send a message with 'unsubscribe linux-mm' in
the body to majordomo@kvack.org. For more info on Linux MM,
see: http://www.linux-mm.org/ .
Don't email: <a href=mailto:"dont@kvack.org"> email@kvack.org </a>
^ permalink raw reply [flat|nested] 2+ messages in thread
end of thread, other threads:[~2017-05-12 11:04 UTC | newest]
Thread overview: 2+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2017-05-12 5:53 mm/kasan: zero_p4d_populate() problem? Joonsoo Kim
2017-05-12 11:04 ` Kirill A. Shutemov
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox