Modify

Opened 10 years ago

Closed 10 years ago

#2555 closed defect (wontfix)

r9337: acx-mac80211 Crash when setting essid

Reported by: nabcore Owned by: developers
Priority: normal Milestone: Kamikaze 8.09 RC1
Component: packages Version:
Keywords: ar7 acx-mac80211 Cc:

Description

The following is seen via the serial port on a DG834G v2 when iwconfig wlan0 essid mynetwork is executed:

[ 1654.280000] 00165428 ==> acx_net_conf_tx
[ 1654.280000] 00165428 <== acx_net_conf_tx
[ 1654.290000] 00165429 ==> acx_net_conf_tx
[ 1654.290000] 00165429 <== acx_net_conf_tx
[ 1654.290000] 00165429 ==> acx_net_conf_tx
[ 1654.300000] 00165430 <== acx_net_conf_tx
[ 1654.300000] 00165430 ==> acx_net_conf_tx
[ 1654.310000] 00165431 <== acx_net_conf_tx
[ 1654.310000] 00165431 ==> acx_net_conf_tx
[ 1654.320000] 00165432 <== acx_net_conf_tx
[ 1654.320000] 00165432 ==> acx_net_conf_tx
[ 1654.320000] 00165432 <== acx_net_conf_tx
[ 1654.330000] 00165433 ==> acx_net_conf_tx
[ 1654.330000] 00165433 <== acx_net_conf_tx
[ 1654.340000] 00165434 ==> acx_i_set_multicast_list
[ 1654.370000] CPU 0 Unable to handle kernel paging request at virtual address 00000000, epc == c00b6020, ra == c00c04ec
[ 1654.380000] Oops[#1]:
[ 1654.380000] Cpu 0
[ 1654.380000] $ 0   : 00000000 fffffffe 00000000 00000000
[ 1654.380000] $ 4   : 94586180 9458688c 9458688c 94586180
[ 1654.380000] $ 8   : 00000000 00000000 00000000 9433e000
[ 1654.380000] $12   : 09879480 000001c7 3022dc80 00000181
[ 1654.380000] $16   : 94585c80 94586180 94542800 00000000
[ 1654.380000] $20   : 00000000 00000000 00000000 00000000
[ 1654.380000] $24   : 00008000 c00c04b0
[ 1654.380000] $28   : 945f4000 945f5f18 00000000 c00c04ec
[ 1654.380000] Hi    : 00000000
[ 1654.380000] Lo    : 00000000
[ 1654.380000] epc   : c00b6020 ieee80211_hw_config+0x20/0x9c [mac80211]     Not tainted
[ 1654.380000] ra    : c00c04ec ieee80211_scan_completed+0x3c/0x260 [mac80211]
[ 1654.380000] Status: 10008403    KERNEL EXL IE
[ 1654.380000] Cause : 00800008
[ 1654.380000] BadVA : 00000000
[ 1654.380000] PrId  : 00018448
[ 1654.380000] Modules linked in: acx_mac80211 tiatm pppoatm nf_nat_tftp nf_conntrack_tftp nf_nat_irc nf_conntrack_irc nf_nat_ftp nf_conntrack_ftp ppp_async ppp_generic slhc crc_ccitt br2684 atm rc80211_simple mac80211 cfg80211 arc4 aes deflate ecb cbc blkcipher crypto_hash cryptomgr crypto_algapi
[ 1654.380000] Process acx_vlynq (pid: 625, threadinfo=945f4000, task=94f2a9e8)
[ 1654.380000] Stack : 943cf078 9411bb28 00000000 9411c684 94f2a9e8 94f2a9e8 94370000 94f2ab24
[ 1654.380000]         94585c80 c00c1af0 94585c80 c00c1af0 00000000 94135c34 94585c88 94585c80
[ 1654.380000]         00000000 00000000 94585c88 94585c80 9413696c 94136948 00000000 942e8de8
[ 1654.380000]         00000000 00000000 00000000 94f2a9e8 9413b0cc 945f5f8c 945f5f8c 00000000
[ 1654.380000]         94380000 941368c0 9413adc8 9413ada8 00000000 00000000 00000000 00000000
[ 1654.380000]         ...
[ 1654.380000] Call Trace:
[ 1654.380000] [<c00b6020>] ieee80211_hw_config+0x20/0x9c [mac80211]
[ 1654.380000] [<c00c04ec>] ieee80211_scan_completed+0x3c/0x260 [mac80211]
[ 1654.380000] [<94135c34>] run_workqueue+0x14c/0x20c
[ 1654.380000] [<9413696c>] worker_thread+0xac/0x100
[ 1654.380000] [<9413adc8>] kthread+0x58/0xb0
[ 1654.380000] [<94103d20>] kernel_thread_helper+0x10/0x18
[ 1654.380000]
[ 1654.380000]
[ 1654.380000] Code: 8c890744  8c880738  8c890740 <85020000> 90e40028  ace20000  8d020004  14800003  ace20008

Attachments (0)

Change History (4)

comment:1 Changed 10 years ago by nabcore

Still seeing this with r9426

comment:2 Changed 10 years ago by nabcore

Having modified ./trunk/build_dir/linux-ar7/mac80211/mac80211/ieee80211.c:483

int ieee80211_hw_config(struct ieee80211_local *local)
{
        if(!local){
                printk( KERN_DEBUG "*local is null, oops to follow\n");
        }
        struct ieee80211_hw_mode *mode;
        struct ieee80211_channel *chan;
        int ret = 0;

        if (local->sta_scanning) {
                if (!local->scan_channel){
                        printk( KERN_DEBUG "*local->scan is null, oops to follow\n");
                }
                chan = local->scan_channel;

                if (!local->scan_hw_mode){
                        printk( KERN_DEBUG "*local->scan_hw_mode is null, oops to follow\n");
                }
                mode = local->scan_hw_mode;
        } else {
                if (!local->oper_channel){
                        printk( KERN_DEBUG "*local->oper_channel is null, oops to follow\n");
                }
                chan = local->oper_channel;

                if (!local->oper_hw_mode){
                         printk( KERN_DEBUG "*local->oper_hw_mode is null, oops to follow\n");
                }
                mode = local->oper_hw_mode;
        }

        local->hw.conf.channel = chan->chan;
        local->hw.conf.channel_val = chan->val;
        if (!local->hw.conf.power_level) {
                local->hw.conf.power_level = chan->power_level;
        } else {
                local->hw.conf.power_level = min(chan->power_level,
                                                 local->hw.conf.power_level);
        }
        local->hw.conf.freq = chan->freq;
        local->hw.conf.phymode = mode->mode;
        local->hw.conf.antenna_max = chan->antenna_max;
        local->hw.conf.chan = chan;
        local->hw.conf.mode = mode;

#ifdef CONFIG_MAC80211_VERBOSE_DEBUG
        printk(KERN_DEBUG "HW CONFIG: channel=%d freq=%d "
               "phymode=%d\n", local->hw.conf.channel, local->hw.conf.freq,
               local->hw.conf.phymode);
#endif /* CONFIG_MAC80211_VERBOSE_DEBUG */

        if (local->open_count)
                if (!local->ops){
                        printk( KERN_DEBUG "*local->ops is null, oops to follow\n");
                }

                if (!local->ops->config){
                         printk( KERN_DEBUG "*local->ops->config is null, oops to follow\n");
                }

                ret = local->ops->config(local_to_hw(local), &local->hw.conf);

        return ret;
}

The following was outputted on the crash:

Oct 29 19:24:04 Bunny user.debug kernel: [  551.250000] phy0: Selected rate control algorithm 'simple'
Oct 29 19:24:06 Bunny user.debug kernel: [  553.220000] wlan0: Trigger new scan to find an IBSS to join
Oct 29 19:24:06 Bunny user.debug kernel: [  553.250000] *local->oper_channel is null, oops to follow
Oct 29 19:24:06 Bunny user.debug kernel: [  553.250000] *local->oper_hw_mode is null, oops to follow
Oct 29 19:24:06 Bunny user.alert kernel: [  553.250000] CPU 0 Unable to handle kernel paging request at virtual address 00000000, epc == c00b5138, ra == c00b5134
Oct 29 19:24:06 Bunny user.warn kernel: [  553.260000] Oops[#1]:
Oct 29 19:24:06 Bunny user.warn kernel: [  553.260000] Cpu 0
Oct 29 19:24:06 Bunny user.warn kernel: [  553.260000] $ 0   : 00000000 10008400 0000003f 94340000
Oct 29 19:24:06 Bunny user.warn kernel: [  553.260000] $ 4   : 94344820 00000000 00000001 00000000
Oct 29 19:24:06 Bunny user.warn kernel: [  553.260000] $ 8   : 94344820 94340000 94370000 94380000
Oct 29 19:24:06 Bunny user.warn kernel: [  553.260000] $12   : 94370000 00000000 00000078 00000030
Oct 29 19:24:06 Bunny user.warn kernel: [  553.260000] $16   : 945d0180 00000000 94533800 00000000
Oct 29 19:24:06 Bunny user.warn kernel: [  553.260000] $20   : 00000000 00000000 00000000 00000000
Oct 29 19:24:06 Bunny user.warn kernel: [  553.260000] $24   : 9463bd95 000186a0
Oct 29 19:24:06 Bunny user.warn kernel: [  553.260000] $28   : 9463a000 9463bef8 00000000 c00b5134
Oct 29 19:24:06 Bunny user.warn kernel: [  553.260000] Hi    : 00f42400
Oct 29 19:24:06 Bunny user.warn kernel: [  553.260000] Lo    : 00d59f80
Oct 29 19:24:06 Bunny user.warn kernel: [  553.260000] epc   : c00b5138 ieee80211_hw_config+0xbc/0x1cc [mac80211]     Not tainted
Oct 29 19:24:06 Bunny user.warn kernel: [  553.260000] ra    : c00b5134 ieee80211_hw_config+0xb8/0x1cc [mac80211]
Oct 29 19:24:06 Bunny user.warn kernel: [  553.260000] Status: 10008403    KERNEL EXL IE
Oct 29 19:24:06 Bunny user.warn kernel: [  553.260000] Cause : 00800008
Oct 29 19:24:06 Bunny user.warn kernel: [  553.260000] BadVA : 00000000
Oct 29 19:24:06 Bunny user.warn kernel: [  553.260000] PrId  : 00018448
Oct 29 19:24:06 Bunny user.warn kernel: [  553.260000] Modules linked in: acx_mac80211 tiatm pppoatm nf_nat_tftp nf_conntrack_tftp nf_nat_irc nf_conntrack_irc nf_nat_ftp nf_conntrack_ftp ppp_async ppp_generic slhc crc_ccitt br2684 atm rc80211_simple mac80211 cfg80211
Oct 29 19:24:06 Bunny user.warn kernel: [  553.260000] Process acx_vlynq (pid: 617, threadinfo=9463a000, task=94b76a08)
Oct 29 19:24:06 Bunny user.warn kernel: [  553.260000] Stack : 00000000 00000001 00000000 00000000 945ede80 945d0180 c00bf574 94b76a08
Oct 29 19:24:06 Bunny user.warn kernel: [  553.260000]         94c24158 9411bb98 00000000 9411dac0 94b76a08 94b76a08 94370000 94b76b44
Oct 29 19:24:06 Bunny user.warn kernel: [  553.260000]         945ede80 c00c0b78 945ede80 c00c0b78 00000000 94136c94 945ede88 945ede80
Oct 29 19:24:06 Bunny user.warn kernel: [  553.260000]         00000000 00000000 945ede88 945ede80 941379d0 941379ac 00000000 942ea668
Oct 29 19:24:06 Bunny user.warn kernel: [  553.260000]         00000000 00000000 00000000 94b76a08 9413c14c 9463bf8c 9463bf8c 00000000
Oct 29 19:24:06 Bunny user.warn kernel: [  553.260000]         ...
Oct 29 19:24:06 Bunny user.warn kernel: [  553.260000] Call Trace:
Oct 29 19:24:06 Bunny user.warn kernel: [  553.260000] [<c00b5138>] ieee80211_hw_config+0xbc/0x1cc [mac80211]
Oct 29 19:24:06 Bunny user.warn kernel: [  553.260000] [<c00bf574>] ieee80211_scan_completed+0x3c/0x260 [mac80211]
Oct 29 19:24:06 Bunny user.warn kernel: [  553.260000] [<94136c94>] run_workqueue+0x14c/0x20c
Oct 29 19:24:06 Bunny user.warn kernel: [  553.260000] [<941379d0>] worker_thread+0xac/0xfc
Oct 29 19:24:06 Bunny user.warn kernel: [  553.260000] [<9413be48>] kthread+0x58/0xb0
Oct 29 19:24:06 Bunny user.warn kernel: [  553.260000] [<94103ce0>] kernel_thread_helper+0x10/0x18
Oct 29 19:24:06 Bunny user.warn kernel: [  553.260000]
Oct 29 19:24:06 Bunny user.warn kernel: [  553.260000]
Oct 29 19:24:06 Bunny user.warn kernel: [  553.260000] Code: 0040f809  2484e978  8e050740 <86220000> 92040028  ae020000  8e220004  14800003  ae020008

This suggests that the pointers oper_channel and oper_hw_mode within the ieee80211_local structure, local are null.

comment:3 Changed 10 years ago by nabcore

I'm not sure if this is valid any more since we're now using a newer wirless-compat mac80211 cut. Close it for now.

comment:4 Changed 10 years ago by agb

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

Resolving as wontfix since we've updated to a newer compat-wireless snapshot. Reopen if the exact same problem presents itself.

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.