linux/include/asm-sparc
Kirill Korotaev 3a45975681 [PATCH] IA64,sparc: local DoS with corrupted ELFs
This prevents cross-region mappings on IA64 and SPARC which could lead
to system crash.  They were correctly trapped for normal mmap() calls,
but not for the kernel internal calls generated by executable loading.

This code just moves the architecture-specific cross-region checks into
an arch-specific "arch_mmap_check()" macro, and defines that for the
architectures that needed it (ia64, sparc and sparc64).

Architectures that don't have any special requirements can just ignore
the new cross-region check, since the mmap() code will just notice on
its own when the macro isn't defined.

Signed-off-by: Pavel Emelianov <xemul@openvz.org>
Signed-off-by: Kirill Korotaev <dev@openvz.org>
Acked-by: David Miller <davem@davemloft.net>
Signed-off-by: Greg Kroah-Hartman <gregkh@suse.de>
[ Cleaned up to not affect architectures that don't need it ]
Signed-off-by: Linus Torvalds <torvalds@osdl.org>
2006-09-08 08:40:46 -07:00
..
a.out.h
apc.h
asi.h
asmmacro.h Don't include linux/config.h from anywhere else in include/ 2006-04-26 12:56:16 +01:00
atomic.h Don't include linux/config.h from anywhere else in include/ 2006-04-26 12:56:16 +01:00
auxio.h
auxvec.h [PATCH] auxiliary vector cleanups 2005-09-07 16:57:21 -07:00
bitext.h
bitops.h [PATCH] bitops: sparc: use generic bitops 2006-03-26 08:57:14 -08:00
bpp.h
bsderrno.h
btfixup.h [PATCH] fix the breakage in sparc headers 2005-10-05 07:33:42 -07:00
bug.h [PATCH] remove all kernel BUGs 2005-05-01 08:59:01 -07:00
bugs.h Don't include linux/config.h from anywhere else in include/ 2006-04-26 12:56:16 +01:00
byteorder.h
cache.h [PATCH] Kill L1_CACHE_SHIFT_MAX 2006-01-08 20:13:39 -08:00
cacheflush.h Don't include linux/config.h from anywhere else in include/ 2006-04-26 12:56:16 +01:00
checksum.h
clock.h
contregs.h
cpudata.h [SPARC]: Try to start getting SMP back into shape. 2006-03-23 22:36:19 -08:00
cputime.h
current.h
cypress.h [SPARC]: "extern inline" doesn't make much sense. 2005-10-03 17:37:02 -07:00
delay.h Don't include linux/config.h from anywhere else in include/ 2006-04-26 12:56:16 +01:00
div64.h
dma-mapping.h Don't include linux/config.h from anywhere else in include/ 2006-04-26 12:56:16 +01:00
dma.h Don't include linux/config.h from anywhere else in include/ 2006-04-26 12:56:16 +01:00
ebus.h [SPARC]: Port of_device layer and make ebus use it. 2006-06-23 23:15:47 -07:00
ecc.h
eeprom.h
elf.h Don't include linux/config.h from anywhere else in include/ 2006-04-26 12:56:16 +01:00
emergency-restart.h [PATCH] Add emergency_restart() 2005-07-26 14:35:41 -07:00
errno.h [PATCH] add EOWNERDEAD and ENOTRECOVERABLE version 2 2005-05-01 08:59:06 -07:00
fbio.h
fcntl.h [PATCH] Clean up struct flock64 definitions 2005-09-07 16:57:38 -07:00
fixmap.h Don't include linux/config.h from anywhere else in include/ 2006-04-26 12:56:16 +01:00
floppy.h [PATCH] irq-flags: SPARC: Use the new IRQF_ constants 2006-07-02 13:58:48 -07:00
futex.h [PATCH] consolidate asm/futex.h 2006-01-08 20:13:39 -08:00
hardirq.h Don't include linux/config.h from anywhere else in include/ 2006-04-26 12:56:16 +01:00
head.h
highmem.h
hw_irq.h
ide.h Don't include linux/config.h from anywhere else in include/ 2006-04-26 12:56:16 +01:00
idprom.h [SPARC]: Clean up idprom header files. 2006-03-20 01:12:08 -08:00
io-unit.h
io.h [SPARC]: Add iomap interfaces. 2006-06-25 23:24:24 -07:00
ioctl.h
ioctls.h
iommu.h [SPARC]: "extern inline" doesn't make much sense. 2005-10-03 17:37:02 -07:00
ipc.h
ipcbuf.h
irq.h [PATCH] adjust handle_IRR_event() return type 2006-06-23 07:43:08 -07:00
jsflash.h
Kbuild Restrict headers exported to userspace for SPARC and SPARC64 2006-06-20 08:34:40 +01:00
kdebug.h [SPARC]: "extern inline" doesn't make much sense. 2005-10-03 17:37:02 -07:00
kgdb.h
kmap_types.h
linkage.h
local.h
machines.h
mbus.h [SPARC]: "extern inline" doesn't make much sense. 2005-10-03 17:37:02 -07:00
mc146818rtc.h
memreg.h [PATCH] sun4c_memerr_reg __iomem annotations 2005-12-15 10:01:29 -08:00
mman.h [PATCH] IA64,sparc: local DoS with corrupted ELFs 2006-09-08 08:40:46 -07:00
mmu_context.h
mmu.h
module.h
mostek.h Don't include linux/config.h from anywhere else in include/ 2006-04-26 12:56:16 +01:00
mpmbox.h
msgbuf.h
msi.h [SPARC]: "extern inline" doesn't make much sense. 2005-10-03 17:37:02 -07:00
mutex.h [PATCH] mutex subsystem, add default include/asm-*/mutex.h files 2006-01-09 15:59:19 -08:00
mxcc.h [SPARC]: "extern inline" doesn't make much sense. 2005-10-03 17:37:02 -07:00
namei.h
obio.h [SPARC]: "extern inline" doesn't make much sense. 2005-10-03 17:37:02 -07:00
of_device.h [SPARC]: sparc32 side of of_device layer IRQ resolution. 2006-06-29 16:37:40 -07:00
openprom.h
openpromio.h
oplib.h [SPARC]: Kill prom_getname, unused and not implemented properly. 2006-07-21 14:17:55 -07:00
page.h Don't include linux/config.h from anywhere else in include/ 2006-04-26 12:56:16 +01:00
param.h
pbm.h [SPARC]: Port sparc64 in-kernel device tree code to sparc32. 2006-06-23 23:15:45 -07:00
pci.h [SPARC]: "extern inline" doesn't make much sense. 2005-10-03 17:37:02 -07:00
pcic.h [PATCH] fix iomem annotations in sparc32 pcic code 2005-12-15 10:01:28 -08:00
pconf.h
percpu.h
perfctr.h
pgalloc.h Don't include linux/config.h from anywhere else in include/ 2006-04-26 12:56:16 +01:00
pgtable.h Don't include linux/config.h from anywhere else in include/ 2006-04-26 12:56:16 +01:00
pgtsrmmu.h [SPARC]: "extern inline" doesn't make much sense. 2005-10-03 17:37:02 -07:00
pgtsun4.h
pgtsun4c.h
poll.h [PATCH] POLLRDHUP/EPOLLRDHUP handling for half-closed devices notifications 2006-03-25 08:22:56 -08:00
posix_types.h
processor.h [SPARC]: "extern inline" doesn't make much sense. 2005-10-03 17:37:02 -07:00
prom.h [SPARC]: Kill interrupt stuff and linux_phandle from device_node. 2006-06-29 16:37:25 -07:00
psr.h [SPARC]: "extern inline" doesn't make much sense. 2005-10-03 17:37:02 -07:00
ptrace.h [PATCH] consolidate sys_ptrace() 2005-11-07 07:53:42 -08:00
reg.h
resource.h
ross.h
rtc.h
sbi.h [SPARC]: "extern inline" doesn't make much sense. 2005-10-03 17:37:02 -07:00
sbus.h [SBUS]: Rewrite and plug into of_device framework. 2006-06-23 23:15:50 -07:00
scatterlist.h
sections.h
semaphore.h [PATCH] semaphore: Remove __MUTEX_INITIALIZER() 2005-10-30 17:37:27 -08:00
sembuf.h
setup.h
sfp-machine.h Don't include linux/config.h from anywhere else in include/ 2006-04-26 12:56:16 +01:00
shmbuf.h
shmparam.h
sigcontext.h
siginfo.h
signal.h [SPARC]: Fix SA_STATIC_ALLOC value. 2006-07-24 22:34:00 -07:00
smp.h Merge master.kernel.org:/pub/scm/linux/kernel/git/davem/sparc-2.6 2006-06-20 17:39:28 -07:00
smpprim.h [SPARC]: "extern inline" doesn't make much sense. 2005-10-03 17:37:02 -07:00
socket.h [AF_UNIX]: Datagram getpeersec 2006-06-29 16:58:06 -07:00
sockios.h
solerrno.h
spinlock_types.h [PATCH] spinlock consolidation 2005-09-10 10:06:21 -07:00
spinlock.h [SPARC]: Add missing rw can_lock macros 2006-06-20 00:35:13 -07:00
stat.h
statfs.h
string.h
sun4paddr.h
sun4prom.h
sunbpp.h
svr4.h
swift.h
sysen.h
system.h [PATCH] remove set_wmb - arch removal 2006-07-14 21:56:14 -07:00
termbits.h
termios.h [SPARC]: remove duplicate TIOCPKT_ definitions 2005-11-07 14:10:42 -08:00
thread_info.h [SPARC]: Add support for *at(), ppoll, and pselect syscalls. 2006-01-19 02:42:49 -08:00
timer.h Don't include linux/config.h from anywhere else in include/ 2006-04-26 12:56:16 +01:00
timex.h
tlb.h
tlbflush.h Don't include linux/config.h from anywhere else in include/ 2006-04-26 12:56:16 +01:00
topology.h
traps.h [SPARC]: "extern inline" doesn't make much sense. 2005-10-03 17:37:02 -07:00
tsunami.h
turbosparc.h
types.h [PATCH] sab: consolidate kmem_bufctl_t 2005-09-05 00:05:48 -07:00
uaccess.h [SPARC]: Kill off these __put_user_ret things. 2006-03-20 01:13:15 -08:00
unaligned.h
unistd.h Merge branch 'master' of git://git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux-2.6 2006-05-24 09:22:21 +01:00
user.h
vac-ops.h Don't include linux/config.h from anywhere else in include/ 2006-04-26 12:56:16 +01:00
vaddrs.h
vfc_ioctls.h
vga.h [PATCH] sparc32 vga support 2006-04-11 06:18:54 -07:00
viking.h
winmacro.h Don't include linux/config.h from anywhere else in include/ 2006-04-26 12:56:16 +01:00
xor.h