Project

General

Profile

Actions

Bug #141

closed

kernel panic on intel cards while doing ifconfig bat0 up

Added by Anonymous over 13 years ago. Updated about 7 years ago.

Status:
Closed
Priority:
Normal
Assignee:
-
Target version:
Start date:
Due date:
% Done:

0%

Estimated time:

Description

20:29 < thorkill> the bug is somewhere in soft-interface.c interface_rx() > skb>protocol = eth_type_trans(skb, soft_iface);
It has problably something to do with this change https://git.open-mesh.org/batman-adv.git/commitdiff/e704b9c52a49d4bc745c730e8e4a9614ed014c54

How to repeat the problem:
setup ad-hoc network, add wlan0 to batman, ./batctl o will show the nodes then on some other node than the intel one: ifconfig bat0 up

Panic occurs immedietly after you hit enter.

Problem occurs on followig intel cards:
  • Intel 3945ABG (Golan)
  • Intel Corporation PRO/Wireless 4965 AG or AGN [Kedron] Network Connection (rev 61)

tested on latest svn revision:

batman_adv: B.A.T.M.A.N. advanced devel rv1873 (compatibility version 12) loaded

and kernel versions 2.6.34 to 2.6.37-rc2

--- netconsole dump ---
[ 1004.563555] batman_adv: bat0: Interface activated: wlan0
[ 1004.563561] wlan0: Trigger new scan to find an IBSS to join
[ 1006.388205] wlan0: Selected IBSS BSSID 96:a4:43:71:47:82 based on configured SSID
[ 1006.395541] iwlagn 0000:02:00.0: Unable to find TIM Element in beacon
[ 1006.396246] iwlagn 0000:02:00.0: Unable to find TIM Element in beacon
[ 1015.393899] wlan0: no IPv6 routers present
[ 1025.657509] ------------[ cut here ]------------
[ 1025.657560] kernel BUG at include/linux/skbuff.h:1178!
[ 1025.657600] invalid opcode: 0000 [#1] SMP 
[ 1025.657643] last sysfs file: /sys/devices/LNXSYSTM:00/device:00/PNP0C0A:00/power_supply/BAT1/voltage_now
[ 1025.657709] CPU 1 
[ 1025.657727] Modules linked in: netconsole batman_adv aesni_intel cryptd aes_x86_64 aes_generic rfcomm sco bnep l2cap iptable_filter ip_tables x_tables kvm_intel kvm arc4 iwlagn i915 iwlcore snd_hda_codec_realt
ek mac80211 snd_hda_intel snd_hda_codec snd_hwdep snd_pcm snd_seq drm_kms_helper snd_timer snd_seq_device snd drm cfg80211 btusb bluetooth firewire_ohci i2c_algo_bit video firewire_core soundcore sdhci_pci sdhci 
output crc_itu_t intel_agp intel_gtt sony_laptop snd_page_alloc [last unloaded: netconsole]
[ 1025.658292] 
[ 1025.658309] Pid: 0, comm: kworker/0:0 Not tainted 2.6.37-rc2-00065-g589136b #3 VAIO/VPCZ11C5E
[ 1025.658369] RIP: 0010:[<ffffffff8148e458>]  [<ffffffff8148e458>] eth_type_trans+0xc8/0xe0
[ 1025.658438] RSP: 0018:ffff880093483970  EFLAGS: 00010283
[ 1025.658477] RAX: 000000000000006d RBX: ffff88013b628600 RCX: ffff88015112346d
[ 1025.658528] RDX: 000000000000004c RSI: ffff880153a22000 RDI: ffff88013b628600
[ 1025.658578] RBP: ffff880093483970 R08: ffff88009348d870 R09: 0000000000000000
[ 1025.658628] R10: ffff880151120c6d R11: 0000000000000000 R12: ffff880153a22000
[ 1025.658678] R13: ffff88013b76c0c0 R14: 000000000000000d R15: ffff880153a226c0
[ 1025.658729] FS:  0000000000000000(0000) GS:ffff880093480000(0000) knlGS:0000000000000000
[ 1025.658785] CS:  0010 DS: 0000 ES: 0000 CR0: 000000008005003b
[ 1025.658826] CR2: 00007f44a1012858 CR3: 0000000001a03000 CR4: 00000000000006e0
[ 1025.658876] DR0: 0000000000000000 DR1: 0000000000000000 DR2: 0000000000000000
[ 1025.658927] DR3: 0000000000000000 DR6: 00000000ffff0ff0 DR7: 0000000000000400
[ 1025.658977] Process kworker/0:0 (pid: 0, threadinfo ffff880157d1a000, task ffff880157d20000)
[ 1025.659035] Stack:
[ 1025.659052]  ffff8800934839b0 ffffffffa03a314d ffff880151123460 ffff88013b628600
[ 1025.659120]  ffff88013b76c0c0 ffff880151123460 ffff88013b48fe40 0000000000000008
[ 1025.659187]  ffff880093483a10 ffffffffa03a102c ffff880093483a10 ffff88013b48fea8
[ 1025.659253] Call Trace:
[ 1025.659274]  <IRQ> 
[ 1025.659303]  [<ffffffffa03a314d>] interface_rx+0xad/0x1a0 [batman_adv]
[ 1025.659354]  [<ffffffffa03a102c>] recv_bcast_packet+0x18c/0x1d0 [batman_adv]
[ 1025.659416]  [<ffffffffa039c964>] batman_skb_recv+0x134/0x190 [batman_adv]
[ 1025.659480]  [<ffffffff814724e8>] +netif_receive_skb+0x308/0x400
[ 1025.659536]  [<ffffffff81477850>] netif_receive_skb+0x80/0x90
[ 1025.659603]  [<ffffffffa0218e5e>] ieee80211_deliver_skb+0xae/0x220 [mac80211]
[ 1025.659677]  [<ffffffffa021a249>] ieee80211_rx_handlers+0x1129/0x1e70 [mac80211]
[ 1025.659744]  [<ffffffff812a47c3>] ? cpumask_next_and+0x23/0x40
[ 1025.659809]  [<ffffffffa021b1d0>] ieee80211_prepare_and_rx_handle+0x240/0xaa0 [mac80211]
[ 1025.659893]  [<ffffffffa021c1b1>] ieee80211_rx+0x781/0x8d0 [mac80211]
[ 1025.659959]  [<ffffffffa0315434>] iwlagn_rx_reply_rx+0x2e4/0x430 [iwlagn]
[ 1025.660023]  [<ffffffff812bcf84>] ? unmap_single+0x34/0x70
[ 1025.660076]  [<ffffffffa0301d51>] iwl_rx_handle+0x101/0x380 [iwlagn]
[ 1025.660136]  [<ffffffffa0306400>] iwl_irq_tasklet+0xe0/0x460 [iwlagn]
[ 1025.660195]  [<ffffffff81050992>] tasklet_action+0xe2/0x120
[ 1025.660250]  [<ffffffffa030d403>] ? iwl_isr_ict+0x1f3/0x290 [iwlagn]
[ 1025.660306]  [<ffffffff81050640>] +do_softirq+0xb0/0x200
[ 1025.660356]  [<ffffffff8109c2d0>] ? handle_IRQ_event+0x50/0x160
[ 1025.660410]  [<ffffffff810037cc>] call_softirq+0x1c/0x30
[ 1025.660459]  [<ffffffff81005985>] do_softirq+0x55/0x90
[ 1025.660506]  [<ffffffff81050505>] irq_exit+0x85/0x90
[ 1025.660553]  [<ffffffff8153ad01>] do_IRQ+0x71/0xf0
[ 1025.660598]  [<ffffffff8153a813>] ret_from_intr+0x0/0xa
[ 1025.660643]  <EOI> 
[ 1025.660675]  [<ffffffff812ee113>] ? intel_idle+0xe3/0x180
[ 1025.660724]  [<ffffffff812ee0f6>] ? intel_idle+0xc6/0x180
[ 1025.660777]  [<ffffffff8143e201>] cpuidle_idle_call+0x91/0x130
[ 1025.663457]  [<ffffffff81001691>] cpu_idle+0xb1/0x130
[ 1025.666118]  [<ffffffff81533b25>] start_secondary+0x1d4/0x1db
[ 1025.668781] Code: f8 83 ca 03 88 57 7d eb bd 48 8b 96 88 02 00 00 48 33 10 48 c1 e2 10 48 85 d2 75 13 0f b6 57 7d 83 e2 f8 83 ca 01 88 57 7d eb 9b <0f> 0b eb fe 0f b6 57 7d 83 e2 f8 83 ca 02 88 57 7d eb 88 eb 
03 
[ 1025.674945] RIP  [<ffffffff8148e458>] eth_type_trans+0xc8/0xe0
[ 1025.677834]  RSP <ffff880093483970>
[ 1025.694830] ---[ end trace a7b21954d862769e ]---
Actions

Also available in: Atom PDF