linux-stable-rt/arch/x86/kernel
Roland McGrath 54a0151041 asmlinkage_protect replaces prevent_tail_call
The prevent_tail_call() macro works around the problem of the compiler
clobbering argument words on the stack, which for asmlinkage functions
is the caller's (user's) struct pt_regs.  The tail/sibling-call
optimization is not the only way that the compiler can decide to use
stack argument words as scratch space, which we have to prevent.
Other optimizations can do it too.

Until we have new compiler support to make "asmlinkage" binding on the
compiler's own use of the stack argument frame, we have work around all
the manifestations of this issue that crop up.

More cases seem to be prevented by also keeping the incoming argument
variables live at the end of the function.  This makes their original
stack slots attractive places to leave those variables, so the compiler
tends not clobber them for something else.  It's still no guarantee, but
it handles some observed cases that prevent_tail_call() did not.

Signed-off-by: Roland McGrath <roland@redhat.com>
Signed-off-by: Linus Torvalds <torvalds@linux-foundation.org>
2008-04-10 17:28:26 -07:00
..
acpi
cpu Fix booting pentium+ with dodgy TSC 2008-04-06 16:10:40 -07:00
.gitignore
Makefile
alternative.c pop previous section in alternative.c 2008-04-09 18:38:08 -07:00
aperture_64.c x86: fix long standing bug with usb after hibernation with 4GB ram 2008-03-21 17:06:15 +01:00
apic_32.c
apic_64.c
apm_32.c
asm-offsets.c
asm-offsets_32.c
asm-offsets_64.c
audit_64.c
bootflag.c
bugs_64.c
cpuid.c
crash.c
crash_dump_32.c
crash_dump_64.c
doublefault_32.c
ds.c
e820_32.c x86: trim mtrr don't close gap for resource allocation. 2008-03-21 17:06:15 +01:00
e820_64.c x86: trim mtrr don't close gap for resource allocation. 2008-03-21 17:06:15 +01:00
early-quirks.c
early_printk.c
efi.c
efi_32.c
efi_64.c
efi_stub_32.S
efi_stub_64.S
entry_32.S
entry_64.S
genapic_64.c
genapic_flat_64.c
geode_32.c
head64.c
head_32.S x86: fix fault_msg nul termination 2008-03-21 17:06:15 +01:00
head_64.S
hpet.c x86: revert assign IRQs to hpet timer 2008-04-04 18:36:49 +02:00
i386_ksyms_32.c
i387.c
i8237.c
i8253.c
i8259_32.c
i8259_64.c
init_task.c
io_apic_32.c
io_apic_64.c
io_delay.c x86: add dmi quirk for io_delay 2008-03-26 22:23:40 +01:00
ioport.c
irq_32.c
irq_64.c
k8.c
kdebugfs.c
kprobes.c
ldt.c
machine_kexec_32.c
machine_kexec_64.c vmcoreinfo: add the symbol "phys_base" 2008-04-02 15:28:19 -07:00
mca_32.c
mfgpt_32.c x86: GEODE: add missing module.h include 2008-03-26 22:23:40 +01:00
microcode.c
module_32.c
module_64.c
mpparse_32.c
mpparse_64.c
msr.c
nmi_32.c
nmi_64.c
numaq_32.c
paravirt.c
paravirt_patch_32.c
paravirt_patch_64.c
pci-calgary_64.c
pci-dma_32.c
pci-dma_64.c x86: revert: reserve dma32 early for gart 2008-03-22 19:25:41 +01:00
pci-gart_64.c x86, agpgart: scary messages are fortunately obsolete 2008-04-04 18:36:46 +02:00
pci-nommu_64.c
pci-swiotlb_64.c
pcspeaker.c
pmtimer_64.c
process_32.c x86: Simplify cpu_idle_wait 2008-04-10 15:38:29 -07:00
process_64.c x86: Simplify cpu_idle_wait 2008-04-10 15:38:29 -07:00
ptrace.c x86: ptrace.c: fix defined-but-unused warnings 2008-03-27 16:08:44 +01:00
quirks.c x86: hpet clock enable quirk on nVidia nForce 430 2008-03-21 17:06:15 +01:00
reboot.c x86: fix reboot problem with Dell Optiplex 745, 0KW626 board 2008-03-21 17:06:15 +01:00
reboot_fixups_32.c
relocate_kernel_32.S
relocate_kernel_64.S
rtc.c
scx200_32.c
setup64.c
setup_32.c x86: fix trim mtrr not to setup_memory two times 2008-03-26 22:23:41 +01:00
setup_64.c x86: fix memoryless node oops during boot 2008-03-26 22:23:40 +01:00
sigframe_32.h
signal_32.c
signal_64.c
smp_32.c
smp_64.c
smpboot_32.c
smpboot_64.c
smpcommon_32.c
srat_32.c
stacktrace.c
step.c x86 ptrace: avoid unnecessary wrmsr 2008-04-03 15:42:43 -07:00
summit_32.c
sys_i386_32.c
sys_x86_64.c
syscall_64.c
syscall_table_32.S
tce_64.c
test_nx.c
test_rodata.c
time_32.c
time_64.c
tls.c asmlinkage_protect replaces prevent_tail_call 2008-04-10 17:28:26 -07:00
tls.h
topology.c
trampoline_32.S
trampoline_64.S
traps_32.c
traps_64.c
tsc_32.c x86: fix call to set_cyc2ns_scale() from time_cpufreq_notifier() 2008-04-07 21:09:14 +02:00
tsc_64.c x86: fix call to set_cyc2ns_scale() from time_cpufreq_notifier() 2008-04-07 21:09:14 +02:00
tsc_sync.c
verify_cpu_64.S
vm86_32.c
vmi_32.c
vmiclock_32.c
vmlinux.lds.S
vmlinux_32.lds.S
vmlinux_64.lds.S
vsmp_64.c
vsyscall_64.c
x8664_ksyms_64.c