From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1753469AbbHNHdZ (ORCPT ); Fri, 14 Aug 2015 03:33:25 -0400 Received: from mail-vk0-f42.google.com ([209.85.213.42]:33493 "EHLO mail-vk0-f42.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1753133AbbHNHdX (ORCPT ); Fri, 14 Aug 2015 03:33:23 -0400 MIME-Version: 1.0 In-Reply-To: References: <55CCB510.3060807@redhat.com> <55CD0DAC.9080809@redhat.com> From: David Drysdale Date: Fri, 14 Aug 2015 08:33:03 +0100 Message-ID: Subject: Re: [Regression v4.2 ?] 32-bit seccomp-BPF returned errno values wrong in VM? To: Kees Cook Cc: Linus Torvalds , Andy Lutomirski , Denys Vlasenko , "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 On Thu, Aug 13, 2015 at 11:56 PM, Kees Cook wrote: > On Thu, Aug 13, 2015 at 3:54 PM, Linus Torvalds > wrote: >> On Thu, Aug 13, 2015 at 3:49 PM, Linus Torvalds >> wrote: >>> >>> Does the attached patch make sense and work? >> >> Btw, I'm not all that happy with it anyway. >> >> I still think Denys' patch also potentially changed what audit and >> strace see for %rax in the pt_regs to -ENOSYS, which I'm not convinced >> is a good change. >> >> But maybe that three-liner patch fixes the immediate problem that >> David sees. David? > > Your patch fixes it for me. The seccomp compat selftests pass again > with audit enabled. > > -Kees Yep, that patch fixes it for me too.