Kernel panic trying to forward ethernet connection

Plugging in devices such as LAN adapters, Wi-Fi cards, printers, etc. to Arch Linux ARM.

Kernel panic trying to forward ethernet connection

Postby ebbix » Sat Oct 27, 2012 7:51 pm

Hello,
I want to use my GoFlex Net as a wireless access point using hostapd.
Wifi chipset is Atheros htc, supported by ath9k_htc driver.
I tried to use a network bridge, which worked but caused a kernel panic after a short period of time.
I then tried to do some NAT to translate 192.168.1.1 network to 192.168.0.1 using iptables. This also works but causes a kernel panic after a very short period of time.
I didn't find any information, so I thought maybe someone here could give me a hint.
This is the crash log when using NAT: (I don't have one for bridged configuration because I didn't save it. However, it said something about bridges, so that seems to be the problem in that case)
$this->bbcode_second_pass_code('', '[ 2236.124444] ------------[ cut here ]------------
[ 2236.129087] kernel BUG at mm/slub.c:3483!
[ 2236.133114] Internal error: Oops - BUG: 0 [#1] PREEMPT ARM
[ 2236.138615] Modules linked in: ipt_MASQUERADE iptable_nat nf_nat nf_conntrack_ipv4 nf_defrag_ipv4 nf_conntrack ath9k_htc ath9k_common ath9k_hw ath mac80211 cfg80211 rfkill xt_LED iptable_filter ip_tables x_tables nfsd auth_rpcgss sr_mod cdrom mv_cesa nfs lockd sunrpc ipv6 autofs4
[ 2236.163724] CPU: 0 Not tainted (3.6.2-0-ARCH #1)
[ 2236.168716] PC is at kfree+0xac/0x184
[ 2236.172394] LR is at pskb_expand_head+0x214/0x22c
[ 2236.177118] pc : [<c00c22b0>] lr : [<c03a02a0>] psr: 40000013
[ 2236.177118] sp : c05efdd8 ip : 00000014 fp : c05f6f90
[ 2236.188643] r10: c1774f40 r9 : c1774820 r8 : c6428f00
[ 2236.193884] r7 : 00000020 r6 : c03a02a0 r5 : c1774800 r4 : c176e260
[ 2236.200441] r3 : 00000000 r2 : 0000176e r1 : c072edc0 r0 : c176e260
[ 2236.206992] Flags: nZcv IRQs on FIQs on Mode SVC_32 ISA ARM Segment kernel
[ 2236.214333] Control: 0005397f Table: 067dc000 DAC: 00000017
[ 2236.220106] Process swapper (pid: 0, stack limit = 0xc05ee270)
[ 2236.225965] Stack: (0xc05efdd8 to 0xc05f0000)
[ 2236.230344] fdc0: c6428f00 c1774800
[ 2236.238562] fde0: 00000020 00000020 c6428f00 c03a02a0 00000000 00000020 0000002c c05f6f6c
[ 2236.246777] fe00: c6428f00 00200000 c6428f00 00000008 c56df280 c03d49c4 0201a8c0 00000000
[ 2236.254992] fe20: c05f6f90 c176e290 c05f6f6c c176e290 c05f6f6c c6428f00 00200000 c7814000
[ 2236.263204] fe40: 00000000 c03d2e98 c7814000 c03d2bb4 c05f7fac c05f6f6c 00000001 c03a7704
[ 2236.271420] fe60: c05efe90 c78145bc 00000000 c6428f00 c7814440 c05f6f90 c7814000 c781452c
[ 2236.279634] fe80: c78145bc 00000000 c6428f00 c7814440 00000001 c7814000 c7814440 c03253f4
[ 2236.287848] fea0: 00000000 c06b4d80 c06b7880 6f81a86e 00000010 c7814440 c8afe5f0 00000080
[ 2236.296061] fec0: 00000000 c78145b8 00000000 c062f6a0 00000001 00000000 0000012c 00000080
[ 2236.304277] fee0: c781452c c062f6a8 c06045b8 c03a97b8 c06b4c2c 0002ee79 c06064e4 00000001
[ 2236.312491] ff00: c06b4c30 00000003 00000102 0000000a 00200000 3f94b3dc 00000000 c001d47c
[ 2236.320705] ff20: c546f840 fed20200 c05effa4 c06b4c2c 56251311 0000000b 00000000 fed20200
[ 2236.328919] ff40: c05effa4 c08004c0 56251311 005e3588 00000000 c001da30 00000000 c00094d8
[ 2236.337134] ff60: c00095e4 c00097ac 60000013 c043c214 00000000 c060b1d8 00000000 c00095c4
[ 2236.345348] ff80: c05ee000 c0633428 c05f9ddc c05e526c c08004c0 56251311 005e3588 00000000
[ 2236.353563] ffa0: c060b1d8 c05effb8 c00095e4 c00097ac 60000013 ffffffff c05f6c00 c0633380
[ 2236.361776] ffc0: ffffffff c05c0768 ffffffff ffffffff c05c0284 00000000 00000000 c05e526c
[ 2236.369990] ffe0: 00053975 c05f6044 c05e5268 c05f9dd4 00004000 00008040 00000000 00000000
[ 2236.378212] [<c00c22b0>] (kfree+0xac/0x184) from [<c03a02a0>] (pskb_expand_head+0x214/0x22c)
[ 2236.386695] [<c03a02a0>] (pskb_expand_head+0x214/0x22c) from [<c03d49c4>] (ip_forward+0x254/0x3b0)
[ 2236.395700] [<c03d49c4>] (ip_forward+0x254/0x3b0) from [<c03d2e98>] (ip_rcv_finish+0x2e4/0x32c)
[ 2236.404451] [<c03d2e98>] (ip_rcv_finish+0x2e4/0x32c) from [<c03a7704>] (__netif_receive_skb+0x728/0x86c)
[ 2236.413986] [<c03a7704>] (__netif_receive_skb+0x728/0x86c) from [<c03253f4>] (mv643xx_eth_poll+0x538/0x690)
[ 2236.423778] [<c03253f4>] (mv643xx_eth_poll+0x538/0x690) from [<c03a97b8>] (net_rx_action+0x94/0x264)
[ 2236.432951] [<c03a97b8>] (net_rx_action+0x94/0x264) from [<c001d47c>] (__do_softirq+0x108/0x28c)
[ 2236.441775] [<c001d47c>] (__do_softirq+0x108/0x28c) from [<c001da30>] (irq_exit+0x44/0x9c)
[ 2236.450077] [<c001da30>] (irq_exit+0x44/0x9c) from [<c00094d8>] (handle_IRQ+0x64/0x84)
[ 2236.458032] [<c00094d8>] (handle_IRQ+0x64/0x84) from [<c043c214>] (__irq_svc+0x34/0x98)
[ 2236.466078] [<c043c214>] (__irq_svc+0x34/0x98) from [<c00097ac>] (cpu_idle+0x6c/0xbc)
[ 2236.473947] [<c00097ac>] (cpu_idle+0x6c/0xbc) from [<c05c0768>] (start_kernel+0x2b8/0x308)
[ 2236.482251] Code: 1a000006 e5913000 e3130903 1a000000 (e7f001f2)
[ 2236.488376] ---[ end trace f2310e359cd846c8 ]---
[ 2236.493016] Kernel panic - not syncing: Fatal exception in interrupt')

I hope someone has an idea.
ebbix
 
Posts: 48
Joined: Fri Aug 10, 2012 1:55 pm

Re: Kernel panic trying to forward ethernet connection

Postby pepedog » Sat Oct 27, 2012 8:44 pm

Bridge is easier, if your wired is not static
https://wiki.archlinux.org/index.php/Software_Access_Point is not uptodate
You need these packages
wireless_tools hostapd netcfg bridge-utils
cat /etc/hostapd/hostapd.conf
$this->bbcode_second_pass_code('', 'interface=wlan0
bridge=br0
driver=nl80211
logger_stdout=-1
logger_stdout_level=2
ssid=myaccesspoint
hw_mode=g
channel=9
auth_algs=3
max_num_sta=5
wpa=2
wpa_passphrase=mysecretpass
# password must be 8 chars or more
wpa_key_mgmt=WPA-PSK
wpa_pairwise=TKIP CCMP
rsn_pairwise=CCMP')
cat /etc/network.d/bridge
$this->bbcode_second_pass_code('', 'INTERFACE="br0"
CONNECTION="bridge"
DESCRIPTION="Bridge wired and wireless connection"

# Only add wired interface here, hostapd will add wireless
BRIDGE_INTERFACES="eth0"
IP="dhcp"')
cat /etc/conf.d/netcfg
$this->bbcode_second_pass_code('', '# Enable these netcfg profiles at boot time.
# - prefix an entry with a '@' to background its startup
# - set to 'last' to restore the profiles running at the last shutdown
# - set to 'menu' to present a menu (requires the dialog package)
# Network profiles are found in /etc/network.d
#NETWORKS=(eth0 wlan0)

NETWORKS=(bridge)

# Specify the name of your wired interface for net-auto-wired
WIRED_INTERFACE="eth0"

# Specify the name of your wireless interface for net-auto-wireless
WIRELESS_INTERFACE="wlan0"

# Array of profiles that may be started by net-auto-wireless.
# When not specified, all wireless profiles are considered.
#AUTO_PROFILES=("profile1" "profile2")')
If your systemd
systemctl enable netcfg
If old initscripts
in DAEMONS use net-profiles
pepedog
Developer
 
Posts: 2431
Joined: Mon Jun 07, 2010 3:30 pm
Location: London UK

Re: Kernel panic trying to forward ethernet connection

Postby ebbix » Sat Oct 27, 2012 9:25 pm

Result:
$this->bbcode_second_pass_code('', '[ 452.775400] ------------[ cut here ]------------
[ 452.780051] kernel BUG at mm/slub.c:3483!
[ 452.784078] Internal error: Oops - BUG: 0 [#1] PREEMPT ARM
[ 452.789588] Modules linked in: sr_mod cdrom bridge stp llc xt_LED iptable_filter ip_tables x_tables nfsd auth_rpcgss ath9k_htc ath9k_common ath9k_hw ath mac80211 cfg80211 rfkill mv_cesa nfs lockd sunrpc ipv6 autofs4
[ 452.809001] CPU: 0 Not tainted (3.6.2-0-ARCH #1)
[ 452.813994] PC is at kfree+0xac/0x184
[ 452.817671] LR is at __kfree_skb+0x14/0xc0
[ 452.821786] pc : [<c00c22b0>] lr : [<c039f148>] psr: 40000013
[ 452.821786] sp : c05efc20 ip : 00000045 fp : c05f6f90
[ 452.833311] r10: c05f7a44 r9 : c062a400 r8 : 00000020
[ 452.838552] r7 : c7316744 r6 : c039f148 r5 : c71a0840 r4 : c7316700
[ 452.845109] r3 : 00000000 r2 : 00007316 r1 : c07e62c0 r0 : c7316700
[ 452.851659] Flags: nZcv IRQs on FIQs on Mode SVC_32 ISA ARM Segment kernel
[ 452.859000] Control: 0005397f Table: 02880000 DAC: 00000017
[ 452.864764] Process swapper (pid: 0, stack limit = 0xc05ee270)
[ 452.870624] Stack: (0xc05efc20 to 0xc05f0000)
[ 452.875000] fc20: c71a0840 c71a0840 00000020 c7316744 00000020 c039f148 c618b200 c03e94e0
[ 452.883213] fc40: c618b200 c71a0840 c7316744 c71a0840 c618b200 c6250700 c062a400 c7316730
[ 452.891428] fc60: c05f7a44 c03f0ab8 c2866000 c03cdde8 c603e740 c71a0840 00000001 c71a0840
[ 452.899642] fc80: c71a0840 c71a0840 c618b200 00000000 c062a400 c03f2ef4 00000001 c03cdf10
[ 452.907856] fca0: 00000000 c05efcb4 c03d2ee0 80000000 0500a8c0 c062a400 c047d580 00000006
[ 452.916070] fcc0: 00000000 c71a0840 c062a400 c05f7a44 c05f6f90 c03d3074 c7316730 c05f6f6c
[ 452.924284] fce0: c71a0840 00200000 c2866000 00000008 00000000 c03d2e98 c71a0840 c03d2bb4
[ 452.932498] fd00: c05f7fac c05f6f6c 00000001 c03a7704 00000000 c71a0840 00000000 c71a0840
[ 452.940712] fd20: c7814000 c05f6f90 00000000 c71a0840 c7316730 c2866000 c7316730 c05f7770
[ 452.948926] fd40: 00000000 c71a0840 c7814000 bf2a2c8c 00000000 bf29d780 00000001 c03cdf10
[ 452.957141] fd60: 00000000 c05efd74 bf2a29ac 80000000 bf2a3230 c05f7630 c7802280 c71a0840
[ 452.965355] fd80: c71a0840 c7316730 bf29d780 80000000 c05f7770 00000000 c71a0840 bf2a3288
[ 452.973569] fda0: 00000000 bf2a29ac 80000000 00000000 c05efe0c bf2a8050 bf29d780 80000000
[ 452.981783] fdc0: c05f7770 c03cdde8 bf29d780 c71a0840 00000000 c71a0840 c71a0840 00000000
[ 452.989998] fde0: c05f7770 00000007 c05efe0c c7814000 bf29d780 c03cde74 00000000 c05efe0c
[ 452.998212] fe00: bf29d780 80000000 c70bfa00 bf2a8050 c062e93c c71a0840 00000003 c72b4e00
[ 453.006426] fe20: c7316722 c05efe6c c062f6a0 c05ee000 bf29da44 bf29dc94 00000000 bf29d780
[ 453.014640] fe40: 80000000 00000000 00000000 c71a0840 00000001 00200000 c7814000 c03a75c4
[ 453.022854] fe60: c05efe90 c78145bc 00000000 c71a0840 c7814440 c05f6f88 c7814000 c781452c
[ 453.031069] fe80: c78145bc 00000000 c71a0840 c7814440 00000001 c7814000 c7814440 c03253f4
[ 453.039283] fea0: 00000000 c06b4d80 c06b7880 6f81765e 00000010 c7814440 c8d667d0 00000080
[ 453.047497] fec0: 00000000 c78145b8 c7b49a88 c062f6a0 00000001 00000000 0000012c 00000080
[ 453.055712] fee0: c781452c c062f6a8 c06045b8 c03a97b8 c06b4c2c 00003607 c06064e4 00000001
[ 453.063925] ff00: c06b4c30 00000003 00000102 0000000a 00200000 3f94b3dc 00000000 c001d47c
[ 453.072141] ff20: c6050c80 fed20200 c05effa4 c06b4c2c 56251311 0000000b 00000000 fed20200
[ 453.080355] ff40: c05effa4 c08004c0 56251311 005e3588 00000000 c001da30 00000000 c00094d8
[ 453.088569] ff60: c00095e4 c00097ac 60000013 c043c214 00000000 c060b1d8 00000000 c00095c4
[ 453.096783] ff80: c05ee000 c0633428 c05f9ddc c05e526c c08004c0 56251311 005e3588 00000000
[ 453.104998] ffa0: c060b1d8 c05effb8 c00095e4 c00097ac 60000013 ffffffff c05f6c00 c0633380
[ 453.113211] ffc0: ffffffff c05c0768 ffffffff ffffffff c05c0284 00000000 00000000 c05e526c
[ 453.121425] ffe0: 00053975 c05f6044 c05e5268 c05f9dd4 00004000 00008040 00000000 00000000
[ 453.129647] [<c00c22b0>] (kfree+0xac/0x184) from [<c039f148>] (__kfree_skb+0x14/0xc0)
[ 453.137519] [<c039f148>] (__kfree_skb+0x14/0xc0) from [<c03e94e0>] (tcp_rcv_established+0x110/0x5e0)
[ 453.146702] [<c03e94e0>] (tcp_rcv_established+0x110/0x5e0) from [<c03f0ab8>] (tcp_v4_do_rcv+0x7c/0x23c)
[ 453.156143] [<c03f0ab8>] (tcp_v4_do_rcv+0x7c/0x23c) from [<c03f2ef4>] (tcp_v4_rcv+0x89c/0x920)
[ 453.164803] [<c03f2ef4>] (tcp_v4_rcv+0x89c/0x920) from [<c03d3074>] (ip_local_deliver_finish+0x194/0x2a0)
[ 453.174418] [<c03d3074>] (ip_local_deliver_finish+0x194/0x2a0) from [<c03d2e98>] (ip_rcv_finish+0x2e4/0x32c)
[ 453.184295] [<c03d2e98>] (ip_rcv_finish+0x2e4/0x32c) from [<c03a7704>] (__netif_receive_skb+0x728/0x86c)
[ 453.193885] [<c03a7704>] (__netif_receive_skb+0x728/0x86c) from [<bf2a2c8c>] (br_nf_pre_routing_finish+0x2e0/0x358 [bridge])
[ 453.205227] [<bf2a2c8c>] (br_nf_pre_routing_finish+0x2e0/0x358 [bridge]) from [<bf2a3288>] (br_nf_pre_routing+0x584/0x624 [bridge])
[ 453.217151] [<bf2a3288>] (br_nf_pre_routing+0x584/0x624 [bridge]) from [<c03cdde8>] (nf_iterate+0x48/0x7c)
[ 453.226855] [<c03cdde8>] (nf_iterate+0x48/0x7c) from [<c03cde74>] (nf_hook_slow+0x58/0x104)
[ 453.235273] [<c03cde74>] (nf_hook_slow+0x58/0x104) from [<bf29dc94>] (br_handle_frame+0x250/0x278 [bridge])
[ 453.245085] [<bf29dc94>] (br_handle_frame+0x250/0x278 [bridge]) from [<c03a75c4>] (__netif_receive_skb+0x5e8/0x86c)
[ 453.255578] [<c03a75c4>] (__netif_receive_skb+0x5e8/0x86c) from [<c03253f4>] (mv643xx_eth_poll+0x538/0x690)
[ 453.265371] [<c03253f4>] (mv643xx_eth_poll+0x538/0x690) from [<c03a97b8>] (net_rx_action+0x94/0x264)
[ 453.274552] [<c03a97b8>] (net_rx_action+0x94/0x264) from [<c001d47c>] (__do_softirq+0x108/0x28c)
[ 453.283384] [<c001d47c>] (__do_softirq+0x108/0x28c) from [<c001da30>] (irq_exit+0x44/0x9c)
[ 453.291686] [<c001da30>] (irq_exit+0x44/0x9c) from [<c00094d8>] (handle_IRQ+0x64/0x84)
[ 453.299649] [<c00094d8>] (handle_IRQ+0x64/0x84) from [<c043c214>] (__irq_svc+0x34/0x98)
[ 453.307696] [<c043c214>] (__irq_svc+0x34/0x98) from [<c00097ac>] (cpu_idle+0x6c/0xbc)
[ 453.315565] [<c00097ac>] (cpu_idle+0x6c/0xbc) from [<c05c0768>] (start_kernel+0x2b8/0x308)
[ 453.323868] Code: 1a000006 e5913000 e3130903 1a000000 (e7f001f2)
[ 453.329988] ---[ end trace bda479acfa320655 ]---
[ 453.334624] Kernel panic - not syncing: Fatal exception in interrupt
')
I just listened to music through a NFS share (accessed over eth0) and accessed the internet over wlan0 bridged to eth0 via bridge br0.
Seems to be some serious bug :cry:
ebbix
 
Posts: 48
Joined: Fri Aug 10, 2012 1:55 pm

Re: Kernel panic trying to forward ethernet connection

Postby pepedog » Sat Oct 27, 2012 11:21 pm

Which kernel package (I know it's 3.6.2-0-ARCH)
linux-kirkwood?
What about trying package linux
pepedog
Developer
 
Posts: 2431
Joined: Mon Jun 07, 2010 3:30 pm
Location: London UK

Re: Kernel panic trying to forward ethernet connection

Postby ebbix » Sun Oct 28, 2012 12:31 pm

Yes, it's linux-kirkwood.
I tried linux (3.1.10-13-ARCH) and it seems to work without any problems since about an hour (3.6.2 had kernel panic after about five minutes) :)
However, is there a chance of using a more recent kernel that doesn't crash? Have you got an archive of all linux-kirkwood versions prior to 3.6.2 for testing?
ebbix
 
Posts: 48
Joined: Fri Aug 10, 2012 1:55 pm

Re: Kernel panic trying to forward ethernet connection

Postby pepedog » Sun Oct 28, 2012 2:49 pm

Your going to have to report here
https://github.com/archlinuxarm/PKGBUIL ... state=open
Kurlon knows what he's doing, give as much info as possible, ie device, which kernel is ok or not, how to replicare(if possible without wifi stick)
pepedog
Developer
 
Posts: 2431
Joined: Mon Jun 07, 2010 3:30 pm
Location: London UK

Re: Kernel panic trying to forward ethernet connection

Postby ebbix » Sun Oct 28, 2012 2:55 pm

Okay, I'll file a bug report then.
But I doubt reproducing it will be possible without a wifi stick because the GoFlex Net has only one ehternet port, you would need at least two to create a bridge. And I will try to test some different kernel versions first.

edit:
I tested with linux-kirkwood-3.5.4 (compiled myself some weeks ago), same result.
I will try to test with long-term-support kernels. I already compiled linux-3.4.15, 3.2.32 to follow tonight. Testing will most likely happen tomorrow.
ebbix
 
Posts: 48
Joined: Fri Aug 10, 2012 1:55 pm

Re: Kernel panic trying to forward ethernet connection

Postby Kurlon » Sun Oct 28, 2012 9:28 pm

I'll keep an eye on this thread, I don't have a direct answer as to the cause of the panic. It might be worth hitting up the Linux Kernel list with that crash to see if they have suggestions or a pointer on who to ask about it.
Kurlon
 
Posts: 132
Joined: Fri Jan 06, 2012 10:05 pm

Re: Kernel panic trying to forward ethernet connection

Postby pepedog » Sun Oct 28, 2012 11:57 pm

I'll try that kernel tomorrow on a spare dockstar with wifi stick
pepedog
Developer
 
Posts: 2431
Joined: Mon Jun 07, 2010 3:30 pm
Location: London UK

Re: Kernel panic trying to forward ethernet connection

Postby ebbix » Mon Oct 29, 2012 7:36 am

$this->bbcode_second_pass_quote('pepedog', 'I')'ll try that kernel tomorrow on a spare dockstar with wifi stick

That's cool. However, please be aware that it might take a while until the kernel crashes. I always created some persistent network traffic (e.g. playing a video using a NFS share) with one machine and browsed the internet with another machine (connected over wifi).
I don't know if the bug happens with only one machine connected over wifi...
ebbix
 
Posts: 48
Joined: Fri Aug 10, 2012 1:55 pm

Next

Return to Hardware

Who is online

Users browsing this forum: No registered users and 6 guests