From nobody@FreeBSD.org  Sun Jun 20 18:40:13 2010
Return-Path: <nobody@FreeBSD.org>
Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:4f8:fff6::34])
	by hub.freebsd.org (Postfix) with ESMTP id 4A51A106566B
	for <freebsd-gnats-submit@FreeBSD.org>; Sun, 20 Jun 2010 18:40:13 +0000 (UTC)
	(envelope-from nobody@FreeBSD.org)
Received: from www.freebsd.org (www.freebsd.org [IPv6:2001:4f8:fff6::21])
	by mx1.freebsd.org (Postfix) with ESMTP id 201D48FC15
	for <freebsd-gnats-submit@FreeBSD.org>; Sun, 20 Jun 2010 18:40:13 +0000 (UTC)
Received: from www.freebsd.org (localhost [127.0.0.1])
	by www.freebsd.org (8.14.3/8.14.3) with ESMTP id o5KIeBSB049868
	for <freebsd-gnats-submit@FreeBSD.org>; Sun, 20 Jun 2010 18:40:11 GMT
	(envelope-from nobody@www.freebsd.org)
Received: (from nobody@localhost)
	by www.freebsd.org (8.14.3/8.14.3/Submit) id o5KIeBWc049859;
	Sun, 20 Jun 2010 18:40:11 GMT
	(envelope-from nobody)
Message-Id: <201006201840.o5KIeBWc049859@www.freebsd.org>
Date: Sun, 20 Jun 2010 18:40:11 GMT
From: Michael Moll <kvedulv@kvedulv.de>
To: freebsd-gnats-submit@FreeBSD.org
Subject: flowtable crashes on ia64
X-Send-Pr-Version: www-3.1
X-GNATS-Notify:

>Number:         148018
>Category:       kern
>Synopsis:       [flowtable] flowtable crashes on ia64
>Confidential:   no
>Severity:       serious
>Priority:       low
>Responsible:    freebsd-net
>State:          open
>Quarter:        
>Keywords:       
>Date-Required:  
>Class:          sw-bug
>Submitter-Id:   current-users
>Arrival-Date:   Sun Jun 20 18:50:01 UTC 2010
>Closed-Date:    
>Last-Modified:  Sat Apr  9 12:10:07 UTC 2011
>Originator:     Michael Moll
>Release:        9.0-CURRENT
>Organization:
>Environment:
FreeBSD titanic.kvedulv.de 9.0-CURRENT FreeBSD 9.0-CURRENT #0: Sun Jun 20 19:31:33 CEST 2010     root@titanic.kvedulv.de:/usr/obj/usr/src/sys/TITANIC  ia64
>Description:
I'm running FreeBSD/ia64 on a HP rx2600. When booting the latest CURRENT the machine crashes while bringing up the ethernet interface (bge0):   

fatal kernel trap (cpu 0):

    trap vector = 0x1e (Unaligned Reference)
    cr.iip      = 0xe0000000049219c0
    cr.ipsr     = 0x1010080a6010 (mfl,ic,i,dt,dfh,rt,cpl=0,it,ri=0,bn)
    cr.isr      = 0x80200000000 (code=0,vector=0,w,ei=0,ed)
    cr.ifa      = 0xe000000011490b7c
    curthread   = 0xe00000001085b2c0

        pid = 12, comm = swi4: clock

[ thread pid 12 tid 100004 ]
Stopped at      flowtable_insert+0x410: [M0]    st8 [r14]=r15
db> bt
Tracing pid 12 tid 100004 td 0xe00000001085b2c0
flowtable_insert(0xe000000010b2e000, 0xff35aa3f69b22212, 0xa0000000755651c0, 0x0, 0xa000000075565210, 0x202) at flowtable_insert+0x410
flowtable_lookup(0xe000000010b2e000, 0xa000000075565240, 0xa0000000755652c0, 0x0, 0xe000000010ef3770) at flowtable_lookup+0xef0
flowtable_lookup_mbuf(0xe000000010b2e000, 0xe000000011485a00, 0x0, 0x1c, 0xe000000011485ad8, 0xa0000000755652c0) at flowtable_lookup_mbuf+0xa00
ip6_output(0xe000000011485ad8, 0xe00000000515d458, 0xa000000075565350, 0x1, 0xa000000075565490, 0xa0000000755654b0, 0x0) at ip6_output+0xf10
mld_dispatch_packet(0xe000000011485d00) at mld_dispatch_packet+0x720
mld_dispatch_queue(0xa0000000755654d0, 0x0, 0xa0000000755654e0, 0xa0000000755654d8, 0xe000000004ad0ac0, 0xf24) at mld_dispatch_queue+0xa0
mld_fasttimo() at mld_fasttimo+0xf00
icmp6_fasttimo(0xe00000000488bde0, 0x30b, 0xe0000000047a29b0) at icmp6_fasttimo+0x20
pffasttimo(0xe000000004f27158, 0xe000000004f27488, 0xe000000004f27450, 0xe0000000047e6f10) at pffasttimo+0xc0
softclock(0xe000000004f96ff0, 0x100, 0xe0000000051574b8, 0x40e7) at softclock+0x520
intr_event_execute_handlers(0xe000000010855120, 0xe00000001084bb98, 0xe00000001084f400, 0x0) at intr_event_execute_handlers+0x280
ithread_loop(0xe0000000106bf520, 0xe00000001084bb9c, 0xe00000001084bb98, 0xe00000001084bb00) at ithread_loop+0x190
fork_exit(0xe000000004da7b50, 0xe0000000106bf520, 0xa000000075565550) at fork_exit+0x110
enter_userland() at enter_userland

