[kernel] r5690 - in dists/sarge-security/kernel/source/kernel-source-2.6.8-2.6.8/debian: . patches patches/series

Dann Frazier dannf at costa.debian.org
Thu Feb 2 16:41:05 UTC 2006


Author: dannf
Date: Thu Feb  2 16:41:01 2006
New Revision: 5690

Added:
   dists/sarge-security/kernel/source/kernel-source-2.6.8-2.6.8/debian/patches/valid_signal.dpatch
Modified:
   dists/sarge-security/kernel/source/kernel-source-2.6.8-2.6.8/debian/changelog
   dists/sarge-security/kernel/source/kernel-source-2.6.8-2.6.8/debian/patches/series/2.6.8-16sarge2
Log:
fix builds by adding missing valid_signal() macro

Modified: dists/sarge-security/kernel/source/kernel-source-2.6.8-2.6.8/debian/changelog
==============================================================================
--- dists/sarge-security/kernel/source/kernel-source-2.6.8-2.6.8/debian/changelog	(original)
+++ dists/sarge-security/kernel/source/kernel-source-2.6.8-2.6.8/debian/changelog	Thu Feb  2 16:41:01 2006
@@ -152,9 +152,12 @@
     a local DoS (crash).
     See CVE-2005-3783
 
+  * valid_signal.dpatch
+    Adds the valid_signal() macro, needed by async-urb-delivery-oops.dpatch
+
   * async-urb-delivery-oops.dpatch, async-urb-delivery-oops-2.dpatch:
     [SECURITY] Fix oops that can result from a process terminating before
-    an issued URB request completes.
+    an issued URB request completes.  Requires valid_signal.dpatch
     See CVE-2005-3055
 
   * fs_coda_coverty.dpatch:

Modified: dists/sarge-security/kernel/source/kernel-source-2.6.8-2.6.8/debian/patches/series/2.6.8-16sarge2
==============================================================================
--- dists/sarge-security/kernel/source/kernel-source-2.6.8-2.6.8/debian/patches/series/2.6.8-16sarge2	(original)
+++ dists/sarge-security/kernel/source/kernel-source-2.6.8-2.6.8/debian/patches/series/2.6.8-16sarge2	Thu Feb  2 16:41:01 2006
@@ -26,6 +26,7 @@
 + kernel-dont-reap-traced.dpatch
 + net-sdla-coverty.dpatch
 + ptrace-fix_self-attach_rule.dpatch
++ valid_signal.dpatch
 + async-urb-delivery-oops.dpatch
 + async-urb-delivery-oops-2.dpatch
 + fs_coda_coverty.dpatch

Added: dists/sarge-security/kernel/source/kernel-source-2.6.8-2.6.8/debian/patches/valid_signal.dpatch
==============================================================================
--- (empty file)
+++ dists/sarge-security/kernel/source/kernel-source-2.6.8-2.6.8/debian/patches/valid_signal.dpatch	Thu Feb  2 16:41:01 2006
@@ -0,0 +1,48 @@
+diff -Naru a/include/linux/signal.h b/include/linux/signal.h
+--- a/include/linux/signal.h	2006-02-02 07:55:10 -08:00
++++ b/include/linux/signal.h	2006-02-02 07:55:10 -08:00
+@@ -220,6 +220,12 @@
+ 	INIT_LIST_HEAD(&sig->list);
+ }
+ 
++/* Test if 'sig' is valid signal. Use this instead of testing _NSIG directly */
++static inline int valid_signal(unsigned long sig)
++{
++	return sig <= _NSIG ? 1 : 0;
++}
++
+ extern int group_send_sig_info(int sig, struct siginfo *info, struct task_struct *p);
+ extern int __group_send_sig_info(int, struct siginfo *, struct task_struct *);
+ extern long do_sigpending(void __user *, unsigned long);
+# This is a BitKeeper generated diff -Nru style patch.
+#
+# ChangeSet
+#   2005/05/01 08:59:13-07:00 juhl-lkml at dif.dk 
+#   [PATCH] new valid_signal() function
+#   
+#   This patch adds a new function valid_signal() that tests if its argument is
+#   a valid signal number.
+#   
+#   The reasons for adding this new function are:
+#   
+#   - some code currently testing _NSIG directly has off-by-one errors.
+#     Using this function instead avoids such errors.
+#   
+#   - some code currently tests unsigned signal numbers for <0 which is
+#     pointless and generates warnings when building with gcc -W.  Using this
+#     function instead avoids such warnings.
+#   
+#   I considered various places to add this function but eventually settled on
+#   include/linux/signal.h as the most logical place for it.  If there's some
+#   reason this is a bad choice then please let me know (hints as to a better
+#   location are then welcome of course).
+#   
+#   Signed-off-by: Jesper Juhl <juhl-lkml at dif.dk>
+#   Signed-off-by: Andrew Morton <akpm at osdl.org>
+#   Signed-off-by: Linus Torvalds <torvalds at osdl.org>
+#   
+#   GIT: e5bdd883a189243541e7a132385580703b049102
+# 
+# include/linux/signal.h
+#   2005/05/01 08:59:13-07:00 juhl-lkml at dif.dk +6 -0
+# 



More information about the Kernel-svn-changes mailing list