From: Matthew Wilcox <willy@infradead.org>
To: Qian Cai <cai@lca.pw>
Cc: David Airlie <airlied@linux.ie>,
bugzilla-daemon@bugzilla.kernel.org,
dri-devel@lists.freedesktop.org, linux-mm@kvack.org,
Huang Rui <ray.huang@amd.com>,
Andrew Morton <akpm@linux-foundation.org>,
petr@vandrovec.name, Christian Koenig <christian.koenig@amd.com>
Subject: Re: [Bug 204407] New: Bad page state in process Xorg
Date: Fri, 2 Aug 2019 15:59:39 -0700 [thread overview]
Message-ID: <20190802225939.GE5597@bombadil.infradead.org> (raw)
In-Reply-To: <1564780650.11067.50.camel@lca.pw>
On Fri, Aug 02, 2019 at 05:17:30PM -0400, Qian Cai wrote:
> On Fri, 2019-08-02 at 13:33 -0700, Matthew Wilcox wrote:
> > It occurs to me that when a page is freed, we could record some useful bits
> > of information in the page from the stack trace to help debug double-free
> > situations. Even just stashing __builtin_return_address in page->mapping
> > would be helpful, I think.
>
> Sounds like need to enable "page_owner", so it will do __dump_page_owner().
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.
_______________________________________________
dri-devel mailing list
dri-devel@lists.freedesktop.org
https://lists.freedesktop.org/mailman/listinfo/dri-devel
next prev parent reply other threads:[~2019-08-02 22:59 UTC|newest]
Thread overview: 10+ messages / expand[flat|nested] mbox.gz Atom feed top
[not found] <bug-204407-27@https.bugzilla.kernel.org/>
2019-08-02 20:23 ` [Bug 204407] New: Bad page state in process Xorg Andrew Morton
2019-08-02 20:33 ` Matthew Wilcox
2019-08-02 21:17 ` Qian Cai
2019-08-02 22:59 ` Matthew Wilcox [this message]
[not found] ` <CA+i2_Dc-VrOUk8EVThwAE5HZ1-zFqONuW8Gojv+16UPsAqoM1Q@mail.gmail.com>
2019-08-15 14:32 ` Vlastimil Babka
2019-08-15 19:13 ` Petr Vandrovec
2019-08-16 12:47 ` Vlastimil Babka
2019-08-16 12:52 ` Joerg Roedel
2019-08-17 0:20 ` Petr Vandrovec
2019-08-19 14:44 ` Vlastimil Babka
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=20190802225939.GE5597@bombadil.infradead.org \
--to=willy@infradead.org \
--cc=airlied@linux.ie \
--cc=akpm@linux-foundation.org \
--cc=bugzilla-daemon@bugzilla.kernel.org \
--cc=cai@lca.pw \
--cc=christian.koenig@amd.com \
--cc=dri-devel@lists.freedesktop.org \
--cc=linux-mm@kvack.org \
--cc=petr@vandrovec.name \
--cc=ray.huang@amd.com \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).