mirror of https://lore.kernel.org/lkml/
 help / color / mirror / Atom feed
From: Andrew Morton <akpm@linux-foundation.org>
To: Jiri Slaby <jslaby@suse.cz>
Cc: linux-kernel@vger.kernel.org, jirislaby@gmail.com
Subject: Re: [PATCH -resend 1/1] HPET: unmap unused I/O space
Date: Fri, 3 Sep 2010 13:19:41 -0700	[thread overview]
Message-ID: <20100903131941.06521074.akpm@linux-foundation.org> (raw)
In-Reply-To: <1283502474-15379-1-git-send-email-jslaby@suse.cz>

On Fri,  3 Sep 2010 10:27:54 +0200
Jiri Slaby <jslaby@suse.cz> wrote:

> When the initialization code in hpet founds a memory resource and does
> not found IRQ, it does not unmap the memory resource previously
> mapped.
> 
> There are buggy BIOSes which report resources exactly like this and
> what is worse the memory region bases point to normal RAM. This
> normally would not matter since the space is not touched. But when PAT
> is turned on, ioremap causes the page to be uncached and sets this bit
> in page->flags.
> 
> Then when the page is about to be used by the allocator, it is
> reported as:
> BUG: Bad page state in process md5sum  pfn:3ed00
> page:ffffea0000dbd800 count:0 mapcount:0 mapping:(null) index:0x0
> page flags: 0x20000001000000(uncached)
> Pid: 7956, comm: md5sum Not tainted 2.6.34-12-desktop #1
> Call Trace:
>  [<ffffffff810df851>] bad_page+0xb1/0x100
>  [<ffffffff810dfa45>] prep_new_page+0x1a5/0x1c0
>  [<ffffffff810dfe01>] get_page_from_freelist+0x3a1/0x640
>  [<ffffffff810e01af>] __alloc_pages_nodemask+0x10f/0x6b0

Well damn, good detective work.  I wonder how many of those nasty
random bad-page-state bug reports just got fixed.  I dub thee
September's "Hero of the Linux kernel"!


      reply	other threads:[~2010-09-03 20:19 UTC|newest]

Thread overview: 2+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2010-09-03  8:27 Jiri Slaby
2010-09-03 20:19 ` Andrew Morton [this message]

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=20100903131941.06521074.akpm@linux-foundation.org \
    --to=akpm@linux-foundation.org \
    --cc=jirislaby@gmail.com \
    --cc=jslaby@suse.cz \
    --cc=linux-kernel@vger.kernel.org \
    /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

Powered by JetHome