summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorGleb Smirnoff <glebius@FreeBSD.org>2016-01-11 21:46:37 +0000
committerGleb Smirnoff <glebius@FreeBSD.org>2016-01-11 21:46:37 +0000
commit1bb5bb8aa86d403e9a77072c7aba60fa0908d865 (patch)
tree838bd368f55cd2d31ff78ea55037ffe8b35309e9
parent4e53984277d4bc80d9f5c2576377274b8bd054c9 (diff)
Notes
-rw-r--r--sys/compat/linux/linux_futex.c6
1 files changed, 6 insertions, 0 deletions
diff --git a/sys/compat/linux/linux_futex.c b/sys/compat/linux/linux_futex.c
index 56275d3b80e9..4573f73edf97 100644
--- a/sys/compat/linux/linux_futex.c
+++ b/sys/compat/linux/linux_futex.c
@@ -1100,6 +1100,12 @@ linux_get_robust_list(struct thread *td, struct linux_get_robust_list_args *args
ESRCH);
return (ESRCH);
}
+ if (SV_PROC_ABI(td2->td_proc) != SV_ABI_LINUX) {
+ LIN_SDT_PROBE1(futex, linux_get_robust_list, return,
+ EPERM);
+ PROC_UNLOCK(td2->td_proc);
+ return (EPERM);
+ }
em = em_find(td2);
KASSERT(em != NULL, ("get_robust_list: emuldata notfound.\n"));