From nobody Tue Dec 19 14:24:23 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 4Svf8S2T2Kz54KN2 for ; Tue, 19 Dec 2023 14:24:24 +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 4Svf8R5xsQz3MlR for ; Tue, 19 Dec 2023 14:24:23 +0000 (UTC) (envelope-from bugzilla-noreply@freebsd.org) ARC-Seal: i=1; s=dkim; d=freebsd.org; t=1702995863; a=rsa-sha256; cv=none; b=exfPjJWVdVIZnpXcNjfQFRFHpO7oeAmQl0bzYqzEuJUUIgW59lpSUmT7JMKgFgfTJQrQPU sXel/pjxIX8GsRkrzov40jNw0xXRMefSwvasQXAzhTz6yKZSLEyRrEe9nPENJLn1dok7cg RU3Cf8WsFdZCej9viX1gWj0xJsm1d/TOwfDiWot+FMXYCxphZiG/TMIPD+lx+rld1WnR+9 e6a8O16RJj8f07ofRv8TPhAmK4rBPXHO1PTiAvpZDhaESdGBNt+78seFK6yJ1vzf3Wi19u d0XpiOWqji2ajreqEsxUsyDw87OHqQpdEfUrEYD1B3+dsxehA5RFDcp75rFjoA== ARC-Authentication-Results: i=1; mx1.freebsd.org; none ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=freebsd.org; s=dkim; t=1702995863; 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=xJh55c+er8ovKJldKoF8M4ODm+st2rBhqAlQwje6Am0=; b=JKCgMrQLIo9cv7/kBhqiB0iPZOAckQva5jsbSsmHUeIq5xeTCuyJTR2bZZ2doeqWxSN37b SJkAqWGYt4nR6fEXTpE1c6KC4R8hvuAeg7WAcGJ7mf7B6lvm8mRKEQmcw6yVb1QU1VWgHg HIKukd0DJdc2IeEu6dSDFrUDZTF28186jBv5H1U7pGeMX7zpgGCUmn2Z4IdensVhJ90B0F d9MmNLT+SQEx2AIJUxlchub/7/IkUJEFBATPqCxFWhLD4U9i4E9Ocwh8wLqe/czhEJRucF 6reHTnnJSPPlkVFakec++SSf6DJn6UrU8x/e5BGue0DRadh7+CV9YSXUQLDt+w== 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 4Svf8R520sz17dl for ; Tue, 19 Dec 2023 14:24:23 +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 3BJEONMt025255 for ; Tue, 19 Dec 2023 14:24:23 GMT (envelope-from bugzilla-noreply@freebsd.org) Received: (from www@localhost) by kenobi.freebsd.org (8.15.2/8.15.2/Submit) id 3BJEON9o025254 for bugs@FreeBSD.org; Tue, 19 Dec 2023 14:24:23 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 275840] ifconfig tun destroy deadlock Date: Tue, 19 Dec 2023 14:24:23 +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: CURRENT X-Bugzilla-Keywords: X-Bugzilla-Severity: Affects Only Me X-Bugzilla-Who: rscheff@freebsd.org 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=3D275840 Bug ID: 275840 Summary: ifconfig tun destroy deadlock Product: Base System Version: CURRENT Hardware: Any OS: Any Status: New Severity: Affects Only Me Priority: --- Component: kern Assignee: bugs@FreeBSD.org Reporter: rscheff@freebsd.org While understanding PR275798 and making heavy use of packetdrill (which cre= ates and destroys TUN interfaces) I ended up in a deadlock - initially freezing = any ifconfig tun destroy, and ultimately panicing the system. Unfortunately, too much stuff had accumulated so no proper core, only this: tun0: link state changed to UP tun0: link state changed to DOWN tun0: link state changed to UP tun0: link state changed to DOWN tun1: link state changed to UP tun1: link state changed to DOWN tun0: link state changed to UP tun0: link state changed to DOWN tun0: link state changed to UP tun0: link state changed to DOWN tun0: link state changed to UP tun0: link state changed to DOWN tun0: link state changed to UP tun0: link state changed to DOWN tun0: link state changed to UP tun0: link state changed to DOWN tun0: link state changed to UP tun0: link state changed to DOWN tun0: link state changed to UP tun0: link state changed to DOWN tun0: link state changed to UP tun0: link state changed to DOWN tun0: link state changed to UP tun0: link state changed to DOWN tun0: link state changed to UP tun0: link state changed to DOWN tun1: link state changed to UP tun1: link state changed to DOWN tun0: link state changed to UP tun0: link state changed to DOWN tun0: link state changed to UP tun0: link state changed to DOWN tun0: link state changed to UP tun0: link state changed to DOWN tun0: link state changed to UP tun0: link state changed to DOWN tun0: link state changed to UP tun0: link state changed to DOWN tun0: link state changed to UP tun0: link state changed to DOWN tun0: link state changed to UP tun0: link state changed to DOWN tun0: link state changed to UP tun0: link state changed to DOWN tun0: link state changed to UP tun0: link state changed to DOWN tun0: link state changed to UP tun0: link state changed to DOWN tun0: link state changed to UP tun0: link state changed to DOWN tun0: link state changed to UP tun0: link state changed to DOWN tun0: link state changed to UP tun0: link state changed to DOWN tun0: link state changed to UP tun0: link state changed to DOWN tun0: link state changed to UP tun0: link state changed to DOWN tun0: link state changed to UP tun0: link state changed to DOWN tun0: link state changed to UP tun0: link state changed to DOWN tun0: link state changed to UP tun0: link state changed to DOWN tun0: link state changed to UP tun0: link state changed to DOWN tun0: link state changed to UP tun0: link state changed to DOWN tun0: link state changed to UP tun0: link state changed to DOWN tun0: link state changed to UP tun0: link state changed to DOWN tun0: link state changed to UP tun0: link state changed to DOWN tun0: link state changed to UP tun0: link state changed to DOWN tun0: link state changed to UP tun0: link state changed to DOWN tun0: link state changed to UP tun0: link state changed to DOWN tun0: link state changed to UP tun0: link state changed to DOWN tun0: link state changed to UP tun0: link state changed to DOWN tun0: link state changed to UP tun0: link state changed to DOWN tun0: link state changed to UP tun0: link state changed to DOWN tun0: link state changed to UP tun0: link state changed to DOWN tun0: link state changed to UP tun0: link state changed to DOWN tun0: link state changed to UP tun0: link state changed to DOWN tun0: link state changed to UP tun0: link state changed to DOWN tun0: link state changed to UP tun0: link state changed to DOWN tun0: link state changed to UP tun0: link state changed to DOWN tun0: link state changed to UP tun0: link state changed to DOWN tun0: link state changed to UP tun0: link state changed to DOWN tun0: link state changed to UP tun0: link state changed to DOWN tun0: link state changed to UP tun0: link state changed to DOWN tun0: link state changed to UP tun0: link state changed to DOWN tun0: link state changed to UP tun1: link state changed to UP tun1: link state changed to DOWN nd6_setmtu0: new link MTU on tun1 (1200) is too small for IPv6 tun2: link state changed to UP tun2: link state changed to DOWN panic: deadlres_td_sleep_q: possible deadlock detected for 0xfffff8000505a0= 00 (ifconfig), blocked for 180179 ticks cpuid =3D 6 time =3D 1702994520 KDB: stack backtrace: db_trace_self_wrapper() at db_trace_self_wrapper+0x2b/frame 0xfffffe00e6b0a= d20 vpanic() at vpanic+0x132/frame 0xfffffe00e6b0ae50 panic() at panic+0x43/frame 0xfffffe00e6b0aeb0 deadlkres() at deadlkres+0x32a/frame 0xfffffe00e6b0aef0 fork_exit() at fork_exit+0x82/frame 0xfffffe00e6b0af30 fork_trampoline() at fork_trampoline+0xe/frame 0xfffffe00e6b0af30 --- trap 0, rip =3D 0, rsp =3D 0, rbp =3D 0 --- KDB: enter: panic Uptime: 12h40m22s Dump failed. Partition too small (about 1478MB were needed this time). ---<>--- uname -a FreeBSD freebsd 15.0-CURRENT FreeBSD 15.0-CURRENT #1 snderr_sack-n266985-57ebadb55ba1: Sun Dec 17 17:29:27 CET 2023=20=20=20 This is one local small fix in tcp_output above a9504d76ccdad240b7d5761f4208e252f57042dd. --=20 You are receiving this mail because: You are the assignee for the bug.=