From owner-freebsd-bugs@FreeBSD.ORG Thu Aug 29 10:10:03 2013 Return-Path: Delivered-To: freebsd-bugs@smarthost.ysv.freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:1900:2254:206a::19:1]) (using TLSv1 with cipher ADH-AES256-SHA (256/256 bits)) (No client certificate requested) by hub.freebsd.org (Postfix) with ESMTP id 2F6058F1 for ; Thu, 29 Aug 2013 10:10:03 +0000 (UTC) (envelope-from gnats@FreeBSD.org) Received: from freefall.freebsd.org (freefall.freebsd.org [IPv6:2001:1900:2254:206c::16:87]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by mx1.freebsd.org (Postfix) with ESMTPS id 0F2812634 for ; Thu, 29 Aug 2013 10:10:03 +0000 (UTC) Received: from freefall.freebsd.org (localhost [127.0.0.1]) by freefall.freebsd.org (8.14.7/8.14.7) with ESMTP id r7TAA2wV089381 for ; Thu, 29 Aug 2013 10:10:02 GMT (envelope-from gnats@freefall.freebsd.org) Received: (from gnats@localhost) by freefall.freebsd.org (8.14.7/8.14.7/Submit) id r7TAA2JU089380; Thu, 29 Aug 2013 10:10:02 GMT (envelope-from gnats) Resent-Date: Thu, 29 Aug 2013 10:10:02 GMT Resent-Message-Id: <201308291010.r7TAA2JU089380@freefall.freebsd.org> Resent-From: FreeBSD-gnats-submit@FreeBSD.org (GNATS Filer) Resent-To: freebsd-bugs@FreeBSD.org Resent-Reply-To: FreeBSD-gnats-submit@FreeBSD.org, Kaloyan Mehandzhiyski Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:1900:2254:206a::19:1]) (using TLSv1 with cipher ADH-AES256-SHA (256/256 bits)) (No client certificate requested) by hub.freebsd.org (Postfix) with ESMTP id 068908D4 for ; Thu, 29 Aug 2013 10:09:46 +0000 (UTC) (envelope-from nobody@FreeBSD.org) Received: from oldred.freebsd.org (oldred.freebsd.org [8.8.178.121]) (using TLSv1 with cipher DHE-RSA-AES256-SHA (256/256 bits)) (No client certificate requested) by mx1.freebsd.org (Postfix) with ESMTPS id E88072625 for ; Thu, 29 Aug 2013 10:09:45 +0000 (UTC) Received: from oldred.freebsd.org ([127.0.1.6]) by oldred.freebsd.org (8.14.5/8.14.7) with ESMTP id r7TA9gqo062133 for ; Thu, 29 Aug 2013 10:09:42 GMT (envelope-from nobody@oldred.freebsd.org) Received: (from nobody@localhost) by oldred.freebsd.org (8.14.5/8.14.5/Submit) id r7TA9gHw062130; Thu, 29 Aug 2013 10:09:42 GMT (envelope-from nobody) Message-Id: <201308291009.r7TA9gHw062130@oldred.freebsd.org> Date: Thu, 29 Aug 2013 10:09:42 GMT From: Kaloyan Mehandzhiyski To: freebsd-gnats-submit@FreeBSD.org X-Send-Pr-Version: www-3.1 Subject: kern/181646: Kernel panic, probably caused by wi-fi card Linksys WMP600N (PCI) X-BeenThere: freebsd-bugs@freebsd.org X-Mailman-Version: 2.1.14 Precedence: list List-Id: Bug reports List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Thu, 29 Aug 2013 10:10:03 -0000 >Number: 181646 >Category: kern >Synopsis: Kernel panic, probably caused by wi-fi card Linksys WMP600N (PCI) >Confidential: no >Severity: non-critical >Priority: low >Responsible: freebsd-bugs >State: open >Quarter: >Keywords: >Date-Required: >Class: sw-bug >Submitter-Id: current-users >Arrival-Date: Thu Aug 29 10:10:02 UTC 2013 >Closed-Date: >Last-Modified: >Originator: Kaloyan Mehandzhiyski >Release: 9.1-RELEASE >Organization: Deltanews.bg >Environment: FreeBSD my.server.com 9.1-RELEASE FreeBSD 9.1-RELEASE #0: Sun Dec 30 15:45:53 EET 2012 root@sentinel.deltanews.nh:/usr/obj/usr/src/sys/PFKERNEL amd64 ## PFKERNEL is GENERIC kernel with added lines: options ALTQ options ALTQ_CBQ options ALTQ_RED options ALTQ_RIO options ALTQ_HFSC options ALTQ_PRIQ options ALTQ_NOPCC >Description: System reboots every few days. I am not sure about the real cause, but it looks like to me a driver problem of the wi-fi card. I got messages in the syslog: Aug 29 00:27:38 sentinel kernel: Limiting icmp unreach response from 241 to 200 packets/sec ## Old event Aug 29 11:35:59 sentinel syslogd: kernel boot file is /boot/kernel/kernel Aug 29 11:35:59 sentinel kernel: Aug 29 11:35:59 sentinel kernel: Aug 29 11:35:59 sentinel kernel: Fatal trap 12: page fault while in kernel mode Aug 29 11:35:59 sentinel kernel: cpuid = 0; apic id = 00 Aug 29 11:35:59 sentinel kernel: fault virtual address = 0xffffff8003056000 Aug 29 11:35:59 sentinel kernel: fault code = supervisor read data, page not present Aug 29 11:35:59 sentinel kernel: instruction pointer = 0x20:0xffffffff80661d75 Aug 29 11:35:59 sentinel kernel: stack pointer = 0x28:0xffffff808d6e5a40 Aug 29 11:35:59 sentinel kernel: frame pointer = 0x28:0xffffff808d6e5a80 Aug 29 11:35:59 sentinel kernel: code segment = base 0x0, limit 0xfffff, type 0x1b Aug 29 11:35:59 sentinel kernel: = DPL 0, pres 1, long 1, def32 0, gran 1 Aug 29 11:35:59 sentinel kernel: processor eflags = interrupt enabled, resume, IOPL = 0 Aug 29 11:35:59 sentinel kernel: current process = 12 (irq17: ral0) Aug 29 11:35:59 sentinel kernel: trap number = 12 Aug 29 11:35:59 sentinel kernel: panic: page fault Aug 29 11:35:59 sentinel kernel: cpuid = 0 Aug 29 11:35:59 sentinel kernel: KDB: stack backtrace: Aug 29 11:35:59 sentinel kernel: #0 0xffffffff8092aab6 at kdb_backtrace+0x66 Aug 29 11:35:59 sentinel kernel: #1 0xffffffff808f4ace at panic+0x1ce Aug 29 11:35:59 sentinel kernel: #2 0xffffffff80be2550 at trap_fatal+0x290 Aug 29 11:35:59 sentinel kernel: #3 0xffffffff80be288d at trap_pfault+0x1ed Aug 29 11:35:59 sentinel kernel: #4 0xffffffff80be2eae at trap+0x3ce Aug 29 11:35:59 sentinel kernel: #5 0xffffffff80bcd46f at calltrap+0x8 Aug 29 11:35:59 sentinel kernel: #6 0xffffffff806678e1 at rt2860_intr+0x891 Aug 29 11:35:59 sentinel kernel: #7 0xffffffff808c8ae4 at intr_event_execute_handlers+0x104 Aug 29 11:35:59 sentinel kernel: #8 0xffffffff808ca286 at ithread_loop+0xa6 Aug 29 11:35:59 sentinel kernel: #9 0xffffffff808c5bff at fork_exit+0x11f Aug 29 11:35:59 sentinel kernel: #10 0xffffffff80bcd99e at fork_trampoline+0xe Aug 29 11:35:59 sentinel kernel: Uptime: 3d10h10m26s Aug 29 11:35:59 sentinel kernel: Automatic reboot in 15 seconds - press a key on the console to abort Aug 29 11:35:59 sentinel kernel: Rebooting... Aug 29 11:35:59 sentinel kernel: Copyright (c) 1992-2012 The FreeBSD Project. ## After reboot ## File: /etc/rc.conf: create_args_wlan0="wlanmode hostap" ifconfig_wlan0="channel 11 txpower 20" cloned_interfaces="bridge0" ifconfig_bridge0="addm re1 stp re1 addm wlan0 up" ifconfig_bridge0_alias0="inet 192.168.1.1 netmask 255.255.255.0" ifconfig_re1="up" ## OpenVPN bridge scripts: root@sentinel:/var/log # cat /usr/local/etc/openvpn/up.sh #!/bin/sh /sbin/ifconfig tap0 up /sbin/ifconfig bridge0 addm tap0 up root@sentinel:/var/log # root@sentinel:/var/log # cat /usr/local/etc/openvpn/down.sh #!/bin/sh /sbin/ifconfig bridge0 deletem tap0 root@sentinel:/var/log # ## File: /etc/hostapd.conf interface=wlan0 driver=bsd ctrl_interface=/var/run/hostapd ctrl_interface_group=wheel ssid=UnixFBSD wpa=3 wpa_passphrase=my-pass-string wpa_key_mgmt=WPA-PSK wpa_pairwise=CCMP TKIP ## "ifconfig -a" after all interfaces are up and joined to the bridge: re0: flags=8843 metric 0 mtu 1500 options=8209b ether 00:19:d1:b6:38:e8 inet6 fe80::219:d1ff:feb6:38e8%re0 prefixlen 64 scopeid 0x1 inet 1.2.3.4 netmask 0xffffff00 broadcast 1.2.3.4 ### Here stands my internet IP nd6 options=29 media: Ethernet autoselect (100baseTX ) status: active re1: flags=8943 metric 0 mtu 1500 options=82099 ether e0:8f:ec:00:6e:f8 inet6 fe80::e28f:ecff:fe00:6ef8%re1 prefixlen 64 scopeid 0x7 nd6 options=29 media: Ethernet autoselect (1000baseT ) status: active ral0: flags=8843 metric 0 mtu 2290 ether 00:1e:e5:e8:d4:6d nd6 options=29 media: IEEE 802.11 Wireless Ethernet autoselect mode 11g status: running lo0: flags=8049 metric 0 mtu 16384 options=600003 inet6 ::1 prefixlen 128 inet6 fe80::1%lo0 prefixlen 64 scopeid 0x9 inet 127.0.0.1 netmask 0xff000000 nd6 options=21 bridge0: flags=8843 metric 0 mtu 1500 ether 02:74:c6:6d:ec:00 inet 192.168.1.1 netmask 0xffffff00 broadcast 192.168.1.255 nd6 options=29 id 00:bd:da:40:00:00 priority 32768 hellotime 2 fwddelay 15 maxage 20 holdcnt 6 proto rstp maxaddr 2000 timeout 1200 root id 00:bd:da:40:00:00 priority 32768 ifcost 0 port 0 member: wlan0 flags=143 ifmaxaddr 0 port 11 priority 128 path cost 370370 member: tap0 flags=143 ifmaxaddr 0 port 13 priority 128 path cost 2000000 member: re1 flags=1e7 ifmaxaddr 0 port 7 priority 128 path cost 20000 proto rstp role designated state forwarding pflog0: flags=100 metric 0 mtu 33152 nd6 options=29 tap0: flags=8942 metric 0 mtu 1500 options=80000 ether 00:bd:da:40:00:00 inet6 fe80::2bd:daff:fe40:0%tap0 prefixlen 64 tentative scopeid 0xd nd6 options=29 Opened by PID 1447 wlan0: flags=8943 metric 0 mtu 1500 ether 00:1e:e5:e8:d4:6d nd6 options=29 media: IEEE 802.11 Wireless Ethernet autoselect mode 11g status: running ssid UnixFBSD channel 11 (2462 MHz 11g) bssid 00:1e:e5:e8:d4:6d country US authmode WPA1+WPA2/802.11i privacy MIXED deftxkey 3 TKIP 2:128-bit TKIP 3:128-bit txpower 0 scanvalid 60 protmode CTS wme dtimperiod 1 -dfs >How-To-Repeat: I have no idea what event directly cause the problem, it just reboots randomly in random hours and days. root@sentinel:/var/log # last | grep -i boot |head boot time Thu Aug 29 11:36 boot time Mon Aug 26 01:24 boot time Sat Aug 24 00:46 boot time Sun Aug 18 22:22 boot time Sun Aug 18 21:52 boot time Sat Aug 17 20:13 root@sentinel:/var/log # >Fix: >Release-Note: >Audit-Trail: >Unformatted: