Skip to contentSkip to conversation

core/signal for v2.6.33

GIT PULL Ingo Molnar 1 participant 1 message Dec 3, 2009

Subsystems (2)
lore
Share & tools
lore
#0 lore raw

Linus,

Please pull the latest core-signal-for-linus git tree from:

git://git.kernel.org/pub/scm/linux/kernel/git/tip/linux-2.6-tip.git core-signal-for-linus

Thanks,

Ingo

------------------>
Naohiro Ooiwa (1):
signal: Print warning message when dropping signals

Sebastian Andrzej Siewior (1):
signal: Fix alternate signal stack check

 Documentation/kernel-parameters.txt |   11 +++++++-
 include/linux/sched.h               |   13 +++++++--
 kernel/signal.c                     |   46 +++++++++++++++++++++++++----------
 3 files changed, 52 insertions(+), 18 deletions(-)
Documentation/kernel-parameters.txt +9 -2
index 9107b38..3bbd92f 100644
@@ -2032,8 +2032,15 @@ and is between 256 and 4096 characters. It is defined in the file
 
 	print-fatal-signals=
 			[KNL] debug: print fatal signals
-			print-fatal-signals=1: print segfault info to
-			the kernel console.
+
+			If enabled, warn about various signal handling
+			related application anomalies: too many signals,
+			too many POSIX.1 timers, fatal signals causing a
+			coredump - etc.
+
+			If you hit the warning due to signal overflow,
+			you might want to try "ulimit -i unlimited".
+
 			default: off.
 
 	printk.time=	Show timing data prefixed to each printk message line
include/linux/sched.h +10 -3
index 75e6e60..0f67914 100644
@@ -2086,11 +2086,18 @@ static inline int is_si_special(const struct siginfo *info)
 	return info <= SEND_SIG_FORCED;
 }
 
-/* True if we are on the alternate signal stack.  */
-
+/*
+ * True if we are on the alternate signal stack.
+ */
 static inline int on_sig_stack(unsigned long sp)
 {
-	return (sp - current->sas_ss_sp < current->sas_ss_size);
+#ifdef CONFIG_STACK_GROWSUP
+	return sp >= current->sas_ss_sp &&
+		sp - current->sas_ss_sp < current->sas_ss_size;
+#else
+	return sp > current->sas_ss_sp &&
+		sp - current->sas_ss_sp <= current->sas_ss_size;
+#endif
 }
 
 static inline int sas_ss_flags(unsigned long sp)
kernel/signal.c +33 -13

113 lines not on this page · raw message