Bug 153609 - [zyd] [panic] kernel: Fatal trap 12: page fault while in kernel mode
Summary: [zyd] [panic] kernel: Fatal trap 12: page fault while in kernel mode
Status: Open
Alias: None
Product: Base System
Classification: Unclassified
Component: usb (show other bugs)
Version: 8.2-PRERELEASE
Hardware: Any Any
: Normal Affects Only Me
Assignee: freebsd-usb (Nobody)
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2011-01-01 22:20 UTC by igor.polovykh
Modified: 2018-01-03 05:16 UTC (History)
0 users

See Also:


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description igor.polovykh 2011-01-01 22:20:13 UTC
/etc/rc.conf
..
wlans_zyd0="wlan0"
ifconfig_wlan0="inet 172.16.0.1 netmask 255.255.255.0 metric 0"
..

kernel config
..
# Wireless NIC cards
device          wlan            # 802.11 support
options         IEEE80211_DEBUG # enable debug msgs
options         IEEE80211_AMPDU_AGE # age frames in AMPDU reorder q's
options         IEEE80211_SUPPORT_MESH  # enable 802.11s draft support
device          wlan_wep        # 802.11 WEP support
device          wlan_ccmp       # 802.11 CCMP support
device          wlan_tkip       # 802.11 TKIP support
device          wlan_amrr       # AMRR transmit rate control algorithm
...
device          usb             # USB Bus (required)
device          uhci            # UHCI PCI->USB interface
device          ohci            # OHCI PCI->USB interface
device          ehci            # EHCI PCI->USB interface (USB 2.0)
...

While booting:

Jan  2 00:21:51 bvgm kernel: wlan0: Ethernet address: 00:02:72:52:2a:47
Jan  2 00:21:51 bvgm kernel: zyd0: HMAC ZD1211B, FW 47.25, RF AL2230 S0, PA0 LED 0 BE0 NP1 Gain1 F0
Jan  2 00:21:51 bvgm kernel:
Jan  2 00:21:51 bvgm kernel:
Jan  2 00:21:51 bvgm kernel: Fatal trap 12: page fault while in kernel mode
Jan  2 00:21:51 bvgm kernel: cpuid = 0; apic id = 00
Jan  2 00:21:51 bvgm kernel: fault virtual address      = 0x0
Jan  2 00:21:51 bvgm kernel: fault code         = supervisor read data, page not present
Jan  2 00:21:51 bvgm kernel: instruction pointer        = 0x20:0xffffffff80475798
Jan  2 00:21:51 bvgm kernel: stack pointer              = 0x28:0xffffff8120cb8a80
Jan  2 00:21:51 bvgm kernel: frame pointer              = 0x28:0xffffff8120cb8ac0
Jan  2 00:21:51 bvgm kernel: code segment               = base rx0, limit 0xfffff, type 0x1b
Jan  2 00:21:51 bvgm kernel: = DPL 0, pres 1, long 1, def32 0, gran 1
Jan  2 00:21:51 bvgm kernel: processor eflags   = interrupt enabled, resume, IOPL = 0
Jan  2 00:21:51 bvgm kernel: current process            = 15 (usbus4)

Fix: 

driver for zyd0 somewhere works improperly. Null ref error
I know that Zyxel devices are ^%$&^*&%$$#$#!!!


Thank you very much if you really fix this bug!
How-To-Repeat: 1. Get somewhere ZyDAS USB2.0 WLAN, rev 2.00/48.10, addr 2
2. put folowwing text in the rc.conf
/etc/rc.conf
..
wlans_zyd0="wlan0"
ifconfig_wlan0="inet 172.16.0.1 netmask 255.255.255.0 metric 0"
..

2. Insert device in the usb port.
3. We have crashed OS
4. If i try to reboot

Jan  2 00:55:22 bvgm kernel: ugen4.2: <ZyDAS> at usbus4
Jan  2 00:55:22 bvgm kernel: zyd0: <ZyDAS USB2.0 WLAN, rev 2.00/48.10, addr 2> on usbus4
Jan  2 00:55:22 bvgm kernel: wlan0: Ethernet address: 00:02:72:52:2a:47
Jan  2 00:55:22 bvgm kernel: zyd0: HMAC ZD1211B, FW 47.25, RF AL2230 S0, PA0 LED 0 BE0 NP1 Gain1 F0
Jan  2 00:57:25 bvgm syslogd: kernel boot file is /boot/kernel/kernel
Jan  2 00:57:25 bvgm kernel:
Jan  2 00:57:25 bvgm kernel:
Jan  2 00:57:25 bvgm kernel: Fatal trap 12: page fault while in kernel mode
Jan  2 00:57:25 bvgm kernel: cpuid = 0; apic id = 00
Jan  2 00:57:25 bvgm kernel: fault virtual address      = 0x0
Jan  2 00:57:25 bvgm kernel: fault code         = supervisor read data, page not present
Jan  2 00:57:25 bvgm kernel: instruction pointer        = 0x20:0xffffffff80475798
Jan  2 00:57:25 bvgm kernel: stack pointer              = 0x28:0xffffff8120cb8a80
Jan  2 00:57:25 bvgm kernel: frame pointer              = 0x28:0xffffff8120cb8ac0
Jan  2 00:57:25 bvgm kernel: code segment               = base rx0, limit 0xfffff, type 0x1b
Jan  2 00:57:25 bvgm kernel: = DPL 0, pres 1, long 1, def32 0, gran 1
Jan  2 00:57:25 bvgm kernel: processor eflags   = interrupt enabled, resume, IOPL = 0
Jan  2 00:57:25 bvgm kernel: current process            = 15 (usbus4)
J



If i remove string [wlans_zyd0="wlan0"] from rc.conf system boots properly but device is not work at all.
Comment 1 Mark Linimon freebsd_committer freebsd_triage 2011-01-03 20:59:27 UTC
Responsible Changed
From-To: freebsd-amd64->freebsd-usb

Over to maintainer(s).
Comment 2 Eitan Adler freebsd_committer freebsd_triage 2017-12-31 08:00:21 UTC
For bugs matching the following criteria:

Status: In Progress Changed: (is less than) 2014-06-01

Reset to default assignee and clear in-progress tags.

Mail being skipped