Return-Path: Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id ; Wed, 12 Mar 2003 16:50:22 -0500 Received: (majordomo@vger.kernel.org) by vger.kernel.org id ; Wed, 12 Mar 2003 16:50:22 -0500 Received: from divine.city.tvnet.hu ([195.38.100.154]:65344 "EHLO divine.city.tvnet.hu") by vger.kernel.org with ESMTP id ; Wed, 12 Mar 2003 16:50:21 -0500 Date: Wed, 12 Mar 2003 22:54:05 +0100 (MET) From: Szakacsits Szabolcs To: Linus Torvalds cc: "Randy.Dunlap" , Subject: Re: 2.5.63 accesses below %esp (was: Re: ntfs OOPS (2.5.63)) In-Reply-To: Message-ID: MIME-Version: 1.0 Content-Type: TEXT/PLAIN; charset=US-ASCII Sender: linux-kernel-owner@vger.kernel.org X-Mailing-List: linux-kernel@vger.kernel.org Content-Length: 1175 Lines: 36 On Wed, 12 Mar 2003, Linus Torvalds wrote: > > The difficulty is finidng the right instruction boundary. It's basically > impossible. If I understand you correctly, no. We have the boundary at EIP. Decoding what's before is max 7-8 tries by a human and one can figure out the real code from the context (with high probability). 2-3 times more code before EIP then after could significantly help of course. > If you want to get the instructions before that point, just use > > gdb vmlinux This approach frequently fails because vmlinux is on a users computer far away and he 1) doesn't bother answering anymore 2) recompiled with different .config 3) reinstalled another distro 4) etc > and disassemble it by hand. Because the kernel _cannot_ do it reliably. The kernel shouldn't do it, it's not disassembler. It should just give enough data for a human and disassembler. Nothing lost but much can be gain. Szaka - 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/