Received: by 2002:ac0:a582:0:0:0:0:0 with SMTP id m2-v6csp1152937imm; Fri, 12 Oct 2018 12:43:17 -0700 (PDT) X-Google-Smtp-Source: ACcGV62Sv1fv7RS5Ex0xl7Yh6Ktytxf4q6l4pJpgMeo1tzEM0Slh7Z7TQ+5MQXxszcbp8JjOR1gY X-Received: by 2002:a63:e943:: with SMTP id q3-v6mr6666414pgj.42.1539373397639; Fri, 12 Oct 2018 12:43:17 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1539373397; cv=none; d=google.com; s=arc-20160816; b=kyCEbgvWz+vsYthQy6GZgnx8fwhtX4XjLaRtT+NBT6Wyq8r/gpwkbIbH4azuHqBhLw U7rzZnuiND8ZTiURZSXTDpiSVpzxwKsnrPzbaipVGgnihpnqdZcNq03DZkGrCCFiqOoC A/0Dp2iTd6lm9nzFRHYuc+89vQcH6vHT0stDo941LTqi+cEjsfG/Np4V3ylx8pYdZPko jca2jemuh2pRpSjj9L6xkc6trM/0nx6pUTeEzy9Cry3oXzrqNIpsbi+1lXpAJGIt7Nec C5ENgrT9diPEKEWbkSx/lrsF82D5EPJPqAHCzCxtdPcupgOipq339+W/noynNsNkJczA aYcw== 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 :in-reply-to:references:mime-version; bh=+eOPKU0eRu/C8Nhwd98PT6Af0SYY7c2+X+f7G2/L1Ls=; b=zwRcHm6+R1Cs5PJ0DhLiaQEKyZ+v5YWfmdB8/Yy10WUe7TCtx0hoi1p1Iha4k3wbDf ClvgRWKUY4oo6lbSdINMq1MzdAoiSP0XEVG4Wfm719ZOCzbpA0LUJdhN1Chup7B2x2Af lwlBDxZ6lM/wEKwNJgUI2xMWQWmpBIjQa0OW5b6EFabTAaDYovLRhgL6loHTE0xRv+YG cm5bDNY2B1BlLXeFYf+K7Qz8/Uc2Zir7K8+mC9g9OoaUB18eAVKidrvkWRubfm2UrJPO 4CPCJkMnF68fBuQDjenMSSErh0Z0MWHhIHZP1Tvwfqnc2YUkmrV8D36g1AjI08TA708q TT7Q== ARC-Authentication-Results: i=1; mx.google.com; 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 v67-v6si2186911pfk.264.2018.10.12.12.43.02; Fri, 12 Oct 2018 12:43:17 -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; 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 S1726896AbeJMDPC (ORCPT + 99 others); Fri, 12 Oct 2018 23:15:02 -0400 Received: from mail-qt1-f194.google.com ([209.85.160.194]:37683 "EHLO mail-qt1-f194.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1725935AbeJMDPC (ORCPT ); Fri, 12 Oct 2018 23:15:02 -0400 Received: by mail-qt1-f194.google.com with SMTP id d14-v6so15085476qto.4; Fri, 12 Oct 2018 12:40:58 -0700 (PDT) X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:mime-version:references:in-reply-to:from:date :message-id:subject:to:cc; bh=+eOPKU0eRu/C8Nhwd98PT6Af0SYY7c2+X+f7G2/L1Ls=; b=fQ1MuwXIjUSNZ0DE5cRuDoODi2aVwZkjE++6+YX4irpGwwfUaWvBv9gB8jYjAHOAqP wqgdep9OPigDv/R45ASjezRLZcfvj2QEVJ+EsYzQP3V/RKczTiUW+jB9Np8fI6OaZqhL 6i2x8PP9VWVcG1XTy3VxQDHqTLO7r76hXBNLJnMp9USWKTyWBrstd/2wyv4GIKKC0ClE +GgS+myVllITJIL7qJMOIY/28C9zDshkBF67laHWGvDi6gx9UVKb0QsnPgA1w0WX3hDG fl2hiI66yMvTitlBhigaAf8soZQaNKj7vFubad6EWnsxpYFShNi+pqs4UtfKOE8Y6JZh FJqQ== X-Gm-Message-State: ABuFfojaNZpFB6kkrgT6PAPGAukQ2/n8jrlcrBzg2yiiKb80rfUV15UM jEBSwuCJ98F0c+6PFvmwbUyZKmdGdjB4bIXNj0U= X-Received: by 2002:ac8:1d11:: with SMTP id d17-v6mr6877845qtl.343.1539373258267; Fri, 12 Oct 2018 12:40:58 -0700 (PDT) MIME-Version: 1.0 References: <1539231895-4118-1-git-send-email-firoz.khan@linaro.org> <3908561D78D1C84285E8C5FCA982C28F7D40F9DD@ORSMSX107.amr.corp.intel.com> <3908561D78D1C84285E8C5FCA982C28F7D410C05@ORSMSX107.amr.corp.intel.com> In-Reply-To: <3908561D78D1C84285E8C5FCA982C28F7D410C05@ORSMSX107.amr.corp.intel.com> From: Arnd Bergmann Date: Fri, 12 Oct 2018 21:40:41 +0200 Message-ID: Subject: Re: [PATCH v3 0/7] ia64: system call table generation support To: Tony Luck Cc: Firoz Khan , linux-ia64@vger.kernel.org, Fenghua Yu , Thomas Gleixner , gregkh , Philippe Ombredanne , Kate Stewart , 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 Fri, Oct 12, 2018 at 6:12 PM Luck, Tony wrote: > > > I suspect the offset logic in the system call generation script had a bug. That > > I fixed it in this patch series. > > > > Arnd and Eugene had shared few comments on adding new system call entry in the > > table and some other things. Appreciate if you can review this patch > > series so I can > > finalize system call table implementation for ia64 architecture. > > The net effect of these is just to make it easier to add new system calls. Just > edit the table, instead of editing entry.S and unistd.h picking the next number > (and remembering to increase the NR_syscalls). Right? The driving factor here is the addition of the new y2038 syscalls for 32-bit architectures that we want to add everywhere at the same time. ia64 and alpha are obviously not affected by this as they are 64-bit only, but to do it right, we should do all architectures together. Another point is overall maintainability: it is very time-consuming and error-prone to find out which architectures in which kernel version support a specific system call or don't support it. Having a consistent way to work on the tables should make this is a simple 'git grep'. > I'm currently baffled at which linker magic makes the unsupported system > calls alias to sys_ni_syscall. This is the same method that x86, arm, and s390 have been using for a while, by sorting the numbers and filling in the missing ones in the script. > I'm also uncertain whether allocating system call numbers and creating > entry points for all the unsupported syscalls is the right thing to do. Might > that puzzle and frustrate folks whose applications build, but then fail at > run-time with -ENOSYS. Again, we want this to be handled consistently across architectures more than anything. At the moment, we have some architectures that simply assign a number for each syscall added to x86, while others don't. Similarly, some architectures drop the entries from unistd.h if a syscall gets removed from the kernel, and others keep them. I care less about which way we decide to go here, but I want it to be done the same way for all architectures. Arnd