]> git.baikalelectronics.ru Git - kernel.git/commit
um/ptrace: Fix the syscall_trace_leave call
authorMickaël Salaün <mic@digikod.net>
Mon, 1 Aug 2016 21:01:55 +0000 (23:01 +0200)
committerKees Cook <keescook@chromium.org>
Wed, 7 Sep 2016 16:25:04 +0000 (09:25 -0700)
commit1d8606f87a228ac1a097ec41b57e8950b01f2bbc
treec3c9dae3adfeee873a083db969bcfa2e700abbd2
parent343f79d211a8ef872b23d57cfee41b2222de9c28
um/ptrace: Fix the syscall_trace_leave call

Keep the same semantic as before the commit 2b61c3fc84d5: deallocate
audit context and fake a proper syscall exit.

This fix a kernel panic triggered by the seccomp_bpf test:
> [ RUN      ] global.ERRNO_valid
> BUG: failure at kernel/auditsc.c:1504/__audit_syscall_entry()!
> Kernel panic - not syncing: BUG!

Fixes: 2b61c3fc84d5 ("um/ptrace: run seccomp after ptrace")
Signed-off-by: Mickaël Salaün <mic@digikod.net>
Acked-by: Kees Cook <keescook@chromium.org>
Cc: Jeff Dike <jdike@addtoit.com>
Cc: Richard Weinberger <richard@nod.at>
Cc: James Morris <jmorris@namei.org>
Cc: user-mode-linux-devel@lists.sourceforge.net
Signed-off-by: James Morris <james.l.morris@oracle.com>
Signed-off-by: Kees Cook <keescook@chromium.org>
arch/um/kernel/skas/syscall.c