From: Bhupesh SHARMA <bhupesh.sharma@st.com>
To: Scott Jiang <scott.jiang.linux@gmail.com>,
Andrew Morton <akpm@linux-foundation.org>
Cc: Bob Liu <lliubbo@gmail.com>,
"linux-mm@kvack.org" <linux-mm@kvack.org>,
"laurent.pinchart@ideasonboard.com"
<laurent.pinchart@ideasonboard.com>,
"uclinux-dist-devel@blackfin.uclinux.org"
<uclinux-dist-devel@blackfin.uclinux.org>,
"linux-media@vger.kernel.org" <linux-media@vger.kernel.org>,
"dhowells@redhat.com" <dhowells@redhat.com>,
"geert@linux-m68k.org" <geert@linux-m68k.org>,
"gerg@uclinux.org" <gerg@uclinux.org>,
"stable@kernel.org" <stable@kernel.org>,
"gregkh@linuxfoundation.org" <gregkh@linuxfoundation.org>,
Hugh Dickins <hughd@google.com>
Subject: RE: [PATCH] nommu: remap_pfn_range: fix addr parameter check
Date: Fri, 14 Sep 2012 18:15:19 +0800 [thread overview]
Message-ID: <D5ECB3C7A6F99444980976A8C6D896384FB1E6975F@EAPEX1MAIL1.st.com> (raw)
In-Reply-To: <CAHG8p1CJ7YizySrocYvQeCye4_63TkAimsAGU1KC5+Fn0wqF8w@mail.gmail.com>
> -----Original Message-----
> From: Scott Jiang [mailto:scott.jiang.linux@gmail.com]
> Sent: Friday, September 14, 2012 2:53 PM
> To: Andrew Morton
> Cc: Bob Liu; linux-mm@kvack.org; Bhupesh SHARMA;
> laurent.pinchart@ideasonboard.com; uclinux-dist-
> devel@blackfin.uclinux.org; linux-media@vger.kernel.org;
> dhowells@redhat.com; geert@linux-m68k.org; gerg@uclinux.org;
> stable@kernel.org; gregkh@linuxfoundation.org; Hugh Dickins
> Subject: Re: [PATCH] nommu: remap_pfn_range: fix addr parameter check
>
> > Yes, the MMU version of remap_pfn_range() does permit non-page-
> aligned
> > `addr' (at least, if the userspace maaping is a non-COW one). But I
> > suspect that was an implementation accident - it is a nonsensical
> > thing to do, isn't it? The MMU cannot map a bunch of kernel pages
> > onto a non-page-aligned userspace address.
> >
> > So I'm thinking that we should declare ((addr & ~PAGE_MASK) != 0) to
> > be a caller bug, and fix up this regrettably unidentified v4l driver?
>
> I agree. This should be fixed in videobuf.
>
> Hi sharma, what's your kernel version? It seems videobuf2 already fixed this
> bug in 3.5.
Hi Scott,
I was using 3.3 linux kernel. I will again check if videobuf2 in 3.5 has already fixed this issue.
Regards,
Bhupesh
--
To unsubscribe, send a message with 'unsubscribe linux-mm' in
the body to majordomo@kvack.org. For more info on Linux MM,
see: http://www.linux-mm.org/ .
Don't email: <a href=mailto:"dont@kvack.org"> email@kvack.org </a>
next prev parent reply other threads:[~2012-09-14 10:15 UTC|newest]
Thread overview: 6+ messages / expand[flat|nested] mbox.gz Atom feed top
2012-09-13 2:40 Bob Liu
2012-09-13 19:27 ` Andrew Morton
2012-09-14 9:23 ` Scott Jiang
2012-09-14 10:15 ` Bhupesh SHARMA [this message]
2012-09-14 10:39 ` Bhupesh SHARMA
2012-09-17 6:02 ` Scott Jiang
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=D5ECB3C7A6F99444980976A8C6D896384FB1E6975F@EAPEX1MAIL1.st.com \
--to=bhupesh.sharma@st.com \
--cc=akpm@linux-foundation.org \
--cc=dhowells@redhat.com \
--cc=geert@linux-m68k.org \
--cc=gerg@uclinux.org \
--cc=gregkh@linuxfoundation.org \
--cc=hughd@google.com \
--cc=laurent.pinchart@ideasonboard.com \
--cc=linux-media@vger.kernel.org \
--cc=linux-mm@kvack.org \
--cc=lliubbo@gmail.com \
--cc=scott.jiang.linux@gmail.com \
--cc=stable@kernel.org \
--cc=uclinux-dist-devel@blackfin.uclinux.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