From nobody Fri Jan 13 20:42:30 2023 X-Original-To: net@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 4Nttdg1g4Qz2p9SZ for ; Fri, 13 Jan 2023 20:42:31 +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 4Nttdg0VWgz3s6k for ; Fri, 13 Jan 2023 20:42:31 +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=1673642551; 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=nw8xNYSQQjMKgRNevVzvjgyBvAWhBd3YzDXxIrDYBqY=; b=AwGIPhxBO6ttMWqW0lJoSsDU4DzlHz1/G6N+VXEltij6e5Keyl7q3iRn1vSTzZclYbogFm 8aoPlQDnUGLp3ZbmSg7y6ylglH8XGPnJvI26b7DjGr4HAgK79AJDczCr3/J0elwMyEVNXo WR19JBX6y5/f2R3qVWr5w07rc29Wb+4iY99sftqtvQtl/PrcLFqGUN5MdW1raLILyv3NqX UET3xJbd6J52qtu8gIpaDPjt4PEIhui4L2T72NWsILOhQDwudlrGsB76PLuqKZLC/+NVJp 1m6wLeHfd/K7M021RjUUP4JTdyvV8MsNEVKMKRtO8Mz4p/V3O+VYY2VjUEZdTQ== ARC-Authentication-Results: i=1; mx1.freebsd.org; none ARC-Seal: i=1; s=dkim; d=freebsd.org; t=1673642551; a=rsa-sha256; cv=none; b=BEgZFTTFMlQ3WTdffd/NPnDe+eL2mp7kXMr0OlattNjJkssyugD4feZvYANRCFn7fMFl8G UetC2iKPbA4j8aSLTUq/Qj0yU2Uez469k8woryoCMdQ5gloNi8G6sYeGJJqvtWNig+f1iw J98UL+Olkwu54DOkZc3ygN0n94EQspaLrLWxXCJ1GbEVCv0EF/0uaFyqd6sS6xzAKfqdkY W1pAjmBEGbHZ2w56K9Z1S8sEeyKcvoYrr3PLjSs1ANPwdrsn2uJNP6ilgKbMbRxaUnrjaI XRi/ziPx+GqcMeYQuqQ7jxvIlhn5C0kA++H1wa7PD7Jg4APJ8cEiCtVG/xQs/g== 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 4Nttdf6g8zzLxH for ; Fri, 13 Jan 2023 20:42:30 +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 30DKgUs5005933 for ; Fri, 13 Jan 2023 20:42:30 GMT (envelope-from bugzilla-noreply@freebsd.org) Received: (from bugzilla@localhost) by kenobi.freebsd.org (8.15.2/8.15.2/Submit) id 30DKgUZf005932 for net@FreeBSD.org; Fri, 13 Jan 2023 20:42:30 GMT (envelope-from bugzilla-noreply@freebsd.org) X-Authentication-Warning: kenobi.freebsd.org: bugzilla set sender to bugzilla-noreply@freebsd.org using -f From: bugzilla-noreply@freebsd.org To: net@FreeBSD.org Subject: [Bug 268246] crash and panic using pfsync on 13.1-RELEASE Date: Fri, 13 Jan 2023 20:42:30 +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: 13.1-RELEASE X-Bugzilla-Keywords: crash, needs-qa X-Bugzilla-Severity: Affects Only Me X-Bugzilla-Who: commit-hook@FreeBSD.org X-Bugzilla-Status: Open X-Bugzilla-Resolution: X-Bugzilla-Priority: --- X-Bugzilla-Assigned-To: net@FreeBSD.org X-Bugzilla-Flags: X-Bugzilla-Changed-Fields: 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: Networking and TCP/IP with FreeBSD List-Archive: https://lists.freebsd.org/archives/freebsd-net List-Help: List-Post: List-Subscribe: List-Unsubscribe: Sender: owner-freebsd-net@freebsd.org MIME-Version: 1.0 X-ThisMailContainsUnwantedMimeParts: N https://bugs.freebsd.org/bugzilla/show_bug.cgi?id=3D268246 --- Comment #25 from commit-hook@FreeBSD.org --- A commit in branch main references this bug: URL: https://cgit.FreeBSD.org/src/commit/?id=3Dfd02192c3acaefeb62db11e0c10ab3624= 0b79ba2 commit fd02192c3acaefeb62db11e0c10ab36240b79ba2 Author: Kristof Provost AuthorDate: 2023-01-13 03:34:20 +0000 Commit: Kristof Provost CommitDate: 2023-01-13 19:41:25 +0000 pf: fix panic on deferred packets The pfsync_defer_tmo() callout needs to set the correct vnet before it can transmit packets. It used the rcvif in the mbuf to get this vnet, but that doesn't work for locally originated traffic. In that case the rcvif pointer is NULL, and the dereference leads to a panic. Instead use the sc_sync_if, which is always set (if pfsync is enabled, at least). PR: 268246 MFC after: 2 weeks sys/netpfil/pf/if_pfsync.c | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) --=20 You are receiving this mail because: You are the assignee for the bug.=