Modify

Opened 3 years ago

Closed 2 years ago

#19733 closed defect (no_response)

Kernel bug: swapper Not tainted

Reported by: shulong.li@… Owned by: developers
Priority: high Milestone: Chaos Calmer 15.05
Component: kernel Version: Trunk
Keywords: Kernel bug swapper Not tainted Cc:

Description

Used the latest trunk on MT7620+7612 802.11 a/b/g/n - Lenovo Y1 hardware

[ 4404.980000] ------------[ cut here ]------------
[ 4404.980000] WARNING: CPU: 0 PID: 0 at kernel/softirq.c:146 local_bh_enable_ip+0x54/0xb8()
[ 4404.980000] Modules linked in: pppoe ppp_async iptable_nat rt2800soc rt2800pci rt2800mmio rt2800lib pptp pppox ppp_mppe ppp_generic nf_nat_pptp nf_nat_ipv4 nf_nat_amanda nf_conntrack_pptp nf_conntrack_ipv6 nf_conntrack_ipv4 nf_conntrack_amanda ipt_REJECT ipt_MASQUERADE xt_time xt_tcpudp xt_state xt_nat xt_multiport xt_mark xt_mac xt_limit xt_id xt_conntrack xt_comment xt_TCPMSS xt_REDIRECT xt_NETMAP xt_LOG xt_CT ts_kmp ts_fsm ts_bm slhc rt2x00soc rt2x00pci rt2x00mmio rt2x00lib nf_reject_ipv4 nf_nat_tftp nf_nat_snmp_basic nf_nat_sip nf_nat_proto_gre nf_nat_masquerade_ipv4 nf_nat_irc nf_nat_h323 nf_nat_ftp nf_nat nf_log_ipv4 nf_defrag_ipv6 nf_defrag_ipv4 nf_conntrack_tftp nf_conntrack_snmp nf_conntrack_sip nf_conntrack_rtcache nf_conntrack_proto_gre nf_conntrack_irc nf_conntrack_h323 nf_conntrack_ftp nf_conntrack_broadcast nf_conntrack iptable_raw iptable_mangle iptable_filter ip_tables crc_itu_t crc_ccitt mt76pci mac80211 cfg80211 compat ledtrig_usbdev ip6t_REJECT nf_reject_ipv6 nf_log_ipv6 nf_log_common ip6table_raw ip6table_mangle ip6table_filter ip6_tables x_tables ip_gre gre sit tunnel4 ip_tunnel vfat fat ntfs nls_utf8 nls_iso8859_1 nls_cp437 ipv6 eeprom_93cx6 sha1_generic ecb arc4 crypto_blkcipher usb_storage leds_gpio ohci_platform ohci_hcd ehci_platform ehci_hcd sd_mod scsi_mod gpio_button_hotplug ext4 jbd2 mbcache usbcore nls_base usb_common crc16 crypto_hash
[ 4404.980000] CPU: 0 PID: 0 Comm: swapper Not tainted 3.18.14 #6
[ 4404.980000] Stack : 00000000 00000000 00000000 00000000 803741f2 00000032 00000000 80026acc
[ 4404.980000] 00000000 00000000 802d0a84 8032aba3 00000000 8037341c 8032aed8 00000000
[ 4404.980000] 85c61dd0 00000006 00000018 800475e0 00000003 8002427c 00000092 00000000
[ 4404.980000] 802d3f9c 80325bbc 00000000 00000000 00000000 00000000 00000000 00000000
[ 4404.980000] 00000000 00000000 00000000 00000000 00000000 00000000 00000000 00000000
[ 4404.980000] ...
[ 4404.980000] Call Trace:
[ 4404.980000] [<80014140>] show_stack+0x48/0x70
[ 4404.980000] [<80024384>] warn_slowpath_common+0x84/0xb4
[ 4404.980000] [<8002443c>] warn_slowpath_null+0x18/0x24
[ 4404.980000] [<80026acc>]
local_bh_enable_ip+0x54/0xb8
[ 4404.980000] [<87301a38>] ieee80211_tx_status_noskb+0x158/0x4e8 [mac80211]
[ 4404.980000] [<872241e4>] mt76_set_channel+0x4dc/0x5bc [mt76pci]
[ 4404.980000]
[ 4404.980000] ---[ end trace 1abf68a1ad4942ff ]---

Attachments (0)

Change History (6)

comment:1 Changed 3 years ago by anonymous

i have the same issue

comment:2 Changed 3 years ago by anonymous

i found the WARNING is form ./linux-3.18.14/kernel/softirq.c line 147 :

