From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S933907AbcKPRtW (ORCPT ); Wed, 16 Nov 2016 12:49:22 -0500 Received: from Galois.linutronix.de ([146.0.238.70]:46785 "EHLO Galois.linutronix.de" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1752097AbcKPRtK (ORCPT ); Wed, 16 Nov 2016 12:49:10 -0500 Date: Wed, 16 Nov 2016 18:46:23 +0100 (CET) From: Thomas Gleixner To: alexander.levin@verizon.com cc: "dvyukov@google.com" , "scientist@fb.com" , "glider@google.com" , "andreyknvl@google.com" , "rostedt@goodmis.org" , "arnd@arndb.de" , "mathieu.desnoyers@efficios.com" , "daniel.vetter@ffwll.ch" , "linux-kernel@vger.kernel.org" , Nicholas Mc Guire Subject: Re: [RFC 0/3] ABI spec - verification In-Reply-To: <1479317803-17220-1-git-send-email-alexander.levin@verizon.com> Message-ID: References: <1479317803-17220-1-git-send-email-alexander.levin@verizon.com> User-Agent: Alpine 2.20 (DEB 67 2015-01-07) MIME-Version: 1.0 Content-Type: text/plain; charset=US-ASCII Sender: linux-kernel-owner@vger.kernel.org List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On Wed, 16 Nov 2016, alexander.levin@verizon.com wrote: Cc'ed Nicholas McGuire > As discussed at plumbers, having a standard spec for the kernel's ABI has > quite a few uses and enough people wanted it to get the ball rolling. > > We agreed that it's desirable to have something that can be used from code > rather than just a spec on paper both for validation and allowing other users > (like fuzzers, userspace libraries, and various userspace tools) to build > on that. > > What we ended up deciding on at plumbers is: > > - I'll do a few kernel bits do demonstrate how we can validate the spec from > the kernel. > - Dmitry Vyukov will provide a way to translate syzkaller's syscall > documentation into something that can be easily used in the kernel and > userspace. > - Various projects will attempt to integrate it to make sure that the > framework works for them. > > Once those bits are done we can focus on getting the spec right, and we'll > have a good way to validate our work both in userspace and in the kernel. > > This patchset is a basic draft of said kernel bits. I mostly want to make > sure that Dmitry and myself are on the same page as to how integration will > look like, but also to open it to criticism and suggestions (bikeshedding). > > > Sasha Levin (3): > abi_spec: basic definitions of constraints, args and syscalls > abi_spec: hooks into syscall to allow pre and post checking > abi_spec: example spec for open(), placeholder for rest of syscalls > > include/linux/syscalls.h | 7 +- > include/uapi/linux/abi_spec.h | 58 ++++++ > kernel/Makefile | 2 + > kernel/abi_spec.c | 456 ++++++++++++++++++++++++++++++++++++++++++ > 4 files changed, 522 insertions(+), 1 deletion(-) > create mode 100644 include/uapi/linux/abi_spec.h > create mode 100644 kernel/abi_spec.c > > -- > 2.7.4 >