numam-dpdk/lib/librte_eal/linuxapp
Maciej Czekaj c00ae961ff mem: fix crash on hugepage mapping error
In ASLR-enabled system, it is possible that selected
virtual space is occupied by program segments. Therefore,
error path should not blindly unmap all memmory segments
but only those already mapped.

Steps that lead to crash:
1. memeseg 0 in secondary process overlaps with libc.so
2. mmap of /dev/zero fails for virtual space of memseg 0
3. munmap of memseg 0 leads to unmapping libc.so itself
4. app gets SIGSEGV after returning from syscall to libc

Fixes: ea329d7f8e ("mem: fix leak after mapping failure")

Signed-off-by: Maciej Czekaj <maciej.czekaj@caviumnetworks.com>
2016-10-03 16:06:27 +02:00
..
eal mem: fix crash on hugepage mapping error 2016-10-03 16:06:27 +02:00
igb_uio igb_uio: fix possible mmap failure with Linux 4.5 2016-07-10 15:56:54 +02:00
kni kni: fix large stack frame size 2016-09-22 17:46:39 +02:00
xen_dom0 config: remove useless explicit includes of generated header 2016-02-10 22:43:38 +01:00
Makefile config: remove EAL flags for OS environment 2016-03-05 11:09:31 +01:00