void local_bh_enable_ip(unsigned long ip, unsigned int cnt)
{

WARN_ON_ONCE(in_irq()
irqs_disabled());

#ifdef CONFIG_TRACE_IRQFLAGS

local_irq_disable();

...


There is supposed to trun on the irqs.
BUT,
in ./compat-wireless-2015-03-09/net/mac80211/rate.h line 69 :

static inline void
rate_control_tx_status_noskb(struct ieee80211_local *local,

struct ieee80211_supported_band *sband,
struct sta_info *sta,
struct ieee80211_tx_info *info)

{

struct rate_control_ref *ref = local->rate_ctrl;
struct ieee80211_sta *ista = &sta->sta;
void *priv_sta = sta->rate_ctrl_priv;

if (!ref
!test_sta_flag(sta, WLAN_STA_RATE_CONTROL))

return;

if (WARN_ON_ONCE(!ref->ops->tx_status_noskb))

return;

spin_lock_bh(&sta->rate_ctrl_lock);
ref->ops->tx_status_noskb(ref->priv, sband, ista, priv_sta, info);
spin_unlock_bh(&sta->rate_ctrl_lock);

}


is it turn off the irqs in here ?

comment:3 Changed 3 years ago by nbd

  • Resolution set to fixed
  • Status changed from new to closed

fixed in r45952

comment:4 Changed 2 years ago by anonymous

  • Resolution fixed deleted
  • Status changed from closed to reopened

still having problems.. seems like it acts up when using channels other than 36

Thu Nov 19 13:33:26 2015 kern.warn kernel: [ 581.020000] ------------[ cut here ]------------
Thu Nov 19 13:33:26 2015 kern.warn kernel: [ 581.020000] WARNING: CPU: 0 PID: 1402 at /mnt/builds/openwrt-trunk-tx/build_dir/target-mipsel_24kec+dsp_musl-1.1.11/linux-ramips_mt7620/mt76-2015-10-30/mac.c:284 mt76_set_channel+0x2dc/0x6e8 [mt76pci]()
Thu Nov 19 13:33:26 2015 kern.warn kernel: [ 581.040000] Modules linked in: iptable_nat ip6table_nat rt2800soc rt2800pci rt2800mmio rt2800lib nf_nat_ipv6 nf_nat_ipv4 nf_conntrack_ipv6 nf_conntrack_ipv4 ipt_REJECT ipt_MASQUERADE xt_time xt_tcpudp xt_tcpmss xt_string xt_statistic xt_state xt_recent xt_quota xt_pkttype xt_owner xt_nat xt_multiport xt_mark xt_mac xt_limit xt_length xt_ipv4options xt_id xt_hl xt_helper xt_ecn xt_dscp xt_conntrack xt_connmark xt_connlimit xt_connbytes xt_comment xThu Nov 19 13:33:26 2015 kern.warn kernel: [ 581.230000] CPU: 0 PID: 1402 Comm: netifd Tainted: G W 3.18.23 #35
Thu Nov 19 13:33:26 2015 kern.warn kernel: [ 581.240000] Stack : 00000000 00000000 00000000 00000000 803941f2 00000042 0000057a 00000000
Thu Nov 19 13:33:26 2015 kern.warn kernel: [ 581.240000] 878f7cd0 00000001 802e9938 80347143 0000057a 80393420 878f7cd0 00000001
Thu Nov 19 13:33:26 2015 kern.warn kernel: [ 581.240000] 87395ab8 00000006 00000018 800479d4 00000003 80024538 0000011c 00000001
Thu Nov 19 13:33:26 2015 kern.warn kernel: [ 581.240000] 802ece70 003959cc 00000000 00000000 00000000 00000000 00000000 00000000
Thu Nov 19 13:33:26 2015 kern.warn kernel: [ 581.240000] 00000000 00000000 00000000 00000000 00000000 00000000 00000000 00000000
Thu Nov 19 13:33:26 2015 kern.warn kernel: [ 581.240000] ...
Thu Nov 19 13:33:26 2015 kern.warn kernel: [ 581.270000] Call Trace:
Thu Nov 19 13:33:26 2015 kern.warn kernel: [ 581.280000] [<8001436c>] show_stack+0x50/0x84
Thu Nov 19 13:33:26 2015 kern.warn kernel: [ 581.280000] [<800246b4>] warn_slowpath_common+0x84/0xb4
Thu Nov 19 13:33:26 2015 kern.warn kernel: [ 581.290000] [<8002476c>] warn_slowpath_null+0x18/0x24
Thu Nov 19 13:33:26 2015 kern.warn kernel: [ 581.290000] [<871d46c4>] mt76_set_channel+0x2dc/0x6e8 [mt76pci]
Thu Nov 19 13:33:26 2015 kern.warn kernel: [ 581.300000]
Thu Nov 19 13:33:26 2015 kern.warn kernel: [ 581.300000] ---[ end trace e9f26ab2d51827c8 ]---

comment:5 Changed 2 years ago by nbd

That's a completely different issue. Any symptoms other than this warning? Also, what device are you using?

comment:6 Changed 2 years ago by nbd

  • Resolution set to no_response
  • Status changed from reopened to closed

Add Comment

Modify Ticket

Action
as closed .
The resolution will be deleted. Next status will be 'reopened'.
Author


E-mail address and user name can be saved in the Preferences.

 
Note: See TracTickets for help on using tickets.