>How-To-Repeat:
Use flowtables on ia64 (and probaly on other strong alignment architectures).
>Fix:
Not a fix, but without "options FLOWTABLE" in the kernel configuration the system comes up normally.

>Release-Note:
>Audit-Trail:

From: dfilter@FreeBSD.ORG (dfilter service)
To: bug-followup@FreeBSD.org
Cc:  
Subject: Re: kern/148018: commit references a PR
Date: Sun,  6 Feb 2011 22:18:43 +0000 (UTC)

 Author: marcel
 Date: Sun Feb  6 22:18:37 2011
 New Revision: 218382
 URL: http://svn.freebsd.org/changeset/base/218382
 
 Log:
   Comment-out FLOWTABLE. It causes a kernel panic due to a misaligned memory
   access related to an IPv6 route update.
   
   PR:		kern/148018
 
 Modified:
   head/sys/ia64/conf/GENERIC
 
 Modified: head/sys/ia64/conf/GENERIC
 ==============================================================================
 --- head/sys/ia64/conf/GENERIC	Sun Feb  6 21:42:28 2011	(r218381)
 +++ head/sys/ia64/conf/GENERIC	Sun Feb  6 22:18:37 2011	(r218382)
 @@ -31,7 +31,8 @@ options 	COMPAT_FREEBSD7	# Compatible wi
  options 	DDB		# Support DDB
  options 	DEADLKRES	# Enable the deadlock resolver
  options 	FFS		# Berkeley Fast Filesystem
 -options 	FLOWTABLE	# per-cpu routing cache
 +#options 	FLOWTABLE	# per-cpu routing cache (removed due to
 +				# misaligned access -- see kern/148018)
  options 	GDB		# Support remote GDB
  options 	GEOM_LABEL	# Provides labelization
  options 	INCLUDE_CONFIG_FILE     # Include this file in kernel
 _______________________________________________
 svn-src-all@freebsd.org mailing list
 http://lists.freebsd.org/mailman/listinfo/svn-src-all
 To unsubscribe, send any mail to "svn-src-all-unsubscribe@freebsd.org"
 
Responsible-Changed-From-To: freebsd-bugs->freebsd-net 
Responsible-Changed-By: bz 
Responsible-Changed-When: Sat Mar 19 15:30:27 UTC 2011 
Responsible-Changed-Why:  
Over to maintainer(s). 
This may sounds ia64 specific but it's really network stack 
aligment problem on archs with more strict alignment. 

http://www.freebsd.org/cgi/query-pr.cgi?pr=148018 

