Return-Path: Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1751287Ab0GKFTc (ORCPT ); Sun, 11 Jul 2010 01:19:32 -0400 Received: from mx1.redhat.com ([209.132.183.28]:44941 "EHLO mx1.redhat.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1750873Ab0GKFTb (ORCPT ); Sun, 11 Jul 2010 01:19:31 -0400 Message-ID: <4C395459.6080407@redhat.com> Date: Sun, 11 Jul 2010 08:19:21 +0300 From: Avi Kivity User-Agent: Mozilla/5.0 (X11; U; Linux x86_64; en-US; rv:1.9.1.10) Gecko/20100621 Fedora/3.0.5-1.fc13 Thunderbird/3.0.5 MIME-Version: 1.0 To: Eric Dumazet CC: Felipe W Damasio , David Miller , Patrick McHardy , linux-kernel@vger.kernel.org, netdev Subject: Re: [PATCH] tproxy: nf_tproxy_assign_sock() can handle tw sockets References: <1278626921.2435.73.camel@edumazet-laptop> <1278695580.2696.55.camel@edumazet-laptop> <1278742649.2538.17.camel@edumazet-laptop> In-Reply-To: <1278742649.2538.17.camel@edumazet-laptop> Content-Type: text/plain; charset=UTF-8; format=flowed Content-Transfer-Encoding: 7bit Sender: linux-kernel-owner@vger.kernel.org List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Content-Length: 923 Lines: 26 On 07/10/2010 09:17 AM, Eric Dumazet wrote: > > Strange thing with your crash report is CR2 value, with unexpected value > of 000000000b388000 while RAX value is dce8dce85d415d41 > > Faulting instruction is : > > 48 83 b8 b0 00 00 00 00 cmpq $0x0,0xb0(%rax) > > So I would have expected CR2 being RAX+0xb0, but its not. > Nothing strange about it. You only get page faults and valid cr2 for canonical addresses (17 high order bits all equal). In this case rax+0xb0 is not a canonical address, so you got a general protection fault instead, with cr2 unchanged. -- I have a truly marvellous patch that fixes the bug which this signature is too narrow to contain. -- 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/