From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: X-Spam-Checker-Version: SpamAssassin 3.4.0 (2014-02-07) on aws-us-west-2-korg-lkml-1.web.codeaurora.org X-Spam-Level: X-Spam-Status: No, score=-8.8 required=3.0 tests=DKIMWL_WL_HIGH,DKIM_SIGNED, DKIM_VALID,HEADER_FROM_DIFFERENT_DOMAINS,INCLUDES_PATCH,MAILING_LIST_MULTI, SIGNED_OFF_BY,SPF_HELO_NONE,SPF_PASS,URIBL_BLOCKED,USER_AGENT_GIT autolearn=unavailable autolearn_force=no version=3.4.0 Received: from mail.kernel.org (mail.kernel.org [198.145.29.99]) by smtp.lore.kernel.org (Postfix) with ESMTP id 25E02C48BE3 for ; Thu, 20 Jun 2019 18:21:44 +0000 (UTC) Received: from vger.kernel.org (vger.kernel.org [209.132.180.67]) by mail.kernel.org (Postfix) with ESMTP id EF1BC2089C for ; Thu, 20 Jun 2019 18:21:43 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=kernel.org; s=default; t=1561054904; bh=8zmPrUDhOYw7RhDGNZLje9f56sPmfq1pcfsFsnMtljc=; h=From:To:Cc:Subject:Date:In-Reply-To:References:List-ID:From; b=kQZNoxVBGZietwLeBc2p5XslUfCSfHCHIcb/Ppge5mrdOV9rl0RNslEqXLDaG7Im9 H/BPUqA0beWzP3dl3rdAAodfTQLgfhk5L0w+aUDH3++0fcrJxxc2/AYVs42NfQn8b6 jx66piAYnjzDaV+xcrjmd0we++kwSW0WcCJte66U= Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1728398AbfFTSL6 (ORCPT ); Thu, 20 Jun 2019 14:11:58 -0400 Received: from mail.kernel.org ([198.145.29.99]:39710 "EHLO mail.kernel.org" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1728247AbfFTSL4 (ORCPT ); Thu, 20 Jun 2019 14:11:56 -0400 Received: from localhost (83-86-89-107.cable.dynamic.v4.ziggo.nl [83.86.89.107]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by mail.kernel.org (Postfix) with ESMTPSA id 44B452084E; Thu, 20 Jun 2019 18:11:55 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=kernel.org; s=default; t=1561054315; bh=8zmPrUDhOYw7RhDGNZLje9f56sPmfq1pcfsFsnMtljc=; h=From:To:Cc:Subject:Date:In-Reply-To:References:From; b=e0sAaAHD8ON9mSlg3W9X3FM3flGVn4UWMQ+2zrcu1mrQmUksgi80dOj+dHYxSpiD4 4FQITwYbDpOkurEDczJHxIp+yDAOTcJ94/FU/EGUJCtFvki40hZGw824/mDJUl2ZjG IyMqRmPG/5zgMsobzGMPy0yY/R9mLuW8um9my7Fw= From: Greg Kroah-Hartman To: linux-kernel@vger.kernel.org Cc: Greg Kroah-Hartman , stable@vger.kernel.org, Sami Tolvanen , Mark Rutland , Will Deacon , Sasha Levin Subject: [PATCH 4.19 48/61] arm64: fix syscall_fn_t type Date: Thu, 20 Jun 2019 19:57:43 +0200 Message-Id: <20190620174345.621893387@linuxfoundation.org> X-Mailer: git-send-email 2.22.0 In-Reply-To: <20190620174336.357373754@linuxfoundation.org> References: <20190620174336.357373754@linuxfoundation.org> User-Agent: quilt/0.66 MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Sender: stable-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: stable@vger.kernel.org [ Upstream commit 8ef8f368ce72b5e17f7c1f1ef15c38dcfd0fef64 ] Syscall wrappers in use const struct pt_regs * as the argument type. Use const in syscall_fn_t as well to fix indirect call type mismatches with Control-Flow Integrity checking. Signed-off-by: Sami Tolvanen Reviewed-by: Mark Rutland Signed-off-by: Will Deacon Signed-off-by: Sasha Levin --- arch/arm64/include/asm/syscall.h | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/arch/arm64/include/asm/syscall.h b/arch/arm64/include/asm/syscall.h index ad8be16a39c9..58102652bf9e 100644 --- a/arch/arm64/include/asm/syscall.h +++ b/arch/arm64/include/asm/syscall.h @@ -20,7 +20,7 @@ #include #include -typedef long (*syscall_fn_t)(struct pt_regs *regs); +typedef long (*syscall_fn_t)(const struct pt_regs *regs); extern const syscall_fn_t sys_call_table[]; -- 2.20.1