From patchwork Fri Jan 25 22:57:07 2019 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Richard Henderson X-Patchwork-Id: 156651 Delivered-To: patch@linaro.org Received: by 2002:a02:48:0:0:0:0:0 with SMTP id 69csp920100jaa; Fri, 25 Jan 2019 15:21:07 -0800 (PST) X-Google-Smtp-Source: ALg8bN429H0Ad+GUJuiLWlEZZTZ1zqq5BtQ99SVMpyxsV7wfCMQdg6xpJeznEC6hDpRF4EqArKav X-Received: by 2002:a1c:4955:: with SMTP id w82mr8823955wma.33.1548458467206; Fri, 25 Jan 2019 15:21:07 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1548458467; cv=none; d=google.com; s=arc-20160816; b=wVnZiDYj6LDL+LQLxlOD6+i5dNgxjqXzDq8qbSHblfmYWViIVeTApKK9yKnn37cCO5 H6K6TqwQevgqwXe4TmUfPZWzI1senMSADIN2wvWEFvhMu/tsEO7ra/ZVshEaBuKzdjNy 1T5ev+fqYhJVD/xTIH3tNlox/tlDezTGrluT6bU3NHT1u5h9KKGwx0kWTamOxiOq6rcU hbC6DmIUrAqVxQGsY/Hp9lJCgxN5gPRnNO6va5IssMRzXeNhI3A6m72mNEzhr0jGABLH eUu9VuXR29hVaAQfSDDa6dIC5xVM0RfPGsBVJhaMgJ77Ur9V7eDgR8aLoWn4w/He9LFX GdWg== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=sender:errors-to:cc:list-subscribe:list-help:list-post:list-archive :list-unsubscribe:list-id:precedence:subject:message-id:date:to:from :dkim-signature; bh=u4WPggY8tXQSUfG1wVzCbDGl8H6LnmdgIDgU+4FZZ0s=; b=LQ+T3NdcoTQwoxzhL5PrcbzCVJdHhnOPs+3xGRxranFLuw8cs/Pmp/W6wsUT8WqPr6 Qqzsfh/tSEJ5Nc4D+SuECXXsM8ZbuOiFawOpJsY+TSMZPPSXLdckfFY8gkKtWrShaZkJ z8HTZqQxUioz5ErFewEsExCupEn8KY6YoStBz5mVGQMo98GTn9dwPkMgKVVDK4YMkOHY iq8F1VzgpHZoxCwstciJUH2nGLQgcjYRq4lGy7GJba29QPcB5dZPqUynU8jjuFFNLNCi qMJHkiS+F1POjU5CTYkOSB08mklfKTEDpTagR9eKqL/m8bpHgtEvvE3N6TykIxC9dWGe ySww== ARC-Authentication-Results: i=1; mx.google.com; dkim=fail header.i=@linaro.org header.s=google header.b=P5PS0gws; 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=fail (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 j9si54539450wrb.245.2019.01.25.15.21.06 for (version=TLS1 cipher=AES128-SHA bits=128/128); Fri, 25 Jan 2019 15:21:07 -0800 (PST) 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=fail header.i=@linaro.org header.s=google header.b=P5PS0gws; 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=fail (p=NONE sp=NONE dis=NONE) header.from=linaro.org Received: from localhost ([127.0.0.1]:52326 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1gnAmY-0002WW-7b for patch@linaro.org; Fri, 25 Jan 2019 18:21:06 -0500 Received: from eggs.gnu.org ([209.51.188.92]:36030) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1gnAeD-0004QJ-Sf for qemu-devel@nongnu.org; Fri, 25 Jan 2019 18:12:30 -0500 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1gnAPX-0005Go-Kb for qemu-devel@nongnu.org; Fri, 25 Jan 2019 17:57:20 -0500 Received: from mail-pg1-x542.google.com ([2607:f8b0:4864:20::542]:41372) by eggs.gnu.org with esmtps (TLS1.0:RSA_AES_128_CBC_SHA1:16) (Exim 4.71) (envelope-from ) id 1gnAPX-0005EV-5j for qemu-devel@nongnu.org; Fri, 25 Jan 2019 17:57:19 -0500 Received: by mail-pg1-x542.google.com with SMTP id m1so4784270pgq.8 for ; Fri, 25 Jan 2019 14:57:18 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=linaro.org; s=google; h=from:to:cc:subject:date:message-id; bh=u4WPggY8tXQSUfG1wVzCbDGl8H6LnmdgIDgU+4FZZ0s=; b=P5PS0gws00Ghoq+q7KnUjJ0Nv2Uw8P8DDtbUjhNqHTZpES/nMtPZb6ScekgQXB8/8g cErpFFrWKIJ2DNRp3zrVzuEjdiX0mdKSkPlOgqqfsN754NHzDaafRiNiFyRPCHsskqKB bGNOp66c6ip/j1wCzmT70dLa7LGKyPbFuvtu8= X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:from:to:cc:subject:date:message-id; bh=u4WPggY8tXQSUfG1wVzCbDGl8H6LnmdgIDgU+4FZZ0s=; b=pHhb//ELLDgETr37izWkFOfSwlPko65tENpG4Hqw5+GjiwwEL0XZlDNdjIKfQX8CQS cxqmFmOD0tpfCP6reSXrHY1iakMAch5/0ZKb9HlQxSkyxkKbcs4QhazPjdDeC6qrto7R 0We/aGrxdvD8tYeX5e55yeNvOgKaxLdW2IohO05pLpm5fogsiNpLsViKJaMCflMQ1Eoy M3jG+4S0ZqJZUFp0uYM3gqchxG5442zD0SLigPYz6YpI6XBSWlmowpeDaGSxNN4RehGV /NebckfhwGXhaSY3IeD9+BC73QZKCtXhF+459CQWRR/hizETJey3GPhFlTTHiRUiTrtB sKiw== X-Gm-Message-State: AJcUukcpjIcLuopkjUw00zh7tVHbhOd1qL0yN5rn1CF4x+ySyagVt4CO k/mjW0RNMq31o37QnTt6sxTFYCgwkQ0= X-Received: by 2002:a62:190e:: with SMTP id 14mr12726161pfz.70.1548457036993; Fri, 25 Jan 2019 14:57:16 -0800 (PST) Received: from cloudburst.twiddle.net (97-126-115-157.tukw.qwest.net. [97.126.115.157]) by smtp.gmail.com with ESMTPSA id c7sm39148321pfh.18.2019.01.25.14.57.15 (version=TLS1_2 cipher=ECDHE-RSA-CHACHA20-POLY1305 bits=256/256); Fri, 25 Jan 2019 14:57:15 -0800 (PST) From: Richard Henderson To: qemu-devel@nongnu.org Date: Fri, 25 Jan 2019 14:57:07 -0800 Message-Id: <20190125225714.10234-1-richard.henderson@linaro.org> X-Mailer: git-send-email 2.17.2 X-detected-operating-system: by eggs.gnu.org: Genre and OS details not recognized. X-Received-From: 2607:f8b0:4864:20::542 Subject: [Qemu-devel] [PATCH 0/6] target/arm: Complete ARMv8.3-PAuth linux-user X-BeenThere: qemu-devel@nongnu.org X-Mailman-Version: 2.1.21 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Cc: peter.maydell@linaro.org Errors-To: qemu-devel-bounces+patch=linaro.org@nongnu.org Sender: "Qemu-devel" (1) Fix a bug I introduced at the last moment in the last patch set -- enable pac keys during reset, not before. (2) Add the HWCAP bits. (3) Add the new prctl (4) Add a smoke test so that (1) doesn't happen again. r~ Richard Henderson (6): target/arm: Always enable pac keys for user-only aarch64-linux-user: Update HWCAP bits from linux 5.0-rc1 aarch64-linux-user: Enable HWCAP bits for PAuth linux-user: Initialize aarch64 pac keys linux-user: Implement PR_PAC_RESET_KEYS tests/tcg/aarch64: Add pauth smoke tests linux-user/aarch64/target_syscall.h | 9 +++++ linux-user/aarch64/cpu_loop.c | 31 ++++++++++++++- linux-user/elfload.c | 10 +++++ linux-user/syscall.c | 33 ++++++++++++++++ target/arm/cpu.c | 3 ++ target/arm/cpu64.c | 60 ----------------------------- tests/tcg/aarch64/pauth-1.c | 23 +++++++++++ tests/tcg/aarch64/Makefile.target | 7 +++- 8 files changed, 113 insertions(+), 63 deletions(-) create mode 100644 tests/tcg/aarch64/pauth-1.c -- 2.17.2