From nobody@FreeBSD.org  Tue Apr 23 11:09:17 2013
Return-Path: <nobody@FreeBSD.org>
Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:1900:2254:206a::19:1])
	by hub.freebsd.org (Postfix) with ESMTP id 6EDDABF1
	for <freebsd-gnats-submit@FreeBSD.org>; Tue, 23 Apr 2013 11:09:17 +0000 (UTC)
	(envelope-from nobody@FreeBSD.org)
Received: from red.freebsd.org (red.freebsd.org [IPv6:2001:4f8:fff6::22])
	by mx1.freebsd.org (Postfix) with ESMTP id 474E3176D
	for <freebsd-gnats-submit@FreeBSD.org>; Tue, 23 Apr 2013 11:09:17 +0000 (UTC)
Received: from red.freebsd.org (localhost [127.0.0.1])
	by red.freebsd.org (8.14.5/8.14.5) with ESMTP id r3NB9G0O064622
	for <freebsd-gnats-submit@FreeBSD.org>; Tue, 23 Apr 2013 11:09:16 GMT
	(envelope-from nobody@red.freebsd.org)
Received: (from nobody@localhost)
	by red.freebsd.org (8.14.5/8.14.5/Submit) id r3NB9GgZ064621;
	Tue, 23 Apr 2013 11:09:16 GMT
	(envelope-from nobody)
Message-Id: <201304231109.r3NB9GgZ064621@red.freebsd.org>
Date: Tue, 23 Apr 2013 11:09:16 GMT
From: Jukka Ukkonen <jau@oxit.fi>
To: freebsd-gnats-submit@FreeBSD.org
Subject: Switching TCP CC algorithm panics on sparc64 with a complaint from the MMU
X-Send-Pr-Version: www-3.1
X-GNATS-Notify:

>Number:         178079
>Category:       kern
>Synopsis:       [tcp] Switching TCP CC algorithm panics on sparc64 with a complaint from the MMU
>Confidential:   no
>Severity:       non-critical
>Priority:       low
>Responsible:    freebsd-net
>State:          open
>Quarter:        
>Keywords:       
>Date-Required:  
>Class:          sw-bug
>Submitter-Id:   current-users
>Arrival-Date:   Tue Apr 23 11:10:01 UTC 2013
>Closed-Date:    
>Last-Modified:  Mon May 20 03:31:23 UTC 2013
>Originator:     Jukka Ukkonen
>Release:        9.1-STABLE
>Organization:
-----
>Environment:
FreeBSD mimir 9.1-STABLE FreeBSD 9.1-STABLE #0 r249763M: Tue Apr 23 05:47:38 EEST 2013     root@mimir:/usr/obj/usr/src/sys/GENERIC  sparc64
>Description:
An attempt to switch the TCP congestion control algorithm on a sparc64 system
causes an instant panic.
The message shown on the console mentions something about NewReno and then
something about the MMU. Though I do not have the exact text shown to quote
here, it looked to me quite a lot like one of those MMU complaints one gets
for improperly aligned data.

Notice:
I have never seen anything remotely similar happening on an amd64.
So, it is supposedly impossible to replicate the problem using a CPU
which does not care about the data alignment.

>How-To-Repeat:
On a sparc64 system follow these steps:

First make sure you have the alternate CC modules loaded...

kldload /boot/kernel/cc_*.ko

Then try this...

sysctl net.inet.tcp.cc.algorithm=htcp

At least in my case this has been a guaranteed trick to panic
the system with a complaint from the MMU.

>Fix:
Not the foggiest idea yet.

I will keep a crash dump around for a while just in case someone wishes to have
a chance to see it. I cannot promise to save it for very long, though.

OTOH with the consistency I have been getting new crash dumps when touching
the CC algorithm on sparc64 it should be easy enough for anyone to generate
ones own crash dump if needs be. ;-)


>Release-Note:
>Audit-Trail:

From: Jukka Ukkonen <jau@oxit.fi>
To: bug-followup@FreeBSD.org, jau@oxit.fi
Cc:  
Subject: Re: kern/178079: Switching TCP CC algorithm panics on sparc64 with
 a complaint from the MMU
Date: Tue, 23 Apr 2013 16:48:54 +0300

 In a sudden burst of inspiration I decided to check the same thing
 on PowerPC as well...
 
 # sysctl net.inet.tcp.cc.algorithm=htcp
 net.inet.tcp.cc.algorithm: newreno
 sysctl: net.inet.tcp.cc.algorithm=htcp: No such process
 
 If I replace htcp with e.g. cubic the result is quite analogous.
 So, the CC code does not seem all that healthy on PowerPC either.
 
 This PowerPC test was done using a 3 week old 9.1-STABLE...
 
 FreeBSD yggdrasil 9.1-STABLE FreeBSD 9.1-STABLE #0 r248939M: Mon Apr  1
 20:22:53 EEST 2013     root@yggdrasil:/usr/obj/usr/src/sys/GENERIC  powerpc
 
 
 --jau
Responsible-Changed-From-To: freebsd-bugs->freebsd-net 
Responsible-Changed-By: linimon 
Responsible-Changed-When: Mon May 20 03:30:59 UTC 2013 
Responsible-Changed-Why:  
Over to maintainer(s). 

http://www.freebsd.org/cgi/query-pr.cgi?pr=178079 
>Unformatted:
