Bug 16412

Summary: BUG: using smp_processor_id() in preemptible [00000000] code: hostapd/1045
Product: Networking Reporter: ojab
Component: WirelessAssignee: networking_wireless (networking_wireless)
Status: RESOLVED CODE_FIX    
Severity: normal CC: linville
Priority: P1    
Hardware: All   
OS: Linux   
Kernel Version: 2.6.35-rc5 Subsystem:
Regression: No Bisected commit-id:
Attachments: .config
0001-wireless-use-netif_rx_ni-in-ieee80211_send_layer2_up.patch

Description ojab 2010-07-18 17:07:27 UTC
Happens every time I start hostapd.
linux-2.6.35-rc5, hostapd-0.7.2, 
02:00.0 Network controller: Atheros Communications Inc. AR5008 Wireless Network Adapter (rev 01)


[    8.928919] BUG: using smp_processor_id() in preemptible [00000000] code: hostapd/1045
[    8.930514] caller is netif_rx+0x85/0x90
[    8.932048] Pid: 1045, comm: hostapd Not tainted 2.6.35-rc5-ojab #1
[    8.933570] Call Trace:
[    8.935061]  [<ffffffff811a053a>] ? debug_smp_processor_id+0xda/0xf0
[    8.936570]  [<ffffffff81270ee5>] ? netif_rx+0x85/0x90
[    8.938063]  [<ffffffff81266568>] ? dev_alloc_skb+0x18/0x40
[    8.939565]  [<ffffffffa041bf95>] ? ieee80211_add_station+0x155/0x160 [mac80211]
[    8.939571]  [<ffffffffa041be40>] ? ieee80211_add_station+0x0/0x160 [mac80211]
[    8.939576]  [<ffffffffa03289ed>] ? nl80211_new_station+0x1cd/0x1e0 [cfg80211]
[    8.939580]  [<ffffffff81290621>] ? genl_rcv_msg+0x181/0x1b0
[    8.939582]  [<ffffffff8126afb8>] ? __skb_recv_datagram+0xb8/0x280
[    8.939585]  [<ffffffff812904a0>] ? genl_rcv_msg+0x0/0x1b0
[    8.939587]  [<ffffffff81290071>] ? netlink_rcv_skb+0x91/0xb0
[    8.939589]  [<ffffffff8129048f>] ? genl_rcv+0x1f/0x30
[    8.939591]  [<ffffffff8128f9b3>] ? netlink_unicast+0x2b3/0x300
[    8.939593]  [<ffffffff8128fbcc>] ? netlink_sendmsg+0x1cc/0x2b0
[    8.939595]  [<ffffffff8125eeaa>] ? sock_sendmsg+0xda/0x120
[    8.939599]  [<ffffffff810dba9c>] ? try_get_mem_cgroup_from_mm+0x5c/0x90
[    8.939601]  [<ffffffff8125fbcd>] ? move_addr_to_kernel+0x2d/0x40
[    8.939603]  [<ffffffff81260e86>] ? sys_sendmsg+0x1e6/0x300
[    8.939606]  [<ffffffff810406d9>] ? get_parent_ip+0x9/0x20
[    8.939608]  [<ffffffff81040777>] ? sub_preempt_count+0x87/0xb0
[    8.939610]  [<ffffffff812f3adf>] ? _raw_spin_unlock_irqrestore+0x1f/0x40
[    8.939615]  [<ffffffff810406d9>] ? get_parent_ip+0x9/0x20
[    8.939617]  [<ffffffff810406d9>] ? get_parent_ip+0x9/0x20
[    8.939619]  [<ffffffff810f4d1f>] ? d_kill+0x5f/0x80
[    8.939621]  [<ffffffff810f54f0>] ? dput+0xb0/0x170
[    8.939623]  [<ffffffff810e494e>] ? fput+0x18e/0x230
[    8.939625]  [<ffffffff810fc85f>] ? mntput_no_expire+0x1f/0xc0
[    8.939628]  [<ffffffff810e15a9>] ? filp_close+0x59/0x80
[    8.939630]  [<ffffffff81002d02>] ? system_call_fastpath+0x16/0x1b
Comment 1 John W. Linville 2010-07-19 15:00:42 UTC
Have you used hostapd with this device on previous kernels?  If so, what is the first kernel to show this issue?

Could you attach your .config?
Comment 2 ojab 2010-07-19 15:09:16 UTC
Created attachment 27153 [details]
.config
Comment 3 ojab 2010-07-19 15:13:50 UTC
Haven't used hostapd on previous kernels, so don't know when it started.
Comment 4 John W. Linville 2010-07-19 15:55:24 UTC
Created attachment 27155 [details]
0001-wireless-use-netif_rx_ni-in-ieee80211_send_layer2_up.patch

Give this a try?
Comment 5 ojab 2010-07-19 17:38:52 UTC
No error with patch, it works.
Comment 6 ojab 2010-07-24 20:11:52 UTC
Any chance to have this in 2.6.35?