Groups | Search | Server Info | Keyboard shortcuts | Login | Register [http] [https] [nntp] [nntps]
Groups > linux.kernel > #1206602
| From | David Drysdale <drysdale@google.com> |
|---|---|
| Newsgroups | linux.kernel |
| Subject | [Regression v4.2 ?] 32-bit seccomp-BPF returned errno values wrong in VM? |
| Date | 2015-08-13 10:40 +0200 |
| Message-ID | <pWWdk-6oF-13@gated-at.bofh.it> (permalink) |
| Organization | linux.* mail to news gateway |
Hi folks, I've got an odd regression with the v4.2 rc kernel, and I wondered if anyone else could reproduce it. The problem occurs with a seccomp-bpf filter program that's set up to return an errno value -- an errno of 1 is always returned instead of what's in the filter, plus other oddities (selftest output below). The problem seems to need a combination of circumstances to occur: - The seccomp-bpf userspace program needs to be 32-bit, running against a 64-bit kernel -- I'm testing with seccomp_bpf from tools/testing/selftests/seccomp/, built via 'CFLAGS=-m32 make'. - The kernel needs to be running as a VM guest -- it occurs inside my VMware Fusion host, but not if I run on bare metal. Kees tells me he cannot repro with a kvm guest though. Bisecting indicates that the commit that induces the problem is 3f5159a9221f19b0, "x86/asm/entry/32: Update -ENOSYS handling to match the 64-bit logic", included in all the v4.2-rc* candidates. Apologies if I've just got something odd with my local setup, but the bisection was unequivocal enough that I thought it worth reporting... Thanks, David seccomp_bpf failure outputs: seccomp_bpf.c:533:global.ERRNO_valid:Expected 7 (7) == (*__errno_location ()) (1) seccomp_bpf.c:560:global.ERRNO_zero:Expected 0 (0) == read(0, ((void *)0), 0) (4294967295) seccomp_bpf.c:587:global.ERRNO_capped:Expected 4095 (4095) == (*__errno_location ()) (1) seccomp_bpf.c:905:precedence.errno_is_third:Expected 0 (0) == syscall(20) (4294967295) seccomp_bpf.c:925:precedence.errno_is_third_in_any_order:Expected 0 (0) == syscall(20) (4294967295) -- 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/
Back to linux.kernel | Previous | Next — Next in thread | Find similar | Unroll thread
[Regression v4.2 ?] 32-bit seccomp-BPF returned errno values wrong in VM? David Drysdale <drysdale@google.com> - 2015-08-13 10:40 +0200
Re: [Regression v4.2 ?] 32-bit seccomp-BPF returned errno values wrong in VM? Denys Vlasenko <dvlasenk@redhat.com> - 2015-08-13 17:20 +0200
Re: [Regression v4.2 ?] 32-bit seccomp-BPF returned errno values wrong in VM? David Drysdale <drysdale@google.com> - 2015-08-13 18:30 +0200
Re: [Regression v4.2 ?] 32-bit seccomp-BPF returned errno values wrong in VM? Andy Lutomirski <luto@amacapital.net> - 2015-08-13 19:20 +0200
Re: [Regression v4.2 ?] 32-bit seccomp-BPF returned errno values wrong in VM? David Drysdale <drysdale@google.com> - 2015-08-13 19:50 +0200
Re: [Regression v4.2 ?] 32-bit seccomp-BPF returned errno values wrong in VM? Kees Cook <keescook@chromium.org> - 2015-08-13 20:50 +0200
Re: [Regression v4.2 ?] 32-bit seccomp-BPF returned errno values wrong in VM? Denys Vlasenko <dvlasenk@redhat.com> - 2015-08-13 23:40 +0200
Re: [Regression v4.2 ?] 32-bit seccomp-BPF returned errno values wrong in VM? Andy Lutomirski <luto@amacapital.net> - 2015-08-13 23:50 +0200
Re: [Regression v4.2 ?] 32-bit seccomp-BPF returned errno values wrong in VM? Kees Cook <keescook@chromium.org> - 2015-08-14 01:00 +0200
Re: [Regression v4.2 ?] 32-bit seccomp-BPF returned errno values wrong in VM? Andy Lutomirski <luto@amacapital.net> - 2015-08-14 01:10 +0200
Re: [Regression v4.2 ?] 32-bit seccomp-BPF returned errno values wrong in VM? Kees Cook <keescook@chromium.org> - 2015-08-14 01:20 +0200
Re: [Regression v4.2 ?] 32-bit seccomp-BPF returned errno values wrong in VM? Linus Torvalds <torvalds@linux-foundation.org> - 2015-08-14 01:40 +0200
Re: [Regression v4.2 ?] 32-bit seccomp-BPF returned errno values wrong in VM? Denys Vlasenko <dvlasenk@redhat.com> - 2015-08-14 14:00 +0200
Re: [Regression v4.2 ?] 32-bit seccomp-BPF returned errno values wrong in VM? Andy Lutomirski <luto@amacapital.net> - 2015-08-14 16:30 +0200
Re: [Regression v4.2 ?] 32-bit seccomp-BPF returned errno values wrong in VM? David Drysdale <drysdale@google.com> - 2015-08-14 09:40 +0200
Re: [Regression v4.2 ?] 32-bit seccomp-BPF returned errno values wrong in VM? Linus Torvalds <torvalds@linux-foundation.org> - 2015-08-14 01:00 +0200
Re: [Regression v4.2 ?] 32-bit seccomp-BPF returned errno values wrong in VM? Andy Lutomirski <luto@amacapital.net> - 2015-08-14 01:00 +0200
Re: [Regression v4.2 ?] 32-bit seccomp-BPF returned errno values wrong in VM? Linus Torvalds <torvalds@linux-foundation.org> - 2015-08-14 01:30 +0200
Re: [Regression v4.2 ?] 32-bit seccomp-BPF returned errno values wrong in VM? Linus Torvalds <torvalds@linux-foundation.org> - 2015-08-14 01:00 +0200
Re: [Regression v4.2 ?] 32-bit seccomp-BPF returned errno values wrong in VM? Linus Torvalds <torvalds@linux-foundation.org> - 2015-08-14 00:30 +0200
Re: [Regression v4.2 ?] 32-bit seccomp-BPF returned errno values wrong in VM? Denys Vlasenko <dvlasenk@redhat.com> - 2015-08-14 13:30 +0200
csiph-web