From nobody Sat Nov 04 18:01:27 2023 X-Original-To: bugs@mlmmj.nyi.freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2610:1c1:1:606c::19:1]) by mlmmj.nyi.freebsd.org (Postfix) with ESMTP id 4SN55g6Q7dz503CT for ; Sat, 4 Nov 2023 18:01:27 +0000 (UTC) (envelope-from bugzilla-noreply@freebsd.org) Received: from mxrelay.nyi.freebsd.org (mxrelay.nyi.freebsd.org [IPv6:2610:1c1:1:606c::19:3]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature RSA-PSS (4096 bits) server-digest SHA256 client-signature RSA-PSS (4096 bits) client-digest SHA256) (Client CN "mxrelay.nyi.freebsd.org", Issuer "R3" (verified OK)) by mx1.freebsd.org (Postfix) with ESMTPS id 4SN55g4H38z3WWT for ; Sat, 4 Nov 2023 18:01:27 +0000 (UTC) (envelope-from bugzilla-noreply@freebsd.org) ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=freebsd.org; s=dkim; t=1699120887; h=from:from:reply-to:subject:subject:date:date:message-id:message-id: to:to:cc:mime-version:mime-version:content-type:content-type: content-transfer-encoding:content-transfer-encoding; bh=cY4iOoz5D/+IwQsDCPKqHbRW4EUNDgDM2k6HhHZ/3Zk=; b=oQUa4jOxCQN0VgoPlWjgBFU7PGP/mSocdUrCvihGL2c4KUdPNYC3S8irX+tZCO/pnZ/EuU G+J6q1G6cLHyr5gan9UCCY9AcM7khfzanKmjOlOKIwXnknlDXN8MVpTtR/OqSeOtXEpkd9 iJ+6MfxGZLMXRTKlzqO+vLxD7LTvmyLQ4RxOskYFHZqRz4dyzFt3n5Vhh3nlMc+osklgW1 VZ7p0+68bhtAZhLC+1pc9x6YIsS6ale515k1YT13qIl+lVvk/T70a/spe6SZ1y1qCEip5q RBEZcSsM+gBtpvR8SBRJvCdI0OmAq1G0BdcMZDGA8SDC47Jk7vCIKt+B2oe1dQ== ARC-Authentication-Results: i=1; mx1.freebsd.org; none ARC-Seal: i=1; s=dkim; d=freebsd.org; t=1699120887; a=rsa-sha256; cv=none; b=gae6LcS6TdlnNAAyWxJowT1GfOn3lDvuChmCCmajMP3u+o59yoI745N39J8gFOweHf35pu gigqDZW2YeUkTCfM16hWNRpsQiW75svh4HNQ56+HKbJ/Fl1P/wFxurzCb4YdRZ0E1Rip6W bKboaiCrdHKY1cIHKUTo8vxvPm0TCP6AKQYFqN7/m6UufMF82h+i/WmVvbRyj1nwnaApMK OXx4rMYcSLRartOmqT3x3iPPIyZMneaEaDoPhPwFqGtAg7CCaxEpgXZo3UirjoKI2EmFlj A5yBFhtioONkq4b2/XJgXNo7TX95HGxk5HG/4DOM9q6Oqe6sGDGFNAVkAh5Bug== Received: from kenobi.freebsd.org (kenobi.freebsd.org [IPv6:2610:1c1:1:606c::50:1d]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature RSA-PSS (4096 bits) server-digest SHA256) (Client did not present a certificate) by mxrelay.nyi.freebsd.org (Postfix) with ESMTPS id 4SN55g3LqMz178j for ; Sat, 4 Nov 2023 18:01:27 +0000 (UTC) (envelope-from bugzilla-noreply@freebsd.org) Received: from kenobi.freebsd.org ([127.0.1.5]) by kenobi.freebsd.org (8.15.2/8.15.2) with ESMTP id 3A4I1RKO062999 for ; Sat, 4 Nov 2023 18:01:27 GMT (envelope-from bugzilla-noreply@freebsd.org) Received: (from www@localhost) by kenobi.freebsd.org (8.15.2/8.15.2/Submit) id 3A4I1RaP062998 for bugs@FreeBSD.org; Sat, 4 Nov 2023 18:01:27 GMT (envelope-from bugzilla-noreply@freebsd.org) X-Authentication-Warning: kenobi.freebsd.org: www set sender to bugzilla-noreply@freebsd.org using -f From: bugzilla-noreply@freebsd.org To: bugs@FreeBSD.org Subject: [Bug 274915] [pf][panic] immediately on loading ruleset, in pf_ioctl_addrule sha #4ffe410 Date: Sat, 04 Nov 2023 18:01:27 +0000 X-Bugzilla-Reason: AssignedTo X-Bugzilla-Type: new X-Bugzilla-Watch-Reason: None X-Bugzilla-Product: Base System X-Bugzilla-Component: kern X-Bugzilla-Version: 15.0-CURRENT X-Bugzilla-Keywords: X-Bugzilla-Severity: Affects Only Me X-Bugzilla-Who: dch@freebsd.org X-Bugzilla-Status: New X-Bugzilla-Resolution: X-Bugzilla-Priority: --- X-Bugzilla-Assigned-To: bugs@FreeBSD.org X-Bugzilla-Flags: X-Bugzilla-Changed-Fields: bug_id short_desc product version rep_platform op_sys bug_status bug_severity priority component assigned_to reporter attachments.mimetype attachments.created Message-ID: Content-Type: text/plain; charset="UTF-8" Content-Transfer-Encoding: quoted-printable X-Bugzilla-URL: https://bugs.freebsd.org/bugzilla/ Auto-Submitted: auto-generated List-Id: Bug reports List-Archive: https://lists.freebsd.org/archives/freebsd-bugs List-Help: List-Post: List-Subscribe: List-Unsubscribe: Sender: owner-freebsd-bugs@freebsd.org MIME-Version: 1.0 https://bugs.freebsd.org/bugzilla/show_bug.cgi?id=3D274915 Bug ID: 274915 Summary: [pf][panic] immediately on loading ruleset, in pf_ioctl_addrule sha #4ffe410 Product: Base System Version: 15.0-CURRENT Hardware: Any OS: Any Status: New Severity: Affects Only Me Priority: --- Component: kern Assignee: bugs@FreeBSD.org Reporter: dch@freebsd.org Attachment #246120 text/plain mime type: Created attachment 246120 --> https://bugs.freebsd.org/bugzilla/attachment.cgi?id=3D246120&action= =3Dedit pf.conf that triggers it ## dump ``` [555] [555] Fatal trap 12: page fault while in kernel mode [555] cpuid =3D 0; apic id =3D 00 [555] fault virtual address =3D 0x0 [555] fault code =3D supervisor read data, page not present [555] instruction pointer =3D 0x20:0xffffffff86f5d574 [555] stack pointer =3D 0x28:0xfffffe027f6a8c40 [555] frame pointer =3D 0x28:0xfffffe027f6a8c90 [555] code segment =3D base 0x0, limit 0xfffff, type 0x1b [555] =3D DPL 0, pres 1, long 1, def32 0, gran 1 [555] processor eflags =3D interrupt enabled, resume, IOPL =3D 0 [555] current process =3D 0 (netlink_socket (PID) [555] rdi: 0000000000000070 rsi: fffffe015526f1e0 rdx: 00000000000000c4 [555] rcx: 0000000000000004 r8: 0000000000000000 r9: 0000000000000000 [555] rax: 0000000000000000 rbx: 00000000000000c4 rbp: fffffe027f6a8c90 [555] r10: 0000000000000000 r11: 0000000000000000 r12: 0000000000000004 [555] r13: fffffe00d69e4078 r14: fffff8090e4b7800 r15: fffff8090e58f000 [555] trap number =3D 12 [555] panic: page fault [555] cpuid =3D 0 [555] time =3D 1699118804 [555] KDB: stack backtrace: [555] db_trace_self_wrapper() at db_trace_self_wrapper+0x2b/frame 0xfffffe027f6a8920 [555] vpanic() at vpanic+0x132/frame 0xfffffe027f6a8a50 [555] panic() at panic+0x43/frame 0xfffffe027f6a8ab0 [555] trap_fatal() at trap_fatal+0x40c/frame 0xfffffe027f6a8b10 [555] trap_pfault() at trap_pfault+0x4f/frame 0xfffffe027f6a8b70 [555] calltrap() at calltrap+0x8/frame 0xfffffe027f6a8b70 [555] --- trap 0xc, rip =3D 0xffffffff86f5d574, rsp =3D 0xfffffe027f6a8c40,= rbp =3D 0xfffffe027f6a8c90 --- [555] pf_ioctl_addrule() at pf_ioctl_addrule+0x224/frame 0xfffffe027f6a8c90 [555] pf_handle_addrule() at pf_handle_addrule+0xa0/frame 0xfffffe027f6a8d00 [555] nl_taskqueue_handler() at nl_taskqueue_handler+0x79b/frame 0xfffffe027f6a8e40 [555] taskqueue_run_locked() at taskqueue_run_locked+0x182/frame 0xfffffe027f6a8ec0 [555] taskqueue_thread_loop() at taskqueue_thread_loop+0xc2/frame 0xfffffe027f6a8ef0 [555] fork_exit() at fork_exit+0x7f/frame 0xfffffe027f6a8f30 [555] fork_trampoline() at fork_trampoline+0xe/frame 0xfffffe027f6a8f30 [555] --- trap 0, rip =3D 0, rsp =3D 0, rbp =3D 0 --- [555] KDB: enter: panic ``` ## output of `pfctl -vef /etc/pf.conf`=20 ``` ... pass out quick on igb0 proto udp from any port =3D dhcpv6-server to any por= t =3D dhcpv6-server keep state pass out quick on igb0 inet proto udp all keep state pass out quick on igb0 inet6 proto udp all keep state pass in on igb0 inet proto icmp all keep state pass in on igb0 inet proto icmp all icmp-type echoreq keep state pass in on igb0 inet proto icmp all icmp-type unreach keep state pass in on tap0 inet proto icmp all icmp-type echoreq keep state pass in on tap0 inet proto icmp all icmp-type unreach keep state pass in on tap1 inet proto icmp all icmp-type echoreq keep state pass in on tap1 inet proto icmp all icmp-type unreach keep state pass in on vm-public inet proto icmp all icmp-type echoreq keep state pass in on vm-public inet proto icmp all icmp-type unreach keep state pass in quick on igb0 inet proto udp from any to 172.16.1.4 port =3D domain= keep state pass in quick on igb0 inet proto udp from any to 172.16.1.4 port =3D 9000 k= eep state pass in quick on igb0 inet proto udp from any to 172.16.1.4 port =3D 9993 k= eep state pass in quick on igb0 inet proto udp from any to 172.16.1.4 port =3D 42853 = keep state pass in quick on igb0 inet proto udp from any to 172.16.1.4 port =3D 21027 = keep state pass in quick on igb0 inet proto udp from any to 172.16.1.4 port =3D 3478 k= eep state ... probably should be more rules output here ``` ## ifconfig ``` igb0: flags=3D1008943 metric 0 mtu 1400 =20=20=20=20=20=20=20 options=3D4e503bb ether ac:1f:6b:67:e1:38 inet 172.16.1.4 netmask 0xffffff00 broadcast 172.16.1.255 inet6 fe80::ae1f:6bff:fe67:e138%igb0 prefixlen 64 scopeid 0x1 media: Ethernet autoselect (1000baseT ) status: active nd6 options=3D23 igb1: flags=3D8802 metric 0 mtu 1500 =20=20=20=20=20=20=20 options=3D4e507bb ether ac:1f:6b:67:e1:39 media: Ethernet autoselect status: no carrier nd6 options=3D29 lo0: flags=3D1008049 metric 0 mtu 1= 6384 options=3D680003 inet 127.0.0.1 netmask 0xff000000 inet6 ::1 prefixlen 128 inet6 fe80::1%lo0 prefixlen 64 scopeid 0x3 groups: lo nd6 options=3D21 lo1: flags=3D1008049 metric 0 mtu 1= 6384 options=3D680003 inet 100.64.0.0 netmask 0xfffe0000 inet 100.64.0.1 netmask 0xffffffff inet 100.64.0.2 netmask 0xffffffff inet 100.64.0.3 netmask 0xffffffff inet 100.64.0.4 netmask 0xffffffff inet 100.64.0.5 netmask 0xffffffff inet 100.64.0.6 netmask 0xffffffff inet 100.64.0.7 netmask 0xffffffff inet 100.64.0.8 netmask 0xffffffff inet 100.64.0.9 netmask 0xffffffff inet 100.64.0.10 netmask 0xffffffff inet 100.64.0.11 netmask 0xffffffff inet 100.64.0.12 netmask 0xffffffff inet 100.64.0.13 netmask 0xffffffff inet 100.64.0.14 netmask 0xffffffff inet 100.64.0.15 netmask 0xffffffff inet 100.64.68.238 netmask 0xffffffff inet 100.64.8.8 netmask 0xffffffff inet6 fe80::1%lo1 prefixlen 64 scopeid 0x4 groups: lo nd6 options=3D21 zt1flo98dm17np8: flags=3D1008843 metric 5000 mtu 2800 options=3D80000 ether 2a:3d:9d:3c:2f:91 hwaddr 58:9c:fc:10:65:16 inet6 fc7b:c4d6:6be2:8e50:6c98::1 prefixlen 40 inet6 fe80::283d:9dff:fe3c:2f91%zt1flo98dm17np8 prefixlen 64 scopeid 0x5 groups: tap media: Ethernet 1000baseT status: active nd6 options=3D21 Opened by PID 25 ztagim5o45dhe4c: flags=3D1008843 metric 5000 mtu 2800 options=3D80000 ether 8e:5a:56:5a:ad:5d hwaddr 58:9c:fc:00:16:3e inet6 fca2:927d:4de2:8e50:6c98::1 prefixlen 40 inet6 fe80::8c5a:56ff:fe5a:ad5d%ztagim5o45dhe4c prefixlen 64 scopeid 0x6 groups: tap media: Ethernet 1000baseT status: active nd6 options=3D21 Opened by PID 25 vm-public: flags=3D1008843 metric 0 mtu 1400 options=3D0 ether be:b4:fd:ec:d1:27 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: igb0 flags=3D143 ifmaxaddr 0 port 1 priority 128 path cost 20000 groups: bridge vm-switch viid-4c918@ nd6 options=3D9 ``` lots of netlink-related messages scroll past at unreadable speed during the crash. I'll try to trim the pf.conf to find what's responsible in the meantime. --=20 You are receiving this mail because: You are the assignee for the bug.=