From nobody Fri Dec 1 18:47:26 2023 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 4ShhrH1FcSz52xSH for ; Fri, 1 Dec 2023 18:47:27 +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 4ShhrH005Xz4G3d for ; Fri, 1 Dec 2023 18:47:26 +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=1701456447; 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; bh=vnlUiv3DOg4jHlpnsgwwReTJRv85m4PLuV/XBJa4MYY=; b=l7pIkWGvrDEPS7kgr+NDBlyTiZ5+r51aNoS/MThOxb0+zEJIpWVlRd12oPuGVJ2u4bI8YF JAr8dQ6I+5xMYHMwPq0ynZi++W19xJLqAWEN9aE8soTabekpbKNABShTnBfKjXAwRZBV+q 91MMq4jEe6ATWlErzvtbUQld2j4K2uMgotuW4AuoHI6z3kwKmHSioNfruZ/qKqeVxZrTII 2brn+kBBeHIttwl1n+jIqN8hrmr78hlTIXotHiq8IeLRJblttJUp1mj4dY4Mf3xNHpKdUX 9HMbxBpiyddvksziGWMWQzy9ncpVyp1ArxrV9V6o9k+ksUfKb7hevACssejc5A== ARC-Authentication-Results: i=1; mx1.freebsd.org; none ARC-Seal: i=1; s=dkim; d=freebsd.org; t=1701456447; a=rsa-sha256; cv=none; b=I713HKaRgjn2EWOZHvh5cbYAK+9iijTxohEfGNxI1+4BlxdCr7hrr6iSSaApNz3wduUk59 rqwe1+Bm2UAEYxiyl5pR+wUEJLGStNIf6NCw2AV9sNyCBU4QHp6G7gwIZosl34W2HteVPh 6/yh7bAiZ6l7xJkZ2lD9M/uqiK+4ZL/NvcsLtXKaPKezU+QXdvgb4a5QkgrQB47pFFlukT u84457xMs56+FOfgEJzAHjxWbgQjM/yQ5vYp//cbqf5xLQdIrCVeTWe0P/y++fop34y+Ry HWMaXqWBC3nnqqhZzAnmtJYAqB78GD9wCYxcVa/aAzYgZHiVm+2hXhTpuFFguA== 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 4ShhrG6B9qzl0D for ; Fri, 1 Dec 2023 18:47:26 +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 3B1IlQrT087853 for ; Fri, 1 Dec 2023 18:47:26 GMT (envelope-from bugzilla-noreply@freebsd.org) Received: (from www@localhost) by kenobi.freebsd.org (8.15.2/8.15.2/Submit) id 3B1IlQKb087852 for bugs@FreeBSD.org; Fri, 1 Dec 2023 18:47:26 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 275474] if_gre: kernel panic when doing ifconfig deletetunnel on interface with udpencap Date: Fri, 01 Dec 2023 18:47:26 +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: 14.0-RELEASE X-Bugzilla-Keywords: X-Bugzilla-Severity: Affects Only Me X-Bugzilla-Who: cryx-ports@h3q.com 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 https://bugs.freebsd.org/bugzilla/show_bug.cgi?id=3D275474 Bug ID: 275474 Summary: if_gre: kernel panic when doing ifconfig deletetunnel on interface with udpencap Product: Base System Version: 14.0-RELEASE Hardware: Any OS: Any Status: New Severity: Affects Only Me Priority: --- Component: kern Assignee: bugs@FreeBSD.org Reporter: cryx-ports@h3q.com I'm using udpencap of the if_gre interface and stumbled across a bug where = when decommissioning a if_gre interface with the ifconfig deletetunnel (or -tunn= el) command panics the system. I reduced the panic to running these commands on any vanilla 13.2 or 14.0-RELEASE: ifconfig gre1 create ifconfig gre2 create ifconfig gre1 tunnel 127.0.0.1 127.0.0.3 udpencap ifconfig gre2 tunnel 127.0.0.1 127.0.0.2 udpencap ifconfig gre1 -udpencap ifconfig gre2 -udpencap ifconfig gre1 deletetunnel ifconfig gre2 deletetunnel I can also trigger the same when running theses commands three times in a r= ow: ifconfig gre1 create ifconfig gre2 create ifconfig gre1 tunnel 127.0.0.1 127.0.0.3 udpencap ifconfig gre2 tunnel 127.0.0.1 127.0.0.2 udpencap ifconfig gre1 deletetunnel ifconfig gre2 deletetunnel Doing the tunnel command without the udpencap stops the crashing. I can get a crashdump and this is what I get: # lldb /boot/kernel/kernel -c /var/crash/vmcore.0 (lldb) target create "/boot/kernel/kernel" --core "/var/crash/vmcore.0" Core file '/var/crash/vmcore.0' (x86_64) was loaded. (lldb) bt * thread #1, name =3D '(pid 69501) ifconfig (crashed)' * frame #0: 0xffffffff80c066ae kernel`doadump + 46 frame #1: 0xffffffff80c0648a kernel`kern_reboot + 1082 frame #2: 0xffffffff80c0692e kernel`vpanic + 446 frame #3: 0xffffffff80c06763 kernel`panic + 67 frame #4: 0xffffffff810b1fa7 kernel`trap_fatal + 903 frame #5: 0xffffffff810b1fff kernel`trap_pfault + 79 frame #6: 0xffffffff81088fe8 kernel`calltrap + 8 frame #7: 0xfffff800237c63b0 frame #8: 0xffffffff80ca674d kernel`soclose + 205 frame #9: 0xffffffff82320fa1 frame #10: 0xffffffff8232086f frame #11: 0xffffffff80d1d557 kernel`ifhwioctl + 2023 frame #12: 0xffffffff80d1f218 kernel`ifioctl + 1912 frame #13: 0xffffffff80c749fd kernel`kern_ioctl + 621 frame #14: 0xffffffff80c746e0 kernel`sys_ioctl + 256 frame #15: 0xffffffff810b289c kernel`amd64_syscall + 268 frame #16: 0xffffffff810898fb kernel`fast_syscall_common + 248 Any ideas? --=20 You are receiving this mail because: You are the assignee for the bug.=