Received: by 2002:ad5:474a:0:0:0:0:0 with SMTP id i10csp4953335imu; Tue, 15 Jan 2019 08:42:19 -0800 (PST) X-Google-Smtp-Source: ALg8bN4JqAcC3mfJo+BXXu86yotWq7yJHsj4N88OKKPalzq7erT6O2X+/eO5i7TxcURPUoawAv8E X-Received: by 2002:a63:1a4b:: with SMTP id a11mr4627966pgm.254.1547570539562; Tue, 15 Jan 2019 08:42:19 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1547570539; cv=none; d=google.com; s=arc-20160816; b=eY7OqHGvbpVeRpIh0dsv5wD6tO6SxrU6qFWlhm9ermTi9SrEfU7rFSZhk3CKCRdiKs yKgpy1uFw/yP4zaTKvJOIzVudijgw4p3J+523PF9Jed7omQfS8IN8EAdxSBIOwDx97S7 ShPHasjnIJn1DipPZ+H1CYMBQMdXXZKqZT2DhmdGVz+HhIhfg7J7S/tS1q+JLsXQEXnE BX0oPc+kGB3DwPIge8L4CrtTGM/qX2U44FYpWPKi6SVyb5waxsHd7g4Lji7yI4wMeDpX G40CfrtviNi055v1oMDYxP7fG2tDcn51cldu469A8K0S/kJGntOKP7uoeY9eY8/DF/o0 4nlQ== 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=/j2xo8vyz06xg1gQlvQEYwJpD6WHXsDfeyUW+0147bI=; b=tBKuOPJcNocqaHNUBvZO1K4badKbP5of8aaj8Xy9tUIIgYFCT9552CGW3K1PuXmydt S6Y7uhhgySUh5Cu6HgzxlrUfTTMa7I1pYG/96ItlYHU0X6xxs5MWlPpCGzmNdIFj/lEf r/GsgtYe06l2mvjkB5a6EGzS+vaUUT5e/mmJaZ+RptRZ4YmlEPBKXPbhyWPQ0Kfhju0L p1Kx5YSvK1YbPSJ4RtuhqudxO6MhD5Pzp+bxrM5rSLtZUO4SO9d6LAvqsmbmTwXJcm3A lkr6G9NW8IPkTj5vkgKo0KvxtBXi9iHY+F1fWZ/kDxQ2/to4UFnVVNT8qlLoA3kAEU47 m2uQ== 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 19si3699908pgq.215.2019.01.15.08.42.04; Tue, 15 Jan 2019 08:42:19 -0800 (PST) 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 S1730573AbfAOPBn (ORCPT + 99 others); Tue, 15 Jan 2019 10:01:43 -0500 Received: from mail-qk1-f194.google.com ([209.85.222.194]:33389 "EHLO mail-qk1-f194.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1729474AbfAOPBm (ORCPT ); Tue, 15 Jan 2019 10:01:42 -0500 Received: by mail-qk1-f194.google.com with SMTP id d15so1727212qkj.0; Tue, 15 Jan 2019 07:01:41 -0800 (PST) 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=/j2xo8vyz06xg1gQlvQEYwJpD6WHXsDfeyUW+0147bI=; b=XChiI9LVpdP21E9M1BNsF/4opcOvd3RVRf4P0jzJvaaYD3PfScOPTwoLSpaZVZjapk H7drWl6gyidFgDVdRtsKtSLlRHNkr6y0gED/HPE/XVBUHg9cfuXp3d2+QV+L0cdyCdZ/ eP2TUAINwFOV517OKUXtJIksrCi82W2alWItH8OYHyzVU9pdIkX9bEDJQ0CgOiE0ztb+ m0l28O43hGTk2FekD9zKBlzDghMdN07HqbMH1yNvgI5PkEEbfk3gJAg8q41wRBS/I+S0 rWdyGqSYnOvdah3rJB+JqTnU/kIJIzVufHfDWoIbCXI4ltTOslUfOcA16SWLezsnMiQf Puow== X-Gm-Message-State: AJcUukddl6JAB0EAsXSDy6xi7cH5ub8Rvmshvn7te49258faIIaRjZaH 5hCoi7ly0oLN60ugy8s2xVXNDze/xTs+MwTwJd0= X-Received: by 2002:ae9:d8c2:: with SMTP id u185mr2882793qkf.107.1547564501193; Tue, 15 Jan 2019 07:01:41 -0800 (PST) MIME-Version: 1.0 References: <20190110162435.309262-1-arnd@arndb.de> <20190110162435.309262-15-arnd@arndb.de> <87pnsz28k2.fsf@concordia.ellerman.id.au> In-Reply-To: <87pnsz28k2.fsf@concordia.ellerman.id.au> From: Arnd Bergmann Date: Tue, 15 Jan 2019 16:01:24 +0100 Message-ID: Subject: Re: [PATCH 14/15] arch: add split IPC system calls where needed To: Michael Ellerman Cc: y2038 Mailman List , Linux API , Linux Kernel Mailing List , Ivan Kokshaysky , Matt Turner , Russell King - ARM Linux , Catalin Marinas , Will Deacon , Tony Luck , Fenghua Yu , Geert Uytterhoeven , Michal Simek , Paul Burton , Helge Deller , Martin Schwidefsky , Heiko Carstens , Rich Felker , David Miller , Andy Lutomirski , Thomas Gleixner , Ingo Molnar , "H. Peter Anvin" , "the arch/x86 maintainers" , Max Filippov , Firoz Khan , "Eric W . Biederman" , Deepa Dinamani , Dominik Brodowski , Andrew Morton , Davidlohr Bueso , alpha , 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 Mon, Jan 14, 2019 at 4:59 AM Michael Ellerman wrote: > Arnd Bergmann writes: > > arch/m68k/kernel/syscalls/syscall.tbl | 11 +++++++++++ > > arch/mips/kernel/syscalls/syscall_o32.tbl | 11 +++++++++++ > > arch/powerpc/kernel/syscalls/syscall.tbl | 12 ++++++++++++ > > I have some changes I'd like to make to our syscall table that will > clash with this. > > I'll try and send them today. Ok. Are those for 5.0 or 5.1? If they are intended for 5.0, it would be nice for me to have a branch based on 5.0-rc1 that I can put the other patches on top of. > > diff --git a/arch/powerpc/kernel/syscalls/syscall.tbl b/arch/powerpc/kernel/syscalls/syscall.tbl > > index db3bbb8744af..1bffab54ff35 100644 > > --- a/arch/powerpc/kernel/syscalls/syscall.tbl > > +++ b/arch/powerpc/kernel/syscalls/syscall.tbl > > @@ -425,3 +425,15 @@ > > 386 nospu pkey_mprotect sys_pkey_mprotect > > 387 nospu rseq sys_rseq > > 388 nospu io_pgetevents sys_io_pgetevents compat_sys_io_pgetevents > > +# room for arch specific syscalls > > +392 64 semtimedop sys_semtimedop > > +393 common semget sys_semget > > +394 common semctl sys_semctl compat_sys_semctl > > +395 common shmget sys_shmget > > +396 common shmctl sys_shmctl compat_sys_shmctl > > +397 common shmat sys_shmat compat_sys_shmat > > +398 common shmdt sys_shmdt > > +399 common msgget sys_msgget > > +400 common msgsnd sys_msgsnd compat_sys_msgsnd > > +401 common msgrcv sys_msgrcv compat_sys_msgrcv > > +402 common msgctl sys_msgctl compat_sys_msgctl > > We already have a gap at 366-377 from when we tried to add the split IPC > calls a few years back. > > I guess I don't mind leaving that gap and using the common numbers as > you've done here. > > But it would be good to add a comment pointing out that we have room > at 366 for more arch specific syscalls as well. Ah, I missed that. I've added this to my patch now: index 5c0936d862fc..2ddfba536d5f 100644 --- a/arch/powerpc/kernel/syscalls/syscall.tbl +++ b/arch/powerpc/kernel/syscalls/syscall.tbl @@ -460,6 +460,7 @@ 363 spu switch_endian sys_ni_syscall 364 common userfaultfd sys_userfaultfd 365 common membarrier sys_membarrier +# 366-377 originally left for IPC, now unused 378 nospu mlock2 sys_mlock2 379 nospu copy_file_range sys_copy_file_range 380 common preadv2 sys_preadv2 compat_sys_preadv2 Arnd