lkml.org 
[lkml]   [2021]   [Mar]   [30]   [last100]   RSS Feed
Views: [wrap][no wrap]   [headers]  [forward] 
 
Messages in this thread
/
From
Date
SubjectRe: exec error: BUG: Bad rss-counter
On Mon, Mar 29, 2021 at 9:56 PM Zhou Yanjie <zhouyanjie@wanyeetech.com> wrote:
>
> On 2021/3/29 上午10:48, Ilya Lipnitskiy wrote:
> >
> > Try:
> > diff --git a/mm/memory.c b/mm/memory.c
> > index c8e357627318..1fd753245369 100644
> > --- a/mm/memory.c
> > +++ b/mm/memory.c
> > @@ -166,7 +166,7 @@ static int __init init_zero_pfn(void)
> > zero_pfn = page_to_pfn(ZERO_PAGE(0));
> > return 0;
> > }
> > -core_initcall(init_zero_pfn);
> > +early_initcall(init_zero_pfn);
>
> It works, thanks!

Looks good to me - init_zero_pfn() can be called early, because it
depends on paging_init() will should have happened long before any
initcalls in setup_arch().

Ilya, mind sending a signed-off version with a nice commit message,
and I'll apply it.

Linus

\
 
 \ /
  Last update: 2021-03-30 18:13    [W:0.047 / U:0.848 seconds]
©2003-2020 Jasper Spaans|hosted at Digital Ocean and TransIP|Read the blog|Advertise on this site