From nobody Fri Mar 28 18:06:03 2025 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 4ZPT3c0GhLz5rCt0 for ; Fri, 28 Mar 2025 18:06:04 +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 4ZPT3b5z1Dz3TdZ for ; Fri, 28 Mar 2025 18:06:03 +0000 (UTC) (envelope-from bugzilla-noreply@freebsd.org) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=freebsd.org; s=dkim; t=1743185163; 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=8JdDpctpo72LThpqqsbzvz3sXrPB+GUsU4A29dB+YqI=; b=vZro7Z4bkK+/OHRbWCOIv0WJ/RVbUsV5WcKtUx4zk/7LHMJHMb3DzwqETNbsbIMADyclCf QLIQNw1ZxyNIcgfG+0+IqrFlo8ZO7slZLckEWfZEM9fAwxf4oIYo/lIurtWy6XthtpRB00 PRvKWnXrQQ/um10zL7fI7eqJi8H1IG7HqOv/IbOMBDNF378gvwz5RVy4/Jsd+vtRkI+nQB 53D1ML5UPVA4ppl91VdyC6aZdeufgQ4xpNF4iQFtGUjYCNEARASYvabsS92DXkD8ZszHsN Uxdz1cOZjMjdmNX7/hN1bDvsCv+aJbP1Nld1PTWki+SiJHTk9btJoOLXWSY+Ew== ARC-Seal: i=1; s=dkim; d=freebsd.org; t=1743185163; a=rsa-sha256; cv=none; b=PtNEihj8IynplROndjq1aK3vR9xAcNqIvkp1g1anfYkBMDWuSlpkTdT0a9cwjx6ZKFrh90 CCJcPXDOMPr4xdJJRT1ehBeCSfIK2UUx1HM4UWAx/qma7JZnVHYgMBcOE9fvW7Gx3ZphcC PntXM0PBSMy+ULOHzd/Zss+KPAsy4l9Se2GTH/60BDh2aJnoa0So9nq1SYqJ0nWWYrNSRU fTdvEdRHKPpim0dNQSvR3eHIfpbJfJfC8NlzdPeDeJSuWaT7yKVFY7q7l5thW+G3cJu0Xr xJ5PHNv+wSG06QpPuQKQIvOKXvts9ASOpHA9YrxoNiMtl0YO9N8myy9aY9K+Ww== 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=1743185163; 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=8JdDpctpo72LThpqqsbzvz3sXrPB+GUsU4A29dB+YqI=; b=TB6iB+/ty7rFaj9n7eM5l3w+tDRySHSUTr1c222NM1oRkFE/IBsLn9OtZTvda85PEIF8RB EVWLFyy7S2JOB//dKATsgg85+h/mlIwbXCmYNoVyzfjxdxzpJiSs4MsGjyvR37e8q+MFCA Xopcz2Tj72p+YxKp3F5eiJXzW99q28Mvovw1jrCLD14YnH0L+319EDjK52d10tDZd5Wpxq HCfZ0ELTTfCMVMpIxn4Mf3Crj/WGgNGggz61JlKW/o89lqethJ8E5HFV53kdU0wYKAGyal gzcvHP3vtIHDJZXN+EgnpvCQwknU9QNT16e/WxoIIDTGoUII8wUoo4pgo5xbhA== 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 4ZPT3b5ZKLzsXw for ; Fri, 28 Mar 2025 18:06:03 +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 52SI63nY006169 for ; Fri, 28 Mar 2025 18:06:03 GMT (envelope-from bugzilla-noreply@freebsd.org) Received: (from www@localhost) by kenobi.freebsd.org (8.15.2/8.15.2/Submit) id 52SI63dl006168 for bugs@FreeBSD.org; Fri, 28 Mar 2025 18:06:03 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 283747] kernel panic after telegraf service restart Date: Fri, 28 Mar 2025 18:06:03 +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: 14.1-RELEASE X-Bugzilla-Keywords: crash X-Bugzilla-Severity: Affects Only Me X-Bugzilla-Who: glebius@FreeBSD.org X-Bugzilla-Status: Open X-Bugzilla-Resolution: X-Bugzilla-Priority: --- X-Bugzilla-Assigned-To: bugs@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: 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=3D283747 --- Comment #47 from Gleb Smirnoff --- Mike, my current hypothesis is that we have a 32-bit overflow in credential reference counting. The overflow happens, when we reap a group of processe= s, and reference counts of the group summed up together overflow. AFAIU, tele= graf will fork+exec arbitrary programs, which in their turn can also fork+exec m= ore programs. While telegraf itself seems to do proper wait(2)-ing on zombies,= but some external program may leak zombies, and do not exit itself. Then, when telegraf is restarted, this pack of zombies is reaped and this is where overflow could be hit. This is fixed by attachment 258804. I am not sure in my hypothesis, that's= why it is not even committed to CURRENT. However, everyone affected by the bug= are advices to use this patch and let's see what happens. We still have some t= ime before 14.3. I will probably start review process to get it into CURRENT, anyway. With this info, you may have some idea on how to reproduce it. I know, you= are good at chasing bugs, Mike :) Sorry that it hits you, but I'm glad that you joined the team chasing this bug. --=20 You are receiving this mail because: You are the assignee for the bug.=