From owner-freebsd-ports-bugs@freebsd.org Mon Jan 25 15:41:50 2016 Return-Path: Delivered-To: freebsd-ports-bugs@mailman.ysv.freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:1900:2254:206a::19:1]) by mailman.ysv.freebsd.org (Postfix) with ESMTP id 9C679A46347 for ; Mon, 25 Jan 2016 15:41:50 +0000 (UTC) (envelope-from bugzilla-noreply@freebsd.org) Received: from kenobi.freebsd.org (kenobi.freebsd.org [IPv6:2001:1900:2254:206a::16:76]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (Client did not present a certificate) by mx1.freebsd.org (Postfix) with ESMTPS id 8146BFFC for ; Mon, 25 Jan 2016 15:41:50 +0000 (UTC) (envelope-from bugzilla-noreply@freebsd.org) Received: from bugs.freebsd.org ([127.0.1.118]) by kenobi.freebsd.org (8.15.2/8.15.2) with ESMTP id u0PFfouk096694 for ; Mon, 25 Jan 2016 15:41:50 GMT (envelope-from bugzilla-noreply@freebsd.org) From: bugzilla-noreply@freebsd.org To: freebsd-ports-bugs@FreeBSD.org Subject: [Bug 206614] net/dhcpcd crashes the kernel when a VNET jail starts. Date: Mon, 25 Jan 2016 15:41:50 +0000 X-Bugzilla-Reason: AssignedTo X-Bugzilla-Type: changed X-Bugzilla-Watch-Reason: None X-Bugzilla-Product: Ports & Packages X-Bugzilla-Component: Individual Port(s) X-Bugzilla-Version: Latest X-Bugzilla-Keywords: X-Bugzilla-Severity: Affects Only Me X-Bugzilla-Who: g_amanakis@yahoo.com X-Bugzilla-Status: New X-Bugzilla-Resolution: X-Bugzilla-Priority: --- X-Bugzilla-Assigned-To: freebsd-ports-bugs@FreeBSD.org X-Bugzilla-Flags: maintainer-feedback? X-Bugzilla-Changed-Fields: rep_platform Message-ID: In-Reply-To: References: Content-Type: text/plain; charset="UTF-8" Content-Transfer-Encoding: quoted-printable X-Bugzilla-URL: https://bugs.freebsd.org/bugzilla/ Auto-Submitted: auto-generated MIME-Version: 1.0 X-BeenThere: freebsd-ports-bugs@freebsd.org X-Mailman-Version: 2.1.20 Precedence: list List-Id: Ports bug reports List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Mon, 25 Jan 2016 15:41:50 -0000 https://bugs.freebsd.org/bugzilla/show_bug.cgi?id=3D206614 g_amanakis@yahoo.com changed: What |Removed |Added ---------------------------------------------------------------------------- Hardware|Any |amd64 --- Comment #1 from g_amanakis@yahoo.com --- See: http://roy.marples.name/projects/dhcpcd/tktview/3a1e57157dd01af0fb7ce497850= 645eb7d49889d https://bugs.freebsd.org/bugzilla/show_bug.cgi?id=3D206613 dhcpcd 6.10.1 and more specifically [6b2a5402c4] causes a kernel panic on FreeBSD 10.2 when starting a VNET iocage jail. The system runs a GENERIC ke= rnel with VIMAGE and IPSEC enabled. Reverting this resolves the problem.=20 /var/log/messsages: 3 Jan 24 19:30:42 x3200 kernel: vnet0:1: link state changed to DOWN 4 Jan 24 19:30:42 x3200 kernel: vnet0: link state changed to DOWN 5 Jan 24 19:30:42 x3200 kernel: bridge1: link state changed to DOWN 6 Jan 24 19:30:42 x3200 kernel: ifa_del_loopback_route: deletion failed: = 48 7 Jan 24 19:30:42 x3200 kernel: Freed UMA keg (udp_inpcb) was not empty (= 60 items). Lost 6 pages of memory. 8 Jan 24 19:30:42 x3200 kernel: Freed UMA keg (udpcb) was not empty (668 items). Lost 4 pages of memory. 9 Jan 24 19:30:42 x3200 kernel: Freed UMA keg (tcp_inpcb) was not empty (= 60 items). Lost 6 pages of memory. 10 Jan 24 19:30:42 x3200 kernel: Freed UMA keg (tcpcb) was not empty (18 items). Lost 6 pages of memory. 11 Jan 24 19:30:42 x3200 kernel: Freed UMA keg (ripcb) was not empty (60 items). Lost 6 pages of memory. 12 Jan 24 19:30:42 x3200 kernel: hhook_vnet_uninit: hhook_head type=3D1, i= d=3D1 cleanup required 13 Jan 24 19:30:42 x3200 kernel: hhook_vnet_uninit: hhook_head type=3D1, i= d=3D0 cleanup required 14 Jan 24 19:31:05 x3200 devd: Executing '/etc/pccard_ether epair0a start' 15 Jan 24 19:31:05 x3200 kernel: epair0a: 16 Jan 24 19:31:05 x3200 kernel: 17 Jan 24 19:31:05 x3200 kernel: Fatal trap 12: page fault while in kernel mode 18 Jan 24 19:31:05 x3200 kernel: cpuid =3D 1; apic id =3D 02 19 Jan 24 19:31:05 x3200 kernel: Ethernet address: 02:ff:20:00:09:0a 20 Jan 24 19:31:05 x3200 kernel: fault virtual address =3D 0x0 21 Jan 24 19:31:05 x3200 kernel: fault code =3D supervisor = read instruction, page not present 22 Jan 24 19:31:05 x3200 kernel: instruction pointer =3D 0x20:0x0 23 Jan 24 19:31:05 x3200 kernel: stack pointer =3D 0x28:0xfffffe04691ca720 24 Jan 24 19:31:05 x3200 kernel: frame pointer =3D 0x28:0xfffffe04691ca770 25 Jan 24 19:31:05 x3200 kernel: epair0b: code segment =3D bas= e rx0, limit 0xfffff, type 0x1b 26 Jan 24 19:31:05 x3200 kernel: =3D DPL 0, pres 1, long 1, def32 0, gran 1 27 Jan 24 19:31:05 x3200 kernel: Ethernet address: 02:ff:70:00:0a:0b 28 Jan 24 19:31:05 x3200 kernel: processor eflags =3D interrupt enabled, 29 Jan 24 19:31:05 x3200 kernel: epair0a: link state changed to UP 30 Jan 24 19:33:13 x3200 syslogd: kernel boot file is /boot/kernel/kernel 31 Jan 24 19:33:13 x3200 kernel: epair0b: link state changed to UP 32 Jan 24 19:33:13 x3200 kernel: resume, IOPL =3D 0 33 Jan 24 19:33:13 x3200 kernel: current process =3D 10817 (dhcp= cd) 34 Jan 24 19:33:13 x3200 kernel: trap number =3D 12 35 Jan 24 19:33:13 x3200 kernel: panic: page fault 36 Jan 24 19:33:13 x3200 kernel: cpuid =3D 1 37 Jan 24 19:33:13 x3200 kernel: KDB: stack backtrace: 38 Jan 24 19:33:13 x3200 kernel: #0 0xffffffff809442a0 at kdb_backtrace+0x= 60 39 Jan 24 19:33:13 x3200 kernel: #1 0xffffffff80907a06 at vpanic+0x126 40 Jan 24 19:33:13 x3200 kernel: #2 0xffffffff809078d3 at panic+0x43 41 Jan 24 19:33:13 x3200 kernel: #3 0xffffffff80cd178b at trap_fatal+0x36b 42 Jan 24 19:33:13 x3200 kernel: #4 0xffffffff80cd1a8d at trap_pfault+0x2ed 43 Jan 24 19:33:13 x3200 kernel: #5 0xffffffff80cd112a at trap+0x47a 44 Jan 24 19:33:13 x3200 kernel: #6 0xffffffff80cb74a2 at calltrap+0x8 45 Jan 24 19:33:13 x3200 kernel: #7 0xffffffff809ca1cb at ifioctl+0x11eb 46 Jan 24 19:33:13 x3200 kernel: #8 0xffffffff8095c195 at kern_ioctl+0x255 47 Jan 24 19:33:13 x3200 kernel: #9 0xffffffff8095be90 at sys_ioctl+0x140 48 Jan 24 19:33:13 x3200 kernel: #10 0xffffffff80cd20a7 at amd64_syscall+0= x357 49 Jan 24 19:33:13 x3200 kernel: #11 0xffffffff80cb778b at Xfast_syscall+0= xfb 50 Jan 24 19:33:13 x3200 kernel: Uptime: 30m59s See http://roy.marples.name/projects/dhcpcd/tktview?name=3D3a1e57157d. Expected behaviour: A userland app should not crash the kernel. iocage creates a vnet0:1 and connects it to bridge1. When dhcpcd is stopped= I can start the VNET Jail. The ifconfig shows: em0: flags=3D8843 metric 0 mtu 1500 =20=20=20=20=20=20=20 options=3D4209b ether 00:xx:xx:xx:xx:xx inet6 fe80::xxx:xxxx:xxxx:xxxx%em0 prefixlen 64 scopeid 0x1=20 inet6 2001:xxx:xxxx:xxx:xxxx:xxxx:xxxx:xxxx prefixlen 128=20 inet 69.xxx.xxx.xxx netmask 0xfffffe00 broadcast 255.255.255.255=20 nd6 options=3D1 media: Ethernet autoselect (1000baseT ) status: active em1: flags=3D8943 metric 0 = mtu 1500 options=3D42098 ether 00:xx:xx:xx:xx:58 nd6 options=3D29 media: Ethernet autoselect (1000baseT ) status: active enc0: flags=3D0<> metric 0 mtu 1536 nd6 options=3D29 lo0: flags=3D8049 metric 0 mtu 16384 options=3D600003 inet6 ::1 prefixlen 128=20 inet6 fe80::1%lo0 prefixlen 64 scopeid 0x4=20 inet 127.0.0.1 netmask 0xff000000=20 nd6 options=3D21 bridge0: flags=3D8843 metric 0 mtu = 1500 ether 02:xx:xx:xx:xx:00 inet6 fe80::yy:yyyy:yyyy:3e00%bridge0 prefixlen 64 scopeid 0x5=20 inet zzz.zzz.zz.z netmask 0xffffff00 broadcast 156.168.10.255=20 inet6 2601:xxx:xxxxx:xxxx::1 prefixlen 64=20 nd6 options=3D41 id 00:00:00:00:00:00 priority 32768 hellotime 2 fwddelay 15 maxage 20 holdcnt 6 proto rstp maxaddr 2000 timeout 1200 root id 00:00:00:00:00:00 priority 32768 ifcost 0 port 0 member: tap0 flags=3D143 ifmaxaddr 0 port 7 priority 128 path cost 2000000 member: em1 flags=3D143 ifmaxaddr 0 port 2 priority 128 path cost 55 bridge1: flags=3D8843 metric 0 mtu = 1500 ether 02:xx:xx:xx:xx:01 inet 172.10.0.1 netmask 0xffffff00 broadcast 172.10.0.255=20 nd6 options=3D49 id 00:00:00:00:00:00 priority 32768 hellotime 2 fwddelay 15 maxage 20 holdcnt 6 proto rstp maxaddr 2000 timeout 1200 root id 00:00:00:00:00:00 priority 32768 ifcost 0 port 0 member: vnet0:1 flags=3D143 ifmaxaddr 0 port 9 priority 128 path cost 2000 tap0: flags=3D8902 metric 0 mtu 1500 options=3D80000 ether xx:xx:xx:xx:xx:00 nd6 options=3D69 media: Ethernet autoselect status: no carrier tap1: flags=3D8802 metric 0 mtu 1500 options=3D80000 ether xx:xx:xx:xx:xx:01 nd6 options=3D69 media: Ethernet autoselect status: no carrier vnet0:1: flags=3D8943 metri= c 0 mtu 1500 description: associated with jail: "jailid goes here" options=3D8 ether xx:xx:xx:xx:xx:e1 inet6 fe80::ff:xxxx:xxxx:xxe1%vnet0:1 prefixlen 64 scopeid 0x9=20 nd6 options=3D61 media: Ethernet 10Gbase-T (10Gbase-T ) status: active --=20 You are receiving this mail because: You are the assignee for the bug.=