Messages in this thread | | | From | "David S. Miller" <> | Date | Thu, 8 Mar 2001 13:08:45 -0800 (PST) | Subject | Re: flush_page_to_ram() question in kernel/ptrace.c |
| |
Manfred Spraul writes: > > memcpy(buf, maddr + (addr & ~PAGE_MASK), len); > > flush_page_to_ram(page); > ^^^^^^^^^^^^^^^^^^^^^^ > Is this flush required? > > The memcpy read from the mapping, it didn't write.
You have to kick it out of the cache so that future reads on the kernel side don't get stale data with caching setups that allow illegal aliases to form.
Later, David S. Miller davem@redhat.com
- To unsubscribe from this list: send the line "unsubscribe linux-kernel" in the body of a message to majordomo@vger.kernel.org More majordomo info at http://vger.kernel.org/majordomo-info.html Please read the FAQ at http://www.tux.org/lkml/
| |