From nobody Mon Jan 20 14:26:54 2025 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 4YcCMf74ZCz5lPZY; Mon, 20 Jan 2025 14:26:54 +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 "R11" (verified OK)) by mx1.freebsd.org (Postfix) with ESMTPS id 4YcCMf64f6z49jG; Mon, 20 Jan 2025 14:26:54 +0000 (UTC) (envelope-from git@FreeBSD.org) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=freebsd.org; s=dkim; t=1737383214; 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=tW7TgAty811m8Zgrk0CwPcNwbNp8647qmbC+CpNgO7s=; b=id96PcKFkUPs+H4RIY38lM2e9/ewASzFsRIPJQ9ImO0Q2MxM0pdO67uQY49wV8H1R76wzV DMomoUeMAkQknq8cJTlcawI6mQO+mzerR1gmRaNU3rt4Jz1NS+PNC7aDxPCtontH2/hOdW SSvu97PfGO52RBQi47kq7C6dv1aYAont4BGKdOwpxySX+DklM9NrNH2XVpLjuYBpVJev+x R6WBebaTxVrSPh8TToNnSvOksynX16n5YUCm8H73xaTRfDdmrRIaknHq/e5x0XHAmTwmx+ 0YzcA7iuRfPyq57okdV2mp33n3dfpNd7ODifvT7k+bVooKceVDeOYmMBNWMnIA== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=freebsd.org; s=dkim; t=1737383214; 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=tW7TgAty811m8Zgrk0CwPcNwbNp8647qmbC+CpNgO7s=; b=J6hFTw//No3lKPkMUKogaJVJwOPIpUkzZhZ6j2+BoTpfIxYO6xzjWvI3TKVPvUY8z06pc9 TIKW7sBdcEEMO3+EMQ5//2x5ZuiHbk+JuptzxbY97EIGhUPbWO4ufWEnV0WpYZAXEYMaRi /MfgnVhSObRUVA0IksKZtuyxdTnNq3VH5ZNx8wzvv2isQ7KCGeboqhqx0RysPiiU4ElWQp /3gUCB4zxthUwcNa4egParT/c3exkX29o8IU6beOJ3rCMoRSwPPwNntOuTxdm0SHCiJOY8 YPASDoMDXW+uCi+zadGGRQuBjevQ7rDmpNcOQ/D5Cf+GPeQpwa8ORU/ImKyMyQ== ARC-Seal: i=1; s=dkim; d=freebsd.org; t=1737383214; a=rsa-sha256; cv=none; b=YFg6LDACTbVcNAe4hyNFHhhpTb9ME23y5/a9HTdFRFsJm6zk3TQr7JhPB/I648aiH2PWNd xZvOl6y3MIERp08vJSZ3yVs7cC2U6oCM2XLx2P0vbwCJCRnCqUuED7Ne9+xktvI4HcmR/k lmE70B2peUKZF4KBu0p88uOATptdQe7O5GSoYsR3UFaCow8CfM09vrGF7bpkUfVY717IBz M3Zchr4jvCEtJ01ZYDu15k7ntwtwtaZYgbIdhfDHtiSg2rKmFW0+lla0pRVgbB8h+wN+Xv UuICgRUmVLdQZhynNvZyAMQHQkpNeJeuVQwqmg+VBwwOlo9RUY8AIo1yKFNSHQ== ARC-Authentication-Results: i=1; mx1.freebsd.org; none Received: from gitrepo.freebsd.org (gitrepo.freebsd.org [IPv6:2610:1c1:1:6068::e6a:5]) (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 4YcCMf5dJtz8Hs; Mon, 20 Jan 2025 14:26:54 +0000 (UTC) (envelope-from git@FreeBSD.org) Received: from gitrepo.freebsd.org ([127.0.1.44]) by gitrepo.freebsd.org (8.18.1/8.18.1) with ESMTP id 50KEQsH0087344; Mon, 20 Jan 2025 14:26:54 GMT (envelope-from git@gitrepo.freebsd.org) Received: (from git@localhost) by gitrepo.freebsd.org (8.18.1/8.18.1/Submit) id 50KEQs1q087340; Mon, 20 Jan 2025 14:26:54 GMT (envelope-from git) Date: Mon, 20 Jan 2025 14:26:54 GMT Message-Id: <202501201426.50KEQs1q087340@gitrepo.freebsd.org> To: src-committers@FreeBSD.org, dev-commits-src-all@FreeBSD.org, dev-commits-src-branches@FreeBSD.org From: Ed Maste Subject: git: e2cbfa1f5045 - stable/14 - munmap.2: Remove EINVAL for negative len 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: emaste X-Git-Repository: src X-Git-Refname: refs/heads/stable/14 X-Git-Reftype: branch X-Git-Commit: e2cbfa1f5045019d34eb0091db7755c151ea06d5 Auto-Submitted: auto-generated The branch stable/14 has been updated by emaste: URL: https://cgit.FreeBSD.org/src/commit/?id=e2cbfa1f5045019d34eb0091db7755c151ea06d5 commit e2cbfa1f5045019d34eb0091db7755c151ea06d5 Author: Ed Maste AuthorDate: 2025-01-15 21:44:31 +0000 Commit: Ed Maste CommitDate: 2025-01-20 14:25:14 +0000 munmap.2: Remove EINVAL for negative len len is unsigned (it is size_t), so cannot be negative. Sponsored by: The FreeBSD Foundation (cherry picked from commit fab411c4fd5224e3dd44e0eb288d60b27480e2d1) --- lib/libc/sys/munmap.2 | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/lib/libc/sys/munmap.2 b/lib/libc/sys/munmap.2 index cf8d9ec22b1c..2411ccb3b0db 100644 --- a/lib/libc/sys/munmap.2 +++ b/lib/libc/sys/munmap.2 @@ -56,7 +56,7 @@ will fail if: .It Bq Er EINVAL The .Fa len -argument was zero or negative, or +argument was zero, or some part of the region being unmapped is outside the valid address range for a process. .El