[kernel] r13149 - in dists/etch/linux-2.6.24/debian: . patches/bugfix/mips patches/series

Aurelien Jarno aurel32 at alioth.debian.org
Tue Mar 17 11:22:14 UTC 2009


Author: aurel32
Date: Tue Mar 17 11:22:12 2009
New Revision: 13149

Log:
  [ Aurelien Jarno ]
  * [mips/mipsel] Fix errno on inexistent syscalls. (Closes: #520100).



Added:
   dists/etch/linux-2.6.24/debian/patches/bugfix/mips/inexistent-syscalls.patch
   dists/etch/linux-2.6.24/debian/patches/series/6~etchnhalf.9
Modified:
   dists/etch/linux-2.6.24/debian/changelog

Modified: dists/etch/linux-2.6.24/debian/changelog
==============================================================================
--- dists/etch/linux-2.6.24/debian/changelog	(original)
+++ dists/etch/linux-2.6.24/debian/changelog	Tue Mar 17 11:22:12 2009
@@ -1,3 +1,10 @@
+linux-2.6.24 (2.6.24-6~etchnhalf.9) UNRELEASED; urgency=high
+
+  [ Aurelien Jarno ]
+  * [mips/mipsel] Fix errno on inexistent syscalls. (Closes: #520100).
+ 
+ -- Aurelien Jarnor <aurel32 at debian.org>  Tue, 17 Mar 2009 12:17:07 +0100
+
 linux-2.6.24 (2.6.24-6~etchnhalf.8) stable; urgency=high
 
   [ dann frazier ]

Added: dists/etch/linux-2.6.24/debian/patches/bugfix/mips/inexistent-syscalls.patch
==============================================================================
--- (empty file)
+++ dists/etch/linux-2.6.24/debian/patches/bugfix/mips/inexistent-syscalls.patch	Tue Mar 17 11:22:12 2009
@@ -0,0 +1,83 @@
+commit bda8229bdd087167f463ad5e74299987924f8137
+Author: Atsushi Nemoto <anemo at mba.ocn.ne.jp>
+Date:   Sat Oct 25 01:17:22 2008 +0900
+
+    MIPS: Set positive error number to errno on illegal_syscall
+    
+    Signed-off-by: Atsushi Nemoto <anemo at mba.ocn.ne.jp>
+    Signed-off-by: Ralf Baechle <ralf at linux-mips.org>
+
+diff --git a/arch/mips/kernel/scall32-o32.S b/arch/mips/kernel/scall32-o32.S
+index 5e75a31..ffa23bd 100644
+--- a/arch/mips/kernel/scall32-o32.S
++++ b/arch/mips/kernel/scall32-o32.S
+@@ -180,7 +180,7 @@ bad_stack:
+ 	 * The system call does not exist in this kernel
+ 	 */
+ illegal_syscall:
+-	li	v0, -ENOSYS			# error
++	li	v0, ENOSYS			# error
+ 	sw	v0, PT_R2(sp)
+ 	li	t0, 1				# set error flag
+ 	sw	t0, PT_R7(sp)
+diff --git a/arch/mips/kernel/scall64-64.S b/arch/mips/kernel/scall64-64.S
+index 3d58204..a9e1716 100644
+--- a/arch/mips/kernel/scall64-64.S
++++ b/arch/mips/kernel/scall64-64.S
+@@ -117,7 +117,7 @@ syscall_trace_entry:
+ 
+ illegal_syscall:
+ 	/* This also isn't a 64-bit syscall, throw an error.  */
+-	li	v0, -ENOSYS			# error
++	li	v0, ENOSYS			# error
+ 	sd	v0, PT_R2(sp)
+ 	li	t0, 1				# set error flag
+ 	sd	t0, PT_R7(sp)
+commit fb498e2570eedc6c9c3d165e370624dfc3aed97b
+Author: Atsushi Nemoto <anemo at mba.ocn.ne.jp>
+Date:   Sat Oct 25 01:17:23 2008 +0900
+
+    MIPS: Set ENOSYS to errno on illegal system call number for syscall(2)
+    
+    Signed-off-by: Atsushi Nemoto <anemo at mba.ocn.ne.jp>
+    Signed-off-by: Ralf Baechle <ralf at linux-mips.org>
+
+diff --git a/arch/mips/kernel/scall32-o32.S b/arch/mips/kernel/scall32-o32.S
+index ffa23bd..759f680 100644
+--- a/arch/mips/kernel/scall32-o32.S
++++ b/arch/mips/kernel/scall32-o32.S
+@@ -293,7 +293,7 @@ bad_alignment:
+ 	jr	t2
+ 	/* Unreached */
+ 
+-einval:	li	v0, -EINVAL
++einval:	li	v0, -ENOSYS
+ 	jr	ra
+ 	END(sys_syscall)
+ 
+commit c6cb4df96fa22d1174d6fb6dfc2c7501d7afaeea
+Author: David Daney <ddaney at caviumnetworks.com>
+Date:   Fri Oct 31 11:23:09 2008 -0700
+
+    MIPS: Return ENOSYS from sys32_syscall on 64bit kernels like elsewhere.
+    
+    When the o32 errno was changed to ENOSYS, we forgot to update the code
+    for 64bit kernels.
+    
+    Signed-off-by: David Daney <ddaney at caviumnetworks.com>
+    Acked-by: Atsushi Nemoto <anemo at mba.ocn.ne.jp>
+    Signed-off-by: Ralf Baechle <ralf at linux-mips.org>
+
+diff --git a/arch/mips/kernel/scall64-o32.S b/arch/mips/kernel/scall64-o32.S
+index 3d55e3b..fefef4a 100644
+--- a/arch/mips/kernel/scall64-o32.S
++++ b/arch/mips/kernel/scall64-o32.S
+@@ -196,7 +196,7 @@ LEAF(sys32_syscall)
+ 	jr	t2
+ 	/* Unreached */
+ 
+-einval:	li	v0, -EINVAL
++einval:	li	v0, -ENOSYS
+ 	jr	ra
+ 	END(sys32_syscall)
+ 

Added: dists/etch/linux-2.6.24/debian/patches/series/6~etchnhalf.9
==============================================================================
--- (empty file)
+++ dists/etch/linux-2.6.24/debian/patches/series/6~etchnhalf.9	Tue Mar 17 11:22:12 2009
@@ -0,0 +1 @@
++ bugfix/mips/inexistent-syscalls.patch



More information about the Kernel-svn-changes mailing list