From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from mail190.messagelabs.com (mail190.messagelabs.com [216.82.249.51]) by kanga.kvack.org (Postfix) with ESMTP id C492F900086 for ; Mon, 18 Apr 2011 12:22:28 -0400 (EDT) Subject: Re: [PATCH v3 2.6.39-rc1-tip 9/26] 9: uprobes: mmap and fork hooks. From: Peter Zijlstra In-Reply-To: <20110401143413.15455.75831.sendpatchset@localhost6.localdomain6> References: <20110401143223.15455.19844.sendpatchset@localhost6.localdomain6> <20110401143413.15455.75831.sendpatchset@localhost6.localdomain6> Content-Type: text/plain; charset="UTF-8" Content-Transfer-Encoding: quoted-printable Date: Mon, 18 Apr 2011 18:21:57 +0200 Message-ID: <1303143717.32491.872.camel@twins> Mime-Version: 1.0 Sender: owner-linux-mm@kvack.org List-ID: To: Srikar Dronamraju Cc: Ingo Molnar , Steven Rostedt , Linux-mm , Arnaldo Carvalho de Melo , Linus Torvalds , Jonathan Corbet , Christoph Hellwig , Masami Hiramatsu , Thomas Gleixner , Ananth N Mavinakayanahalli , Oleg Nesterov , LKML , SystemTap , Jim Keniston , Roland McGrath , Andi Kleen , Andrew Morton On Fri, 2011-04-01 at 20:04 +0530, Srikar Dronamraju wrote: > + if (vma) { > + /* > + * We get here from uprobe_mmap() -- the case where we > + * are trying to copy an instruction from a page that's > + * not yet in page cache. > + * > + * Read page in before copy. > + */ > + struct file *filp =3D vma->vm_file; > + > + if (!filp) > + return -EINVAL; > + page_cache_sync_readahead(mapping, &filp->f_ra, filp, idx= , 1); > + } > + page =3D grab_cache_page(mapping, idx);=20 So I don't see why that isn't so for the normal install_uprobe() <- register_uprobe() path. -- 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/ . Fight unfair telecom internet charges in Canada: sign http://stopthemeter.ca/ Don't email: email@kvack.org