linux-stable-rt/include/asm-powerpc
Nate Case 9c8387afdc [POWERPC] Fix uninitialized variable bug in copy_{to|from}_user
Calls to copy_to_user() or copy_from_user() can fail when copying N
bytes, where N is a constant less than 8, but not 1, 2, 4, or 8,
because 'ret' is not initialized and is only set if the size is 1,
2, 4 or 8, but is tested after the switch statement for any constant
size <= 8.  This fixes it by initializing 'ret' to 1, causing the
code to fall through to the __copy_tofrom_user call for sizes other
than 1, 2, 4 or 8.

Signed-off-by: Dave Scidmore <dscidmore@xes-inc.com>
Signed-off-by: Nate Case <ncase@xes-inc.com>
Signed-off-by: Paul Mackerras <paulus@samba.org>
2008-05-15 20:49:52 +10:00
..
iseries
8xx_immap.h
8253pit.h
Kbuild
a.out.h
abs_addr.h
agp.h
asm-compat.h
atomic.h
auxvec.h
backlight.h
bitops.h generic: implement __fls on all 64-bit archs 2008-04-26 19:21:16 +02:00
bootx.h
btext.h
bug.h
bugs.h
byteorder.h
cache.h
cacheflush.h
cell-pmu.h
cell-regs.h
checksum.h
clk_interface.h
compat.h
cpm.h
cpm1.h
cpm2.h
cputable.h
cputhreads.h
cputime.h
current.h
dbdma.h
dcr-mmio.h
dcr-native.h
dcr-regs.h
dcr.h
delay.h
device.h
div64.h
dma-mapping.h
dma.h
edac.h
eeh.h
eeh_event.h
elf.h
emergency-restart.h
errno.h
exception.h [POWERPC] irqtrace support for 64-bit powerpc 2008-04-18 15:38:47 +10:00
fb.h
fcntl.h
firmware.h
fixmap.h [POWERPC] Port fixmap from x86 and use for kmap_atomic 2008-04-24 20:58:02 +10:00
floppy.h
fs_pd.h
fsl_lbc.h
futex.h asm-*/futex.h should include linux/uaccess.h 2008-04-30 08:29:52 -07:00
gpio.h
grackle.h
hardirq.h
heathrow.h
highmem.h [POWERPC] Port fixmap from x86 and use for kmap_atomic 2008-04-24 20:58:02 +10:00
hugetlb.h hugetlbfs: common code update for s390 2008-04-28 08:58:25 -07:00
hvcall.h
hvconsole.h
hvcserver.h
hw_irq.h [POWERPC] irqtrace support for 64-bit powerpc 2008-04-18 15:38:47 +10:00
hydra.h
i8259.h
ibmebus.h
ide.h ide: remove ide_init_default_irq() macro 2008-04-18 00:46:35 +02:00
immap_86xx.h
immap_cpm2.h
immap_qe.h
io-defs.h [POWERPC] cell: Generalize io-workarounds code 2008-04-24 21:08:12 +10:00
io.h [POWERPC] devres: Add devm_ioremap_prot() 2008-05-05 16:47:14 +10:00
ioctl.h
ioctls.h
iommu.h
ipcbuf.h
ipic.h
irq.h proper __do_softirq() prototype 2008-04-29 08:06:02 -07:00
irq_regs.h
irqflags.h [POWERPC] irqtrace support for 64-bit powerpc 2008-04-18 15:38:47 +10:00
kdebug.h
kdump.h [POWERPC] 85xx: Add support for relocatable kernel (and booting at non-zero) 2008-04-24 20:58:01 +10:00
kexec.h
keylargo.h
kgdb.h
kmap_types.h
kprobes.h
kvm.h KVM: ppc: PowerPC 440 KVM implementation 2008-04-27 18:21:39 +03:00
kvm_asm.h KVM: ppc: PowerPC 440 KVM implementation 2008-04-27 18:21:39 +03:00
kvm_host.h KVM: ppc: Handle guest idle by emulating MSR[WE] writes 2008-05-04 14:44:44 +03:00
kvm_para.h KVM: ppc: PowerPC 440 KVM implementation 2008-04-27 18:21:39 +03:00
kvm_ppc.h KVM: ppc: Handle guest idle by emulating MSR[WE] writes 2008-05-04 14:44:44 +03:00
libata-portmap.h
linkage.h
lmb.h
local.h
lppaca.h
lv1call.h
machdep.h
macio.h
mc146818rtc.h
mediabay.h
mman.h
mmu-8xx.h
mmu-40x.h
mmu-44x.h ppc: Export tlb_44x_hwater for KVM 2008-04-27 18:21:37 +03:00
mmu-fsl-booke.h
mmu-hash32.h
mmu-hash64.h [POWERPC] vmemmap fixes to use smaller pages 2008-05-15 20:49:25 +10:00
mmu.h
mmu_context.h
mmzone.h
module.h
mpc8xx.h
mpc52xx.h
mpc52xx_psc.h
mpc86xx.h
mpc512x.h
mpc8260.h
mpic.h
msgbuf.h
mutex.h
namei.h
nvram.h
of_device.h
of_platform.h
ohare.h
oprofile_impl.h
pSeries_reconfig.h
paca.h [POWERPC] Raise the upper limit of NR_CPUS and move the pacas into the BSS 2008-04-24 20:58:04 +10:00
page.h [POWERPC] 85xx: Add support for relocatable kernel (and booting at non-zero) 2008-04-24 20:58:01 +10:00
page_32.h [POWERPC] 85xx: Add support for relocatable kernel (and booting at non-zero) 2008-04-24 20:58:01 +10:00
page_64.h hugetlbfs: architecture header cleanup 2008-04-28 08:58:25 -07:00
param.h
parport.h
pasemi_dma.h
pci-bridge.h [POWERPC] Make pci_bus_to_host()'s struct pci_bus * argument const 2008-04-18 15:37:14 +10:00
pci.h
percpu.h
pgalloc-32.h
pgalloc-64.h
pgalloc.h
pgtable-4k.h
pgtable-64k.h
pgtable-ppc32.h [POWERPC] 4xx: Fix problem with new TLB storage attibute fields on 440x6 core 2008-05-06 10:36:20 -05:00
pgtable-ppc64.h [POWERPC] vmemmap fixes to use smaller pages 2008-05-15 20:49:25 +10:00
pgtable.h
phyp_dump.h
pmac_feature.h
pmac_low_i2c.h
pmac_pfunc.h
pmc.h
pmi.h
poll.h
posix_types.h
ppc-pci.h
ppc4xx.h
ppc_asm.h
processor.h [POWERPC] Add IRQSTACKS support on ppc32 2008-04-29 15:57:34 +10:00
prom.h
ps3.h [POWERPC] PS3: Make ps3_virq_setup and ps3_virq_destroy static 2008-05-02 15:00:44 +10:00
ps3av.h
ps3fb.h
ps3stor.h
ptrace.h [POWERPC] Move stackframe definitions to common header 2008-04-18 15:37:18 +10:00
qe.h
qe_ic.h
reg.h
reg_8xx.h
reg_booke.h
reg_fsl_emb.h
resource.h
rheap.h
rio.h [RAPIDIO] Move include/asm-ppc/rio.h to asm-powerpc 2008-04-29 19:40:27 +10:00
rtas.h
rtc.h
rwsem.h [POWERPC] irqtrace support for 64-bit powerpc 2008-04-18 15:38:47 +10:00
scatterlist.h
seccomp.h
sections.h
semaphore.h
sembuf.h
serial.h
setjmp.h
setup.h
shmbuf.h
shmparam.h
sigcontext.h
siginfo.h
signal.h
smp.h
smu.h
socket.h
sockios.h
sparsemem.h
spinlock.h [POWERPC] irqtrace support for 64-bit powerpc 2008-04-18 15:38:47 +10:00
spinlock_types.h
spu.h [POWERPC] spufs: handle faults while the context switch pending flag is set 2008-05-05 13:33:44 +10:00
spu_csa.h [POWERPC] spufs: fix concurrent delivery of class 0 & 1 exceptions 2008-05-05 13:33:44 +10:00
spu_info.h
spu_priv1.h
sstep.h
stat.h
statfs.h
string.h
suspend.h
synch.h
syscalls.h unified (weak) sys_pipe implementation 2008-05-03 13:50:33 -07:00
systbl.h
system.h [POWERPC] Use __always_inline for xchg* and cmpxchg* 2008-04-29 15:57:34 +10:00
tce.h
termbits.h
termios.h
thread_info.h [POWERPC] Fix kernel stack allocation alignment 2008-04-24 20:57:33 +10:00
time.h
timex.h
tlb.h
tlbflush.h
topology.h asm-generic: add node_to_cpumask_ptr macro 2008-04-19 19:44:58 +02:00
tsi108.h
tsi108_irq.h
tsi108_pci.h
types.h powerpc: types: use <asm-generic/int-*.h> for the powerpc architecture 2008-05-02 16:18:35 -07:00
uaccess.h [POWERPC] Fix uninitialized variable bug in copy_{to|from}_user 2008-05-15 20:49:52 +10:00
ucc.h
ucc_fast.h
ucc_slow.h
ucontext.h
udbg.h
uic.h
unaligned.h kernel: Move arches to use common unaligned access 2008-04-29 08:06:27 -07:00
uninorth.h
unistd.h
user.h
vdso.h
vdso_datapage.h
vga.h
vio.h
xilinx_intc.h
xmon.h
xor.h