Return-Path: Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S964904AbVLNTYo (ORCPT ); Wed, 14 Dec 2005 14:24:44 -0500 Received: (majordomo@vger.kernel.org) by vger.kernel.org id S964910AbVLNTYo (ORCPT ); Wed, 14 Dec 2005 14:24:44 -0500 Received: from zproxy.gmail.com ([64.233.162.200]:57729 "EHLO zproxy.gmail.com") by vger.kernel.org with ESMTP id S964904AbVLNTYn convert rfc822-to-8bit (ORCPT ); Wed, 14 Dec 2005 14:24:43 -0500 DomainKey-Signature: a=rsa-sha1; q=dns; c=nofws; s=beta; d=gmail.com; h=received:message-id:date:from:to:subject:cc:in-reply-to:mime-version:content-type:content-transfer-encoding:content-disposition:references; b=K6X290JXjST10hrRpHcH0fIA48B8Kn6FAMWNtOP2kKtVpno43gzXNY3zhVjisBJMwXx/opt7+E7Vu6Vy3F6X1X+cWGeWmrmiV40VgJZgz+3fd82hcZ0V0G7QIaP5eOFN8IrhaJ33hzzH0V99pQTzVl1foyH8E0UROXw5Ei2tF/U= Message-ID: <8746466a0512141124u68c3f5c9o3411c8af64667d8d@mail.gmail.com> Date: Wed, 14 Dec 2005 12:24:42 -0700 From: Dave To: Andi Kleen Subject: Re: x86_64 segfault error codes Cc: linux-kernel@vger.kernel.org In-Reply-To: MIME-Version: 1.0 Content-Type: text/plain; charset=US-ASCII Content-Transfer-Encoding: 7BIT Content-Disposition: inline References: <8746466a0512141017j141d61dft3dd2b1ab95dc2351@mail.gmail.com> Sender: linux-kernel-owner@vger.kernel.org X-Mailing-List: linux-kernel@vger.kernel.org Content-Length: 931 Lines: 26 Ah ok, thx! Looks like the comment in mm/fault.c is wrong then.... It says bit 3 is instruction fetch and no mention of bit 4. On 14 Dec 2005 19:31:07 +0100, Andi Kleen wrote: > Dave writes: > > > For segfault error codes on x86_64, bits 0-3 are documented in > > arch/x86_64/mm/fault.c. However, I am getting error 0x14 and 0x15 with this > > particular user app when it segfaults. Is bit 4 valid and what does that > > imply? > > bit 4 is documented too in 2.6. It means it was an instruction fetch. > The error code is just the architectural error code for page faults > BTW, see the Intel and AMD manuals for details. > > -Andi > -- -= Dave =- - 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/