Return-Path: Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1752643AbXBFDx4 (ORCPT ); Mon, 5 Feb 2007 22:53:56 -0500 Received: (majordomo@vger.kernel.org) by vger.kernel.org id S1752672AbXBFDxV (ORCPT ); Mon, 5 Feb 2007 22:53:21 -0500 Received: from smtp-outbound-1.vmware.com ([65.113.40.141]:40361 "EHLO smtp-outbound-1.vmware.com" rhost-flags-OK-FAIL-OK-FAIL) by vger.kernel.org with ESMTP id S1752664AbXBFDw4 (ORCPT ); Mon, 5 Feb 2007 22:52:56 -0500 Date: Mon, 5 Feb 2007 19:52:55 -0800 Message-Id: <200702060352.l163qttg000739@zach-dev.vmware.com> Subject: [PATCH 4/11] Kprobe rpl fix From: Zachary Amsden To: Linux Kernel Mailing List , Andrew Morton , Andi Kleen , Rusty Russell , Jeremy Fitzhardinge , Chris Wright , Zachary Amsden X-OriginalArrivalTime: 06 Feb 2007 03:52:55.0061 (UTC) FILETIME=[48581450:01C749A2] Sender: linux-kernel-owner@vger.kernel.org X-Mailing-List: linux-kernel@vger.kernel.org Content-Length: 932 Lines: 23 Kprobes bugfix for paravirt compatibility - RPL on the CS when inserting BPs must match running kernel. Signed-off-by: Zachary Amsden CC: Eric Biederman diff -r fad1c2108c13 arch/i386/kernel/kprobes.c --- a/arch/i386/kernel/kprobes.c Fri Feb 02 16:22:37 2007 -0800 +++ b/arch/i386/kernel/kprobes.c Fri Feb 02 16:28:48 2007 -0800 @@ -408,7 +408,7 @@ fastcall void *__kprobes trampoline_hand spin_lock_irqsave(&kretprobe_lock, flags); head = kretprobe_inst_table_head(current); /* fixup registers */ - regs->xcs = __KERNEL_CS; + regs->xcs = __KERNEL_CS | get_kernel_rpl(); regs->eip = trampoline_address; regs->orig_eax = 0xffffffff; - 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/