From: Andrey Ryabinin <aryabinin@virtuozzo.com>
To: Vlastimil Babka <vbabka@suse.cz>,
Dmitry Vyukov <dvyukov@google.com>,
Andrew Morton <akpm@linux-foundation.org>
Cc: "Kirill A. Shutemov" <kirill.shutemov@linux.intel.com>,
Michal Hocko <mhocko@suse.com>, Ingo Molnar <mingo@kernel.org>,
Joonsoo Kim <iamjoonsoo.kim@lge.com>,
"linux-mm@kvack.org" <linux-mm@kvack.org>,
LKML <linux-kernel@vger.kernel.org>,
syzkaller <syzkaller@googlegroups.com>
Subject: Re: mm: BUG in pgtable_pmd_page_dtor
Date: Fri, 25 Nov 2016 14:41:43 +0300 [thread overview]
Message-ID: <ab7996b4-baf6-cf8f-6dba-006735e0587c@virtuozzo.com> (raw)
In-Reply-To: <296bdd6b-5c9e-0fbc-8aa1-4e95d0aff031@suse.cz>
On 11/25/2016 11:42 AM, Vlastimil Babka wrote:
> pr_emerg("page:%p count:%d mapcount:%d mapping:%p index:%#lx",
> page, page_ref_count(page), mapcount,
> @@ -59,6 +61,21 @@ void __dump_page(struct page *page, const char *reason)
>
> pr_emerg("flags: %#lx(%pGp)\n", page->flags, &page->flags);
>
> + pr_alert("raw struct page data:");
> + for (i = 0; i < sizeof(struct page) / sizeof(unsigned long); i++) {
> + unsigned long *word_ptr;
> +
> + word_ptr = ((unsigned long *) page) + i;
> +
> + if ((i % words_per_line) == 0) {
> + pr_cont("\n");
> + pr_alert(" %016lx", *word_ptr);
> + } else {
> + pr_cont(" %016lx", *word_ptr);
> + }
> + }
> + pr_cont("\n");
> +
Single call to print_hex_dump() could replace this loop.
> if (reason)
> pr_alert("page dumped because: %s\n", reason);
>
>
next prev parent reply other threads:[~2016-11-25 11:41 UTC|newest]
Thread overview: 12+ messages / expand[flat|nested] mbox.gz Atom feed top
2016-11-18 10:19 mm: BUG in pgtable_pmd_page_dtor Dmitry Vyukov
2016-11-18 10:52 ` Kirill A. Shutemov
2016-11-24 13:49 ` Vlastimil Babka
2016-11-24 14:23 ` Dmitry Vyukov
2016-11-25 8:42 ` Vlastimil Babka
2016-11-25 10:48 ` Kirill A. Shutemov
2016-11-25 11:41 ` Andrey Ryabinin [this message]
2016-11-25 12:58 ` Vlastimil Babka
2016-11-25 13:07 ` Kirill A. Shutemov
2016-11-25 14:08 ` Vlastimil Babka
2016-11-25 14:15 ` Kirill A. Shutemov
2016-11-25 16:03 ` Andrey Ryabinin
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=ab7996b4-baf6-cf8f-6dba-006735e0587c@virtuozzo.com \
--to=aryabinin@virtuozzo.com \
--cc=akpm@linux-foundation.org \
--cc=dvyukov@google.com \
--cc=iamjoonsoo.kim@lge.com \
--cc=kirill.shutemov@linux.intel.com \
--cc=linux-kernel@vger.kernel.org \
--cc=linux-mm@kvack.org \
--cc=mhocko@suse.com \
--cc=mingo@kernel.org \
--cc=syzkaller@googlegroups.com \
--cc=vbabka@suse.cz \
/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).