From patchwork Sat Mar 30 00:58:56 2019 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Richard Henderson X-Patchwork-Id: 161482 Delivered-To: patch@linaro.org Received: by 2002:a02:c6d8:0:0:0:0:0 with SMTP id r24csp2807070jan; Fri, 29 Mar 2019 20:32:13 -0700 (PDT) X-Google-Smtp-Source: APXvYqxMIKoNmBGFxMpSFD3YIkY4JjFTIg9VV3yyGXqv6DyUymgevvJ1z01FvzVMuHB1o0Co92gr X-Received: by 2002:a24:247:: with SMTP id 68mr6990482itu.13.1553916733324; Fri, 29 Mar 2019 20:32:13 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1553916733; cv=none; d=google.com; s=arc-20160816; b=0xmHCRYHnDimBFOOKBiMscAbINVfnR5w+xTFnQtvwFIWwNXWSVToBAnzBfDheA6Sw6 hzGoQHFi2UrbQRvZO6cotOi49VwI0n858OZo7jUjbaNSbTFHhdo+3QKhaFeVikQfD4h6 FIE3TaEVr+GVnJwBbeUcngFs3wCc2VyFHv5WQCHpdgFUoxk3PvC5DM/o41F9TFii6zxc AAIl3bH/lbw0/CYIdcV2+Deg4TUbuiy+0mb2gCBB8fwrQ8Qx6LTbo5mPvkPx3nC+Sw/e vrzySChoHJqVtLRNpWIF1D025Z0JSq+MpQAe5+mcD97Oymjl59zRMxB0QZk2UMr3/JaH TM8A== 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=HPXUgw+hcpuvNVNC2jL72N7OPSUGV0isdxCGU/BEjpk=; b=SWnmXk8Y9p0zpNZGRPUE8mkpdWFF9kfYWjbirzi6GyeaNn97BpBtYza5nZfDfa6ItN G48bDvHiuWj0weh+KutBO/gX3jOCoDuQ+PlWJi92F+tNlzDpM7l+LT/FYKXY0c77LNfj elCbdT5DAqMT7mKC8KJNhRXAhzMzJ+q6JHDwEDIi/mDpLIY5Z7DwyC3KDXzaMHA6v5oh tM0BVpyjvBRkkCIfk57XkkIIiR9AMmZ+bbcE3a7XygpYCEoem+/c+ex0Z/qpxADNM6Oa oTUUXxAT2jmv+Cov+9i4/8RsCGOYBTKp6FJHmeijvWRjtDFCLjCmh9xltAz5kqMWSob6 vyaw== ARC-Authentication-Results: i=1; mx.google.com; dkim=fail header.i=@linaro.org header.s=google header.b="Vb/FU579"; 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 k126si2067413itb.88.2019.03.29.20.32.13 for (version=TLS1 cipher=AES128-SHA bits=128/128); Fri, 29 Mar 2019 20:32:13 -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=fail header.i=@linaro.org header.s=google header.b="Vb/FU579"; 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]:49105 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1hA4j6-0005EW-Jn for patch@linaro.org; Fri, 29 Mar 2019 23:32:12 -0400 Received: from eggs.gnu.org ([209.51.188.92]:32937) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1hA2Kx-00078N-Ql for qemu-devel@nongnu.org; Fri, 29 Mar 2019 20:59:10 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1hA2Kw-0001bo-Gn for qemu-devel@nongnu.org; Fri, 29 Mar 2019 20:59:07 -0400 Received: from mail-pf1-x42a.google.com ([2607:f8b0:4864:20::42a]:42146) by eggs.gnu.org with esmtps (TLS1.0:RSA_AES_128_CBC_SHA1:16) (Exim 4.71) (envelope-from ) id 1hA2Kw-0001b7-7v for qemu-devel@nongnu.org; Fri, 29 Mar 2019 20:59:06 -0400 Received: by mail-pf1-x42a.google.com with SMTP id r15so1804019pfn.9 for ; Fri, 29 Mar 2019 17:59:05 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=linaro.org; s=google; h=from:to:cc:subject:date:message-id; bh=HPXUgw+hcpuvNVNC2jL72N7OPSUGV0isdxCGU/BEjpk=; b=Vb/FU579AraLjc0Pf2evfsVKhBXDo/hc+nwGY3RKyRH/gRBiC0Pki4CrfJ3tCgPXrY BPEpGxtAeq+UwTbit4DNVBfiBNzcC1RbrRKPvgcVXAtyiDW9wgD3P6j1ZrX07oBzokFC dVKZLsEHCfpu0G1LBuUBl295TjDAHiqFRJJp4jgnwf1BKEwO6HY4qg3l79iL+K0t3EB+ q7Pm/BkSIhzCkaMp2cvfn5yPpD93xJ5/zc362jBECUJleInFu2sqi8X7mmfq4o/MpMhh c0gf2mVeDCAC/iYAjYEtl5lVvSP5RGE4ljScXdVc6Ka2acMd1CdC9PTZkQZIM0i6B+Iw XaTA== 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=HPXUgw+hcpuvNVNC2jL72N7OPSUGV0isdxCGU/BEjpk=; b=NNBZEHNm5kwXE+al5mTZalMQxh9dgfFIwZxUux5WvThD16ZSpXqJXsKgdWZaYW7LAw h67BP//eukm0qB6FK4LvWqMZo8SvwobcUverFaPAyiIkKROV02smTvwi6w/7MTvJGT7p lnZe0eor+1FpnL7Vs87hk7H4Lk34uwwy7R7EVFolcCGmGrSOh7aGgvSM8bTcRJIkJW2W iK8+5EVplAg2BVEvVkJV93PNhUlloI213yHiynsMVxH8gox4pd+826+6ocCRjm0UZreQ bSyWLOmfuS3a/CJ8fGNnTCKc+h9Hw+Yctic+EcJRM5noWyTPw01HQl82aQoNzmPgybsx fO6g== X-Gm-Message-State: APjAAAV2tk/x+Y68fwEoZ0MWrTCIWvxv9Rgu8o3FjiR8Opqg/Dp41IKp 0xjtisJzcuYYCqRi7IP3ePmf9Obzq7Y= X-Received: by 2002:a63:e051:: with SMTP id n17mr48303483pgj.19.1553907544024; Fri, 29 Mar 2019 17:59:04 -0700 (PDT) Received: from cloudburst.ASUS (cpe-66-75-72-255.hawaii.res.rr.com. [66.75.72.255]) by smtp.gmail.com with ESMTPSA id e1sm2229900pfn.187.2019.03.29.17.59.01 (version=TLS1_2 cipher=ECDHE-RSA-AES128-GCM-SHA256 bits=128/128); Fri, 29 Mar 2019 17:59:03 -0700 (PDT) From: Richard Henderson To: qemu-devel@nongnu.org Date: Fri, 29 Mar 2019 14:58:56 -1000 Message-Id: <20190330005900.17282-1-richard.henderson@linaro.org> X-Mailer: git-send-email 2.17.1 X-detected-operating-system: by eggs.gnu.org: Genre and OS details not recognized. X-Received-From: 2607:f8b0:4864:20::42a Subject: [Qemu-devel] [PATCH v4 0/4] target/arm: Implement ARMv8.5-BTI for 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, alex.bennee@linaro.org, ramana.radhakrishnan@arm.com Errors-To: qemu-devel-bounces+patch=linaro.org@nongnu.org Sender: "Qemu-devel" The bits within the elf file that cover this have been published[1], but the change to for use by mmap/mprotect has not. So I've made something up with which to make progress (TARGET_PROT_BTI). I intend to press folk at Linaro Connect next week on publishing the necessary ABI changes for this and ARMv8.5-MemTag. r~ [1] https://developer.arm.com/docs/ihi0056/latest/elf-for-the-arm-64-bit-architecture-aarch64-abi-2018q4 Richard Henderson (4): linux-user/aarch64: Reset btype for syscalls and signals linux-user: Set PAGE_TARGET_1 for TARGET_PROT_BTI linux-user: Parse NT_GNU_PROPERTY_TYPE_0 notes tests/tcg/aarch64: Add bti smoke test include/exec/cpu-all.h | 12 +++-- linux-user/syscall_defs.h | 5 ++ linux-user/aarch64/cpu_loop.c | 7 +++ linux-user/aarch64/signal.c | 5 +- linux-user/elfload.c | 79 ++++++++++++++++++++++++++----- linux-user/mmap.c | 13 ++++- target/arm/translate-a64.c | 6 +-- tests/tcg/aarch64/bti-1.c | 62 ++++++++++++++++++++++++ tests/tcg/aarch64/bti-crt.inc.c | 69 +++++++++++++++++++++++++++ tests/tcg/aarch64/Makefile.target | 3 ++ 10 files changed, 241 insertions(+), 20 deletions(-) create mode 100644 tests/tcg/aarch64/bti-1.c create mode 100644 tests/tcg/aarch64/bti-crt.inc.c -- 2.17.1