From: Andrew Morton <akpm@linux-foundation.org>
To: linux-fbdev@vger.kernel.org
Subject: Re: fbmem: VM_IO set, but not propagated.
Date: Mon, 26 Jul 2010 22:38:12 +0000 [thread overview]
Message-ID: <20100726153812.3dbcd2bd.akpm@linux-foundation.org> (raw)
In-Reply-To: <20100722213128.GA27012@phenom.dumpdata.com>
On Thu, 22 Jul 2010 17:31:28 -0400
Konrad Rzeszutek Wilk <konrad.wilk@oracle.com> wrote:
> This bug was found when Linux kernel was running under Xen.
> In that scenario, any page that has VM_IO flag to it, means that it
> MUST be a MMIO/VRAM backend memory , _not_ System RAM. That is what the
> fbmem.c does: sets VM_IO, ioremaps the region - everything is peachy.
>
> Well, not exactly. The vm_page_prot does not get the relevant
> PTE flags set (_PAGE_IOMAP) which under Xen is a death-kneel to pages
> that are referencing real physical devices but don't have that flag set.
>
> Here is the patch:
>
> Author: Daniel De Graaf <dgdegra@tycho.nsa.gov>
> Date: Wed Jul 21 16:52:46 2010 -0400
>
> fb: propagate VM_IO to VMA.
>
> When we setup up the VMA flags for the mmap flag and we end up using
> the fallback mmap functionality we set the vma->vm_flags |= VM_IO.
> However we neglect to propagate the flag to the vma->vm_page_prot.
>
> This patch fixes this.
>
> Tested-by: Eamon Walsh <ewalsh@tycho.nsa.gov>
> Signed-off-by: Konrad Rzeszutek Wilk <konrad.wilk@oracle.com>
>
Confused. We have From:Konrad and Author:Daniel and no signoff from Daniel.
I've committed the patch assuming that Daniel was the author, but
didn't sign off the patch. Your signoff is sufficient for merging
purposes.
But maybe I was wrong.
I'm also assuming that we can merge this into 2.6.36 and not backport
it into -stable. But maybe I'm wrong about that too! Talk to me.
next prev parent reply other threads:[~2010-07-26 22:38 UTC|newest]
Thread overview: 4+ messages / expand[flat|nested] mbox.gz Atom feed top
2010-07-22 21:31 fbmem: VM_IO set, but not propagated Konrad Rzeszutek Wilk
2010-07-26 22:38 ` Andrew Morton [this message]
2010-07-27 14:42 ` Daniel De Graaf
2010-07-27 14:53 ` Konrad Rzeszutek Wilk
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=20100726153812.3dbcd2bd.akpm@linux-foundation.org \
--to=akpm@linux-foundation.org \
--cc=linux-fbdev@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;
as well as URLs for NNTP newsgroup(s).