From patchwork Wed May 1 20:04:49 2019 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Sami Tolvanen X-Patchwork-Id: 10925563 Return-Path: Received: from mail.wl.linuxfoundation.org (pdx-wl-mail.web.codeaurora.org [172.30.200.125]) by pdx-korg-patchwork-2.web.codeaurora.org (Postfix) with ESMTP id 318AA912 for ; Wed, 1 May 2019 20:05:12 +0000 (UTC) Received: from mail.wl.linuxfoundation.org (localhost [127.0.0.1]) by mail.wl.linuxfoundation.org (Postfix) with ESMTP id 2130028B15 for ; Wed, 1 May 2019 20:05:12 +0000 (UTC) Received: by mail.wl.linuxfoundation.org (Postfix, from userid 486) id 14D8328B7D; Wed, 1 May 2019 20:05:12 +0000 (UTC) X-Spam-Checker-Version: SpamAssassin 3.3.1 (2010-03-16) on pdx-wl-mail.web.codeaurora.org X-Spam-Level: X-Spam-Status: No, score=-5.2 required=2.0 tests=BAYES_00,DKIM_ADSP_CUSTOM_MED, DKIM_SIGNED,DKIM_VALID,MAILING_LIST_MULTI,RCVD_IN_DNSWL_MED autolearn=ham version=3.3.1 Received: from bombadil.infradead.org (bombadil.infradead.org [198.137.202.133]) (using TLSv1.2 with cipher AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by mail.wl.linuxfoundation.org (Postfix) with ESMTPS id 9E04E28B15 for ; Wed, 1 May 2019 20:05:11 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=lists.infradead.org; s=bombadil.20170209; h=Sender: Content-Transfer-Encoding:Content-Type:Cc:List-Subscribe:List-Help:List-Post: List-Archive:List-Unsubscribe:List-Id:To:From:Subject:Mime-Version:Message-Id :Date:Reply-To:Content-ID:Content-Description:Resent-Date:Resent-From: Resent-Sender:Resent-To:Resent-Cc:Resent-Message-ID:In-Reply-To:References: List-Owner; bh=X4aw01o4mkMeFpIg3GMMo0LdEvAikDYjk8lwxBAw1C8=; b=LghPSbmVG7Illt wNMQ6t0RU518NyqcEcUHo2YjdcuF2Ta7ANR2oy+YQ+BrqCEklgf7V+i3RuVkOTmfRRsaAaLx32zdr toe9n1FKU5X61tdfMfvpkUeIqf5cfJmZUexbSIp7rf196pMM2EKY1B+hGrFCI3NYPKrymiaxd/G/P VNVwwJztCiT8Rvjr9xK1pwIBVRZyInSd4u1ZAghXcxo95z/+EsqUl5zCCsmYrsjkMLb1eavxIxh1U IHrUC19hIj1+HE/0EZNE+iuZjv67BDH/9yrPYiU+PmTQuyWPkD+Q3Ri3AQpjugftsBQNGo1ZAUd80 8BvQqZrKlufd3xTCnjGQ==; Received: from localhost ([127.0.0.1] helo=bombadil.infradead.org) by bombadil.infradead.org with esmtp (Exim 4.90_1 #2 (Red Hat Linux)) id 1hLvTa-0003Cj-QV; Wed, 01 May 2019 20:05:10 +0000 Received: from mail-qk1-x74a.google.com ([2607:f8b0:4864:20::74a]) by bombadil.infradead.org with esmtps (Exim 4.90_1 #2 (Red Hat Linux)) id 1hLvTW-0002Qq-AB for linux-arm-kernel@lists.infradead.org; Wed, 01 May 2019 20:05:07 +0000 Received: by mail-qk1-x74a.google.com with SMTP id 207so234596qkn.5 for ; Wed, 01 May 2019 13:05:04 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=20161025; h=date:message-id:mime-version:subject:from:to:cc; bh=j1UWHDT4a3S43XmXoocO/8/QcdoleiLleSM+fFU5j3U=; b=mtpE+O46RBE22iwEhucexJJgTrsWylAuSBqpI5XhAI2/MeOj7YRLypQhc67Y+v3/5L q80eU0MCTyAnnU7g51a1M+L88zcMYhjx4P8giwZ7qTvDeO8YeKRoKJEeAMmZ3181NlzP mSHNS9cnwDT/g7HBzdYXNphlRoy6lq5icoPfSiF8p1gelb1vx4vK7rHCLzrvM9LK9jYO JMFwXyN1F5T28Y0cA837E9SuXW9smPtVeGTLGyf1iYj+nOzV/mFcKi0DlJb+saUyvU1b IikDOanxDREBARGqKRsOs5FHl1AQSCDEGd1UdFeUvzMzV1CysMm0eN4ulhoKzeyEa3dF yLHg== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:date:message-id:mime-version:subject:from:to:cc; bh=j1UWHDT4a3S43XmXoocO/8/QcdoleiLleSM+fFU5j3U=; b=Zi8jHlqIrBFPci4c/dyVa05ON1GJ5wucR8yb5qwt1cdZUiJJk0SPBrDv0roe0MUUUd L679T4qmL0rG3Y8wtW4Tusouicah6dHzDE+Ykg+d5eGmdbS0W4dprJxSbrNMI4DeonrN 9tGQeJX7XOYHfIz5IARBDuUwgf2Z/xvdr+bdBccaNW15A5SKbWTZVUZXFZLEdvEeiI3w vel9gX+YPWUMwE/4COPUoMOzvTS33SuTU/P8N2QoxJKIqvIXhkGELQz7SS2aSoIUvdMf ipMWzPgOLV/04hONFgvCLmQ4WpdqOcu+Rpgfd+SgdgzYO7KspxYSt+t1qG9m/ghA15vZ 5yPA== X-Gm-Message-State: APjAAAWTFoPPJES6IzMWmylNJtKtLpyuDkkfMD1rRUTZcK/EraHp1KSv oPh2WrBf/iWknWUHBA/D+PnbG7cpMDnr/IoBvIY= X-Google-Smtp-Source: APXvYqwcmhUFSe0z7HnkFa2sbWE1j+IB2dn0B0YnDnOj177FZGCi3JFg2JIbv4Tt1UYGkEqVWbyRaVUYx0Dd0E4fsH4= X-Received: by 2002:a0c:8183:: with SMTP id 3mr71929qvd.206.1556741103412; Wed, 01 May 2019 13:05:03 -0700 (PDT) Date: Wed, 1 May 2019 13:04:49 -0700 Message-Id: <20190501200451.255615-1-samitolvanen@google.com> Mime-Version: 1.0 X-Mailer: git-send-email 2.21.0.593.g511ec345e18-goog Subject: [PATCH 0/2] fix function type mismatches in syscall wrappers From: Sami Tolvanen To: Catalin Marinas , Will Deacon X-CRM114-Version: 20100106-BlameMichelson ( TRE 0.8.0 (BSD) ) MR-646709E3 X-CRM114-CacheID: sfid-20190501_130506_383267_2FA6E747 X-CRM114-Status: UNSURE ( 8.32 ) X-CRM114-Notice: Please train this message. X-BeenThere: linux-arm-kernel@lists.infradead.org X-Mailman-Version: 2.1.21 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Cc: Sami Tolvanen , Nick Desaulniers , Kees Cook , linux-arm-kernel@lists.infradead.org, linux-kernel@vger.kernel.org Sender: "linux-arm-kernel" Errors-To: linux-arm-kernel-bounces+patchwork-linux-arm=patchwork.kernel.org@lists.infradead.org X-Virus-Scanned: ClamAV using ClamSMTP These patches fix type mismatches in arm64 syscall wrapper definitions, which trip indirect call checks with Control-Flow Integrity. Sami Tolvanen (2): arm64: fix syscall_fn_t type arm64: use the correct function type in SYSCALL_DEFINE0 arch/arm64/include/asm/syscall.h | 2 +- arch/arm64/include/asm/syscall_wrapper.h | 18 +++++++++--------- 2 files changed, 10 insertions(+), 10 deletions(-)