From nobody Fri Jul 25 04:58:55 2025 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 4bpFyS0rL0z62QDR for ; Fri, 25 Jul 2025 04:58:56 +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 "R10" (verified OK)) by mx1.freebsd.org (Postfix) with ESMTPS id 4bpFyR5fs3z4NqK for ; Fri, 25 Jul 2025 04:58:55 +0000 (UTC) (envelope-from bugzilla-noreply@freebsd.org) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=freebsd.org; s=dkim; t=1753419535; 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=jjo5yqYJVXZbIPlAm6l5CRn0ciaePX3Lbn+H1ZRAmOA=; b=bQ9f+KsAW09OO9D5tZkzh00cDPjGGe0uModFY5nzsZsq3196toUADUC42m/Quif2Ibzx6i 9p67pNOf4qcUTy5YgRyAUcpg1dn90M+Ukf4n2JliFpTDpZFUX6u/qyT0c2iVJT9FsRHhGS 5cNZBPBF7o0Fi+A2YLl4HLNdNDIdXJZ3+6YeeEyiTV6ZzYRICvXoIUnnumqnP4R2JlmWb3 Dw4ALK6y1ymlwl/to/arRX1RHoDv02LSdg3S03Dnkc+i42Yt4YjaYPaBOrUQDmVxQuw+xE zXun8NgFKuqkiScvlurocyHaZwhkN/8sPru8iOcoP20M30lF+hBAAid5zORECQ== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=freebsd.org; s=dkim; t=1753419535; 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=jjo5yqYJVXZbIPlAm6l5CRn0ciaePX3Lbn+H1ZRAmOA=; b=JQrde0qZNWSAaktE/b3s4rJeQsLZp0wfYArbRPaIvCo2mvCZHAh7Al5OnY2PVem9MIZ9S0 Hyk4NVjB0D0g9zBGZBkQmqYIgQk5YozI5Tth1UX76UXqTS3E9dGu52zTet3taYSPYhU3/S gNpQBHEEZkBoWo7DXUqtdcCbP5HXpL4VWTsiHhFU1J3/q6kHz2D0uTLlWvUBwW3TrLcSum 6g8KQULzVVddMOKG9m/mPlvISYDbcMvlI2OjQN1r2eV3tXjXfsDivrPF7z7/vE3zs1EMRG bGLuAZT2mF1eGIX33UeOto555Z5VS9cdqIUqZXj7vGI2fsCRyh5o2QOBvZ20Dw== ARC-Authentication-Results: i=1; mx1.freebsd.org; none ARC-Seal: i=1; s=dkim; d=freebsd.org; t=1753419535; a=rsa-sha256; cv=none; b=asDqoM2tpcjs3SPSgpOH+J9EWz9FVC/mqaneKvDEdZhY9cOSbJK5jm0wnUm4G0IeWXsWdx P1I9K/80KoE0707ob2dvRrdwRxYDY09KDnX7DgyaYAzf1qFNpN9gVeVYV9K+QJKxkswoo/ c5Lglm+jUH+zKhqbfA5Ad0+bbVbnoLe0tFV/xIwVt8hlf6WDuv5yi0ReKRdeOyK4lxNaGo HA/Gfg8j8WrjptSbthiQFaUYImIdIKixTfGQRFef07t0dUQwfgtAu2vBfiXGj/JOoq3oij i8EgwOYbGJsrhXxzbQGOp18t4MimnRV1/r6KaJhGI+Ltu1zuPS+dEC5A6Q9tTQ== 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 4bpFyR4jmbzVVW for ; Fri, 25 Jul 2025 04:58:55 +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 56P4wtH4007406 for ; Fri, 25 Jul 2025 04:58:55 GMT (envelope-from bugzilla-noreply@freebsd.org) Received: (from www@localhost) by kenobi.freebsd.org (8.15.2/8.15.2/Submit) id 56P4wt4A007405 for net@FreeBSD.org; Fri, 25 Jul 2025 04:58:55 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: net@FreeBSD.org Subject: [Bug 227450] [patch] Should not all packets processed by gif_output be deleted, when an running instance of if_gif(4) is member of an instance of if_bridge(4)? Date: Fri, 25 Jul 2025 04:58:55 +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: 11.1-RELEASE X-Bugzilla-Keywords: patch X-Bugzilla-Severity: Affects Only Me X-Bugzilla-Who: meta@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-Transfer-Encoding: quoted-printable Content-Type: text/plain; charset="UTF-8" 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=3D227450 --- Comment #15 from Koichiro Iwao --- Just for the record, here's the minimal setup to reproduce.=20 rc.conf is not modified from the default setup of FreeBSD-15.0-CURRENT-amd64-BASIC-CLOUDINIT-20250724-01c587521dd8-279004-ufs= .qcow2.xz.=20 hostname=3D"freebsd" firstboot_freebsd_update_enable=3DYES growfs_enable=3DYES sshd_enable=3DYES nuageinit_enable=3DYES dumpdev=3D"AUTO" ifconfig_DEFAULT=3D"SYNCDHCP accept_rtadv" # RSA host keys are obsolete and also very slow to generate sshd_rsa_enable=3D"NO" Set up minimal Ethernet over IPv6.=20 ifconfig bridge0 create ifconfig epair0 create=20 ifconfig gif0 create mtu 1500 ifconfig gif0 inet6 tunnel 2001:db8::1 3fff::1 ifconfig bridge0 addm gif0 addm epair0a 1753415597 (Wait around 5 minutes, kernel will panic) panic: gif_output: unexpectedly called with bridge attached cpuid =3D 2 time =3D 1753415820 KDB: stack backtrace: db_trace_self_wrapper() at db_trace_self_wrapper+0x2b/frame 0xfffffe008c2ac= 950 vpanic() at vpanic+0x136/frame 0xfffffe008c2aca80 panic() at panic+0x43/frame 0xfffffe008c2acae0 gif_output() at gif_output+0x5b/frame 0xfffffe008c2acaf0 ip6_output() at ip6_output+0x1ca5/frame 0xfffffe008c2accb0 mld_dispatch_packet() at mld_dispatch_packet+0x325/frame 0xfffffe008c2acd30 mld_fasttimo() at mld_fasttimo+0x520/frame 0xfffffe008c2ace10 softclock_call_cc() at softclock_call_cc+0x19b/frame 0xfffffe008c2acec0 softclock_thread() at softclock_thread+0xc6/frame 0xfffffe008c2acef0 fork_exit() at fork_exit+0x82/frame 0xfffffe008c2acf30 fork_trampoline() at fork_trampoline+0xe/frame 0xfffffe008c2acf30 --- trap 0, rip =3D 0, rsp =3D 0, rbp =3D 0 --- KDB: enter: panic [ thread pid 2 tid 100039 ] Stopped at kdb_enter+0x33: movq $0,0x1235072(%rip) If an IPv6 (link-local) address is assigned to epair0a, it cannot be added = to a bridge member, and IPv6 addresses cannot be assigned if the interface is a bridge member (invalid argument). However, even if the interface is a bridge member, a link-local address may still be assigned to it. The default rc.conf setup of the VM-IMAGE is the c= ase. Kernel will panic when it tries to send traffic from the IPv6 address, as z= lei mentioned.=20 zlei's patch works fine for me. Shall we move forward? --=20 You are receiving this mail because: You are the assignee for the bug.=