Comment 18 for bug 1313450

Revision history for this message
triden (triden) wrote :

A simple test case was created by Steven Noonan to trigger the issue:

Copy the attached code into a file named bugtest.c
Compile with "gcc -o bugtest bugtest.c"
Run ./bugtest (does not have to be run as root)
If you see no output, bug does not exist; if it does you will immediately see something similar to:

triden@tweety:~$ ./bugtest
[ 837.276658] BUG: Bad page map in process bugtest pte:8000000000000965 pmd:3c076067
[ 837.276666] page:ffffea0000000000 count:-31 mapcount:-31 mapping: (null) index:0x0
[ 837.276669] page flags: 0x10(dirty)
[ 837.276672] page dumped because: bad pte
[ 837.276674] addr:00007f0639a5e000 vm_flags:08100071 anon_vma:ffff88003b1fdbc0 mapping: (null) index:7f0639a5e
[ 837.276821] BUG: Bad rss-counter state mm:ffff88003d2e8700 idx:0 val:-1
[ 837.276825] BUG: Bad rss-counter state mm:ffff88003d2e8700 idx:1 val:1

Reference: https://lkml.org/lkml/2014/1/21/544