original_kernel/include/asm-powerpc
Paul Mackerras 6bfd93c32a powerpc: Fix incorrect might_sleep in __get_user/__put_user on kernel addresses
We have a case where __get_user and __put_user can validly be used
on kernel addresses in interrupt context - namely, the alignment
exception handler, as our get/put_unaligned just do a single access
and rely on the alignment exception handler to fix things up in the
rare cases where the cpu can't handle it in hardware.  Thus we can
get alignment exceptions in the network stack at interrupt level.
The alignment exception handler does a __get_user to read the
instruction and blows up in might_sleep().

Since a __get_user on a kernel address won't actually ever sleep,
this makes the might_sleep conditional on the address being less
than PAGE_OFFSET.

Signed-off-by: Paul Mackerras <paulus@samba.org>
2006-05-03 23:06:46 +10:00
..
iseries [PATCH] powerpc: iseries: Make more stuff static in platforms/iseries/mf.c 2006-03-22 15:04:23 +11:00
8253pit.h
a.out.h
abs_addr.h
agp.h
asm-compat.h
atomic.h [PATCH] powerpc: native atomic_add_unless 2006-02-24 14:06:02 +11:00
auxvec.h
backlight.h
bitops.h [PATCH] bitops: powerpc: use generic bitops 2006-03-26 08:57:14 -08:00
bootx.h
btext.h
bug.h [PATCH] git-powerpc: WARN was a dumb idea 2006-03-28 20:48:54 +11:00
bugs.h
byteorder.h
cache.h
cacheflush.h
checksum.h
compat.h [PATCH] powerpc signal __user annotations 2006-02-08 01:03:46 -05:00
cputable.h [PATCH] powerpc: Add cputable entry for POWER6 2006-04-29 10:56:58 +10:00
cputime.h powerpc: Implement accurate task and CPU time accounting 2006-02-24 14:05:56 +11:00
current.h
dbdma.h
delay.h
div64.h
dma-mapping.h [PATCH] remove bogus asm/bug.h includes. 2006-02-07 20:56:35 -05:00
dma.h
eeh.h [PATCH] powerpc/pseries: EEH Cleanup 2006-04-01 22:37:11 +11:00
eeh_event.h
elf.h
emergency-restart.h
errno.h
fcntl.h
firmware.h [PATCH] powerpc: Rename and export ppc64_firmware_features 2006-03-28 16:45:20 +11:00
floppy.h [PATCH] powerpc: make ISA floppies work again 2006-03-28 16:45:36 +11:00
futex.h [PATCH] lightweight robust futexes updates 2006-03-27 08:44:49 -08:00
grackle.h
hardirq.h
heathrow.h
hvcall.h [PATCH] powerpc: Extends HCALL interface for InfiniBand usage 2006-04-01 22:37:00 +11:00
hvconsole.h [PATCH] powerpc: hvc_console updates 2006-03-28 16:45:26 +11:00
hvcserver.h
hw_irq.h
i8259.h
ibmebus.h
ide.h
io.h [PATCH] powerpc: Use check_legacy_ioport() on ppc32 too. 2006-04-28 21:04:55 +10:00
ioctl.h
ioctls.h
iommu.h [PATCH] powerpc: IOMMU support for honoring dma_mask 2006-04-21 22:28:55 +10:00
ipc.h
ipcbuf.h
ipic.h
irq.h powerpc: iSeries has only 256 IRQs 2006-04-04 14:49:48 +10:00
kdebug.h [PATCH] Notifier chain update: API changes 2006-03-27 08:44:50 -08:00
kdump.h
kexec.h [PATCH] fix kexec asm 2006-03-08 14:15:04 -08:00
keylargo.h
kmap_types.h
kprobes.h
linkage.h
lmb.h [PATCH] powerpc: Remove calculation of io hole 2006-03-22 15:04:30 +11:00
local.h
lppaca.h
machdep.h powerpc: Fix define_machine so machine_is() works from modules 2006-04-23 10:42:04 +10:00
macio.h
mc146818rtc.h
mediabay.h
mman.h [PATCH] add asm-generic/mman.h 2006-02-15 15:32:22 -08:00
mmu.h [PATCH] powerpc: Remove calculation of io hole 2006-03-22 15:04:30 +11:00
mmu_context.h
mmzone.h
module.h
mpic.h
msgbuf.h
mutex.h
namei.h
nvram.h
of_device.h
ohare.h
oprofile_impl.h [PATCH] powerpc: Remove oprofile spinlock backtrace code 2006-03-29 13:44:16 +11:00
pSeries_reconfig.h
paca.h [PATCH] powerpc: Allow non zero boot cpuids 2006-03-27 14:48:48 +11:00
page.h [PATCH] unify pfn_to_page: powerpc pfn_to_page 2006-03-27 08:44:44 -08:00
page_32.h
page_64.h [PATCH] powerpc: Fix pagetable bloat for hugepages 2006-04-28 15:02:51 +10:00
param.h
parport.h
pci-bridge.h
pci.h
percpu.h [PATCH] for_each_possible_cpu: powerpc 2006-03-29 13:44:15 +11:00
pgalloc.h [PATCH] powerpc: Fix pagetable bloat for hugepages 2006-04-28 15:02:51 +10:00
pgtable-4k.h Merge ../linux-2.6 2006-03-09 14:32:05 +11:00
pgtable-64k.h
pgtable.h Merge git://git.kernel.org/pub/scm/linux/kernel/git/paulus/powerpc 2006-03-22 22:20:46 -08:00
pmac_feature.h [PATCH] powerpc: Kill _machine and hard-coded platform numbers 2006-03-28 23:15:54 +11:00
pmac_low_i2c.h
pmac_pfunc.h
pmc.h
poll.h [PATCH] POLLRDHUP/EPOLLRDHUP handling for half-closed devices notifications 2006-03-25 08:22:56 -08:00
posix_types.h
ppc-pci.h [PATCH] powerpc: properly configure DDR/P5IOC children devs 2006-03-16 16:55:07 +11:00
ppc_asm.h powerpc: Implement accurate task and CPU time accounting 2006-02-24 14:05:56 +11:00
processor.h [PATCH] powerpc: Kill _machine and hard-coded platform numbers 2006-03-28 23:15:54 +11:00
prom.h [PATCH] powerpc: Kill _machine and hard-coded platform numbers 2006-03-28 23:15:54 +11:00
ptrace.h
reg.h powerpc: Unify the 32 and 64 bit idle loops 2006-03-27 15:03:03 +11:00
reg_8xx.h
resource.h
rtas.h
rtc.h
rwsem.h [PATCH] powerpc: trivial: modify comments to refer to new location of files 2006-02-10 16:53:51 +11:00
scatterlist.h
seccomp.h
sections.h
semaphore.h
sembuf.h
serial.h
setup.h
shmbuf.h
shmparam.h
sigcontext.h
siginfo.h
signal.h
smp.h [PATCH] powerpc: Allow non zero boot cpuids 2006-03-27 14:48:48 +11:00
smu.h [PATCH] powerpc: Thermal control for dual core G5s 2006-02-07 22:05:14 -08:00
socket.h
sockios.h
sparsemem.h
spinlock.h
spinlock_types.h
spu.h [PATCH] powerpc: cell: Add numa id to struct spu 2006-05-01 18:17:46 -07:00
spu_csa.h
sstep.h
stat.h
statfs.h
string.h powerpc: fix strncasecmp prototype 2006-03-25 09:41:40 -08:00
synch.h [PATCH] powerpc: newline for ISYNC_ON_SMP 2006-02-24 14:06:00 +11:00
syscalls.h [PATCH] powerpc: declare arch syscalls in <asm/syscalls.h> 2006-03-27 14:48:22 +11:00
system.h [NET]: Allow skb headroom to be overridden 2006-03-31 02:27:06 -08:00
tce.h
termbits.h
termios.h
thread_info.h powerpc: Use correct sequence for putting CPU into nap mode 2006-04-18 21:49:11 +10:00
time.h powerpc: Implement accurate task and CPU time accounting 2006-02-24 14:05:56 +11:00
timex.h
tlb.h
tlbflush.h
topology.h [PATCH] powerpc: Allow devices to register with numa topology 2006-05-01 18:17:46 -07:00
types.h [PATCH] 2TB files: add blkcnt_t 2006-03-26 08:57:00 -08:00
uaccess.h powerpc: Fix incorrect might_sleep in __get_user/__put_user on kernel addresses 2006-05-03 23:06:46 +10:00
ucontext.h
udbg.h
unaligned.h
uninorth.h
unistd.h [PATCH] powerpc: Wire up *at syscalls 2006-04-28 21:04:59 +10:00
user.h
vdso.h
vdso_datapage.h [PATCH] powerpc: Kill _machine and hard-coded platform numbers 2006-03-28 23:15:54 +11:00
vga.h
vio.h
xmon.h
xor.h