[lkml]   [2001]   [Mar]   [8]   [last100]   RSS Feed
Views: [wrap][no wrap]   [headers]  [forward] 
Messages in this thread
SubjectRe: 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.

David S. Miller

To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to
More majordomo info at
Please read the FAQ at

 \ /
  Last update: 2005-03-22 13:22    [W:0.059 / U:2.852 seconds]
©2003-2020 Jasper Spaans|hosted at Digital Ocean and TransIP|Read the blog|Advertise on this site