From: dfilter@FreeBSD.ORG (dfilter service)
To: bug-followup@FreeBSD.org
Cc:  
Subject: Re: kern/148018: commit references a PR
Date: Sat, 19 Mar 2011 15:50:48 +0000 (UTC)

 Author: bz
 Date: Sat Mar 19 15:50:34 2011
 New Revision: 219775
 URL: http://svn.freebsd.org/changeset/base/219775
 
 Log:
   For now remove options FLOWTABLE from the remaining GENERIC kernel
   configurations and make it opt-in for those who want it.  LINT will
   still build it.
   
   While it may be a perfect win in some scenarios, it still troubles users
   (see PRs) in general cases.  In addition we are still allocating resources
   even if disabled by sysctl and still leak arp/nd6 entries in case of
   interface destruction.
   
   Discussed with:	qingli (2010-11-24, just never executed)
   Discussed with: juli (OCTEON1)
   PR:		kern/148018, kern/155604, kern/144917, kern/146792
   MFC after:	2 weeks
 
 Modified:
   head/sys/amd64/conf/GENERIC
   head/sys/i386/conf/GENERIC
   head/sys/ia64/conf/GENERIC
   head/sys/mips/conf/OCTEON1
 
 Modified: head/sys/amd64/conf/GENERIC
 ==============================================================================
 --- head/sys/amd64/conf/GENERIC	Sat Mar 19 14:44:24 2011	(r219774)
 +++ head/sys/amd64/conf/GENERIC	Sat Mar 19 15:50:34 2011	(r219775)
 @@ -61,7 +61,6 @@ options 	KBD_INSTALL_CDEV	# install a CD
  options 	HWPMC_HOOKS		# Necessary kernel hooks for hwpmc(4)
  options 	AUDIT			# Security event auditing
  options 	MAC			# TrustedBSD MAC Framework
 -options 	FLOWTABLE		# per-cpu routing cache
  #options 	KDTRACE_FRAME		# Ensure frames are compiled in
  #options 	KDTRACE_HOOKS		# Kernel DTrace hooks
  options 	INCLUDE_CONFIG_FILE     # Include this file in kernel
 
 Modified: head/sys/i386/conf/GENERIC
 ==============================================================================
 --- head/sys/i386/conf/GENERIC	Sat Mar 19 14:44:24 2011	(r219774)
 +++ head/sys/i386/conf/GENERIC	Sat Mar 19 15:50:34 2011	(r219775)
 @@ -62,7 +62,6 @@ options 	KBD_INSTALL_CDEV	# install a CD
  options 	HWPMC_HOOKS		# Necessary kernel hooks for hwpmc(4)
  options 	AUDIT			# Security event auditing
  options 	MAC			# TrustedBSD MAC Framework
 -options 	FLOWTABLE		# per-cpu routing cache
  #options 	KDTRACE_HOOKS		# Kernel DTrace hooks
  options 	INCLUDE_CONFIG_FILE     # Include this file in kernel
  
 
 Modified: head/sys/ia64/conf/GENERIC
 ==============================================================================
 --- head/sys/ia64/conf/GENERIC	Sat Mar 19 14:44:24 2011	(r219774)
 +++ head/sys/ia64/conf/GENERIC	Sat Mar 19 15:50:34 2011	(r219775)
 @@ -31,8 +31,6 @@ options 	COMPAT_FREEBSD7	# Compatible wi
  options 	DDB		# Support DDB
  options 	DEADLKRES	# Enable the deadlock resolver
  options 	FFS		# Berkeley Fast Filesystem
 -#options 	FLOWTABLE	# per-cpu routing cache (removed due to
 -				# misaligned access -- see kern/148018)
  options 	GDB		# Support remote GDB
  options 	GEOM_LABEL	# Provides labelization
  options 	INCLUDE_CONFIG_FILE     # Include this file in kernel
 
 Modified: head/sys/mips/conf/OCTEON1
 ==============================================================================
 --- head/sys/mips/conf/OCTEON1	Sat Mar 19 14:44:24 2011	(r219774)
 +++ head/sys/mips/conf/OCTEON1	Sat Mar 19 15:50:34 2011	(r219775)
 @@ -73,7 +73,6 @@ options 	PRINTF_BUFR_SIZE=128	# Prevent 
  options 	HWPMC_HOOKS		# Necessary kernel hooks for hwpmc(4)
  options 	AUDIT			# Security event auditing
  options 	MAC			# TrustedBSD MAC Framework
 -options 	FLOWTABLE		# per-cpu routing cache
  #options 	KDTRACE_FRAME		# Ensure frames are compiled in
  #options 	KDTRACE_HOOKS		# Kernel DTrace hooks
  options 	INCLUDE_CONFIG_FILE     # Include this file in kernel
 _______________________________________________
 svn-src-all@freebsd.org mailing list
 http://lists.freebsd.org/mailman/listinfo/svn-src-all
 To unsubscribe, send any mail to "svn-src-all-unsubscribe@freebsd.org"
 

