From nobody Fri Jul 21 19:01:57 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 4R6zSP1pG8z4nq03 for ; Fri, 21 Jul 2023 19:01:57 +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 4R6zSP0Hwqz4FHq for ; Fri, 21 Jul 2023 19:01:57 +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=1689966117; 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=2PxW7A6sdntJvL41lyBTagcNyqBZPOEEBPqE2PcJf+U=; b=ok9xQjhEembQNM7y+Ko/H5aX5/4RRq5figq2DIaGxH27MLqObbGBgn0in7kgmnONVB4xb0 kiP9fEC+qoyTfLN85ZglMOjjqPO1OCZLwGcB07/mgJTvUcQVuUhp31vDmu1gJIXivrQczx wzxnVQlQQueLi91BZBZ1Z0VfNYGaZcKT8RED7ML9y4TKWFYCnW4pdT6zWvMjj5MvBGJO1u r1+HAJOk5/swko3kv21Vumvjt5BvvAIeo45H0rsWXzkgzoNZLt3o2Q54r2nwwEbGiox07c Yh0oXEIJKZT6ElJ5yE+XyyFj0mrJheSkfq9kwmNr7WpI2NH15InxqJIussQ8Nw== ARC-Authentication-Results: i=1; mx1.freebsd.org; none ARC-Seal: i=1; s=dkim; d=freebsd.org; t=1689966117; a=rsa-sha256; cv=none; b=Xr1y2urwkqXikfDV6pEFhcpKpOnxwboTSOSZmrUAJ/MZ5KtRorULbFTmbXduzm/IyjSkKr ib6PBJ0uwaJw5FqeFBIvglCcZtPNGkcLQ1BcbTzik3xMRRrH17Uu6oDfH1XJHAJ4GbTiSK q5UBfKIeT+puGl8Wt+530zC4IuYv3Y1vMu2as7do+t28eJhpOzUWXAL0wCzkM5ahZHuI3y sGjjKH/woxD7nhGpH8pdHyTzgsf3RbE8FVyiug48+9vXGgHXsBLB9CLiZ77HVj39k9H7wx lWj2iJYdomYkBKpThBu1RiXwIRLSTuhGOy8lL5uWXyACE6TapH1GQC5lL3i7ew== 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 4R6zSN6T9bzPdb for ; Fri, 21 Jul 2023 19:01:56 +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 36LJ1uWS014057 for ; Fri, 21 Jul 2023 19:01:56 GMT (envelope-from bugzilla-noreply@freebsd.org) Received: (from bugzilla@localhost) by kenobi.freebsd.org (8.15.2/8.15.2/Submit) id 36LJ1um4014056 for net@FreeBSD.org; Fri, 21 Jul 2023 19:01:56 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 272616] [panic] Reproducible kernel panic related to sendfile and IPSec Date: Fri, 21 Jul 2023 19:01:57 +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.2-STABLE X-Bugzilla-Keywords: X-Bugzilla-Severity: Affects Some People 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 https://bugs.freebsd.org/bugzilla/show_bug.cgi?id=3D272616 --- Comment #15 from commit-hook@FreeBSD.org --- A commit in branch main references this bug: URL: https://cgit.FreeBSD.org/src/commit/?id=3Dbc310a95c58a3c570ed7e510337145388= 1e36ba1 commit bc310a95c58a3c570ed7e5103371453881e36ba1 Author: Konstantin Belousov AuthorDate: 2023-07-20 12:08:24 +0000 Commit: Konstantin Belousov CommitDate: 2023-07-21 18:51:13 +0000 ip output: ensure that mbufs are mapped if ipsec is enabled Ipsec needs access to packet headers to determine if a policy is applicable. It seems that typically IP headers are mapped, but the code is arguably needs to check this before blindly accessing them. Then, operations like m_unshare() and m_makespace() are not yet ready for unmapped mbufs. Ensure that the packet is mapped before calling into IPSEC_OUTPUT(). PR: 272616 Reviewed by: jhb, markj Sponsored by: NVidia networking MFC after: 1 week Differential revision: https://reviews.freebsd.org/D41112 sys/netinet/ip_output.c | 6 ++++++ sys/netinet6/ip6_output.c | 6 ++++++ 2 files changed, 12 insertions(+) --=20 You are receiving this mail because: You are the assignee for the bug.=