From nobody Wed Sep 1 14:50:10 2021 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 8E2EB17A8173 for ; Wed, 1 Sep 2021 14:50:10 +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 4H06RQ3KpTz4X7b for ; Wed, 1 Sep 2021 14:50:10 +0000 (UTC) (envelope-from bugzilla-noreply@freebsd.org) 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 57F7D26E43 for ; Wed, 1 Sep 2021 14:50:10 +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 181EoAWZ050802 for ; Wed, 1 Sep 2021 14:50:10 GMT (envelope-from bugzilla-noreply@freebsd.org) Received: (from www@localhost) by kenobi.freebsd.org (8.15.2/8.15.2/Submit) id 181EoA44050801 for bugs@FreeBSD.org; Wed, 1 Sep 2021 14:50:10 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 258196] Kernel panic on pf_free_state with HardenedBSD Date: Wed, 01 Sep 2021 14:50:10 +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: 12.2-STABLE X-Bugzilla-Keywords: X-Bugzilla-Severity: Affects Only Me X-Bugzilla-Who: theo.bertin@advens.fr 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 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 X-ThisMailContainsUnwantedMimeParts: N https://bugs.freebsd.org/bugzilla/show_bug.cgi?id=3D258196 Bug ID: 258196 Summary: Kernel panic on pf_free_state with HardenedBSD Product: Base System Version: 12.2-STABLE Hardware: amd64 OS: Any Status: New Severity: Affects Only Me Priority: --- Component: kern Assignee: bugs@FreeBSD.org Reporter: theo.bertin@advens.fr Hi everyone, We're currently experiencing kernel panics on HardenedBSD machines following 12.2-stable : uname -a : FreeBSD [redacted] 12.2-STABLE-HBSD FreeBSD 12.2-STABLE-HBSD #0 : Tue Aug 10 20:14:33 UTC 2021=20=20=20=20 ro...@ci-12.md.hardenedbsd.lan:/usr/obj/usr/src/amd64.amd64/sys/HARDENEDBSD= =20 amd64 Since an update of kernel around July, some of our machines began rebooting= at random times following a kernel panic : /var/crash/info.0 : Dump header from device: /dev/da1 Architecture: amd64 Architecture Version: 2 Dump Length: 626298880 Blocksize: 512 Compression: none Dumptime: Tue Aug 31 14:22:24 2021 Hostname: [redacted] Magic: FreeBSD Kernel Dump Version String: FreeBSD 12.2-STABLE-HBSD #0 : Tue Aug 10 20:14:33 UTC 2021 ro...@ci-12.md.hardenedbsd.lan:/usr/obj/usr/src/amd64.amd64/sys/HARDENED= BSD Panic String: pf_free_state: timeout 0 Dump Parity: 436929362 Bounds: 0 Dump Status: good /var/log/messages : Sep 1 05:23:08 [redacted] syslogd: kernel boot file is /boot/kernel/kernel Sep 1 05:23:08 [redacted] kernel: [4048] panic: pf_free_state: timeout 0 Sep 1 05:23:08 [redacted] kernel: [4048] cpuid =3D 2 Sep 1 05:23:08 [redacted] kernel: [4048] time =3D 1630473734 Sep 1 05:23:08 [redacted] kernel: [4048] __HardenedBSD_version =3D 1200060 __FreeBSD_version =3D 1202508 Sep 1 05:23:08 [redacted] kernel: [4048] version =3D FreeBSD 12.2-STABLE-H= BSD #0 : Tue Aug 10 20:14:33 UTC 2021 Sep 1 05:23:08 [redacted] kernel: [4048]=20=20=20=20 ro...@ci-12.md.hardenedbsd.lan:/usr/obj/usr/src/amd64.amd64/sys/HARDENEDBSD Sep 1 05:23:08 [redacted] kernel: [4048] KDB: stack backtrace: Sep 1 05:23:08 [redacted] kernel: [4048] #0 0xffffffff80b9f12b at kdb_backtrace+0x6b Sep 1 05:23:08 [redacted] kernel: [4048] #1 0xffffffff80b581e0 at vpanic+0= x180 Sep 1 05:23:08 [redacted] kernel: [4048] #2 0xffffffff80b57fe3 at panic+0x= 43 Sep 1 05:23:08 [redacted] kernel: [4048] #3 0xffffffff82923622 at pf_free_state+0xb2 Sep 1 05:23:08 [redacted] kernel: [4048] #4 0xffffffff8292cdde at pf_test_rule+0x312e Sep 1 05:23:08 [redacted] kernel: [4048] #5 0xffffffff82930282 at pf_test6+0x772 Sep 1 05:23:08 [redacted] kernel: [4048] #6 0xffffffff8293abe9 at pf_check6_out+0x59 Sep 1 05:23:08 [redacted] kernel: [4048] #7 0xffffffff80c7095a at pfil_run_hooks+0xaa Sep 1 05:23:08 [redacted] kernel: [4048] #8 0xffffffff80da192f at ip6_output+0x15af Sep 1 05:23:08 [redacted] kernel: [4048] #9 0xffffffff80d67317 at tcp_output+0x1d37 Sep 1 05:23:08 [redacted] kernel: [4048] #10 0xffffffff80d7acb0 at tcp6_usr_connect+0x2f0 Sep 1 05:23:08 [redacted] kernel: [4048] #11 0xffffffff80be75fc at soconnectat+0xdc Sep 1 05:23:08 [redacted] kernel: [4048] #12 0xffffffff80beea8e at kern_connectat+0xfe Sep 1 05:23:08 [redacted] kernel: [4048] #13 0xffffffff80bee965 at sys_connect+0x75 Sep 1 05:23:08 [redacted] kernel: [4048] #14 0xffffffff81023556 at amd64_syscall+0x2b6 Sep 1 05:23:08 [redacted] kernel: [4048] #15 0xffffffff80ffa99e at fast_syscall_common+0xf8 Sep 1 05:23:08 [redacted] kernel: [4048] Uptime: 1h7m28s Sep 1 05:23:08 [redacted] kernel: [4048] Dumping 580 out of 4056 MB:..3%..12%..23%..31%..42%..53%..61%..72%..83%..91% Sep 1 05:23:08 [redacted] kernel: [4048] Dump complete Sep 1 05:23:08 [redacted] kernel: [4048] Automatic reboot in 15 seconds - press a key on the console to abort A bug has already been filled over at HardenedBSD, but the problem seems inherent to PF's source code : https://groups.google.com/a/hardenedbsd.org/g/users/c/rX7-zJQWnu0 It should be interesting to note that all the impacted machines use an IPv6 stack --=20 You are receiving this mail because: You are the assignee for the bug.=