From patchwork Wed Dec 9 03:16:55 2015 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: "Dmitry V. Levin" X-Patchwork-Id: 7803891 X-Patchwork-Delegate: horms@verge.net.au Return-Path: X-Original-To: patchwork-linux-sh@patchwork.kernel.org Delivered-To: patchwork-parsemail@patchwork2.web.kernel.org Received: from mail.kernel.org (mail.kernel.org [198.145.29.136]) by patchwork2.web.kernel.org (Postfix) with ESMTP id 178C4BEEE1 for ; Wed, 9 Dec 2015 03:24:42 +0000 (UTC) Received: from mail.kernel.org (localhost [127.0.0.1]) by mail.kernel.org (Postfix) with ESMTP id 3DE9C203F7 for ; Wed, 9 Dec 2015 03:24:41 +0000 (UTC) Received: from vger.kernel.org (vger.kernel.org [209.132.180.67]) by mail.kernel.org (Postfix) with ESMTP id 2F727203F3 for ; Wed, 9 Dec 2015 03:24:40 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1752701AbbLIDYj (ORCPT ); Tue, 8 Dec 2015 22:24:39 -0500 Received: from pegasus3.altlinux.org ([194.107.17.103]:43856 "EHLO pegasus3.altlinux.org" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1751260AbbLIDYj (ORCPT ); Tue, 8 Dec 2015 22:24:39 -0500 X-Greylist: delayed 459 seconds by postgrey-1.27 at vger.kernel.org; Tue, 08 Dec 2015 22:24:39 EST Received: from mua.local.altlinux.org (mua.local.altlinux.org [192.168.1.14]) by pegasus3.altlinux.org (Postfix) with ESMTP id 37882809A4; Wed, 9 Dec 2015 06:16:55 +0300 (MSK) Received: by mua.local.altlinux.org (Postfix, from userid 508) id 26ABDAC40FD; Wed, 9 Dec 2015 06:16:55 +0300 (MSK) Date: Wed, 9 Dec 2015 06:16:55 +0300 From: "Dmitry V. Levin" To: linux-sh@vger.kernel.org Cc: linux-kernel@vger.kernel.org Subject: [PATCH] sh64: fix __NR_fgetxattr Message-ID: <20151209031655.GA22704@altlinux.org> Mime-Version: 1.0 Content-Disposition: inline Sender: linux-sh-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-sh@vger.kernel.org X-Spam-Status: No, score=-6.9 required=5.0 tests=BAYES_00, RCVD_IN_DNSWL_HI, T_RP_MATCHES_RCVD, UNPARSEABLE_RELAY autolearn=ham version=3.3.1 X-Spam-Checker-Version: SpamAssassin 3.3.1 (2010-03-16) on mail.kernel.org X-Virus-Scanned: ClamAV using ClamSMTP According to arch/sh/kernel/syscalls_64.S and common sense, __NR_fgetxattr has to be defined to 259, but it doesn't. Instead, it's defined to 269, which is of course used by another syscall, __NR_sched_setaffinity in this case. This bug was found by strace test suite. Signed-off-by: Dmitry V. Levin Cc: stable@vger.kernel.org Acked-by: Geert Uytterhoeven --- arch/sh/include/uapi/asm/unistd_64.h | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/arch/sh/include/uapi/asm/unistd_64.h b/arch/sh/include/uapi/asm/unistd_64.h index e6820c8..47ebd5b 100644 --- a/arch/sh/include/uapi/asm/unistd_64.h +++ b/arch/sh/include/uapi/asm/unistd_64.h @@ -278,7 +278,7 @@ #define __NR_fsetxattr 256 #define __NR_getxattr 257 #define __NR_lgetxattr 258 -#define __NR_fgetxattr 269 +#define __NR_fgetxattr 259 #define __NR_listxattr 260 #define __NR_llistxattr 261 #define __NR_flistxattr 262