Modify

Opened 9 years ago

Closed 9 years ago

#1485 closed defect (fixed)

ps fail in brcm47xx-2.6

Reported by: edo Owned by: nbd
Priority: normal Milestone: Kamikaze 7.06
Component: base system Version:
Keywords: ps wl-500g oops Cc:

Description

svn revision: 6611
gcc version: 3.4.6
hardware: asus wl-500g premium
target: brcm47xx-2.6

root@OpenWrt:/# ps
  PID  Uid     VmSize Stat Command
Data bus error, epc == 80102574, ra == 8000f350
Oops[#1]:
Cpu 0
$ 0   : 00000000 10009800 81ce7000 00000001
$ 4   : 81ce7000 fffddfab 0000000b 81ce7000
$ 8   : 00000000 00000000 00000000 7fbbdfab
$12   : 00000001 0006d8b5 00000001 2abdef10
$16   : 0000000b 0000000b 7fbbdfab 81ce7000
$20   : 8026ac60 8026ac94 81ce7000 00000000
$24   : 00000003 800100e8
$28   : 81cc8000 81cc9e08 81053858 8000f350
Hi    : 000000d0
Lo    : 000001b3
epc   : 80102574     Not tainted
ra    : 8000f350 Status: 10009803    KERNEL EXL IE
Cause : 0000001c
PrId  : 00029006
Modules linked in:
Process ps (pid: 721, threadinfo=81cc8000, task=81337958)
Stack : 8026ac60 8026ac94 81ce7000 00000000 80063144 800630c0 81053858 8026ac60
        8023d69c 7fac8890 803adfab 0000000b 81cc9e40 81cc9e44 810075a0 810ef5c0
        0000000b 00000000 8026ac60 fffffff4 81ce7000 00001000 81053858 00000001
        004098a0 800b32f8 000003ff fffffffd 81ce6ab0 81cc9f18 00000000 00000001
        81053858 81ce7000 000003ff fffffff4 81ce6ab0 81cc9f18 7fac8890 800b3af4
        ...
Call Trace:[<80063144>][<800630c0>][<800b32f8>][<800b3af4>][<80077960>][<8007ff78>][<80077018>][<80077ca0>][<80076f54>][<8000d040>]

Code: 30d80003  1306000a  00000000 <98a80000> 88a80003  24a50004  24c6fffc  ac880000  14d8fffa
note: ps[721] exited with preempt_count 1
Segmentation fault

Attachments (2)

190-kmap_coherent.patch (895 bytes) - added by jhansen@… 9 years ago.
Place in target/linux/brcm47xx-2.6/patches
190-kmap_coherent.2.patch (1.8 KB) - added by jhansen@… 9 years ago.
More elegant patch

Download all attachments as: .zip

Change History (9)

comment:1 Changed 9 years ago by edo

it look like kernel bug

root@OpenWrt:/# cat /proc/1/cmdline
[ 1015.252000] Data bus error, epc == 80103f14, ra == 8000f350
[ 1015.252000] Oops[#11]:
[ 1015.252000] Cpu 0
[ 1015.252000] $ 0   : 00000000 10009800 81c44000 0000000b
[ 1015.252000] $ 4   : 81c44000 fffddfab 0000000b 81c44000
[ 1015.252000] $ 8   : 00000000 00000000 00000000 7fb45fab
[ 1015.252000] $12   : 00000001 2ac7ca54 00000001 2abdef10
[ 1015.252000] $16   : 0000000b 0000000b 7fb45fab 81c44000
[ 1015.252000] $20   : 8110fc60 8110fc94 81c44000 00000000
[ 1015.252000] $24   : 00000003 800100e8
[ 1015.252000] $28   : 81d24000 81d25e08 802b0858 8000f350
[ 1015.252000] Hi    : 000000bc
[ 1015.252000] Lo    : 0001b115
[ 1015.252000] epc   : 80103f14 cleanup_src_unaligned+0x10/0x2c     Not tainted
[ 1015.252000] ra    : 8000f350 copy_from_user_page+0x100/0x1a8
[ 1015.252000] Status: 10009803    KERNEL EXL IE
[ 1015.252000] Cause : 0000001c
[ 1015.252000] PrId  : 00029006
[ 1015.252000] Modules linked in:
[ 1015.252000] Process ash (pid: 829, threadinfo=81d24000, task=81267958)
[ 1015.252000] Stack : 8110fc60 8110fc94 81c44000 00000000 80064724 800646a0 802b0858 8110fc60
[ 1015.252000]         8023f72c 004f0478 8122bfab 0000000b 81d25e40 81d25e44 81024560 8111f5c0
[ 1015.252000]         0000000b 00000000 8110fc60 fffffff4 81c44000 00001000 802b0858 00000001
[ 1015.252000]         00000003 800b49d8 00000c00 fffffffd 81d0f990 81d25f18 00000000 00000001
[ 1015.252000]         802b0858 81c44000 00000c00 fffffff4 81d0f990 81d25f18 004f0478 800b524c
[ 1015.252000]         ...
[ 1015.252000] Call Trace:
[ 1015.252000] [<80103f14>] cleanup_src_unaligned+0x10/0x2c
[ 1015.252000] [<8000f350>] copy_from_user_page+0x100/0x1a8
[ 1015.252000] [<80064724>] access_process_vm+0x118/0x184
[ 1015.252000] [<800b49d8>] proc_pid_cmdline+0x6c/0x11c
[ 1015.252000] [<800b524c>] proc_info_read+0x88/0x17c
[ 1015.252000] [<80078f74>] vfs_read+0xb4/0x13c
[ 1015.252000] [<800792b4>] sys_read+0x54/0x98
[ 1015.252000] [<8000d52c>] stack_done+0x20/0x40
[ 1015.252000]
[ 1015.252000]
[ 1015.252000] Code: 30d80003  1306000a  00000000 <98a80000> 88a80003  24a50004  24c6fffc  ac880000  14d8fffa
[ 1015.256000] note: ash[829] exited with preempt_count 1

ps: i rebuild kernel with more debug info

comment:2 Changed 9 years ago by nbd

  • Milestone changed from Kamikaze to Kamikaze Milestone 1
  • Owner changed from developers to nbd
  • Status changed from new to assigned

comment:3 Changed 9 years ago by jhansen@…

The following patch should fix the problem. While the new kmap_coherent works great on the WGT634U, there must be a CPU bug or something such that it sometimes wreaks havoc on the WL-500G Premium. If we just do a normal memcpy on the kmap'ed page, without all of the extra FIXMAP stuff, then it works great. The latest Linksys/Netgear, etc. 2.4 GPL code does *not* have the new kmap_coherent, and probably never will.

Changed 9 years ago by jhansen@…

Place in target/linux/brcm47xx-2.6/patches

comment:4 Changed 9 years ago by jhansen@…

By the way, this patch does fix the problem on my WL500G Premium.

comment:5 Changed 9 years ago by edo

this patch work for me too. but it look ugly

comment:6 Changed 9 years ago by jhansen@…

I don't know how to make it more elegant than the following patch. Things still work great on the WGT634U also.

Changed 9 years ago by jhansen@…

More elegant patch

comment:7 Changed 9 years ago by nbd

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

Added in [6642], thanks again.

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.