Opened 14 years ago

Closed 14 years ago

Last modified 14 years ago

#6286 closed bug (fixed)

[patch] [clang] PANIC: vm_page_fault, broadcom43xx

Reported by: kaliber Owned by: nobody
Priority: normal Milestone: R1
Component: Drivers/Network Version: R1/Development
Keywords: clang Cc:
Blocked By: Blocking:
Platform: All

Description

This bug still exists in latest FreeBSD driver.

PANIC: vm_page_fault: unhandled page fault in kernel space at 0x81cbf002, ip 0x81c679c3

Welcome to Kernel Debugging Land...
Thread 46 "net_server" running on CPU 0
stack trace for thread 46 "net_server"
    kernel stack: 0x813ac000 to 0x813b0000
      user stack: 0x7efef000 to 0x7ffef000
frame               caller     <image>:function + offset
 0 813afa74 (+  16) 800fcd1a   <kernel_x86>:arch_debug_stack_trace + 0x001a
 1 813afa84 (+  12) 801057b6   <kernel_x86>:arch_debug_call_with_fault_handler + 0x001b
 2 813afa90 (+  40) 80076d47   <kernel_x86>:debug_call_with_fault_handler + 0x0057
 3 813afab8 (+  88) 80076969   <kernel_x86> kernel_debugger_internal(char const*: 0x813afb3c "�ˁ�yƁ�yƁ", char const*: 0x0 "<NULL>", char*: 0x813afb3c, int32: 646) + 0x03f9
 4 813afb10 (+  32) 80077242   <kernel_x86>:panic + 0x0032
 5 813afb30 (+ 104) 800e2415   <kernel_x86>:vm_page_fault + 0x0135
 6 813afb98 (+  48) 8010269e   <kernel_x86> page_fault_exception(iframe*: 0x813afbd4) + 0x016e
 7 813afbc8 (+  12) 8010676d   <kernel_x86>:int_bottom + 0x003d
kernel iframe at 0x813afbd4 (end = 0x813afc24)
 eax 0x8086         ebx 0x813a1237      ecx 0x0          edx 0x814be4cc
 esi 0x80f5d780     edi 0x81cbf004      ebp 0x813afc3c   esp 0x813afc08
 eip 0x81c679c3  eflags 0x10292    
 vector: 0xe, error code: 0x0
 8 813afbd4 (+ 104) 81c679c3   </boot/system/add-ons/kernel/drivers/dev/net/broadcom43xx>:bwi_pci_probe + 0x0033
 9 813afc3c (+  32) 81ca7a1c   </boot/system/add-ons/kernel/drivers/dev/net/broadcom43xx>:_fbsd_init_hardware + 0x00bc
10 813afc5c (+  16) 81c77a33   </boot/system/add-ons/kernel/drivers/dev/net/broadcom43xx>:init_hardware + 0x0013
11 813afc6c (+  48) 80090f11   <kernel_x86> load_driver(legacy_driver*: NULL) + 0x0121
12 813afc9c (+ 128) 8008fc80   <kernel_x86> add_driver(char const*: 0x80d7e0c0 "/boot/system/add-ons/kernel/drivers/dev/net/broadcom43xx", int32: -2126840428) + 0x01f0
13 813afd1c (+ 280) 80090574   <kernel_x86>:legacy_driver_probe + 0x04a4
14 813afe34 (+  64) 8008d779   <kernel_x86> scan_for_drivers_if_needed(devfs_vnode*: 0x10) + 0x00e9
15 813afe74 (+  32) 8008bc3a   <kernel_x86> devfs_open_dir(fs_volume*: 0x82041240, fs_vnode*: 0x80f5fa00, void**: 0x813afeac) + 0x004a
16 813afe94 (+  40) 800c585b   <kernel_x86> open_dir_vnode(vnode*: 0x1, true) + 0x003b
17 813afebc (+  80) 800be664   <kernel_x86> dir_open(int32: 0, char*: 0x2122f3, false) + 0x0044
18 813aff0c (+  56) 800c10d7   <kernel_x86>:_user_open_dir + 0x0087
19 813aff44 (+ 100) 801069a2   <kernel_x86>:handle_syscall + 0x00af
user iframe at 0x813affa8 (end = 0x813b0000)
 eax 0x66           ebx 0x2122f3        ecx 0x7ffee780   edx 0xffff0114
 esi 0x7ffee964     edi 0x7ffee994      ebp 0x7ffee7a4   esp 0x813affdc
 eip 0xffff0114  eflags 0x246      user esp 0x7ffee780
 vector: 0x63, error code: 0x0
20 813affa8 (+   0) ffff0114   <commpage>:commpage_syscall + 0x0004
21 7ffee7a4 (+ 544) 0020b27e   <_APP_> NetServer<0x7ffeeda4>::_ConfigureDevices(int32: 3, char const*: 0x2122f3 "/dev/net", BMessage*: NULL) + 0x001e
22 7ffee9c4 (+ 256) 002097b7   <_APP_> NetServer<0x7ffeeda4>::_BringUpInterfaces() + 0x01e7
23 7ffeeac4 (+  80) 0020954c   <_APP_> NetServer<0x7ffeeda4>::ReadyToRun() + 0x004c
24 7ffeeb14 (+ 552) 002e2340   </boot/system/lib/libbe.so@0x00217000>:unknown + 0xcb340
25 7ffeed3c (+  64) 002ea2f9   </boot/system/lib/libbe.so@0x00217000>:unknown + 0xd32f9
26 7ffeed7c (+  16) 002e0fbc   </boot/system/lib/libbe.so@0x00217000>:unknown + 0xc9fbc
27 7ffeed8c (+ 520) 0020b4c5   <_APP_>:main + 0x0075
28 7ffeef94 (+  32) 00208e1e   <_APP_>:_start + 0x004e
29 7ffeefb4 (+  40) 00105852   </boot/system/runtime_loader@0x00100000>:unknown + 0x5852
30 7ffeefdc (+   0) 7ffeefec   1029:net_server_main_stack@0x7efef000 + 0xffffec

Attachments (1)

broadcom43xx.patch (773 bytes ) - added by kaliber 14 years ago.

Download all attachments as: .zip

Change History (7)

by kaliber, 14 years ago

Attachment: broadcom43xx.patch added

comment:1 by kaliber, 14 years ago

patch: 01

comment:2 by kaliber, 14 years ago

Forgot to add, that the real problem is in http://dev.haiku-os.org/browser/haiku/trunk/src/add-ons/kernel/drivers/network/wlan/broadcom43xx/dev/bwi/if_bwi_pci.c#L106 - infinity loop, because bwi_devices doesn't have correct sentinel.

comment:3 by stippi, 14 years ago

Resolution: fixed
Status: newclosed

Applied in hrev37441. Thanks!

comment:4 by luroh, 14 years ago

kaliber: If I understand correctly, this is a bug also affecting FreeBSD. If so, would you take care of pushing your patch upstream as well?

in reply to:  4 comment:5 by kaliber, 14 years ago

Replying to luroh:

kaliber: If I understand correctly, this is a bug also affecting FreeBSD. If so, would you take care of pushing your patch upstream as well?

Yes, I sent a bug report to FreeBSD too.

comment:6 by luroh, 14 years ago

Excellent, thanks.

Note: See TracTickets for help on using tickets.