Return-Path: Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1754240AbbHMXaV (ORCPT ); Thu, 13 Aug 2015 19:30:21 -0400 Received: from mail-ig0-f176.google.com ([209.85.213.176]:33068 "EHLO mail-ig0-f176.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1752180AbbHMXaU (ORCPT ); Thu, 13 Aug 2015 19:30:20 -0400 MIME-Version: 1.0 In-Reply-To: References: <55CCB510.3060807@redhat.com> <55CD0DAC.9080809@redhat.com> Date: Thu, 13 Aug 2015 16:30:19 -0700 X-Google-Sender-Auth: xLnOeyPVL_qJtBOZI0pj4-qUpVM Message-ID: Subject: Re: [Regression v4.2 ?] 32-bit seccomp-BPF returned errno values wrong in VM? From: Linus Torvalds To: Andy Lutomirski Cc: Kees Cook , Denys Vlasenko , David Drysdale , "linux-kernel@vger.kernel.org" , Will Drewry , Ingo Molnar , Alok Kataria , Borislav Petkov , Alexei Starovoitov , Frederic Weisbecker , "H. Peter Anvin" , Oleg Nesterov , Steven Rostedt , X86 ML Content-Type: text/plain; charset=UTF-8 Sender: linux-kernel-owner@vger.kernel.org List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Content-Length: 1277 Lines: 26 On Thu, Aug 13, 2015 at 3:59 PM, Andy Lutomirski wrote: > > Kees, would it be straightforward to rig up the seccomp tests to > automatically test compat? The x86 selftests automatically test both > native and compat, and that might be usable as a model. I did that > because it's extremely easy to regress one and not the other. Note that in this case, the bug was actually _hidden_ by audit (since the audit path would end up reloading %rax, and is why doing "auditctl -a task,never" actually enabled people to see it), so it would also be good to try to make sure that the tests would try both with and without audit involved too. I'm very tired of these bugs, but I guess and hope that your patches to move as much as possible of this to C will actually end up helping in the long run. So while I'm not really looking forward to even _more_ patches to the low-level asm, at least the C rewrite seems more worthwhile than some of the noise that made this all so painful has felt. Linus -- To unsubscribe from this list: send the line "unsubscribe linux-kernel" in the body of a message to majordomo@vger.kernel.org More majordomo info at http://vger.kernel.org/majordomo-info.html Please read the FAQ at http://www.tux.org/lkml/