Return-Path: Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1031334AbWI1Cas (ORCPT ); Wed, 27 Sep 2006 22:30:48 -0400 Received: (majordomo@vger.kernel.org) by vger.kernel.org id S1031335AbWI1Cas (ORCPT ); Wed, 27 Sep 2006 22:30:48 -0400 Received: from mail4.hitachi.co.jp ([133.145.228.5]:13206 "EHLO mail4.hitachi.co.jp") by vger.kernel.org with ESMTP id S1031334AbWI1Car (ORCPT ); Wed, 27 Sep 2006 22:30:47 -0400 Message-ID: <451B33C8.4080107@hitachi.com> Date: Thu, 28 Sep 2006 11:30:32 +0900 From: Masami Hiramatsu Organization: Systems Development Lab., Hitachi, Ltd., Japan User-Agent: Thunderbird 1.5.0.7 (Windows/20060909) MIME-Version: 1.0 To: karim@opersys.com Cc: Richard J Moore , Mathieu Desnoyers , "Frank Ch. Eigler" , Ingo Molnar , Ingo Molnar , linux-kernel , SystemTAP , Satoshi Oshima , "Martin J. Bligh" , Prasanna S Panchamukhi , Tom Zanussi , Michel Dagenais , William Cohen , Alan Cox , Andrew Morton , Christoph Hellwig Subject: Re: Does this work? "dcprobes" an x86-hack simple djprobes-equivalent? References: <45163D3D.4010108@opersys.com> In-Reply-To: <45163D3D.4010108@opersys.com> Content-Type: text/plain; charset=ISO-8859-1 Content-Transfer-Encoding: 7bit Sender: linux-kernel-owner@vger.kernel.org X-Mailing-List: linux-kernel@vger.kernel.org Content-Length: 1228 Lines: 49 Hi Karim, Thank you for new idea. I discussed your proposal deeply with my coworkers. I think your approach has following advantages/disadvantages/problem; (a) Able to be inserted into the target address of the branch. (b) So, binary analysis tool becomes simple. (c) Implementation is much complicated. (d) Highly depend on the x86 arch. (e) Bigger overhead than djprobe. (f) There will be side effect(*) (g) User applications can modify LDT. (ex. wine) I think the dcprobe will work, but, unfortunately, it has an vulnerability by the problem (g). (*) In the following code: --- a=0 do { ... a++; }while (a <= 100) --- In case of inserting dcprobe at the 1st line (a=0), it will replace 2nd (or more) instructions. In this case, the fix up routine (based on int3) will be invoked one hundred times. Thanks, -- Masami HIRAMATSU 2nd Research Dept. Hitachi, Ltd., Systems Development Laboratory E-mail: masami.hiramatsu.pt@hitachi.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/