Modify

Opened 3 years ago

Last modified 3 years ago

#18985 new defect

trunk : Reboot command causes hanging router on 32M flash chip (AR9344 platform)

Reported by: dony71 Owned by: developers
Priority: normal Milestone: Chaos Calmer 15.05
Component: kernel Version: Trunk
Keywords: Cc:

Description

reboot -f shows segmentation fault

[quote]
[ 207.760000] Unhandled kernel unaligned access#1:
[ 207.760000] CPU: 0 PID: 1270 Comm: reboot Not tainted 3.14.30 #32
[ 207.760000] task: 86ef2b08 ti: 86ed2000 task.ti: 86ed2000
[ 207.760000] $ 0 : 00000000 00000001 ffffff71 00000001
[ 207.760000] $ 4 : 8034bb40 86ed3b88 00000087 70000000
[ 207.760000] $ 8 : 00000001 0e000000 87854481 00000200
[ 207.760000] $12 : 10000000 20000000 40000000 02000000
[ 207.760000] $16 : 87913210 878c4900 803502ec 803b0000
[ 207.760000] $20 : 803108bc 80340e1c 803b0000 00000000
[ 207.760000] $24 : 04000000 08000000
[ 207.760000] $28 : 86ed2000 86ed3c00 7fde4c58 801b1510
[ 207.760000] Hi : 0000028f
[ 207.760000] Lo : 00000001
[ 207.760000] epc : 801b1510 m25p_remove+0x2c/0x1a4
[ 207.760000] Not tainted
[ 207.760000] ra : 801b1510 m25p_remove+0x2c/0x1a4
[ 207.760000] Status: 1100dc03 KERNEL EXL IE
[ 207.760000] Cause : 00800010
[ 207.760000] BadVA : ffffff91
[ 207.760000] PrId : 0001974c (MIPS 74Kc)
[ 207.760000] Modules linked in: ath9k ath9k_common pppoe ppp_async iptable_nat ath9k_hw ath pppox ppp_generic nf_nat_ipv4 nf_conntrack_ipv6 nf_conntrack_ipv4 mac80211 ipt_MASQUERADE cfg80211 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_LOG xt_CT slhc nf_nat_irc nf_nat_ftp nf_nat nf_defrag_ipv6 nf_defrag_ipv4 nf_conntrack_rtcache nf_conntrack_irc nf_conntrack_ftp nf_conntrack iptable_raw iptable_mangle iptable_filter ipt_REJECT ip_tables crc_ccitt compat ip6t_REJECT ip6table_raw ip6table_mangle ip6table_filter ip6_tables x_tables ipv6 arc4 crypto_blkcipher ehci_platform ehci_hcd gpio_button_hotplug usbcore nls_base usb_common
[ 207.760000] Process reboot (pid: 1270, threadinfo=86ed2000, task=86ef2b08, tls=77fc5440)
[ 207.760000] Stack : 803108bc 80340e1c 87915630 80000000 86ed3c78 86ed3c40 803108bc 80340e1c

803b0000 00000000 7fde4c58 8019c530 00000000 8019cbc0 879155a0 879155e8
00000000 86ed3c44 86ed3c44 87915630 87911ee8 87915630 87911ee8 878c4900
8034bb9c 803502ec 803b0000 800dee5c 803502ec 8012c670 00000000 878c4900
8034bb9c 803502ec 803b0000 8008d8fc 80340e1c 8019fd0c 803108bc 80340e1c
...

