Return-Path: Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1750894AbWESOOV (ORCPT ); Fri, 19 May 2006 10:14:21 -0400 Received: (majordomo@vger.kernel.org) by vger.kernel.org id S1751332AbWESOOV (ORCPT ); Fri, 19 May 2006 10:14:21 -0400 Received: from mx1.redhat.com ([66.187.233.31]:35043 "EHLO mx1.redhat.com") by vger.kernel.org with ESMTP id S1750894AbWESOOU (ORCPT ); Fri, 19 May 2006 10:14:20 -0400 Message-ID: <446DD282.5080402@redhat.com> Date: Fri, 19 May 2006 10:13:22 -0400 From: Satoshi Oshima User-Agent: Thunderbird 1.5.0.2 (X11/20060501) MIME-Version: 1.0 To: Andi Kleen , Richard J Moore CC: Andrew Morton , "Keshavamurthy, Anil S" , "Hideo AOKI@redhat" , Masami Hiramatsu , Jim Keniston , linux-kernel@vger.kernel.org, Ananth N Mavinakayanahalli , Prasanna S Panchamukhi , sugita , systemtap@sources.redhat.com, systemtap-owner@sourceware.org Subject: Re: [PATCH] kprobes: bad manipulation of 2 byte opcode on x86_64 References: <200605191333.11930.ak@suse.de> In-Reply-To: <200605191333.11930.ak@suse.de> Content-Type: text/plain; charset=ISO-2022-JP Content-Transfer-Encoding: 7bit Sender: linux-kernel-owner@vger.kernel.org X-Mailing-List: linux-kernel@vger.kernel.org Content-Length: 778 Lines: 20 Andi Kleen wrote: > On Friday 19 May 2006 10:29, Richard J Moore wrote: >> Is there any possibility of a inducing a page fault when checking the >> second byte? > > AFAIK instr is in the out of line instruction copy. Kernel would need > to be pretty broken already if that page faulted. There is no possibility that copied instruction step over a page boundary. Instruction slot is in the page that is allocated in get_insn_slot(). And get_insn_slot() acquires the page by module_alloc(), and divides into slots. Satoshi Oshima - 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/