From patchwork Thu Mar 30 13:18:51 2023 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 8bit X-Patchwork-Submitter: =?utf-8?q?Philippe_Mathieu-Daud=C3=A9?= X-Patchwork-Id: 668606 Delivered-To: patch@linaro.org Received: by 2002:a5d:4d08:0:0:0:0:0 with SMTP id z8csp931022wrt; Thu, 30 Mar 2023 06:19:28 -0700 (PDT) X-Google-Smtp-Source: AK7set+/zaC568BWuDKgAayqmKGTLiEhUe1pb7VHq+1TS7BZ8zZREubO/Sc6t/3nQS3BPrdc+gMZ X-Received: by 2002:ac8:4e50:0:b0:3e3:7c94:726e with SMTP id e16-20020ac84e50000000b003e37c94726emr37647417qtw.30.1680182367869; Thu, 30 Mar 2023 06:19:27 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1680182367; cv=none; d=google.com; s=arc-20160816; b=qtJ479ENufs/WzZTWOFbB9Qol+bmrt/Ssor6eHXQsqYRFH6mOtFLkuipuoirGKCPCv baHCx+Ouie03kj0EXy2vVL7FTjkADD8wx+inEovjSJM03SVXh2gYKtJHE6UjYW0GjWMr 84gBxDCIEx4Rnub1H8t9VtlnIPqgp7YzezqEoNUCntJTvDLsGSnfdE1W+aiW6yGFogjb hn0gtLaq6J+QqYxOWrwcczIhPRQLpg+qKjqx+yZpaCEFLNzUuxvx3l8s/YTtAB0TKriZ a5sG1PBMrhxXp6zNzdFSw57xyn3Aa2dVmnvBtNxSLDufdVq6wCCPep0wY92pquBzLUtF kwXA== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=sender:errors-to:list-subscribe:list-help:list-post:list-archive :list-unsubscribe:list-id:precedence:content-transfer-encoding :mime-version:references:in-reply-to:message-id:date:subject:cc:to :from:dkim-signature; bh=jQ1Gu7qVTMNET7Ilwd4JTbEMslTBn2t6QdfWWwcVZrY=; b=CFcUi8wgxsTF1+lpU4jDK1YbcRquyragoNna192ikWU+7YiNJBvJvmGuW38680MyR5 s50GnRtY43Ot0fbM3YWSg7NpjM2qqKjGsY+cTKQAixdG+I07Lf+M88B0GtvGN3wJk5WX DNSZ7xWAJ0oBBKHaj2CKMD0IReT6+56yRHx4/T/nDxwOmvoJ1w/6AXkWSD9/PF8L537+ rei9YF4ze5mcYKibUqYmU4yz4CWxeMOdIvBsGCPIYjvd8vQO3akBjRDK2/PmYrTvoN/t 6mJsHL6k71eKwdM7wfGoOOSTPE7jxk9o071IjrLxtXqgQOLH0X/qY5Oh2D5eRSDQ9XAD xtdA== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@linaro.org header.s=google header.b=AKVyZGCX; spf=pass (google.com: domain of qemu-devel-bounces+patch=linaro.org@nongnu.org designates 209.51.188.17 as permitted sender) smtp.mailfrom="qemu-devel-bounces+patch=linaro.org@nongnu.org"; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=linaro.org Return-Path: Received: from lists.gnu.org (lists.gnu.org. [209.51.188.17]) by mx.google.com with ESMTPS id v20-20020a05620a441400b007485007fce3si11153236qkp.740.2023.03.30.06.19.27 for (version=TLS1_2 cipher=ECDHE-ECDSA-CHACHA20-POLY1305 bits=256/256); Thu, 30 Mar 2023 06:19:27 -0700 (PDT) Received-SPF: pass (google.com: domain of qemu-devel-bounces+patch=linaro.org@nongnu.org designates 209.51.188.17 as permitted sender) client-ip=209.51.188.17; Authentication-Results: mx.google.com; dkim=pass header.i=@linaro.org header.s=google header.b=AKVyZGCX; spf=pass (google.com: domain of qemu-devel-bounces+patch=linaro.org@nongnu.org designates 209.51.188.17 as permitted sender) smtp.mailfrom="qemu-devel-bounces+patch=linaro.org@nongnu.org"; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=linaro.org Received: from localhost ([::1] helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1phsBJ-0007VS-Dj; Thu, 30 Mar 2023 09:19:09 -0400 Received: from eggs.gnu.org ([2001:470:142:3::10]) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1phsBH-0007Ma-M9 for qemu-devel@nongnu.org; Thu, 30 Mar 2023 09:19:07 -0400 Received: from mail-wm1-x32f.google.com ([2a00:1450:4864:20::32f]) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.90_1) (envelope-from ) id 1phsBF-000206-KP for qemu-devel@nongnu.org; Thu, 30 Mar 2023 09:19:07 -0400 Received: by mail-wm1-x32f.google.com with SMTP id s13so10881193wmr.4 for ; Thu, 30 Mar 2023 06:19:05 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=linaro.org; s=google; t=1680182344; h=content-transfer-encoding:mime-version:references:in-reply-to :message-id:date:subject:cc:to:from:from:to:cc:subject:date :message-id:reply-to; bh=jQ1Gu7qVTMNET7Ilwd4JTbEMslTBn2t6QdfWWwcVZrY=; b=AKVyZGCXp5HbSUgAJNa1jehPofrabn355kzbNpxTOKZDZsM2XjDvRn3KuEZYlo9oNw n/+CZbBBW9a4fqPKvhUS7esg1T4hDN4LSb9tweCM9XciXMvfPKbL5CCLiobiA9DyHhUt 44zccj95IBT5Ep6IJaIsSygTDnW5zCggQcSHNuEelWK8bcIFzWGK67Xql3/bHJ0udPwy UvLi1OfBAQZeq1Fz9xV32v81xClR/cZK6Jc1qA4JjHwE8VOTl28kYy/s8AT5/pCb9zxH pXZ2kl6lB9X7JVZ/hJ3BZLprYWif+XVkcze9HnEP/Ck8zABV3BhnZyc9pzqSW0s3pWcS K8jQ== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20210112; t=1680182344; h=content-transfer-encoding:mime-version:references:in-reply-to :message-id:date:subject:cc:to:from:x-gm-message-state:from:to:cc :subject:date:message-id:reply-to; bh=jQ1Gu7qVTMNET7Ilwd4JTbEMslTBn2t6QdfWWwcVZrY=; b=L0stawrzSsnDYrUMx9FM6ZTvYl9d2/DTqAjzd7I63xvhXvSM9MzhylzJ/I97bO/EMU aQgu3ReUTHah3XhlkYakyjTNcnyPOoYNVpZ1be1t1zdKcdLL181mAupjtILzq/J8GzB5 lgq13BUjIBGz2x0JzimzNINRobpei4EffUy6NeKM3kT1gf4ETB7KKqkZxQcRXRXTd+Ta fmiQBhzcHUre8+j0ZV+yhOADBktIkh4E6h4FRc0isTF7e3QxLeujX3EqFy5JJsC26PcI KuihngHjzFkHr+HV4pVuGLS2bE9toeOM5tXrWqpAk5BMrEhfHwqaZdlA13CIIqm373Bj oW+Q== X-Gm-Message-State: AO0yUKVv6m3Sy/r1O9f8ZDVvYxw+y19mFw6cMpzj2tOaeKe4EfWl2QgD b5NqX9LfpNkCUyeAQtN/77j9EZAo8urPZwwfzcU= X-Received: by 2002:a7b:c44b:0:b0:3ed:301c:375c with SMTP id l11-20020a7bc44b000000b003ed301c375cmr18488071wmi.21.1680182343824; Thu, 30 Mar 2023 06:19:03 -0700 (PDT) Received: from localhost.localdomain ([81.0.6.76]) by smtp.gmail.com with ESMTPSA id fc11-20020a05600c524b00b003ebff290a52sm6193963wmb.28.2023.03.30.06.19.02 (version=TLS1_3 cipher=TLS_CHACHA20_POLY1305_SHA256 bits=256/256); Thu, 30 Mar 2023 06:19:03 -0700 (PDT) From: =?utf-8?q?Philippe_Mathieu-Daud=C3=A9?= To: qemu-devel@nongnu.org Cc: Titus Rwantare , Laurent Vivier , Jiaxun Yang , qemu-block@nongnu.org, =?utf-8?q?Phi?= =?utf-8?q?lippe_Mathieu-Daud=C3=A9?= , Gregor Riepl , John Paul Adrian Glaubitz , Zach van Rijn , Richard Henderson Subject: [PULL 1/6] linux-user/sparc: Don't use 16-bit UIDs on SPARC V9 Date: Thu, 30 Mar 2023 15:18:51 +0200 Message-Id: <20230330131856.94210-2-philmd@linaro.org> X-Mailer: git-send-email 2.38.1 In-Reply-To: <20230330131856.94210-1-philmd@linaro.org> References: <20230330131856.94210-1-philmd@linaro.org> MIME-Version: 1.0 Received-SPF: pass client-ip=2a00:1450:4864:20::32f; envelope-from=philmd@linaro.org; helo=mail-wm1-x32f.google.com X-Spam_score_int: -20 X-Spam_score: -2.1 X-Spam_bar: -- X-Spam_report: (-2.1 / 5.0 requ) BAYES_00=-1.9, DKIM_SIGNED=0.1, DKIM_VALID=-0.1, DKIM_VALID_AU=-0.1, DKIM_VALID_EF=-0.1, RCVD_IN_DNSWL_NONE=-0.0001, SPF_HELO_NONE=0.001, SPF_PASS=-0.001 autolearn=unavailable autolearn_force=no X-Spam_action: no action X-BeenThere: qemu-devel@nongnu.org X-Mailman-Version: 2.1.29 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: qemu-devel-bounces+patch=linaro.org@nongnu.org Sender: qemu-devel-bounces+patch=linaro.org@nongnu.org The 64-bit SPARC V9 syscall ABI uses 32-bit UIDs. Only enable the 16-bit UID wrappers for 32-bit SPARC (V7 and V8). Possibly missed in commit 992f48a036 ("Support for 32 bit ABI on 64 bit targets (only enabled Sparc64)"). Reported-by: Gregor Riepl Tested-by: John Paul Adrian Glaubitz Tested-by: Zach van Rijn Resolves: https://gitlab.com/qemu-project/qemu/-/issues/1394 Signed-off-by: Philippe Mathieu-Daudé Reviewed-by: Richard Henderson Acked-by: Laurent Vivier Message-Id: <20230327131910.78564-1-philmd@linaro.org> --- linux-user/syscall_defs.h | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/linux-user/syscall_defs.h b/linux-user/syscall_defs.h index 614a1cbc8e..cc37054cb5 100644 --- a/linux-user/syscall_defs.h +++ b/linux-user/syscall_defs.h @@ -61,7 +61,7 @@ #if (defined(TARGET_I386) && defined(TARGET_ABI32)) \ || (defined(TARGET_ARM) && defined(TARGET_ABI32)) \ - || defined(TARGET_SPARC) \ + || (defined(TARGET_SPARC) && defined(TARGET_ABI32)) \ || defined(TARGET_M68K) || defined(TARGET_SH4) || defined(TARGET_CRIS) /* 16 bit uid wrappers emulation */ #define USE_UID16