Re: [PATCH 2/2] seccomp: Make NEW_LISTENER and TSYNC flags exclusive

2019-04-24 Thread James Morris
On Wed, 24 Apr 2019, Kees Cook wrote: > Reported-by: syzbot+b562969adb2e04af3...@syzkaller.appspotmail.com > Fixes: 6a21cc50f0c7 ("seccomp: add a return code to trap to userspace") > CC: sta...@vger.kernel.org # v5.0+ > Signed-off-by: Tycho Andersen > Signed-off-by: Kees Cook Acked-by: James

[PATCH 2/2] seccomp: Make NEW_LISTENER and TSYNC flags exclusive

2019-04-24 Thread Kees Cook
From: Tycho Andersen As the comment notes, the return codes for TSYNC and NEW_LISTENER conflict, because they both return positive values, one in the case of success and one in the case of error. So, let's disallow both of these flags together. While this is technically a userspace break, all