lkml.org 
[lkml]   [2017]   [Nov]   [3]   [last100]   RSS Feed
Views: [wrap][no wrap]   [headers]  [forward] 
 
Messages in this thread
/
Date
From
SubjectRe: [PATCH v1 1/1] mm: buddy page accessed before initialized
On Thu 02-11-17 12:10:39, Pavel Tatashin wrote:
> > >
> > > Yes, but as I said, unfortunately memset(1) with CONFIG_VM_DEBUG does not
> > > catch this case. So, when CONFIG_VM_DEBUG is enabled kexec reboots without
> > > issues.
> >
> > Can we make the init pattern to catch this?
>
> Unfortunately, that is not easy: memset() gives us only one byte to play
> with, and if we use something else that will make CONFIG_VM_DEBUG
> unacceptably slow.

Why cannot we do something similar to the optimized struct page
initialization and write 8B at the time and fill up the size unaligned
chunk in 1B?
--
Michal Hocko
SUSE Labs

\
 
 \ /
  Last update: 2017-11-03 10:00    [W:0.062 / U:0.500 seconds]
©2003-2020 Jasper Spaans|hosted at Digital Ocean and TransIP|Read the blog|Advertise on this site