[Bug 204407] New: Bad page state in process Xorg

Vlastimil Babka vbabka at suse.cz
Thu Aug 15 14:32:23 UTC 2019


On 8/3/19 1:29 AM, Petr Vandrovec wrote:
> On Fri, Aug 2, 2019, 3:59 PM Matthew Wilcox <willy at infradead.org
> <mailto:willy at infradead.org>> wrote:
> 
>     That doesn't help because we call reset_page_owner() in the free
>     page path.
> 
>     We could turn on tracing because we call trace_mm_page_free() in this
>     path.  That requires the reporter to be able to reproduce the problem,
>     and it's not clear to me whether this is a "happened once" or "every
>     time I do this, it happens" problem.
> 
> 
> It happened on 3 of the boots with that kernel.  4th time box either
> spontaneously rebooted when X started, or watchdog restarted box shortly
> after starting X server.
> 
> So I believe I should be able to reproduce it with additional patches or
> extra flags enabled.

Does the issue still happen with rc4? Could you apply the 3 attached
patches (work in progress), configure-enable CONFIG_DEBUG_PAGEALLOC and
CONFIG_PAGE_OWNER and boot kernel with debug_pagealloc=on page_owner=on
parameters? That should print stacktraces of allocation and first
freeing (assuming this is a double free).

Vlastimil

-------------- next part --------------
A non-text attachment was scrubbed...
Name: 0001-mm-page_owner-record-page-owner-for-each-subpage.patch
Type: text/x-patch
Size: 3079 bytes
Desc: not available
URL: <https://lists.freedesktop.org/archives/dri-devel/attachments/20190815/59cc2e56/attachment-0003.bin>
-------------- next part --------------
A non-text attachment was scrubbed...
Name: 0002-mm-page_owner-keep-owner-info-when-freeing-the-page.patch
Type: text/x-patch
Size: 5532 bytes
Desc: not available
URL: <https://lists.freedesktop.org/archives/dri-devel/attachments/20190815/59cc2e56/attachment-0004.bin>
-------------- next part --------------
A non-text attachment was scrubbed...
Name: 0003-mm-page_owner-debug_pagealloc-save-freeing-stack-tra.patch
Type: text/x-patch
Size: 2872 bytes
Desc: not available
URL: <https://lists.freedesktop.org/archives/dri-devel/attachments/20190815/59cc2e56/attachment-0005.bin>


More information about the dri-devel mailing list