[ 207.760000] Call Trace:
[ 207.760000] [<801b1510>] m25p_remove+0x2c/0x1a4
[ 207.760000] [<8008d8fc>] device_release_driver+0x6c/0xd0
[ 207.760000] [<80113354>] device_release_driver+0x28/0x40
[ 207.760000] [<800edebc>] bus_remove_device+0xec/0x120
[ 207.760000] [<80112aec>] device_del+0x110/0x170
[ 207.760000] [<801139e4>] device_unregister+0x14/0x28
[ 207.760000] [<800afaac>]
unregister+0x18/0x30
[ 207.760000] [<80112cb4>] device_for_each_child+0x84/0x94
[ 207.760000] [<80255dd0>] spi_unregister_master+0x8c/0xa4
[ 207.760000] [<80254948>] spi_bitbang_stop+0x10/0x20
[ 207.760000] [<800ca0cc>] ath79_spi_remove+0x20/0x58
[ 207.760000] [<8011386c>] device_shutdown+0x100/0x158
[ 207.760000] [<8019c104>] kernel_restart+0x14/0x6c
[ 207.760000] [<80079504>] SyS_reboot+0xf8/0x1d4
[ 207.760000] [<8006283c>] handle_sys+0x11c/0x140
[ 207.760000]
[ 207.760000]
Code: 02202021 0c0626c5 00408021 <8c420020> 240300c2 94420000 10430022 240300ef 10430020
[ 208.050000] ---[ end trace 676e97930dd32d2d ]---
Segmentation fault [/quote]

Attachments (0)

Change History (5)

comment:1 Changed 3 years ago by dony71

reboot -f shows segmentation fault

[ 207.760000] Unhandled kernel unaligned access#1:
[ 207.760000] CPU: 0 PID: 1270 Comm: reboot Not tainted 3.14.30 #32
[ 207.760000] task: 86ef2b08 ti: 86ed2000 task.ti: 86ed2000
[ 207.760000] $ 0 : 00000000 00000001 ffffff71 00000001
[ 207.760000] $ 4 : 8034bb40 86ed3b88 00000087 70000000
[ 207.760000] $ 8 : 00000001 0e000000 87854481 00000200
[ 207.760000] $12 : 10000000 20000000 40000000 02000000
[ 207.760000] $16 : 87913210 878c4900 803502ec 803b0000
[ 207.760000] $20 : 803108bc 80340e1c 803b0000 00000000
[ 207.760000] $24 : 04000000 08000000
[ 207.760000] $28 : 86ed2000 86ed3c00 7fde4c58 801b1510
[ 207.760000] Hi : 0000028f
[ 207.760000] Lo : 00000001
[ 207.760000] epc : 801b1510 m25p_remove+0x2c/0x1a4
[ 207.760000] Not tainted
[ 207.760000] ra : 801b1510 m25p_remove+0x2c/0x1a4
[ 207.760000] Status: 1100dc03 KERNEL EXL IE
[ 207.760000] Cause : 00800010
[ 207.760000] BadVA : ffffff91
[ 207.760000] PrId : 0001974c (MIPS 74Kc)
[ 207.760000] Modules linked in: ath9k ath9k_common pppoe ppp_async iptable_nat ath9k_hw ath pppox ppp_generic nf_nat_ipv4 nf_conntrack_ipv6 nf_conntrack_ipv4 mac80211 ipt_MASQUERADE cfg80211 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_LOG xt_CT slhc nf_nat_irc nf_nat_ftp nf_nat nf_defrag_ipv6 nf_defrag_ipv4 nf_conntrack_rtcache nf_conntrack_irc nf_conntrack_ftp nf_conntrack iptable_raw iptable_mangle iptable_filter ipt_REJECT ip_tables crc_ccitt compat ip6t_REJECT ip6table_raw ip6table_mangle ip6table_filter ip6_tables x_tables ipv6 arc4 crypto_blkcipher ehci_platform ehci_hcd gpio_button_hotplug usbcore nls_base usb_common
[ 207.760000] Process reboot (pid: 1270, threadinfo=86ed2000, task=86ef2b08, tls=77fc5440)
[ 207.760000] Stack : 803108bc 80340e1c 87915630 80000000 86ed3c78 86ed3c40 803108bc 80340e1c
803b0000 00000000 7fde4c58 8019c530 00000000 8019cbc0 879155a0 879155e8
00000000 86ed3c44 86ed3c44 87915630 87911ee8 87915630 87911ee8 878c4900
8034bb9c 803502ec 803b0000 800dee5c 803502ec 8012c670 00000000 878c4900
8034bb9c 803502ec 803b0000 8008d8fc 80340e1c 8019fd0c 803108bc 80340e1c
...
[ 207.760000] Call Trace:
[ 207.760000] [<801b1510>] m25p_remove+0x2c/0x1a4
[ 207.760000] [<8008d8fc>] device_release_driver+0x6c/0xd0
[ 207.760000] [<80113354>] device_release_driver+0x28/0x40
[ 207.760000] [<800edebc>] bus_remove_device+0xec/0x120
[ 207.760000] [<80112aec>] device_del+0x110/0x170
[ 207.760000] [<801139e4>] device_unregister+0x14/0x28
[ 207.760000] [<800afaac>] unregister+0x18/0x30
[ 207.760000] [<80112cb4>] device_for_each_child+0x84/0x94
[ 207.760000] [<80255dd0>] spi_unregister_master+0x8c/0xa4
[ 207.760000] [<80254948>] spi_bitbang_stop+0x10/0x20
[ 207.760000] [<800ca0cc>] ath79_spi_remove+0x20/0x58
[ 207.760000] [<8011386c>] device_shutdown+0x100/0x158
[ 207.760000] [<8019c104>] kernel_restart+0x14/0x6c
[ 207.760000] [<80079504>] SyS_reboot+0xf8/0x1d4
[ 207.760000] [<8006283c>] handle_sys+0x11c/0x140
[ 207.760000]
[ 207.760000]
Code: 02202021 0c0626c5 00408021 <8c420020> 240300c2 94420000 10430022 240300ef 10430020
[ 208.050000] ---[ end trace 676e97930dd32d2d ]---
Segmentation fault

