| To: | Atsushi Nemoto <anemo@mba.ocn.ne.jp> |
|---|---|
| Subject: | Re: [MIPS] Fix aliasing bug in copy_user_highpage, take 2. |
| From: | Ralf Baechle <ralf@linux-mips.org> |
| Date: | Tue, 16 Oct 2007 17:16:18 +0100 |
| Cc: | linux-mips@linux-mips.org |
| In-reply-to: | <20071017.011349.03977690.anemo@mba.ocn.ne.jp> |
| Original-recipient: | rfc822;linux-mips@linux-mips.org |
| References: | <20071015182811.GA20157@linux-mips.org> <20071017.002916.07645039.anemo@mba.ocn.ne.jp> <20071016153806.GA23986@linux-mips.org> <20071017.011349.03977690.anemo@mba.ocn.ne.jp> |
| Sender: | linux-mips-bounce@linux-mips.org |
| User-agent: | Mutt/1.5.14 (2007-02-12) |
On Wed, Oct 17, 2007 at 01:13:49AM +0900, Atsushi Nemoto wrote: > On Tue, 16 Oct 2007 16:38:06 +0100, Ralf Baechle <ralf@linux-mips.org> wrote: > > > Hmm, setting SetPageDcacheDirty() will not make sure the modified data > > > flushed before reading via the kernel mapping. The flush_dcache_page() > > > should be used for such case, shouldn't it? > > > > You're right - and the intent is to _not_ flush the page. But we're > > bringing it into the cache, so we better flush it before it will be mapped > > to userspace. We want to delay the flush operation. > > I see, but I'm afraid of unnecessary flushing might hide another > bug... > > Setting SetPageDcacheDirty() for non-modified page looks a bit > overkill for me. For example, in copy_user_highpage() we do not flush > the source page if the page was not mapped to userspace. kunmap_atomic() is supposed to deal with that. It doesn't quite on the MIPS implementation so the kernel refuses highmem with aliasing caches. Ralf |
| <Prev in Thread] | Current Thread | [Next in Thread> |
|---|---|---|
| ||
| Previous by Date: | Re: [MIPS] Fix aliasing bug in copy_user_highpage, take 2., Atsushi Nemoto |
|---|---|
| Next by Date: | Re: plat_timer_setup, mips_timer_ack, etc., Ralf Baechle |
| Previous by Thread: | Re: [MIPS] Fix aliasing bug in copy_user_highpage, take 2., Atsushi Nemoto |
| Next by Thread: | [PATCH] tgafb: Fix an out-of-range shift in mono imageblit, Maciej W. Rozycki |
| Indexes: | [Date] [Thread] [Top] [All Lists] |