Re: next-20170620 BUG in do_page_fault / do_huge_pmd_wp_page

From: Kirill A. Shutemov
Date: Tue Jun 27 2017 - 12:42:04 EST


On Tue, Jun 27, 2017 at 09:13:31AM +0200, Vlastimil Babka wrote:
> +CC Kirill, those 512 numbers smell like THP related.
>
> On 06/23/2017 07:48 AM, Naresh Kamboju wrote:
> > Hi Valdis,
> >
> > On 23 June 2017 at 08:56, <valdis.kletnieks@xxxxxx> wrote:
> >> Saw this at boot of next-20170620. Not sure how I managed to hit 4 BUG in a row...
> >>
> >> Looked in 'git log -- mm/' but not seeing anything blatantly obvious.
> >>
> >> This ringing any bells? I'm not in a position to recreate or bisect this until
> >> the weekend.
> >>
> >> [ 315.409076] BUG: Bad rss-counter state mm:ffff8a223deb4640 idx:0 val:-512
> >> [ 315.412889] BUG: Bad rss-counter state mm:ffff8a223deb4640 idx:1 val:512
> >> [ 315.416694] BUG: non-zero nr_ptes on freeing mm: 1
> >> [ 315.436098] BUG: Bad page state in process gdm pfn:3e8400
> >> [ 315.439802] page:ffffe8af0fa10000 count:-1 mapcount:0 mapping: (null) index:0x1

Could you check this helps:

http://lkml.kernel.org/r/20170627163734.6js4jkwkwlz6xwir@xxxxxxxxxxxxxxxxxx

--
Kirill A. Shutemov