From nobody Tue Nov 07 22:58:13 2023 X-Original-To: pf@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 4SQ3Xj47tkz4yYWD for ; Tue, 7 Nov 2023 22:58:13 +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 4SQ3Xj2kbjz3C3w for ; Tue, 7 Nov 2023 22:58:13 +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=1699397893; 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: in-reply-to:in-reply-to:references:references; bh=jftUxVzUaFoUEN1+oJiuR+dFW6aFyyl538Paxid/ITA=; b=qWLJFgbuA2DASHdIQ4tK42q9NmhoeA7k1Lsi1/hCiEL0oBHGgGYgBoBgceb8fOoEoPM14Z sDl+o9vM/OfNxZrZxzNp3k+BX/SX3FhNO7gOiDL6iFn7s16HuUv0k8Q6PIJ/fqopGv7WHB gnIXAZoCm2ec39CoXxmFBwuET/bcZPzKHMlyUumn3xNNvdR0RKFv3LFNqis6enLDJLQNyr LB23Vcx1jZncEi4D6+UHeQQW/ZYTXr9he6HcCcOW43oEbA8N0obrTg/QYQXPqloK1R6tWK 0zPcoE+NzQs9Ub4FfbOMX3xX9VWPpvqppgCCZ2WTJBmRdmBzg5vU3JVgEep5Nw== ARC-Authentication-Results: i=1; mx1.freebsd.org; none ARC-Seal: i=1; s=dkim; d=freebsd.org; t=1699397893; a=rsa-sha256; cv=none; b=qckplfwZk/R7pHYfZbsUbDHHWwNvx+BZG+eSUyA8wY0dDCebMk5mEJKSfenrc6azWf+OEb PNpHHDAWeg4Lxlq3waieBsX2Hvl/oj2nUt324/3F6O6kXS5prKPgbp9rL4xgswTSj+a6/k O2ADz58NQy6OZjt9EP6tfJzR8dD8LZc/C6FdfRNFhchkQJo9KBAdxvzk7oFvMR/1YAJpcQ FL69jk0AzqtVqgg9awjq9HvLVp71nF8lYDTFlyVXAyZtz76gUi7X7GTwo9E45rWUpqLH6P 6aYjaPzxmFc0t0WZ8/Co/gCOUJB+cyQ6HwXq0YkJR7QeZMYJK2cIlJo+CLywMA== 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 4SQ3Xj1jTtz17lZ for ; Tue, 7 Nov 2023 22:58:13 +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 3A7MwDwj089805 for ; Tue, 7 Nov 2023 22:58:13 GMT (envelope-from bugzilla-noreply@freebsd.org) Received: (from www@localhost) by kenobi.freebsd.org (8.15.2/8.15.2/Submit) id 3A7MwDSF089804 for pf@FreeBSD.org; Tue, 7 Nov 2023 22:58:13 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: pf@FreeBSD.org Subject: [Bug 274915] panic immediately on loading ruleset, in pf_ioctl_addrule sha #4ffe410 Date: Tue, 07 Nov 2023 22:58:13 +0000 X-Bugzilla-Reason: AssignedTo X-Bugzilla-Type: changed X-Bugzilla-Watch-Reason: None X-Bugzilla-Product: Base System X-Bugzilla-Component: kern X-Bugzilla-Version: 15.0-CURRENT X-Bugzilla-Keywords: crash X-Bugzilla-Severity: Affects Only Me X-Bugzilla-Who: dch@freebsd.org X-Bugzilla-Status: In Progress X-Bugzilla-Resolution: X-Bugzilla-Priority: --- X-Bugzilla-Assigned-To: pf@FreeBSD.org X-Bugzilla-Flags: X-Bugzilla-Changed-Fields: bug_status 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 List-Id: Technical discussion and general questions about packet filter (pf) List-Archive: https://lists.freebsd.org/archives/freebsd-pf List-Help: List-Post: List-Subscribe: List-Unsubscribe: Sender: owner-freebsd-pf@freebsd.org X-BeenThere: freebsd-pf@freebsd.org MIME-Version: 1.0 https://bugs.freebsd.org/bugzilla/show_bug.cgi?id=3D274915 Dave Cottlehuber changed: What |Removed |Added ---------------------------------------------------------------------------- Status|New |In Progress --- Comment #3 from Dave Cottlehuber --- (kgdb) bt #0 __curthread () at /usr/src/sys/amd64/include/pcpu_aux.h:57 #1 doadump (textdump=3Dtextdump@entry=3D0) at /usr/src/sys/kern/kern_shutdown.c:405 #2 0xffffffff804a291a in db_dump (dummy=3D, dummy2=3D, dummy3=3D, dummy4=3D) at /usr/src/sys/ddb/db_command.c:591 #3 0xffffffff804a271d in db_command (last_cmdp=3D, cmd_table=3D, dopager=3Dtrue) at /usr/src/sys/ddb/db_command= .c:504 #4 0xffffffff804a23dd in db_command_loop () at /usr/src/sys/ddb/db_command.c:551 #5 0xffffffff804a5d56 in db_trap (type=3D, code=3D) at /usr/src/sys/ddb/db_main.c:268 #6 0xffffffff80b9c527 in kdb_trap (type=3Dtype@entry=3D3, code=3Dcode@entr= y=3D0, tf=3Dtf@entry=3D0xfffffe0268632860) at /usr/src/sys/kern/subr_kdb.c:790 #7 0xffffffff8102214d in trap (frame=3D0xfffffe0268632860) at /usr/src/sys/amd64/amd64/trap.c:608 #8 #9 kdb_enter (why=3D, msg=3D) at /usr/src/sys/kern/subr_kdb.c:556 #10 0xffffffff80b4d4b3 in vpanic (fmt=3D0xffffffff8114dead "%s", ap=3Dap@entry=3D0xfffffe0268632a90) at /usr/src/sys/kern/kern_shutdown.c:958 #11 0xffffffff80b4d343 in panic (fmt=3D0xffffffff816b6b98 "\020\3272\201\377\377\377\377\001") at /usr/src/sys/kern/kern_shutdown.c:8= 94 #12 0xffffffff8102260c in trap_fatal (frame=3D0xfffffe0268632b80, eva=3D0) = at /usr/src/sys/amd64/amd64/trap.c:952 #13 0xffffffff8102265f in trap_pfault (frame=3D0xfffffe0268632b80, usermode=3Dfalse, signo=3D, ucode=3D) at /usr/src/sys/amd64/amd64/trap.c:760 #14 #15 0xffffffff83710574 in pf_ioctl_addrule (rule=3Drule@entry=3D0xfffff80cd= c854800, ticket=3Dticket@entry=3D2, pool_ticket=3Dpool_ticket@entry=3D196, anchor=3Danchor@entry=3D0xfffff8014bb5c028 "", anchor_call=3Danchor_call@entry=3D0xfffff8014bb5c030 "", uid=3D, pid=3D0) at /usr/src/sys/netpfil/pf/pf_ioctl.c:2094 #16 0xffffffff83730750 in pf_handle_addrule (hdr=3D0xfffff8014bb5c000, npt=3D0xfffffe0268632dc0) at /usr/src/sys/netpfil/pf/pf_nl.c:631 #17 0xffffffff80d947fb in nl_receive_message (hdr=3D0xfffff8014bb5c000, remaining_length=3D, nlp=3D0xfffff80c49506e00, npt=3D0xfffffe0268632dc0) at /usr/src/sys/netlink/netlink_io.c:506 #18 nl_process_mbuf (m=3D0xfffff80164c27300, nlp=3D0xfffff80c49506e00) at /usr/src/sys/netlink/netlink_io.c:580 #19 nl_process_received_one (nlp=3D0xfffff80c49506e00) at /usr/src/sys/netlink/netlink_io.c:293 #20 nl_process_received (nlp=3D0xfffff80c49506e00) at /usr/src/sys/netlink/netlink_io.c:320 #21 nl_taskqueue_handler (_arg=3D0xfffff80c49506e00, pending=3D) at /usr/src/sys/netlink/netlink_io.c:371 #22 0xffffffff80bb2452 in taskqueue_run_locked (queue=3Dqueue@entry=3D0xfffff80c4cb46c00) at /usr/src/sys/kern/subr_taskqueue.c:512 #23 0xffffffff80bb36e2 in taskqueue_thread_loop (arg=3Darg@entry=3D0xfffff80c49506e60) at /usr/src/sys/kern/subr_taskqueue.= c:824 #24 0xffffffff80b0661f in fork_exit (callout=3D0xffffffff80bb3620 , arg=3D0xfffff80c49506e60, frame=3D0xfffffe0268632f= 40) at /usr/src/sys/kern/kern_fork.c:1160 #25 (kgdb) frame 15 #15 0xffffffff83710574 in pf_ioctl_addrule (rule=3Drule@entry=3D0xfffff80cd= c854800, ticket=3Dticket@entry=3D2, pool_ticket=3Dpool_ticket@entry=3D196, anchor=3Danchor@entry=3D0xfffff8014bb5c028 "", anchor_call=3Danchor_call@entry=3D0xfffff8014bb5c030 "", uid=3D, pid=3D0) at /usr/src/sys/netpfil/pf/pf_ioctl.c:2094 warning: Source file is more recent than executable. 2094 tail =3D TAILQ_LAST(ruleset->rules[rs_num].inactive.ptr, (kgdb) (kgdb) l 2089 */ 2090 if (ruleset->rules[rs_num].inactive.tree =3D=3D NULL) { 2091 ERROUT(EINVAL); 2092 } 2093 2094 tail =3D TAILQ_LAST(ruleset->rules[rs_num].inactive.ptr, 2095 pf_krulequeue); 2096 if (tail) 2097 rule->nr =3D tail->nr + 1; 2098 else (kgdb) I bumped my src repo today for $WORK but its not a big jump. Easy enough no= w to repro with your steps above, thank-you! --=20 You are receiving this mail because: You are the assignee for the bug.=