Bug 151222
Summary: | smp_apic_timer_interrupt() executes on kernel thread stack | ||||||
---|---|---|---|---|---|---|---|
Product: | Red Hat Enterprise Linux 4 | Reporter: | craig harmer <craig> | ||||
Component: | kernel | Assignee: | Ingo Molnar <mingo> | ||||
Status: | CLOSED ERRATA | QA Contact: | Brian Brock <bbrock> | ||||
Severity: | medium | Docs Contact: | |||||
Priority: | medium | ||||||
Version: | 4.0 | CC: | linux26port, poelstra, riel, tao | ||||
Target Milestone: | --- | ||||||
Target Release: | --- | ||||||
Hardware: | i586 | ||||||
OS: | Linux | ||||||
Whiteboard: | |||||||
Fixed In Version: | RHSA-2005-514 | Doc Type: | Bug Fix | ||||
Doc Text: | Story Points: | --- | |||||
Clone Of: | Environment: | ||||||
Last Closed: | 2005-10-05 12:49:53 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: | |||||||
Bug Depends On: | |||||||
Bug Blocks: | 154907, 156322 | ||||||
Attachments: |
|
Description
craig harmer
2005-03-16 03:42:09 UTC
some additional comments from mark hemment: For older IA-32 system, whose without a local APIC, the timer interrupt will use the 'standard' interrupt handler (do_IRQ()) so will (far as I can tell) use a separate stack. Modern server systems won't be using this interrupt, so can be ignored in this discussion. we don't see an issue here for UP kernels because timer interrupt stacks don't go as deep because update_process_times() isn't called. arch/i386/kernel/apic.c: smp_local_timer_interrupt() { ... #ifdef CONFIG_SMP update_process_times(user_mode(regs)); #endif Created attachment 112043 [details]
patch to handle timer interrupts on the interrupt stack
here's a patch mark developed to switch to the interrupt stack for handling
APIC timer interrupts. Note that this has been tested, but not very heavily.
The patch looks OK to me in principle, and i've submitted it for inclusion. Could you also send it to Andrew Morton & Linus? It makes sense and saves 10% off the worst-case process-stack footprint. We indeed call quite deep into the scheduler from the APIC timer interrupt, which makes it special (and different from the other SMP IPI interrupt routines). sure. mark or i will submit it. thanks! PM ACK for U2. Hi Craig - A beta kernel which we believe resolves this issue is available on the Red Hat partners FTP site (partners.redhat.com) and the Red Hat Network (rhn.redhat.com). Can you download one of the new kernels and see if it resolves your problem? Thanks. An advisory has been issued which should help the problem described in this bug report. This report is therefore being closed with a resolution of ERRATA. For more information on the solution and/or where to find the updated files, please follow the link below. You may reopen this bug report if the solution does not work for you. http://rhn.redhat.com/errata/RHSA-2005-514.html |