Modify

Opened 4 years ago

Closed 4 years ago

#14259 closed defect (fixed)

rtl8192cu driver: kernel unaligned access

Reported by: joykicer@… Owned by: developers
Priority: normal Milestone: Chaos Calmer 15.05
Component: kernel Version: Trunk
Keywords: rtl8192cu, unaligned access Cc: hauke@…

Description

I have a WiFi usb card that used RTL8188RU chip. After plug in, detect seems ok(rtl8192cu driver), when exec 'wifi up', router will dmesg "kernel unaligned access" then hang up.

# /etc/config/wireless
config wifi-device  radio1
	option type     mac80211
	option channel  11
	option hwmode	11ng
	option path	'platform/ehci-platform/usb1/1-1/1-1:1.0'
	option htmode	HT20
	list ht_capab	SHORT-GI-20
	list ht_capab	SHORT-GI-40
	list ht_capab	DSSS_CCK-40
	# REMOVE THIS LINE TO ENABLE WIFI:
	option disabled 0

config wifi-iface
	option device   radio1
	option network  lan
	option mode     ap
	option ssid     OpenWrt
	option encryption none
# dmesg
[   15.656000] rtl8192cu: Chip version 0x10
[   15.660000] ieee80211 phy0: Selected rate control algorithm 'minstrel_ht'
[   17.056000] rtl_usb: rx_max_size 15360, rx_urb_num 8, in_ep 1
[   17.060000] rtl8192cu: Loading firmware rtlwifi/rtl8192cufw.bin
[   17.068000] usbcore: registered new interface driver rtl8192cu
[   17.140000] ieee80211 phy1: Selected rate control algorithm 'rtl_rc'
[   17.148000] rtlwifi: wireless switch is on
[   24.184000] bcm63xx_enetsw bcm63xx_enetsw.0: link UP on Port 2, 100Mbps, full-duplex
[   24.212000] device eth0 entered promiscuous mode
[   24.224000] br-lan: port 1(eth0) entered forwarding state
[   24.228000] br-lan: port 1(eth0) entered forwarding state
[   26.232000] br-lan: port 1(eth0) entered forwarding state
[   30.760000] rtl8192cu: MAC auto ON okay!
[   30.800000] rtl8192cu: Tx queue select: 0x05
[   31.212000] IPv6: ADDRCONF(NETDEV_UP): wlan1: link is not ready
[   31.224000] Unhandled kernel unaligned access[#1]:
[   31.224000] CPU: 0 PID: 834 Comm: hostapd Not tainted 3.10.13 #4
[   31.224000] task: 8283d198 ti: 833fc000 task.ti: 833fc000
[   31.224000] $ 0   : 00000000 10008401 83ba791a 00000000
[   31.224000] $ 4   : 83ba7916 833fdc70 00000002 ffff00fe
[   31.224000] $ 8   : 833fdfe0 00008400 00000000 00000000
[   31.224000] $12   : 00000000 0000002c 00000000 00000000
[   31.224000] $16   : 83ba7916 00000001 83ba5400 83ba4a80
[   31.224000] $20   : 00000001 ff070000 07ff0000 00008914
[   31.224000] $24   : 00000000 8001ccfc                  
[   31.224000] $28   : 833fc000 833fdc98 7fdf2e28 832360a8
[   31.224000] Hi    : 00000007
[   31.224000] Lo    : 45186e00
[   31.224000] epc   : 8002e24c tasklet_kill+0x64/0xac
[   31.224000]     Not tainted
[   31.224000] ra    : 832360a8 rtl_usb_resume+0x74/0x1ec [rtl_usb]
[   31.224000] Status: 10008403	KERNEL EXL IE 
[   31.224000] Cause : 00800010
[   31.224000] BadVA : 83ba791a
[   31.224000] PrId  : 0002a075 (Broadcom BMIPS4350)
[   31.224000] Modules linked in: rtl8192se rtl8192cu rtl8192ce rtl_usb rtl_pci pppoe ppp_async iptable_nat brcmsmac rtlwifi rtl8187 pppox ppp_generic nf_nat_ipv4 nf_conntrack_ipv4 mac80211 ipt_MASQUERADE cfg80211 xt_time xt_tcpudp xt_state xt_nat xt_multiport xt_mark xt_mac xt_limit xt_conntrack xt_comment xt_TCPMSS xt_REDIRECT xt_LOG xt_CT uvcvideo ums_usbat ums_sddr55 ums_sddr09 ums_karma ums_jumpshot ums_isd200 ums_freecom ums_datafab ums_cypress ums_alauda slhc rtl8192c_common nf_nat_irc nf_nat_ftp nf_nat nf_defrag_ipv4 nf_conntrack_irc nf_conntrack_ftp iptable_raw iptable_mangle iptable_filter ipt_REJECT ip_tables crc_ccitt cordic compat brcmutil videobuf2_vmalloc videobuf2_memops videobuf2_core v4l2_common videodev i2c_core ip6t_REJECT ip6t_rt ip6t_hbh ip6t_mh ip6t_ipv6header ip6t_frag ip6t_eui64 ip6t_ah ip6table_raw ip6table_mangle ip6table_filter ip6_tables x_tables nf_conntrack_ipv6 nf_conntrack nf_defrag_ipv6 vfat fat ntfs nls_utf8 nls_iso8859_1 nls_cp437 ipv6 eeprom_93cx6 arc4 crypto_blkcipher gpio_keys_polled usb_storage input_polldev ohci_hcd ehci_platform ehci_hcd sd_mod scsi_mod ext4 crc16 jbd2 mbcache button_hotplug input_core usbcore nls_base usb_common crypto_hash
[   31.224000] Process hostapd (pid: 834, threadinfo=833fc000, task=8283d198, tls=77dd3440)
[   31.224000] Stack : 00000000 00008914 00000000 80024530 00000000 83ba5400 00000000 832360a8
[   31.224000] 	  7fdf2e28 832367bc 10008403 00000001 00000000 83ba5400 00000000 83236138
[   31.224000] 	  83ba55c0 8003ee18 833fc000 833fdd08 83ba5400 83ba4a80 83ba4a80 00000000
[   31.224000] 	  00000001 831d1000 00000000 832367bc 83ba4a80 83250f6c 10008401 833fdd14
[   31.224000] 	  83ba5400 83ba5400 83ba5438 83253d24 fffffffe 00000000 00000001 831d1000
[   31.224000] 	  ...
[   31.224000] Call Trace:
[   31.224000] [<8002e24c>] tasklet_kill+0x64/0xac
[   31.224000] [<832360a8>] rtl_usb_resume+0x74/0x1ec [rtl_usb]
[   31.224000] 
[   31.224000] 
[   31.224000] Code: 00000000  24110001  26020004 <c0430000> 00712025  e0440000  1080fffc  00000000  30630001 
[   31.496000] ---[ end trace 88ae2a6bc8718172 ]---
root@OpenWrt:~# ifconfig 
^C

Attachments (2)

dmesg-rtl8192cu.log (15.3 KB) - added by joykicer@… 4 years ago.
tmp.patch (1.5 KB) - added by hauke 4 years ago.
rtlwifi-unaligned-access.patch

Download all attachments as: .zip

Change History (5)

Changed 4 years ago by joykicer@…

comment:1 Changed 4 years ago by hauke

Larry Finger fixed a unaligned access problem in rtlwifi some time ago [0], can you please try the attached patch.

[0]: https://git.kernel.org/cgit/linux/kernel/git/linville/wireless-testing.git/commit/?id=60ce314d1750fef843e9db70050e09e49f838b69

Changed 4 years ago by hauke

rtlwifi-unaligned-access.patch

comment:2 Changed 4 years ago by joykicer@…

Thanks, it works for this issue.

comment:3 Changed 4 years ago by hauke

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

Thank you for reporting this issue, it was fixed in r38346 and r38347.

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.