Return-Path: Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1754744AbcKUPSJ (ORCPT ); Mon, 21 Nov 2016 10:18:09 -0500 Received: from mail-wm0-f44.google.com ([74.125.82.44]:34863 "EHLO mail-wm0-f44.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1754079AbcKUPSF (ORCPT ); Mon, 21 Nov 2016 10:18:05 -0500 MIME-Version: 1.0 In-Reply-To: References: From: Dmitry Vyukov Date: Mon, 21 Nov 2016 16:17:43 +0100 Message-ID: Subject: Re: Formal description of system call interface To: Andy Lutomirski Cc: Linux API , LKML , Michael Kerrisk , Thomas Gleixner , Sasha Levin , Mathieu Desnoyers , scientist@fb.com, Steven Rostedt , Arnd Bergmann , "Carlos O'Donell" , syzkaller , Kostya Serebryany , Mike Frysinger , Dave Jones , Tavis Ormandy 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: 1214 Lines: 30 On Fri, Nov 11, 2016 at 6:10 PM, Andy Lutomirski wrote: > On Sun, Nov 6, 2016 at 2:39 PM, Dmitry Vyukov wrote: >> Hello, >> >> This is notes from the discussion we had at Linux Plumbers this week >> regarding providing a formal description of system calls (user API). >> >> The idea come up in the context of syzkaller, syscall fuzzer, which >> has descriptions for 1000+ syscalls mostly concentrating on types of >> arguments and return values. However, problems are that a small group >> of people can't write descriptions for all syscalls; can't keep them >> up-to-date and doesn't have necessary domain expertise to do correct >> descriptions in some cases. >> >> We identified a surprisingly large number of potential users for such >> descriptions: > > Let me add one more: consolidation of all the incompatible arch > syscall tables. A sufficiently descriptive format should be parseable > at build time to generate the syscall tables. Hi Andy, What exactly info do we need for this? Anything that just requires a bit of info per syscall looks like the lowest hanging fruit (as compared to info per every ioctl discrimination, and complete args description).