From nobody Thu Oct 26 17:40:14 2023 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 4SGY3L3yDQz4y5NQ; Thu, 26 Oct 2023 17:40:14 +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 "R3" (verified OK)) by mx1.freebsd.org (Postfix) with ESMTPS id 4SGY3L3DRxz4cKQ; Thu, 26 Oct 2023 17:40:14 +0000 (UTC) (envelope-from git@FreeBSD.org) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=freebsd.org; s=dkim; t=1698342014; 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=dK+cqvGyU/LHCyCTnrLUKtDN+XExgVmB5hOhrdqZL5g=; b=UbN+LaiJN9Hb62iAJuLqA3p9nxzQOsk05VRC2WMcDUXUJKfBYBUqKJZt6c6enDMXzAVWQZ FixUnFSY7ViFCBa2BJLbRf84Y68s7zr1DmsXwL4hGVUxzXY+LRfld7hZ5XGo6bxXqEgJC6 FKSFivY/1ByVqog+1A3+EeTcgs5FmlwDiXdCFDBAe9elM9oTTxQdySWTvlYiCt5GR7v3tS qwd+m38bI3EqFhPPmjPpFQOOGyxcgwJZ9yoQLeDjKHkdPJ0o9jvezNRfeFbE/D2/2VppAw rUWhui3t8qEogIMHg1xyH+6z5hGeEZz28s9FJ2FXGX0kw+l9LodzuG+oPnw1JQ== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=freebsd.org; s=dkim; t=1698342014; 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=dK+cqvGyU/LHCyCTnrLUKtDN+XExgVmB5hOhrdqZL5g=; b=fuglVeVQk4MKspdK5LxnmUZiOfUayJ9rk0SgRRtY53DTcYajpv/K6Zs63AZ6XXl2Yc3jJQ g3cpXACUYteww93t5y4u3uUwiEBq5dhz7qbxWQeFdDuVK+jA3PRkBaWksGvR0Dr27ctH37 TNp4aO25Q0ZHrFrn+fLBZr8kO7NXinG11NS8xBrvjVr0nfIm4IEQXUmWOxK4EtXKXpxvjQ y0HGKeHYORXZu+whfxiz8A+8eKFg1wzeoUb0n3R8N9NleMe5/Hn35TLND2tui2maihpmdj y5pTrlkRbm3SbzDNDhbV9/uKf73IvHCIyL+2ZO8qN46nfIme8JvX4YSL+jBshA== ARC-Authentication-Results: i=1; mx1.freebsd.org; none ARC-Seal: i=1; s=dkim; d=freebsd.org; t=1698342014; a=rsa-sha256; cv=none; b=U3QdyinKeYDPSkLvVoq8ShrecJ0vRnPBbV7Uchu5Ny5HTycwee+zpHI3UZQgIQZeoupdjn rn6o+/3kyym57SxPv9TiiNFz1EWp7+qTpxaMX+AAZtW+7aqkFbIC3O/En0pk2ODSX9wTmU BhP+6CWboc1LZX6l4SiNwJF/OiixxNZ3qVzte1wElmvr4Qv+7NgocSBcLnppxD05yvUyrF FH6S98f7D+H6BcAxpyR8GxooZTx1mFepwPH/i20049q4hNQosW/qhwKvVtxGeR8vsThxd5 uvPYNHA/kKJ3j9meYNAaeaBqGRIYFZfJ1HizxFSBcXl18/i7gALvLHzVuFcAPA== 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 4SGY3L25knzg8Q; Thu, 26 Oct 2023 17:40:14 +0000 (UTC) (envelope-from git@FreeBSD.org) Received: from gitrepo.freebsd.org ([127.0.1.44]) by gitrepo.freebsd.org (8.17.1/8.17.1) with ESMTP id 39QHeEXf096884; Thu, 26 Oct 2023 17:40:14 GMT (envelope-from git@gitrepo.freebsd.org) Received: (from git@localhost) by gitrepo.freebsd.org (8.17.1/8.17.1/Submit) id 39QHeEdi096880; Thu, 26 Oct 2023 17:40:14 GMT (envelope-from git) Date: Thu, 26 Oct 2023 17:40:14 GMT Message-Id: <202310261740.39QHeEdi096880@gitrepo.freebsd.org> To: src-committers@FreeBSD.org, dev-commits-src-all@FreeBSD.org, dev-commits-src-main@FreeBSD.org From: Brooks Davis Subject: git: 326bf5089ca7 - main - auxv: make AT_BSDFLAGS unsigned 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: Sender: owner-dev-commits-src-all@freebsd.org X-BeenThere: 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/main X-Git-Reftype: branch X-Git-Commit: 326bf5089ca788d5ff1951eed7a9067281a2b65e Auto-Submitted: auto-generated The branch main has been updated by brooks: URL: https://cgit.FreeBSD.org/src/commit/?id=326bf5089ca788d5ff1951eed7a9067281a2b65e commit 326bf5089ca788d5ff1951eed7a9067281a2b65e Author: Brooks Davis AuthorDate: 2023-10-26 17:38:35 +0000 Commit: Brooks Davis CommitDate: 2023-10-26 17:40:08 +0000 auxv: make AT_BSDFLAGS unsigned AT_BSDFLAGS shouldn't be sign extended on 64-bit systems so use a uint32_t instead of an int. Reviewed by: imp, kib Differential Revision: https://reviews.freebsd.org/D42365 --- sys/kern/imgact_elf.c | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/sys/kern/imgact_elf.c b/sys/kern/imgact_elf.c index 4ebd08082545..dfa874e307e5 100644 --- a/sys/kern/imgact_elf.c +++ b/sys/kern/imgact_elf.c @@ -1434,7 +1434,8 @@ __elfN(freebsd_copyout_auxargs)(struct image_params *imgp, uintptr_t base) Elf_Auxinfo *argarray, *pos; struct vmspace *vmspace; rlim_t stacksz; - int error, bsdflags, oc; + int error, oc; + uint32_t bsdflags; argarray = pos = malloc(AT_COUNT * sizeof(*pos), M_TEMP, M_WAITOK | M_ZERO);