From nobody Tue Jun 23 19:11:32 2026 X-Original-To: dev-commits-src-all@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 4glF6Y2Bjcz6hwhJ for ; Tue, 23 Jun 2026 19:11:33 +0000 (UTC) (envelope-from git@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 "YR1" (not verified)) by mx1.freebsd.org (Postfix) with ESMTPS id 4glF6Y0YxRz3xb5 for ; Tue, 23 Jun 2026 19:11:33 +0000 (UTC) (envelope-from git@FreeBSD.org) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=freebsd.org; s=dkim; t=1782241893; 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=khhhi+Q45PlsVOMBhU7NwMtEwd4sKnY6jrq8DR8fGCE=; b=oWn1ZaBFHYE+wsHEuaWhe3a25zcok7eyv1zJgLRnsntijaoYHyQ94p8WuoKAucshTVMl1c P08QO38iiLu7W9tAp80Emwto3ZJcvahhLdPgHXn3FOlxyc7oaLuENFN3f9zhMpwk2N9iXU ggL3moPIJI0n6PCr9kLYdCr/E08irbzEoyvaEKfg4/O+aw0CJhdCypemL9RSllQdGYuejN JUjZq3VsU7nyFXzeFLdV+J4BQ/PXdmVJcBS4xL6Xx18VdZCDo314nSN2aOtJZlG4FgxRkd qtsVJV7UrwrOaoyILCFNxFg5aAMR+Z0WKRbmKOMRqsVfckI/StIV6+CaXl4A9A== ARC-Seal: i=1; s=dkim; d=freebsd.org; t=1782241893; a=rsa-sha256; cv=none; b=AFR1NTA0zsmDDMHAk3NPj5HUd8c6RIvcNkbFEKASkr4KLaa3Xc8XIQi9ao4sfheMWwkRaD zJjVmFcInS1RLZbHEoV27Qk1qMblq1xPXTFBXFvlIRyMz2zxixmQAVOZmSsXAyfr+S9cOK UpMNiXvCt4B5G6ryXmw5C6asocOahxLRwfZBrxqEbNRCh9646C4co8hoMqRoEFQmzJSlNL yHREhjhod2P8Pp1G73l1RYDF04jZnxtKL5eogjOz14lo+h0CvdW5AKAMPW8g+YdSeVyZbF fBE/wLDl1ZKt7YoR4kZFo3LzDfIcZFFKzLGA8ImKUvasJobVrPrhOMlxfXc+Ow== 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=1782241893; 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=khhhi+Q45PlsVOMBhU7NwMtEwd4sKnY6jrq8DR8fGCE=; b=S80mPayJYl+Uaw/clSupd6zldWXxCletFXw9QpYr9HM6fdzXzJjOf3Yfe7pBZvBd4Q/EFz VLdZIotD8asC04xo3yPt4IpMTe2JO6MI4EIEUi2crXF+X0n6UPe4KKONA8aOTLW2WcOvNt YfISJst+LamAMlIvl78gCecFgCREiJ7WmrArNBalny0P0spMDZvgnTHScVF9GpTWdBzCnX grWh4YZYmyPjPPjZRK1lqfpCFzVQS9RZRha26aeUMShtvcbr2F9yzs8LD1aekmhz4zGrng yWPoIQva6tZcsg9qFapB/f4Yvn4N4+VntfBkOKJN8TQ3ERpkiyDlBD3+Aje3Iw== Received: from gitrepo.freebsd.org (gitrepo.freebsd.org [IPv6:2610:1c1:1:6068::e6a:5]) by mxrelay.nyi.freebsd.org (Postfix) with ESMTP id 4glF6X6VfPznNy for ; Tue, 23 Jun 2026 19:11:32 +0000 (UTC) (envelope-from git@FreeBSD.org) Received: from git (uid 1279) (envelope-from git@FreeBSD.org) id 40063 by gitrepo.freebsd.org (DragonFly Mail Agent v0.13+ on gitrepo.freebsd.org); Tue, 23 Jun 2026 19:11:32 +0000 To: src-committers@FreeBSD.org, dev-commits-src-all@FreeBSD.org, dev-commits-src-branches@FreeBSD.org From: John Baldwin Subject: git: 1b0efaa6c626 - stable/14 - kobj: Use M_WAITOK in kobj_init List-Id: Commit messages for all branches of the src repository List-Archive: https://lists.freebsd.org/archives/dev-commits-src-all List-Help: List-Post: List-Subscribe: List-Unsubscribe: X-BeenThere: dev-commits-src-all@freebsd.org Sender: owner-dev-commits-src-all@FreeBSD.org List-Id: List-Post: List-Help: List-Subscribe: List-Unsubscribe: List-Owner: Precedence: list MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: 8bit X-Git-Committer: jhb X-Git-Repository: src X-Git-Refname: refs/heads/stable/14 X-Git-Reftype: branch X-Git-Commit: 1b0efaa6c6260a1f43cba768fac9c84a865e815f Auto-Submitted: auto-generated Date: Tue, 23 Jun 2026 19:11:32 +0000 Message-Id: <6a3ada64.40063.1a29faa@gitrepo.freebsd.org> The branch stable/14 has been updated by jhb: URL: https://cgit.FreeBSD.org/src/commit/?id=1b0efaa6c6260a1f43cba768fac9c84a865e815f commit 1b0efaa6c6260a1f43cba768fac9c84a865e815f Author: John Baldwin AuthorDate: 2026-05-06 20:53:46 +0000 Commit: John Baldwin CommitDate: 2026-06-23 16:06:55 +0000 kobj: Use M_WAITOK in kobj_init Blocking allocation is safe in all of the current callers of kobj_init (most of them do a M_WAITOK malloc of the structure passed as the first argument to kobj_init just before calling it). kobj_init doesn't return an error code but instead panics if the nested malloc in kobj_class_compile1 fails, so using M_WAITOK here is more robust. Reviewed by: imp Differential Revision: https://reviews.freebsd.org/D56625 (cherry picked from commit 5df7dae10dc02ade8639b0171e0d3cc8db790e41) --- sys/kern/subr_kobj.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/sys/kern/subr_kobj.c b/sys/kern/subr_kobj.c index 38459f08b625..e2649d916577 100644 --- a/sys/kern/subr_kobj.c +++ b/sys/kern/subr_kobj.c @@ -309,7 +309,7 @@ kobj_init(kobj_t obj, kobj_class_t cls) { int error; - error = kobj_init1(obj, cls, M_NOWAIT); + error = kobj_init1(obj, cls, M_WAITOK); if (error != 0) panic("kobj_init1 failed: error %d", error); }