From nobody Fri Mar 13 09:14:19 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 4fXJhW6jR9z6VlrL for ; Fri, 13 Mar 2026 09:14:19 +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 "R12" (not verified)) by mx1.freebsd.org (Postfix) with ESMTPS id 4fXJhW4D5Wz43Jy for ; Fri, 13 Mar 2026 09:14:19 +0000 (UTC) (envelope-from git@FreeBSD.org) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=freebsd.org; s=dkim; t=1773393259; h=from:from:reply-to:subject:subject:date:date:message-id:message-id: to:to:cc:cc:mime-version:mime-version:content-type:content-type: content-transfer-encoding:content-transfer-encoding; bh=zo0vajsmId85Mrux7jTYSe4CD/8+GSDiwNrNq7j8Gy4=; b=d2SpCyu7BJ5Miwf/whShQIn0kxPJeUHClC/JIJGpvYFkhhmYvdeb9wZhWe/GxqFyyCJ8Aa s0Yxvbj0kPfofjxSa3WXKG6h61bkF3BA3xf8VoRPzdfWBI43ivLYpen1gyL/fsMsoNUGf9 jFU7UhmHdGj7/sX0fjQwI1LqLKdCM5HZZAaE9M6kQqY4yPkXERZcbOLZEHqSglTZyBszBR HSR76RIeimTnNE6aMqabr2v28UkUwKo04z8chHGsbdJ/TqIEgsEhFY3PDWsj9Bl+PQjRDa /eMdkyLs9Zl2R4fG4IPjzpxXLjse6ETzaegaoD8OsXn0P3TFH67Q7ov3ZS//oA== ARC-Seal: i=1; s=dkim; d=freebsd.org; t=1773393259; a=rsa-sha256; cv=none; b=SQsrCnElsorJTCxZNFrbwRPotNlDm5JQEsKED/2Mf/QQyvOz/g01NIWhOWbVCw7kXZIE1C jqK2kc7yCEpAwMoY7zMtwujWBcyPPEfnLMrHsG8mNIaoBclvQ8u+SQDzzUtzRKeUqW4f/o LjLXOa3Dafs3ztKSlMlkjVXMcOrnqqkGz0xmTXuO8ltYYiU3IK/XcTxMVIcHFX0pvpTiQs VLipoAT/SoNj03fV+wKs+621Ir2UVXxeL2bY3HP/MX0otUef3vZvBM/a/GaSz/BJyGoiI3 E6zywSoeYaRF7AOBnF73uuwTGx0JbjSeYMUjV7A4La9YLEy3yZfoboS5AdOClw== 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=1773393259; h=from:from:reply-to:subject:subject:date:date:message-id:message-id: to:to:cc:cc:mime-version:mime-version:content-type:content-type: content-transfer-encoding:content-transfer-encoding; bh=zo0vajsmId85Mrux7jTYSe4CD/8+GSDiwNrNq7j8Gy4=; b=e72UWlExB7rJVzuOhgiahC4a/4ZXQQF9hF/fgTalm8ZH1db4bWPm1CSx56A+/Ld3DSbTJ5 lkJaHT1L8iXx9ry+HULTwWzuO9tIGuRbvvgbxjGhk8n39zG+8BeCJ9uHimiE744DlFTzUb SpMFhQMdmLX/qQzVWMajbQVHTXjk7cDwzfIfmLL8WIp/pDeaXJwKzHBZJt4OvVAbC35lRx 49khJ9Bm6+NZUGmUNXw93E9XBpZ1BcY3mceZMvesoOqGf9Bc3ISPynDexpyM3ob7RQAMiW A3TdZkZYVZX4CbcL0eM+Tkwi4roYxDz/oBwoWRXcBDaxGXqPjxsbxGRP6HHegg== Received: from gitrepo.freebsd.org (gitrepo.freebsd.org [IPv6:2610:1c1:1:6068::e6a:5]) by mxrelay.nyi.freebsd.org (Postfix) with ESMTP id 4fXJhW3G8kz9js for ; Fri, 13 Mar 2026 09:14:19 +0000 (UTC) (envelope-from git@FreeBSD.org) Received: from git (uid 1279) (envelope-from git@FreeBSD.org) id 3e47a by gitrepo.freebsd.org (DragonFly Mail Agent v0.13+ on gitrepo.freebsd.org); Fri, 13 Mar 2026 09:14:19 +0000 To: src-committers@FreeBSD.org, dev-commits-src-all@FreeBSD.org, dev-commits-src-branches@FreeBSD.org Cc: Juhyung Park From: Brooks Davis Subject: git: 3abef030d31a - stable/15 - Set errno to ENOMEM on rallocx() OOM failures 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 MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: 8bit X-Git-Committer: brooks X-Git-Repository: src X-Git-Refname: refs/heads/stable/15 X-Git-Reftype: branch X-Git-Commit: 3abef030d31a9837ac7ba45bd8ee17340fabd120 Auto-Submitted: auto-generated Date: Fri, 13 Mar 2026 09:14:19 +0000 Message-Id: <69b3d56b.3e47a.5e9a8fcf@gitrepo.freebsd.org> The branch stable/15 has been updated by brooks: URL: https://cgit.FreeBSD.org/src/commit/?id=3abef030d31a9837ac7ba45bd8ee17340fabd120 commit 3abef030d31a9837ac7ba45bd8ee17340fabd120 Author: Juhyung Park AuthorDate: 2026-03-03 09:59:33 +0000 Commit: Brooks Davis CommitDate: 2026-03-13 09:13:08 +0000 Set errno to ENOMEM on rallocx() OOM failures realloc() and rallocx() shares path, and realloc() should set errno to ENOMEM upon OOM failures. PR: 291677 Obtained from: jemalloc (commit 38056fea64c34ca4fef0a16212776eaa4de80b78) Fixes: c43cad871720 ("jemalloc: Merge from jemalloc 5.3.0 vendor branch") MFC after: 3 days Pull Request: https://github.com/freebsd/freebsd-src/pull/2059 (cherry picked from commit 5583b64f230fe0ea4e3d4bf4566205b521190fbb) --- contrib/jemalloc/src/jemalloc.c | 1 + 1 file changed, 1 insertion(+) diff --git a/contrib/jemalloc/src/jemalloc.c b/contrib/jemalloc/src/jemalloc.c index e4b183d1a24d..352c18870e0b 100644 --- a/contrib/jemalloc/src/jemalloc.c +++ b/contrib/jemalloc/src/jemalloc.c @@ -3561,6 +3561,7 @@ do_rallocx(void *ptr, size_t size, int flags, bool is_realloc) { return p; label_oom: + set_errno(ENOMEM); if (config_xmalloc && unlikely(opt_xmalloc)) { malloc_write(": Error in rallocx(): out of memory\n"); abort();