freebsd-dev/sys/amd64/linux
Gleb Smirnoff 037f750877 Change linux get_robust_list system call to match actual linux one.
The set_robust_list system call request the kernel to record the head
of the list of robust futexes owned by the calling thread. The head
argument is the list head to record.
The get_robust_list system call should return the head of the robust
list of the thread whose thread id is specified in pid argument.
The list head should be stored in the location pointed to by head
argument.

In contrast, our implemenattion of get_robust_list system call copies
the known portion of memory pointed by recorded in set_robust_list
system call pointer to the head of the robust list to the location
pointed by head argument.

So, it is possible for a local attacker to read portions of kernel
memory, which may result in a privilege escalation.

Submitted by:	mjg
Security:	SA-16:03.linux
2016-01-14 10:13:58 +00:00
..
linux_dummy.c Remove unneeded includes of opt_kdtrace.h. 2015-11-22 02:01:01 +00:00
linux_genassym.c
linux_ipc64.h
linux_locore.s Being exported through vdso the note.Linux section used by glibc 2015-05-24 16:25:44 +00:00
linux_machdep.c Fixup the build after r284215. 2015-06-10 12:39:01 +00:00
linux_proto.h Regen for linux32 rename and linux64 systrace. 2015-10-22 21:33:37 +00:00
linux_support.s Futex is an aligned 32-bit integer. Use the proper instruction and 2015-06-08 17:39:25 +00:00
linux_syscall.h Regen for linux32 rename and linux64 systrace. 2015-10-22 21:33:37 +00:00
linux_syscalls.c Regen for linux32 rename and linux64 systrace. 2015-10-22 21:33:37 +00:00
linux_sysent.c Regen for linux32 rename and linux64 systrace. 2015-10-22 21:33:37 +00:00
linux_systrace_args.c Regen for linux32 rename and linux64 systrace. 2015-10-22 21:33:37 +00:00
linux_sysvec.c Implement vsyscall hack. Prior to 2.13 glibc uses vsyscall 2016-01-09 20:18:53 +00:00
linux_vdso.lds.s
linux.h Reduce duplication between MD Linux code by moving msg related 2015-05-24 18:03:14 +00:00
Makefile
syscalls.conf
syscalls.master Change linux get_robust_list system call to match actual linux one. 2016-01-14 10:13:58 +00:00