Received: by 2002:a25:ab43:0:0:0:0:0 with SMTP id u61csp2232660ybi; Thu, 20 Jun 2019 11:17:46 -0700 (PDT) X-Google-Smtp-Source: APXvYqx/RbmNyFq0CE1mlFZXIr3dY+0y4g8H296mNsDZLScHAqhG1D2bkp1pmRu34mt0Llz3OWzY X-Received: by 2002:a63:5726:: with SMTP id l38mr14513457pgb.344.1561054666830; Thu, 20 Jun 2019 11:17:46 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1561054666; cv=none; d=google.com; s=arc-20160816; b=wF+rsHa0aesucCrLnY3ha5SMTOixCilgsZa0mqoJNuM3vb6YsXDTdkeyIackDVFKEY ktTxby6d3u2zqA5QLDnAt2z6lH0EUSXKhh8zVesCGLaVjG5Hp7g2AsMdNE6upV31booX +rRap28ESxwUVaXC53UfpvuAQREWlseZiIhqojwF7l7m7FEAff4d7yIDiPCARE7fKIeE ZbaWftgbTQIFMT97O+H+pvMCZxt+z6cayXoPufVwATJRI+S2FXrxZKxQJm1sGDH2XcXa x+iqBoV+0BmT3V2Tg0AS5kjG2GVZBuuJfSF9QdT9AAEt65RC73SU29FIb3Q9VoIkiOD/ NLNw== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:content-transfer-encoding:mime-version :user-agent:references:in-reply-to:message-id:date:subject:cc:to :from:dkim-signature; bh=oKK+DoFR4UlIvieeR8VwB2yP5fGtTcycoMonr20Ghj8=; b=keh8Vevr4WfGGdbjmkrem1FMxtkSTHJiqZ229T6BFp5vb+NKr3mLSYJuhMJq8GBWBK U2hNV5voOUwitsdYgOC8ajdnKkW54XtKFwd4OO/jt8f0DOvnD9/bYeCeKsKkgrSyR3Kt lvfLNVG68ZP80AWoMzi2iEvcfz1eyYebeu2SDmCZwLaFFRWsdjJky3stXM0WuNCQgDYv b3CMxlRnh9deb8zvUOZX717G4FJY1I3W137PMN/SB2BqKdnhWPOoeHfkQ1oNpX/lbZjX VcoedBZyzScde5P9ru9yODU7e8QkgyWxrmLvuXlW/xeHraizuJZR0R0p24uX0XyI5RTw 2AJw== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@kernel.org header.s=default header.b=0+hF3n2K; spf=pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Return-Path: Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id m10si157572pgq.420.2019.06.20.11.17.31; Thu, 20 Jun 2019 11:17:46 -0700 (PDT) Received-SPF: pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) client-ip=209.132.180.67; Authentication-Results: mx.google.com; dkim=pass header.i=@kernel.org header.s=default header.b=0+hF3n2K; spf=pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1729738AbfFTSR0 (ORCPT + 99 others); Thu, 20 Jun 2019 14:17:26 -0400 Received: from mail.kernel.org ([198.145.29.99]:46694 "EHLO mail.kernel.org" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1729916AbfFTSRW (ORCPT ); Thu, 20 Jun 2019 14:17:22 -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 D7B922089C; Thu, 20 Jun 2019 18:17:21 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=kernel.org; s=default; t=1561054642; bh=Hh+/0dLR3lXaoa/X7xixagvLxOl2uk4rmHTiPO7TSgM=; h=From:To:Cc:Subject:Date:In-Reply-To:References:From; b=0+hF3n2KU880f5ogHu2bgrBKGHCMh2UogXZ4kIUDQauJyCTOmT4gYoA714fDP8mTt +FcYDj8AUnx8jFfZh09aJ14UmABQsDl2/ySREowq5ekEri5XBXwwUX+un6DPbAZhwu 9BSHaT7My8Q6Nj3wyEbIe897dEi6fpeubZz9RWtc= 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 5.1 79/98] arm64: fix syscall_fn_t type Date: Thu, 20 Jun 2019 19:57:46 +0200 Message-Id: <20190620174353.242096782@linuxfoundation.org> X-Mailer: git-send-email 2.22.0 In-Reply-To: <20190620174349.443386789@linuxfoundation.org> References: <20190620174349.443386789@linuxfoundation.org> User-Agent: quilt/0.66 MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@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 a179df3674a1..6206ab9bfcfc 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