Return-Path: Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1757884AbXFGKY0 (ORCPT ); Thu, 7 Jun 2007 06:24:26 -0400 Received: (majordomo@vger.kernel.org) by vger.kernel.org id S1753388AbXFGKYT (ORCPT ); Thu, 7 Jun 2007 06:24:19 -0400 Received: from wx-out-0506.google.com ([66.249.82.236]:60601 "EHLO wx-out-0506.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1753022AbXFGKYS (ORCPT ); Thu, 7 Jun 2007 06:24:18 -0400 DomainKey-Signature: a=rsa-sha1; c=nofws; d=gmail.com; s=beta; h=received:message-id:date:from:to:subject:cc:in-reply-to:mime-version:content-type:content-transfer-encoding:content-disposition:references; b=MLxr+wDyS8VY/M+fbCde1QhcYjOm4BQ42xumVgb+4AX3gdE/QWOEu2LJv4EJtVcvvJGxC65/JpULBJwIaBjbtpAUCY3yQytpuWvBxOy5Ziu/3reHJzksDL+qIupEBUB/TQ+Rm+K3uKBoSv2Evtbjfj4SBEmrtsEbF7zUM2ZsZDg= Message-ID: Date: Thu, 7 Jun 2007 11:24:16 +0100 From: "Patrick Andrieux" To: "Ian McDonald" Subject: Re: [BUG] Fwd: segfault : modprobe dccp_probe/tcp_probe Cc: "Chuck Ebbert" , "Linux Kernel Mailing List" , prasanna@in.ibm.com, ananth@in.ibm.com, anil.s.keshavamurthy@intel.com, "David S. Miller" , "DCCP Mailing List" , jbeulich@novell.com In-Reply-To: <5640c7e00706061612h62074699wdbd2725654a164@mail.gmail.com> MIME-Version: 1.0 Content-Type: text/plain; charset=ISO-8859-1; format=flowed Content-Transfer-Encoding: 7bit Content-Disposition: inline References: <5640c7e00706061347v42c9ecbahb5354f6687a70a78@mail.gmail.com> <46673B76.2090508@redhat.com> <5640c7e00706061612h62074699wdbd2725654a164@mail.gmail.com> Sender: linux-kernel-owner@vger.kernel.org X-Mailing-List: linux-kernel@vger.kernel.org Content-Length: 1938 Lines: 50 Hi Ian, Not sure it's still useful after patch provide by Prasanna... But I tried to turn off CONFIG_DEBUG_RODATA and both `tcp_probe' and `dccp_probe' can be load properly. I also ran iperf test (for dccp) and it works. Patrick. On 07/06/07, Ian McDonald wrote: > On 6/7/07, Chuck Ebbert wrote: > > On 06/06/2007 04:47 PM, Ian McDonald wrote: > > > Hi there, > > > > > > We've seen a report of a problem with dccp_probe as shown below. The > > > user has also verified that it occurs in tcp_probe as well. This is on > > > Dave Miller's tree but that currently tracks Linus' tree quite > > > closely. I do note that it is around 2.6.22-rc2 timeframe so there is > > > a possibility fixes may have gone in since. > > > > > > > It faulted when it tried to write the breakpoint instruction into the > > running kernel's executable code. Apparently the kernel code is now marked > > read-only? > > > > > Yes it would appear to be the case as user has CONFIG_DEBUG_RODATA > set. Patrick - can you turn this off and retest? It's under Kernel > Hacking, Write protect kernel read only data structures. > > The list of commits that I see around this are at: > http://git.kernel.org/?p=linux%2Fkernel%2Fgit%2Ftorvalds%2Flinux-2.6.git&a=search&h=HEAD&st=commit&s=DEBUG_RODATA > > I suspect it's probably one of the latter ones giving the timing. > > I guess there are a couple of solutions here - either make kprobes > conflict with CONFIG_DEBUG_RODATA so you can do one or the other, or > look into more detail what access kprobes need. > > Ian > -- > Web: http://wand.net.nz/~iam4/ > Blog: http://iansblog.jandi.co.nz > WAND Network Research Group > - 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/