tmp_suning_uos_patched/arch/powerpc/kernel
Roland McGrath 474f819672 [POWERPC] Ensure FULL_REGS on exec
When PTRACE_O_TRACEEXEC is used, a ptrace call to fetch the registers at
the PTRACE_EVENT_EXEC stop (PTRACE_PEEKUSR) will oops in CHECK_FULL_REGS.
With recent versions, "gdb --args /bin/sh -c 'exec /bin/true'" and "run" at
the (gdb) prompt is sufficient to produce this.  I also have written an
isolated test case, see https://bugzilla.redhat.com/show_bug.cgi?id=301791#c15.

This change fixes the problem by clearing the low bit of pt_regs.trap in
start_thread so that FULL_REGS is true again.  This is correct since all of
the GPRs that "full" refers to are cleared in start_thread.

Signed-off-by: Roland McGrath <roland@redhat.com>
Signed-off-by: Paul Mackerras <paulus@samba.org>
2007-09-25 20:40:41 +10:00
..
vdso32
vdso64
align.c
asm-offsets.c
audit.c
binfmt_elf32.c
btext.c
compat_audit.c
cpu_setup_6xx.S
cpu_setup_pa6t.S
cpu_setup_ppc970.S
cputable.c
crash_dump.c
crash.c [CELL] saving spus information for kexec crash 2007-07-20 21:41:43 +02:00
dma_64.c
entry_32.S
entry_64.S [POWERPC] Fixes for the SLB shadow buffer code 2007-08-03 19:36:01 +10:00
firmware.c
fpu.S
head_4xx.S
head_8xx.S
head_32.S
head_44x.S
head_64.S [POWERPC] Fix more section mismatches in head_64.S 2007-08-10 21:04:41 +10:00
head_booke.h
head_fsl_booke.S
ibmebus.c [POWERPC] ibmebus: Prevent bus_id collisions 2007-09-11 04:30:37 +10:00
idle_6xx.S
idle_power4.S
idle.c
init_task.c
io.c
iomap.c [POWERPC] Make pci_iounmap actually unmap things 2007-07-26 16:17:48 +10:00
iommu.c
irq.c [POWREPC] Fixup a number of modpost warnings on ppc32 2007-07-26 00:16:21 -05:00
isa-bridge.c
kprobes.c jprobes: make jprobes a little safer for users 2007-07-19 10:04:44 -07:00
l2cr_6xx.S
legacy_serial.c [POWERPC] Move serial_dev_init to device_initcall() 2007-09-13 04:09:14 +10:00
lparcfg.c some kmalloc/memset ->kzalloc (tree wide) 2007-07-19 10:04:50 -07:00
lparmap.c
machine_kexec_32.c
machine_kexec_64.c
machine_kexec.c
Makefile [POWERPC] Fix for assembler -g 2007-08-15 15:12:50 +10:00
misc_32.S [POWERPC] Fix small race in 44x tlbie function 2007-08-15 15:12:50 +10:00
misc_64.S
misc.S
module_32.c
module_64.c
msi.c
nvram_64.c
of_device.c Begin to consolidate of_device.c 2007-07-20 13:39:59 +10:00
of_platform.c Create drivers/of/platform.c 2007-07-20 14:25:51 +10:00
paca.c
pci_32.c [POWERPC] Fix a compile warning in pci_32.c 2007-08-03 19:36:01 +10:00
pci_64.c [POWERPC] Fix initialization and usage of dma_mask 2007-08-10 21:04:42 +10:00
pci_dn.c
pci-common.c Merge branch 'fixes-2.6.23' of master.kernel.org:/pub/scm/linux/kernel/git/galak/powerpc into merge 2007-07-26 16:43:24 +10:00
pmc.c
ppc32.h
ppc_ksyms.c
proc_ppc64.c
process.c [POWERPC] Ensure FULL_REGS on exec 2007-09-25 20:40:41 +10:00
prom_init.c
prom_parse.c Revert "[POWERPC] Don't complain if size-cells == 0 in prom_parse()" 2007-07-26 13:44:36 +10:00
prom.c [POWERPC] of_detach_node()'s device node argument cannot be const 2007-07-22 21:30:59 +10:00
ptrace32.c
ptrace.c PTRACE_POKEDATA consolidation 2007-07-17 10:23:03 -07:00
rtas_flash.c mm: Remove slab destructors from kmem_cache_create(). 2007-07-20 10:11:58 +09:00
rtas_pci.c
rtas-proc.c
rtas-rtc.c
rtas.c
semaphore.c
setup_32.c
setup_64.c Revert "[POWERPC] Do firmware feature fixups after features are initialised" 2007-07-18 10:17:39 -07:00
setup-common.c [POWERPC] Fix Pegasos keyboard detection 2007-07-26 16:17:45 +10:00
setup.h
signal_32.c
signal_64.c
signal.c
signal.h
smp-tbsync.c
smp.c [POWERPC] Fix num_cpus calculation in smp_call_function_map() 2007-08-03 19:36:00 +10:00
suspend.c
swsusp_32.S
swsusp_64.c
swsusp_asm64.S
swsusp.c
sys_ppc32.c sys_fallocate() implementation on i386, x86_64 and powerpc 2007-07-17 21:42:44 -04:00
syscalls.c Remove fs.h from mm.h 2007-07-29 17:09:29 -07:00
sysfs.c
systbl.S
tau_6xx.c
time.c [POWERPC] Fix timekeeping on PowerPC 601 2007-09-19 15:26:34 +10:00
traps.c [POWERPC] Fix FSL BookE machine check reporting 2007-08-17 13:22:28 -05:00
udbg_16550.c
udbg.c [POWREPC] Fixup a number of modpost warnings on ppc32 2007-07-26 00:16:21 -05:00
vdso.c [POWERPC] Don't expose clock vDSO functions when CPU has no timebase 2007-09-19 15:26:34 +10:00
vecemu.c
vector.S
vio.c
vmlinux.lds.S Merge git://git.kernel.org/pub/scm/linux/kernel/git/sam/kbuild 2007-07-19 14:28:19 -07:00