From patchwork Thu Mar 19 14:11:38 2020 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Vincenzo Frascino X-Patchwork-Id: 11447281 Return-Path: Received: from mail.kernel.org (pdx-korg-mail-1.web.codeaurora.org [172.30.200.123]) by pdx-korg-patchwork-2.web.codeaurora.org (Postfix) with ESMTP id 75F381668 for ; Thu, 19 Mar 2020 14:12:00 +0000 (UTC) Received: from bombadil.infradead.org (bombadil.infradead.org [198.137.202.133]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by mail.kernel.org (Postfix) with ESMTPS id 4F89F2137B for ; Thu, 19 Mar 2020 14:12:00 +0000 (UTC) Authentication-Results: mail.kernel.org; dkim=pass (2048-bit key) header.d=lists.infradead.org header.i=@lists.infradead.org header.b="g2OqF+Gy" DMARC-Filter: OpenDMARC Filter v1.3.2 mail.kernel.org 4F89F2137B Authentication-Results: mail.kernel.org; dmarc=none (p=none dis=none) header.from=arm.com Authentication-Results: mail.kernel.org; spf=none smtp.mailfrom=linux-arm-kernel-bounces+patchwork-linux-arm=patchwork.kernel.org@lists.infradead.org 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:MIME-Version:Message-Id:Date:Subject:To :From: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=E7UhhiNNT16P6LNR7cdhgJBSgzTXYqXIXq0/deDtDiw=; b=g2OqF+GyL5vKko SiToXcexa+vXhjC22Z2R08gPWTwia6UyQ1RxzYQuNcGJa6JC1qSLyZUSnKb+RuTSQbJuJAIsVJL9T z2q+6QryBTYD/oQeiwN3pS37xiODGD6NvsJCV4aTjQ21WOx8T/VlBV4nlSnrxRmE4mJpGi95wYKXg UfdtJLAgLmjLiG1AVZMpNovanMguQ552OhQJmhD9Znka9jmhIFT31LrBvEd5F5v0PddTsOEEr9bSS iYGa9UOHZ80Edv33JdBEMLF6Sis8QCwucjz7CD4BBS30PDqk3QuX//VtQbgoEaJcBJ0VE2mkMdPs2 iBgyx4etdaXiPzPbK5aw==; Received: from localhost ([127.0.0.1] helo=bombadil.infradead.org) by bombadil.infradead.org with esmtp (Exim 4.92.3 #3 (Red Hat Linux)) id 1jEvtu-0001GR-KK; Thu, 19 Mar 2020 14:11:58 +0000 Received: from foss.arm.com ([217.140.110.172]) by bombadil.infradead.org with esmtp (Exim 4.92.3 #3 (Red Hat Linux)) id 1jEvts-0001Fk-H9 for linux-arm-kernel@lists.infradead.org; Thu, 19 Mar 2020 14:11:57 +0000 Received: from usa-sjc-imap-foss1.foss.arm.com (unknown [10.121.207.14]) by usa-sjc-mx-foss1.foss.arm.com (Postfix) with ESMTP id 0647B30E; Thu, 19 Mar 2020 07:11:53 -0700 (PDT) Received: from e119884-lin.cambridge.arm.com (e119884-lin.cambridge.arm.com [10.1.196.72]) by usa-sjc-imap-foss1.foss.arm.com (Postfix) with ESMTPSA id 05C843F52E; Thu, 19 Mar 2020 07:11:51 -0700 (PDT) From: Vincenzo Frascino To: linux-arm-kernel@lists.infradead.org, clang-built-linux@googlegroups.com, linux-kernel@vger.kernel.org Subject: [PATCH] arm64: compat: Fix syscall number of compat_clock_getres Date: Thu, 19 Mar 2020 14:11:38 +0000 Message-Id: <20200319141138.19343-1-vincenzo.frascino@arm.com> X-Mailer: git-send-email 2.25.1 MIME-Version: 1.0 X-CRM114-Version: 20100106-BlameMichelson ( TRE 0.8.0 (BSD) ) MR-646709E3 X-CRM114-CacheID: sfid-20200319_071156_612029_E0B38312 X-CRM114-Status: GOOD ( 11.42 ) X-Spam-Score: -2.3 (--) X-Spam-Report: SpamAssassin version 3.4.3 on bombadil.infradead.org summary: Content analysis details: (-2.3 points) pts rule name description ---- ---------------------- -------------------------------------------------- -2.3 RCVD_IN_DNSWL_MED RBL: Sender listed at https://www.dnswl.org/, medium trust [217.140.110.172 listed in list.dnswl.org] -0.0 SPF_PASS SPF: sender matches SPF record 0.0 SPF_HELO_NONE SPF: HELO does not publish an SPF Record X-BeenThere: linux-arm-kernel@lists.infradead.org X-Mailman-Version: 2.1.29 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Cc: Catalin Marinas , Vincenzo Frascino , Will Deacon , stable@vger.kernel.org Sender: "linux-arm-kernel" Errors-To: linux-arm-kernel-bounces+patchwork-linux-arm=patchwork.kernel.org@lists.infradead.org The syscall number of compat_clock_getres was erroneously set to 247 instead of 264. This causes the vDSO fallback of clock_getres to land on the wrong syscall. Address the issue fixing the syscall number of compat_clock_getres. Fixes: 53c489e1dfeb6 ("arm64: compat: Add missing syscall numbers") Cc: Catalin Marinas Cc: Will Deacon Cc: stable@vger.kernel.org Signed-off-by: Vincenzo Frascino Reviewed-by: Nick Desaulniers Acked-by: Catalin Marinas --- arch/arm64/include/asm/unistd.h | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/arch/arm64/include/asm/unistd.h b/arch/arm64/include/asm/unistd.h index 1dd22da1c3a9..803039d504de 100644 --- a/arch/arm64/include/asm/unistd.h +++ b/arch/arm64/include/asm/unistd.h @@ -25,8 +25,8 @@ #define __NR_compat_gettimeofday 78 #define __NR_compat_sigreturn 119 #define __NR_compat_rt_sigreturn 173 -#define __NR_compat_clock_getres 247 #define __NR_compat_clock_gettime 263 +#define __NR_compat_clock_getres 264 #define __NR_compat_clock_gettime64 403 #define __NR_compat_clock_getres_time64 406