Groups | Search | Server Info | Keyboard shortcuts | Login | Register [http] [https] [nntp] [nntps]


Groups > linux.kernel > #1333823 > unrolled thread

[PATCH 3.10 10/64] sh64: fix __NR_fgetxattr

Started byGreg Kroah-Hartman <gregkh@linuxfoundation.org>
First post2016-02-15 00:40 +0100
Last post2016-02-15 00:40 +0100
Articles 1 — 1 participant

Back to article view | Back to linux.kernel

This discussion starts older than the indexed window; earlier articles aren't shown. The article labeled Started by below is the oldest one visible, not the original post.


Contents

  [PATCH 3.10 10/64] sh64: fix __NR_fgetxattr Greg Kroah-Hartman <gregkh@linuxfoundation.org> - 2016-02-15 00:40 +0100

#1333823 — [PATCH 3.10 10/64] sh64: fix __NR_fgetxattr

FromGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Date2016-02-15 00:40 +0100
Subject[PATCH 3.10 10/64] sh64: fix __NR_fgetxattr
Message-ID<r2eqK-1c5-19@gated-at.bofh.it>
3.10-stable review patch.  If anyone has any objections, please let me know.

------------------

From: Dmitry V. Levin <ldv@altlinux.org>

commit 2d33fa1059da4c8e816627a688d950b613ec0474 upstream.

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 <ldv@altlinux.org>
Acked-by: Geert Uytterhoeven <geert+renesas@glider.be>
Signed-off-by: Andrew Morton <akpm@linux-foundation.org>
Signed-off-by: Linus Torvalds <torvalds@linux-foundation.org>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>

---
 arch/sh/include/uapi/asm/unistd_64.h |    2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

--- 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

[toc] | [standalone]


Back to top | Article view | linux.kernel


csiph-web