comment:2 Changed 3 years ago by nbd

please try current trunk

comment:3 Changed 3 years ago by anonymous

I try latest trunk chaos calmer r44496
No segmentation fault, but device still hang
debug mode 4 shows like this

reboot -f
[  107.840000] Removing MTD device #8 (rootfs_data) with use count 1
procd: hotplug_handler_debug(404): {{"ACTION":"remove","DEVPATH":"\/devices\/virtual\/bdi\/31:8","SUBSYSTEM":"bdi","SEQNUM":"442"}}
procd: hotplug_handler_debug(404): {{"ACTION":"remove","DEVPATH":"\/devices\/platform\/ath79-spi\/spi_master\/spi0\/spi0.0\/mtd\/mtd8\/mtdb[  107.870000] reboot: Restarting system }}}

comment:4 Changed 3 years ago by dony71

Also I try barrier breaker
No problem on barrier breaker, can reboot succesfully

comment:5 Changed 3 years ago by anonymous

actually, I forgot to include debug mode in earlier compilation
I recompile latest trunk r44496, still show segmentation fault

root@OpenWrt:/# reboot -f
[  228.490000] CPU 0 Unable to handle kernel paging request at virtual address 00000054, epc == 801c06bc, ra == 8008f324
[  228.500000] Oops[#1]:
[  228.500000] CPU: 0 PID: 1276 Comm: reboot Not tainted 3.18.7 #4
[  228.500000] task: 86de5360 ti: 86dec000 task.ti: 86dec000
[  228.500000] $ 0   : 00000000 00000000 803640f4 803640dc
[  228.500000] $ 4   : 00000000 00000006 87901200 ffffffff
[  228.500000] $ 8   : 00320066 879219b0 00000033 00320066
[  228.500000] $12   : 0000000e 00000007 00000001 80333754
[  228.500000] $16   : 87901200 878b0c10 80368a40 803c0000
[  228.500000] $20   : 803289f8 80358e5c 803c0000 00000000
[  228.500000] $24   : 0000000e 801c06a4
[  228.500000] $28   : 86dec000 86dedc80 7ff96a08 8008f324
[  228.500000] Hi    : 000002a1
[  228.500000] Lo    : 00000001
[  228.500000] epc   : 801c06bc m25p_remove+0x18/0x7c
[  228.500000]     Not tainted
[  228.500000] ra    : 8008f324 __device_release_driver+0x6c/0xc8
[  228.500000] Status: 1100dc03 KERNEL EXL IE
[  228.500000] Cause : 00800008
[  228.500000] BadVA : 00000054
[  228.500000] PrId  : 0001974c (MIPS 74Kc)
[  228.500000] Modules linked in: ath9k ath9k_common pppoe ppp_async iptable_nat ath9k_hw ath pppox ppp_generic nf_nat_ipv4 nf_conntrack_ipv6 nf_conntrack_ipv4 mac80211 ipt_REJECT ipt_MASQUERADE cfg80211 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_LOG xt_CT slhc nf_reject_ipv4 nf_nat_masquerade_ipv4 nf_nat_irc nf_nat_ftp nf_nat nf_log_ipv4 nf_defrag_ipv6 nf_defrag_ipv4 nf_conntrack_rtcache nf_conntrack_irc nf_conntrack_ftp nf_conntrack iptable_raw iptable_mangle iptable_filter ip_tables crc_ccitt compat ip6t_REJECT nf_reject_ipv6 nf_log_ipv6 nf_log_common ip6table_raw ip6table_mangle ip6table_filter ip6_tables x_tables ipv6 arc4 crypto_blkcipher ehci_platform ehci_hcd gpio_button_hotplug usbcore nls_base usb_common
[  228.500000] Process reboot (pid: 1276, threadinfo=86dec000, task=86de5360, tls=77c29440)
[  228.500000] Stack : 803c0000 800e42b8 803c0000 8013925c 8794df50 87901200 00000000 87901200
          803640f4 8008f324 80358e5c 801af8a4 803289f8 80358e5c 803c0000 87901234
          87901200 8011dd80 8794df50 87901200 00000000 87901200 87901200 87901200
          8785162c 800f7388 81000000 00000000 7ff96a08 87901200 87901200 00000000
          87901000 8011d4fc 878c4e88 878c4e88 00000000 0009001a 87901200 00000000
          ...
[  228.500000] Call Trace:
[  228.500000] [<801c06bc>] m25p_remove+0x18/0x7c
[  228.500000] [<8008f324>] __device_release_driver+0x6c/0xc8
[  228.500000] [<8011dd80>] device_release_driver+0x28/0x40
[  228.500000] [<800f7388>] bus_remove_device+0xec/0x120
[  228.500000] [<8011d4fc>] device_del+0x110/0x18c
[  228.500000] [<8011e414>] device_unregister+0x14/0x28
[  228.500000] [<800b4190>] __unregister+0x18/0x30
[  228.500000] [<8011d6e0>] device_for_each_child+0x84/0x94
[  228.500000] [<8026af0c>] spi_unregister_master+0x8c/0xa4
[  228.500000] [<800ce974>] ath79_spi_remove+0x18/0x50
[  228.500000] [<8011e29c>] device_shutdown+0x100/0x158
[  228.500000] [<801ab26c>] kernel_restart+0x14/0x6c
[  228.500000] [<80078b30>] SyS_reboot+0xf8/0x1f4
[  228.500000] [<80062b5c>] handle_sys+0x11c/0x140
[  228.500000]
[  228.500000]
Code: afb0001c  8c91004c  00002021 <8c900054> 24050066  afa00010  00003021  0200f809  00003821
[  228.790000] ---[ end trace 4a36ab14a4da870f ]---
Segmentation fault

Add Comment

Modify Ticket

Action
as new .
Author


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

 
Note: See TracTickets for help on using tickets.