Bug 112577
Summary: | softirq to assist with stack overflows | ||
---|---|---|---|
Product: | Red Hat Enterprise Linux 2.1 | Reporter: | sheryl sage <sheryl.sage> |
Component: | kernel | Assignee: | Rik van Riel <riel> |
Status: | CLOSED WONTFIX | QA Contact: | Brian Brock <bbrock> |
Severity: | medium | Docs Contact: | |
Priority: | medium | ||
Version: | 2.1 | CC: | riel, summer, tao |
Target Milestone: | --- | Keywords: | FutureFeature |
Target Release: | --- | ||
Hardware: | i386 | ||
OS: | Linux | ||
Whiteboard: | |||
Fixed In Version: | Doc Type: | Enhancement | |
Doc Text: | Story Points: | --- | |
Clone Of: | Environment: | ||
Last Closed: | 2007-10-19 19:23:30 UTC | Type: | --- |
Regression: | --- | Mount Type: | --- |
Documentation: | --- | CRM: | |
Verified Versions: | Category: | --- | |
oVirt Team: | --- | RHEL 7.3 requirements from Atomic Host: | |
Cloudforms Team: | --- | Target Upstream Version: | |
Embargoed: |
Description
sheryl sage
2003-12-23 15:12:14 UTC
seems liek the patch got cut off...Also, we made a number of changes in U3 to address stack overflow in 2.1. The e.34 kernel might be worth trying. --- 2.4.9-e.27/kernel/softirq.c Tue Sep 23 16:46:51 2003 +++ linux/kernel/softirq.c Wed Sep 24 20:03:09 2003 @@ -17,6 +17,9 @@ #include <linux/init.h> #include <linux/tqueue.h> +/* Defer softirqs to ksoftirqd if free stack less than this */ +#define STACK_DEFER_THRESHOLD (80 * BITS_PER_LONG) + /* - No shared variables, all the data are CPU local. - If a softirq needs serialization, let it serialize itself @@ -75,6 +78,21 @@ if (pending) { struct softirq_action *h; +#if !defined(CONFIG_PARISC) && !defined(CONFIG_X86_64) + { + unsigned long esp = (unsigned long) &esp; + unsigned long tsk = (unsigned long) current; + + if (unlikely(esp < tsk + sizeof(struct task_struct) + + STACK_DEFER_THRESHOLD) && esp >= tsk && + tsk != (unsigned long) ksoftirqd_task (cpu)) { + wakeup_softirqd(cpu); + local_irq_restore(flags); + return; + } + } +#endif /* !CONFIG_PARISC !CONFIG_X86_64 */ + mask = ~pending; local_bh_disable(); restart: Just cleaning out my bug list ;) This bug is filed against RHEL2.1, which is in maintenance phase. During the maintenance phase, only security errata and select mission critical bug fixes will be released for enterprise products. Since this bug does not meet that criteria, it is now being closed. For more information of the RHEL errata support policy, please visit: http://www.redhat.com/security/updates/errata/ If you feel this bug is indeed mission critical, please contact your support representative. You may be asked to provide detailed information on how this bug is affecting you. |