Received: by 2002:ac0:a5a7:0:0:0:0:0 with SMTP id m36-v6csp2383269imm; Mon, 16 Jul 2018 07:10:42 -0700 (PDT) X-Google-Smtp-Source: AAOMgpdbfFtZEduqGW5R3gruYA2e0ktlIoFu9wMVkYsn6oRmSag8bkibJFMAp59muCieRf4LuvM7 X-Received: by 2002:a63:f953:: with SMTP id q19-v6mr4716297pgk.292.1531750242373; Mon, 16 Jul 2018 07:10:42 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1531750242; cv=none; d=google.com; s=arc-20160816; b=aoGwBjQt8qCxJMfDB4pD1MF3oRZFXVZsq6auiM1sqwc6NJPiYyna6EYGXac3ckWHh7 UCow+pnWJKJGrZn+9NyTblOdnp0xVtkadz+SgVRd7o7X2ZwPWYZkgtm7WGR8ZAZL3tkQ 0xf7IK+mI9STm4VFHnNfjA+aMjPqspUP5wFDmQCO1TE8J8N+p5fE7rjEculUhd7PsHW5 /m9LxHSEbPInDyPW7o2i4tw944AkgbjEOc+F7zQZ9taOIzPBd0GY0+UxoMguAAuwMVhW Kq71qlp5PCjD7lcsUWXdtef4YJI84kHPlpk9Ynd5cAey2ULelPtVpcQxWKSib8kaBrHa qgjQ== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:cc:to:subject:message-id:date:from :references:in-reply-to:mime-version:dkim-signature :arc-authentication-results; bh=ZaAWHOpu7THAehIsI+L+7MYGdelx6lzUlWrSr3HQaWw=; b=U9wSeHPoUaGKbsMWEaN6uqFhrLkBdMGXjzdRP733ZVRtdTrQ5xQsg/Fzq5/UN5AtwP 8SkXbjlhUD0eKfieSDzlqY88b0SXZZWUdSB+XfsP0roKUn79VdjV8jPRkvBFNVyNM/e2 JkzFc4iH7K3c/cW5eO4jLSi+T8WDPJ2g0wEf2I9YE8utvP797jFm+edyYdRhtAYq3Ace fY+Qdbd5JgZ/x64eezy3yb3h6ccgsENgy9LTA82NOoXCGZ5qB/vDmeqz1WHkC7ZaRbBr 3Ixwf/uZVjBwSvnwVm5f1ZHjp+QUWhe5nn94KNYsw6OvjaPyj/l8jREJB1hPQdsAdvLr FQrA== ARC-Authentication-Results: i=1; mx.google.com; dkim=fail header.i=@gmail.com header.s=20161025 header.b=pWYGLJvz; spf=pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Return-Path: Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id t7-v6si2547810pfh.3.2018.07.16.07.10.27; Mon, 16 Jul 2018 07:10:42 -0700 (PDT) Received-SPF: pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) client-ip=209.132.180.67; Authentication-Results: mx.google.com; dkim=fail header.i=@gmail.com header.s=20161025 header.b=pWYGLJvz; spf=pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1728719AbeGPOgz (ORCPT + 99 others); Mon, 16 Jul 2018 10:36:55 -0400 Received: from mail-lf0-f65.google.com ([209.85.215.65]:38174 "EHLO mail-lf0-f65.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1727297AbeGPOgz (ORCPT ); Mon, 16 Jul 2018 10:36:55 -0400 Received: by mail-lf0-f65.google.com with SMTP id a4-v6so32344420lff.5; Mon, 16 Jul 2018 07:09:17 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20161025; h=mime-version:sender:in-reply-to:references:from:date:message-id :subject:to:cc; bh=ZaAWHOpu7THAehIsI+L+7MYGdelx6lzUlWrSr3HQaWw=; b=pWYGLJvzwU2xfEN1LaqXyT9zQnv/KcNwyDG6rtGAjKAdyrRcQ8deic1TXcdKAi2deN IA2XY1fqxnFmTo+n3oMpycRNIh0XviIAUWd1cR7EFduR9rz16mJPvpvUu0OE08JRyC9J 1UqQvGo+VffuTH9T008/bB6PO9t0YS2MsDYbvC+pRVCDYVPHeALR5dacGeIGTkY1ouNj pl75Z14zXmfVO8J6+tsbXthm8gnYQrdvFg1aRPIfvI5UWSzlSFhER8US1n17E8Brm1Ga Xo3QW6/e/0O5+i1zqNrHXdhMffiNBH8zJGVibr0zJIkygrgr1iRuu5JlTv6xbSs/y2EG bInQ== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:mime-version:sender:in-reply-to:references:from :date:message-id:subject:to:cc; bh=ZaAWHOpu7THAehIsI+L+7MYGdelx6lzUlWrSr3HQaWw=; b=mWomrx3Md3ZazzO5qYNLedm51/LM30FWh99b36bvA9CQn7c6GUSyednObbXq2L1kim VujjUTIcAvVDTpUEZ49GvFndPIjkjbqbpDTUzD0SzNCBRaZi54BTcDkry6EjEFhZb0BM Y6d5CJVX8zTI1OXUo1WRo5mlmnrQsofZKv1LGmnAdPaUbDk11v/BCsVJbRk2dSVEY7R8 SBR8jrCO1qeWr5qmujcFoRQANcEXOuQbx/Ro6hVNWSn+B1rg1sf9iiNePWSlSNlpYpZm kws60E/CwXCk+O0CZ5+syvpXaNVoUfQ9ge/1PCKFeQoQiR0MR/GOKSaRA70SDp9nnzNz dtBQ== X-Gm-Message-State: AOUpUlHZIbQzrSSY6WrpXU/K8a+YCJ+DhKP4MGzDX4dNdRZMgOXn9FIN 8C0ZSHm97tWgvWTbfYoQbmzWqT3Cvj1oy3LHwWA= X-Received: by 2002:a19:ea5c:: with SMTP id i89-v6mr11397217lfh.19.1531750156439; Mon, 16 Jul 2018 07:09:16 -0700 (PDT) MIME-Version: 1.0 Received: by 2002:a2e:41c1:0:0:0:0:0 with HTTP; Mon, 16 Jul 2018 07:09:15 -0700 (PDT) In-Reply-To: <1531736638-15294-1-git-send-email-firoz.khan@linaro.org> References: <1531736638-15294-1-git-send-email-firoz.khan@linaro.org> From: Arnd Bergmann Date: Mon, 16 Jul 2018 16:09:15 +0200 X-Google-Sender-Auth: QAu4Fv8gfcCr-MJXssMyb2A8I-g Message-ID: Subject: Re: [PATCH 0/6] System call table generation support To: Firoz Khan Cc: linux-alpha@vger.kernel.org, Richard Henderson , Ivan Kokshaysky , Matt Turner , y2038 Mailman List , Linux Kernel Mailing List , linux-arch , Deepa Dinamani , Marcin Juszkiewicz Content-Type: text/plain; charset="UTF-8" Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On Mon, Jul 16, 2018 at 12:23 PM, Firoz Khan wrote: > The goal of this patch series is to easily add/modify/delete a > system call by changing entry in syscall.tbl file. No need > to manually edit many files. > > The another goal of this patch series is to to unify the system > call implementation across all the architectures. ARM, s390 and > x86 architecuture does have the similar support. I leverage their > implementation to come up with a generic solution. > > I have done the same support for work for ia64, m68k, microblaze, > mips, parisc, powerpc, sh, sparc, and xtensa. But I started sending > the patch for one architecuture for review. Below mentioned git > repository contains more details. > Git repo:- https://github.com/frzkhn/system_call_table_generator/ > > Finally, this is the ground work for solving the Y2038 issue. We > need to change two dozen of system calls to solve Y2038 issue. So > this implementation will help to easily modify from existing system > call to Y2038 compatible system calls. Thanks a lot Firoz for getting this started! (adding Marcin to Cc) I think doing this for all architectures will help in a number of ways. As we need to do a relatively complex conversion for the system calls for y2038 support (changing old calls into compat ones, and adding the new ones at the end), this will give us some confidence. I also hope that this makes scripting easier when we can check which calls are implemented on which architecture, and maybe get to a common baseline again by adding the missing calls on all architectures that are rarely updated, now that we have thrown out the architectures that were simply unmaintained. (looking at the syscall table used to be a good way to see how well maintained an architecture is). Once the y2038 calls are added, glibc and others will have to set a new minimum version of kernel headers (e.g. changing from linux-3.2 to 4.20) to get the new calls, and that at that time, it would be great to have all the recently added calls available on all architectures, so a future glibc version that takes linux-4.20 as the minimum runtime version doesn't have to emulate those calls through older ones. In particular, this would be helpful for the new mount() API and the rseq() call that have recently been added. We might run into a few problems on architectures while we transition to generated tables at the same as as adding new calls, we'll have to see how to deal with that. Arnd