From patchwork Thu Jul 18 12:15:44 2024 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 8bit X-Patchwork-Submitter: Adhemerval Zanella X-Patchwork-Id: 813167 Delivered-To: patch@linaro.org Received: by 2002:adf:f288:0:b0:367:895a:4699 with SMTP id k8csp261716wro; Thu, 18 Jul 2024 05:16:26 -0700 (PDT) X-Forwarded-Encrypted: i=3; AJvYcCUB7LIIjBf3QdfDNvNGdNMGbDQGyFCPRrXhZw0g1/wN6f1urG/EuXcGiaf+zwAmgJxwwgvTJhaCNhqvMMhELaw/ X-Google-Smtp-Source: AGHT+IG454iDwHEuCKXKe/hGkY9FethqeIl/iwzUWtWgpziSh2pJr6e4c7HMHVAN7mbDwW9OZd4v X-Received: by 2002:a05:6122:a19:b0:4f3:734:38a with SMTP id 71dfb90a1353d-4f4df6ebd5dmr5666573e0c.7.1721304985681; Thu, 18 Jul 2024 05:16:25 -0700 (PDT) ARC-Seal: i=2; a=rsa-sha256; t=1721304985; cv=pass; d=google.com; s=arc-20160816; b=pt7E93JXskDrd9mTKKR0LqkxaI1Klu403yLs4bTkso33rIfVfj9iTn/Vr7x/ph2kHL dKTQYg1DDEqZQ5t/lBxWfpMB6qyUTfPGKhHWhiEHnLKD5z6lyMdHg4R0ABD11id8To27 kHbDJVfx2oMaehvK893Cj20w404sbjy5bQyJIITsIBKM6pgHf5UFYy8q2CB7A0hrQUv5 4dYuym6/acnXOxVQt6VQN/9lc8O2fWnZavpkmGH4YA0w6OG2OvFxSEtxs8RpFWiOGZg4 tblo9DeF8+FZIyiiUxSlNbL4pqTTwW68vx5y8RVHSoE3Ex+gp+H+ZS+qAdDVm7D1T4Cb OltQ== ARC-Message-Signature: i=2; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=errors-to:list-subscribe:list-help:list-post:list-archive :list-unsubscribe:list-id:precedence:content-transfer-encoding :mime-version:message-id:date:subject:cc:to:from:dkim-signature :arc-filter:dmarc-filter:delivered-to; bh=0PTknQASko8I4piFWeBjqx/b/loUzwTztPXGX4zR0y8=; fh=wpAt249uzOzdBDNMq0npC3zRWr+FBG2yS2aRmrMrVoI=; b=sgUJSD2yPWerMMq1LF7DsZxNFNo1Y4q0GGhX+Eg4huT3h4Pai3oFOX28EldGPrlcKp sO3uL1JZ7cNOK8r+LtuukDhfzIalNkm6lLgx/TDBCiyU8hZMvzVZm2G2UZytEkbAhhIL sontEkSWIWL7/lxBc6+LiBZL0ouuOw1ZcHYUOWF9tO5oo7VHosHZgEtITcYyJkiJWJNw 74v8EyOMjhSVqw8f14HuuYVC0mPeVVOPqgDiMwK3yOUugqbKEskpNiSmVQUF/7t6m26P OFzf7AxbJVlM9iwrvpgiT8tPQO5nH3ZRBR4VL+bJcHyjuLgoGHWH0Qpah8UQzlm9yepu pkzQ==; dara=google.com ARC-Authentication-Results: i=2; mx.google.com; dkim=pass header.i=@linaro.org header.s=google header.b=gDV2gChV; arc=pass (i=1); spf=pass (google.com: domain of libc-alpha-bounces~patch=linaro.org@sourceware.org designates 2620:52:3:1:0:246e:9693:128c as permitted sender) smtp.mailfrom="libc-alpha-bounces~patch=linaro.org@sourceware.org"; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=linaro.org Return-Path: Received: from server2.sourceware.org (server2.sourceware.org. [2620:52:3:1:0:246e:9693:128c]) by mx.google.com with ESMTPS id 71dfb90a1353d-4f4ee8922e9si163377e0c.64.2024.07.18.05.16.25 for (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Thu, 18 Jul 2024 05:16:25 -0700 (PDT) Received-SPF: pass (google.com: domain of libc-alpha-bounces~patch=linaro.org@sourceware.org designates 2620:52:3:1:0:246e:9693:128c as permitted sender) client-ip=2620:52:3:1:0:246e:9693:128c; Authentication-Results: mx.google.com; dkim=pass header.i=@linaro.org header.s=google header.b=gDV2gChV; arc=pass (i=1); spf=pass (google.com: domain of libc-alpha-bounces~patch=linaro.org@sourceware.org designates 2620:52:3:1:0:246e:9693:128c as permitted sender) smtp.mailfrom="libc-alpha-bounces~patch=linaro.org@sourceware.org"; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=linaro.org Received: from server2.sourceware.org (localhost [IPv6:::1]) by sourceware.org (Postfix) with ESMTP id 42E773858417 for ; Thu, 18 Jul 2024 12:16:24 +0000 (GMT) X-Original-To: libc-alpha@sourceware.org Delivered-To: libc-alpha@sourceware.org Received: from mail-pj1-x102a.google.com (mail-pj1-x102a.google.com [IPv6:2607:f8b0:4864:20::102a]) by sourceware.org (Postfix) with ESMTPS id 3C6293858D28 for ; Thu, 18 Jul 2024 12:16:14 +0000 (GMT) DMARC-Filter: OpenDMARC Filter v1.4.2 sourceware.org 3C6293858D28 Authentication-Results: sourceware.org; dmarc=pass (p=none dis=none) header.from=linaro.org Authentication-Results: sourceware.org; spf=pass smtp.mailfrom=linaro.org ARC-Filter: OpenARC Filter v1.0.0 sourceware.org 3C6293858D28 Authentication-Results: server2.sourceware.org; arc=none smtp.remote-ip=2607:f8b0:4864:20::102a ARC-Seal: i=1; a=rsa-sha256; d=sourceware.org; s=key; t=1721304975; cv=none; b=BDa4AMnvZT5L7famOiy1E4RbQ202toacvZe+4xeMy+X9l8ilbs0e/NxLs234zU7SCT1HjVdgLmg9lHmWcPfHJ8uXTO22zlDhELloEL+CdoC/T3RJpnn71RolEpR+FWVn3kRD/QHRKGXxliMU+KxzVnq8jDItulD8eYDfuPVcJ0E= ARC-Message-Signature: i=1; a=rsa-sha256; d=sourceware.org; s=key; t=1721304975; c=relaxed/simple; bh=ZuMtlwf9uc9ybCA0Vl07R3b+APBsfru+NhpNumjSklo=; h=DKIM-Signature:From:To:Subject:Date:Message-ID:MIME-Version; b=OQYi63XQ+QQkRBGQY4h0Gmikpxjr1YXmFsb7PQL9L4PfAUq8EYxOEwE56kOJoSR2D4xev06jklUMSWxWCSXpNRkJQysqEkR190/Vgf/kHmrj9SceQAucc9Qoq83HSkVEFr0EAzjW60JOGb3yjp+dtt43XnG+CLELEVk8FDrB/iU= ARC-Authentication-Results: i=1; server2.sourceware.org Received: by mail-pj1-x102a.google.com with SMTP id 98e67ed59e1d1-2cb4b7fef4aso159452a91.0 for ; Thu, 18 Jul 2024 05:16:14 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=linaro.org; s=google; t=1721304973; x=1721909773; darn=sourceware.org; h=content-transfer-encoding:mime-version:message-id:date:subject:cc :to:from:from:to:cc:subject:date:message-id:reply-to; bh=0PTknQASko8I4piFWeBjqx/b/loUzwTztPXGX4zR0y8=; b=gDV2gChVzAZLaxm4TXwO2Vz5EyF/4EtByC0QzhJR3tcO70ZFiQIZarAKRTS5bUQ9tU iY9oVcEIz/z6t0FYXKKIXFi+VrkHb4qfTMRXx3aWryMSB71zvRk+wTq/aHyIqlggezHQ rth1qDxpGB4NWlS+hK3USetiRO2t4+2l2UYS9wYdcxPynO8CMQQ+d0i2ZCY/N8tWjnnq WQe9rCqpXz+Ba9Nj2n55M+iTWOc5aYEjnoH4/nf6p518jZMdV4Ama9DAXhSoOlNyXKCY CRw61+St5FrYdUsVem1AhPGzGzacwOarPaCkWMrHZ6A1Sk+nURRnb+kVB4NVY7tP6yOH CGkA== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1721304973; x=1721909773; h=content-transfer-encoding:mime-version:message-id:date:subject:cc :to:from:x-gm-message-state:from:to:cc:subject:date:message-id :reply-to; bh=0PTknQASko8I4piFWeBjqx/b/loUzwTztPXGX4zR0y8=; b=fx+voqDzbt/+aQeg74mLTbe6K8PzG1I9mv9IcN2TmfC2HD2fNIq9f8KzS50iPazFYX YOLKI06nzjpyIjleHAU9nT8uFdDTcijiU18R8XQqri3D+qygM+mBwZcVtDf8qbwPYZ+d +3UngDQcj1gpX29K3E25wGmspdBQqqYP5vZazDfP9YGi3phLy1UEwVafHPz7gloySY6Q OulsijN5Fi2860yDgVYiIMMvx+mpTlyBS7Id5Na3LDh2wefqDffl6VY6Fn6r6HgntkED gbdB9v1+hK+GjSOcwIyRdtX5SS0DWosy/i+ZeRFXJ4lE/TLpx0HRsXdVwUr9OMJ6DGxW zFoQ== X-Gm-Message-State: AOJu0YxrxlGO0Xrqw3c5gXi4o3yspeI6hA6aRdLufe4/S3l5jtdM7RTr 1GUqfa4pRit/oFijm7yuHSRcrqR/z1E4HnsvCePhZFp6AdsXHmAVPPXIRda9IBurNvBWSReqv4S Q X-Received: by 2002:a17:90a:cf81:b0:2c8:6bfa:bbf1 with SMTP id 98e67ed59e1d1-2cb527b8758mr4075195a91.23.1721304972725; Thu, 18 Jul 2024 05:16:12 -0700 (PDT) Received: from mandiga.. ([2804:1b3:a7c0:842a:2b65:d61b:34a1:cef6]) by smtp.gmail.com with ESMTPSA id 98e67ed59e1d1-2cb773411afsm540531a91.29.2024.07.18.05.16.11 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Thu, 18 Jul 2024 05:16:12 -0700 (PDT) From: Adhemerval Zanella To: libc-alpha@sourceware.org Cc: "Andreas K . Huettel" Subject: [PATCH] elf: Parse the auxv values as unsigned on tst-tunables-enable_secure-env.c (BZ 31890) Date: Thu, 18 Jul 2024 09:15:44 -0300 Message-ID: <20240718121607.3609710-1-adhemerval.zanella@linaro.org> X-Mailer: git-send-email 2.43.0 MIME-Version: 1.0 X-Spam-Status: No, score=-12.8 required=5.0 tests=BAYES_00, DKIM_SIGNED, DKIM_VALID, DKIM_VALID_AU, DKIM_VALID_EF, GIT_PATCH_0, RCVD_IN_DNSWL_NONE, SPF_HELO_NONE, SPF_PASS, TXREP autolearn=ham autolearn_force=no version=3.4.6 X-Spam-Checker-Version: SpamAssassin 3.4.6 (2021-04-09) on server2.sourceware.org X-BeenThere: libc-alpha@sourceware.org X-Mailman-Version: 2.1.30 Precedence: list List-Id: Libc-alpha mailing list List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: libc-alpha-bounces~patch=linaro.org@sourceware.org AT_HWCAP on some architecture can indeed use all bits. Checked on x86_64-linux-gnu and powerpc-linux-gnu. Reviewed-By: Andreas K. Hüttel --- elf/tst-tunables-enable_secure-env.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/elf/tst-tunables-enable_secure-env.c b/elf/tst-tunables-enable_secure-env.c index 01f121efc3..937259f218 100644 --- a/elf/tst-tunables-enable_secure-env.c +++ b/elf/tst-tunables-enable_secure-env.c @@ -46,7 +46,7 @@ check_auxv (unsigned long type, char *argv) { char *endptr; errno = 0; - unsigned long int varg = strtol (argv, &endptr, 10); + unsigned long int varg = strtoul (argv, &endptr, 10); TEST_VERIFY_EXIT (errno == 0); TEST_VERIFY_EXIT (*endptr == '\0'); errno = 0;