From: dfilter@FreeBSD.ORG (dfilter service)
To: bug-followup@FreeBSD.org
Cc:  
Subject: Re: kern/148018: commit references a PR
Date: Sat,  9 Apr 2011 12:04:45 +0000 (UTC)

 Author: bz
 Date: Sat Apr  9 12:04:35 2011
 New Revision: 220486
 URL: http://svn.freebsd.org/changeset/base/220486
 
 Log:
   MFC r219775:
   
     For now remove options FLOWTABLE from the remaining GENERIC kernel
     configurations and make it opt-in for those who want it.  LINT will
     still build it.
   
     While it may be a perfect win in some scenarios, it still troubles users
     (see PRs) in general cases.  In addition we are still allocating resources
     even if disabled by sysctl and still leak arp/nd6 entries in case of
     interface destruction.
   
     Discussed with:	qingli (2010-11-24, just never executed)
     Discussed with:	juli (OCTEON1)
   PR:			kern/148018, kern/155604, kern/144917, kern/146792
 
 Modified:
   stable/8/sys/amd64/conf/GENERIC
   stable/8/sys/i386/conf/GENERIC
   stable/8/sys/ia64/conf/GENERIC
   stable/8/sys/mips/conf/OCTEON1
 Directory Properties:
   stable/8/sys/   (props changed)
   stable/8/sys/amd64/include/xen/   (props changed)
   stable/8/sys/cddl/contrib/opensolaris/   (props changed)
   stable/8/sys/contrib/dev/acpica/   (props changed)
   stable/8/sys/contrib/pf/   (props changed)
 
 Modified: stable/8/sys/amd64/conf/GENERIC
 ==============================================================================
 --- stable/8/sys/amd64/conf/GENERIC	Sat Apr  9 11:03:04 2011	(r220485)
 +++ stable/8/sys/amd64/conf/GENERIC	Sat Apr  9 12:04:35 2011	(r220486)
 @@ -72,7 +72,6 @@ options 	KBD_INSTALL_CDEV	# install a CD
  options 	HWPMC_HOOKS		# Necessary kernel hooks for hwpmc(4)
  options 	AUDIT			# Security event auditing
  options 	MAC			# TrustedBSD MAC Framework
 -options 	FLOWTABLE		# per-cpu routing cache
  #options 	KDTRACE_FRAME		# Ensure frames are compiled in
  #options 	KDTRACE_HOOKS		# Kernel DTrace hooks
  options 	INCLUDE_CONFIG_FILE     # Include this file in kernel
 
 Modified: stable/8/sys/i386/conf/GENERIC
 ==============================================================================
 --- stable/8/sys/i386/conf/GENERIC	Sat Apr  9 11:03:04 2011	(r220485)
 +++ stable/8/sys/i386/conf/GENERIC	Sat Apr  9 12:04:35 2011	(r220486)
 @@ -73,7 +73,6 @@ options 	KBD_INSTALL_CDEV	# install a CD
  options 	HWPMC_HOOKS		# Necessary kernel hooks for hwpmc(4)
  options 	AUDIT			# Security event auditing
  options 	MAC			# TrustedBSD MAC Framework
 -options 	FLOWTABLE		# per-cpu routing cache
  #options 	KDTRACE_HOOKS		# Kernel DTrace hooks
  options 	INCLUDE_CONFIG_FILE     # Include this file in kernel
  
 
 Modified: stable/8/sys/ia64/conf/GENERIC
 ==============================================================================
 --- stable/8/sys/ia64/conf/GENERIC	Sat Apr  9 11:03:04 2011	(r220485)
 +++ stable/8/sys/ia64/conf/GENERIC	Sat Apr  9 12:04:35 2011	(r220486)
 @@ -31,7 +31,6 @@ options 	COMPAT_43TTY	# BSD 4.3 TTY comp
  options 	COMPAT_FREEBSD6	# Compatible with FreeBSD6
  options 	COMPAT_FREEBSD7	# Compatible with FreeBSD7
  options 	FFS		# Berkeley Fast Filesystem
 -options 	FLOWTABLE	# per-cpu routing cache
  options 	GDB		# Support remote GDB
  options 	GEOM_LABEL	# Provides labelization
  options 	INCLUDE_CONFIG_FILE     # Include this file in kernel
 
 Modified: stable/8/sys/mips/conf/OCTEON1
 ==============================================================================
 --- stable/8/sys/mips/conf/OCTEON1	Sat Apr  9 11:03:04 2011	(r220485)
 +++ stable/8/sys/mips/conf/OCTEON1	Sat Apr  9 12:04:35 2011	(r220486)
 @@ -76,7 +76,6 @@ options 	PRINTF_BUFR_SIZE=128	# Prevent 
  options 	HWPMC_HOOKS		# Necessary kernel hooks for hwpmc(4)
  options 	AUDIT			# Security event auditing
  options 	MAC			# TrustedBSD MAC Framework
 -options 	FLOWTABLE		# per-cpu routing cache
  #options 	KDTRACE_FRAME		# Ensure frames are compiled in
  #options 	KDTRACE_HOOKS		# Kernel DTrace hooks
  options 	INCLUDE_CONFIG_FILE     # Include this file in kernel
 _______________________________________________
 svn-src-all@freebsd.org mailing list
 http://lists.freebsd.org/mailman/listinfo/svn-src-all
 To unsubscribe, send any mail to "svn-src-all-unsubscribe@freebsd.org"
 
>Unformatted:
