Received: by 2002:a25:4158:0:0:0:0:0 with SMTP id o85csp669302yba; Sun, 31 Mar 2019 09:31:07 -0700 (PDT) X-Google-Smtp-Source: APXvYqxSgXYySnlR2gORI6b+4xQgqPDxwb+TUvEg7tANXCx7ZXlju9Ox75DusyPMqdaqUVX0mjzQ X-Received: by 2002:a63:4241:: with SMTP id p62mr39370443pga.379.1554049867359; Sun, 31 Mar 2019 09:31:07 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1554049867; cv=none; d=google.com; s=arc-20160816; b=rmoobnFzx2n4v5RpZUBuEo3JhtJ/lH1NK+Eru0AzbC8DDoUWApwbvX/MHjnF/tu0+B 820hMwmOQ7u8ezXA4W+kJRD+Tpmg+idbxEPRwY+MOa3zbb0pqaWgpHoC9S3EwTXZ2tSL wm6eBSXeKfnsKh+IBHViUMxTfX2N1xuH9XkoLop1WC2uKxz29qMfBLobKZwVfthzYTkT oj4y7xgnu0bj+YliP2kIp6lnbhykSVruVCVXB70FxcLv2eVDxZRG0NhTpvbOntKU8vl9 iSyw9ESZ6XURl5YSUYWTKQsap+vAGOFnOhfmVIM3zqqqI9R5RkDuO9/BrVq9jzjGksp4 vYOw== 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=oSXHQsG3KOPg9vd5T+GCmFoc7Xf14JcZz1oGhypQBKw=; b=sIhM/ZkFoUTkvYZVazGwxjQYBAY3K87FvyIJoOhjEK4qcOKpJMvDs7P8lcB3EkagfL 67AJgH4v4tXRiau5xyBc/tXmjaREqw/hN0Zxo85ZRLQ8+f6xyQ5zcKINHkiPsngxAuT5 8wIrvJQa8tglxEOyBbj02sN+osBn0wBWbCERfcprCcE66yXXjfsxaYQWTxvmTzxSqL89 v3H3nH8cMmTlecUccMo0JtNenlwzSGy/roPKDgPHOrkDzUa8Xdiy46KqJXzcIj7tNA3Q Hrph91OJZ5eQPHAmEbDOSMxdHfgRrexanF7p9vS1psaBJzuj78TbwKVuDnp701nfE4Ea l4SA== 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 m1si6158310pgh.8.2019.03.31.09.30.44; Sun, 31 Mar 2019 09:31:07 -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 S1731335AbfCaQ2h (ORCPT + 99 others); Sun, 31 Mar 2019 12:28:37 -0400 Received: from mail-qt1-f194.google.com ([209.85.160.194]:36460 "EHLO mail-qt1-f194.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1731294AbfCaQ2g (ORCPT ); Sun, 31 Mar 2019 12:28:36 -0400 Received: by mail-qt1-f194.google.com with SMTP id s15so8128673qtn.3; Sun, 31 Mar 2019 09:28:35 -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=oSXHQsG3KOPg9vd5T+GCmFoc7Xf14JcZz1oGhypQBKw=; b=FywmAgQKw8GKWCgfqRIOXVZiz+XCIScercJxXlt4V7CB/ckYPgspOvIZBnestkgAoZ tlQ7eLDopNYdD2G3QKldeEvAsOTVXjVyI2s64F4k66jMI5vUPDt0olqTnFTN8jnKVy66 bi2eEg09BDzOBI5fD1LNSU6CgP/6ApsIl5BJy6XDbHsKWR94xBf/4sURAmJ/Rszqj+Cl 8ZJrnv7J7y0cVaB1HqzeBiswcBrU5tb0PuEGecjS8Ljdx+c3z/06cyxJ5wDe72s5U5H1 3FyTly8wXfx4Y02tsEHmRozyFLQRQ0l0nKd877n73gx//Eo9Tb+OBEzU3vPLmBG/4Xp+ o2fA== X-Gm-Message-State: APjAAAWGv29s3F0kbEr0MwXsrM6rHTiI4Ki8dw55BD/8AuVGXDlpLSmi AJQ0C5Itoq8vq15EICHRjOkPaUtT+JsTegKIfjM= X-Received: by 2002:ac8:3fbc:: with SMTP id d57mr47482205qtk.96.1554049715359; Sun, 31 Mar 2019 09:28:35 -0700 (PDT) MIME-Version: 1.0 References: <20190325143521.34928-1-arnd@arndb.de> <20190325144737.703921-1-arnd@arndb.de> <87y34vl6ji.fsf@concordia.ellerman.id.au> In-Reply-To: <87y34vl6ji.fsf@concordia.ellerman.id.au> From: Arnd Bergmann Date: Mon, 1 Apr 2019 00:28:18 +0800 Message-ID: Subject: Re: [PATCH 2/2] arch: add pidfd and io_uring syscalls everywhere To: Michael Ellerman Cc: Andrew Morton , Richard Henderson , Ivan Kokshaysky , Matt Turner , Russell King , Catalin Marinas , Will Deacon , Tony Luck , Fenghua Yu , Geert Uytterhoeven , Michal Simek , Ralf Baechle , Paul Burton , James Hogan , "James E . J . Bottomley" , Helge Deller , Benjamin Herrenschmidt , Paul Mackerras , Martin Schwidefsky , Heiko Carstens , Rich Felker , "David S . Miller" , Max Filippov , Firoz Khan , alpha , Linux Kernel Mailing List , Linux ARM , linux-ia64@vger.kernel.org, linux-m68k , linux-mips@vger.kernel.org, Parisc List , linuxppc-dev , linux-s390 , Linux-sh list , sparclinux 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 Sun, Mar 31, 2019 at 5:47 PM Michael Ellerman wrote: > > Arnd Bergmann writes: > > Add the io_uring and pidfd_send_signal system calls to all architectures. > > > > These system calls are designed to handle both native and compat tasks, > > so all entries are the same across architectures, only arm-compat and > > the generic tale still use an old format. > > > > Signed-off-by: Arnd Bergmann > > --- > > arch/alpha/kernel/syscalls/syscall.tbl | 4 ++++ > > arch/arm/tools/syscall.tbl | 4 ++++ > > arch/arm64/include/asm/unistd.h | 2 +- > > arch/arm64/include/asm/unistd32.h | 8 ++++++++ > > arch/ia64/kernel/syscalls/syscall.tbl | 4 ++++ > > arch/m68k/kernel/syscalls/syscall.tbl | 4 ++++ > > arch/microblaze/kernel/syscalls/syscall.tbl | 4 ++++ > > arch/mips/kernel/syscalls/syscall_n32.tbl | 4 ++++ > > arch/mips/kernel/syscalls/syscall_n64.tbl | 4 ++++ > > arch/mips/kernel/syscalls/syscall_o32.tbl | 4 ++++ > > arch/parisc/kernel/syscalls/syscall.tbl | 4 ++++ > > arch/powerpc/kernel/syscalls/syscall.tbl | 4 ++++ > > Have you done any testing? > > I'd rather not wire up syscalls that have never been tested at all on > powerpc. No, I have not. I did review the system calls carefully and added the first patch to fix the bug on x86 compat mode before adding the same bug on the other compat architectures though ;-) Generally, my feeling is that adding system calls is not fundamentally different from adding other ABIs, and we should really do it at the same time across all architectures, rather than waiting for each maintainer to get around to reviewing and testing the new calls first. This is not a problem on powerpc, but a lot of other architectures are less active, which is how we have always ended up with different sets of system calls across architectures. The problem here is that this makes it harder for the C library to know when a system call is guaranteed to be available. glibc still needs a feature test for newly added syscalls to see if they are working (they might be backported to an older kernel, or disabled), but whenever the minimum kernel version is increased, it makes sense to drop those checks and assume non-optional system calls will work if they were part of that minimum version. In the future, I'd hope that any new system calls get added right away on all architectures when they land (it was a bit tricky this time, because I still did a bunch of reworks that conflicted with the new calls). Bugs will happen of course, but I think adding them sooner makes it more likely to catch those bugs early on so we have a chance to fix them properly, and need fewer arch specific workarounds (ideally none) for system calls. Arnd