From patchwork Wed Apr 25 16:02:54 2018 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Arnd Bergmann X-Patchwork-Id: 134347 Delivered-To: patch@linaro.org Received: by 10.46.151.6 with SMTP id r6csp1049782lji; Wed, 25 Apr 2018 09:04:27 -0700 (PDT) X-Google-Smtp-Source: AIpwx4+VcdFaI+NZG3dHaVJHdOEwRX6c8HuoJ1CEkWcaZWa1J+avBfMFEvDNRf6pe30CUeNyyefJ X-Received: by 10.98.81.197 with SMTP id f188mr28361818pfb.136.1524672267621; Wed, 25 Apr 2018 09:04:27 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1524672267; cv=none; d=google.com; s=arc-20160816; b=kWc6b0o7YbGh7xilp2NIBikdH1Zp/1bEtzjgpsXX2nhAY5wTesqtgFvfUZESADIARK DNBpNz+CCGVjnC1H/RgEJqzTztZ0t3rxZl1AloxfBlFtBadR4uacuWQPTJCRW1WcC3CN YK3lkTiqWoqJb/AojI5Ut8h8TMUssA0Uc4kWG0DWKIGd6bDmP3fBLgd1rwJ4w8l9T1g1 yzDO1kFJ1THz3DHUFKZT345+ehq16jbe+xELbmC1G6OSefAvdKzbQrkKjSV3F1J485Gw YSrcfdVAcB/UAAqCKQxKyC0drBWFROr5Nk6svdmFW18L0Voniz9dmi/8DBCm8Whh15Pg xBTg== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:message-id:date:subject:cc:to:from :arc-authentication-results; bh=sSxfdAOvAKEaS96PstlKBHuFfW3VordsMCxxl6vofZ0=; b=038shCjYEGC8A1CRnNQZP7lvvzlES9i5hDStzCqEyNljxn48GWdav7RJJ54qke92A6 RDKjVc6GowNho9kIupFztf5hav0id1UaIuP1ZLOwcAJ0goadMuIbRLtxArc6a70T0pPs 0GAqUb/cz10qdWLOc7yfWx0KwdkB1KN9iWUeGROkhMzAH9rzae/rCxLcEidSa7q22AG1 1IbZSteVFvmyzi0Vqo5bSblGCZmP29/d5ErUtYU3yFtL/aRcaEPTnuNGQRLGSq5XLZyF KMIICkUXqg2C4IgjiHEYf6P/7Pyjp4xhIaMflpMpkiuylsfMc49Zei2ZGV38I2uueffy n0Ag== ARC-Authentication-Results: i=1; mx.google.com; spf=pass (google.com: best guess record for domain of netdev-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=netdev-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 g14-v6si10617873plj.146.2018.04.25.09.04.27; Wed, 25 Apr 2018 09:04:27 -0700 (PDT) Received-SPF: pass (google.com: best guess record for domain of netdev-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 netdev-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=netdev-owner@vger.kernel.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1755358AbeDYQEP (ORCPT + 9 others); Wed, 25 Apr 2018 12:04:15 -0400 Received: from mout.kundenserver.de ([217.72.192.74]:40097 "EHLO mout.kundenserver.de" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1755062AbeDYQEL (ORCPT ); Wed, 25 Apr 2018 12:04:11 -0400 Received: from wuerfel.lan ([95.208.111.237]) by mrelayeu.kundenserver.de (mreue101 [212.227.15.145]) with ESMTPA (Nemesis) id 0MXHhV-1eqnDG1069-00WDYX; Wed, 25 Apr 2018 18:03:27 +0200 From: Arnd Bergmann To: y2038@lists.linaro.org, linux-kernel@vger.kernel.org Cc: Arnd Bergmann , linux-api@vger.kernel.org, linux-arch@vger.kernel.org, libc-alpha@sourceware.org, tglx@linutronix.de, netdev@vger.kernel.org, deepa.kernel@gmail.com, viro@zeniv.linux.org.uk, albert.aribaud@3adev.fr, Peter Zijlstra , Darren Hart , "Eric W. Biederman" , Dominik Brodowski Subject: [PATCH 00/17] y2038: system calls, part 3 Date: Wed, 25 Apr 2018 18:02:54 +0200 Message-Id: <20180425160311.2718314-1-arnd@arndb.de> X-Mailer: git-send-email 2.9.0 X-Provags-ID: V03:K1:FAn6MoZNyNO2uV53xB+/0nzCoQzS4uZMsbpp/3fRw7ephq9ih/9 iQcf0duq4EY7iHV50rPN853absiaGmgoNQIxgCsijptzjdKisRFYXTBeGsvftVAVza3wEl2 4S8Dsvy1zSkLxf69n6ncgcKML42qlY9XO1A0V9eoJOh9/SZIgIyuTL4jSng8li4AtD+yxQY bCmAsA8CVVyvxrfYVehLw== X-UI-Out-Filterresults: notjunk:1; V01:K0:noi8chGZ/38=:rHMh3g1K1IkDH1pq07W3R8 Q2vzbf1xLuewzTdXHBiXOwQeR5c6TzX/LSw3fIgK+uwr94udYNvERIOWL6+yBVr4JTzCDDflY OqJVK0jaF9UcLOvcTi2C5K1QTqCrfM9UxJf9FXHcyf/RBTGOZHZcgmGRPagjrh23Cr/1qrA1t MSJFPq5IJAhkCbUvBYOQyPh/clhNv2i5ZIq7lrX64iGgRgiKtr3xf+AzZXJiOIqaJLHNd0CdE U6dzefd8gp9JLGRpkt9XL0O64eWmd4v5VR1uoAfZXECOH/JJDu7GwqvAWOcik6yh5OexuiXQy mtcR6ugeo1YlyBYJiAi10FoTC2Cj2qSqvW7eejqkDMf8vdDJP/rCMyl+ZJq/4gmJ7zxHuiLcf +qHnspDjHeH/3+XhSgk6osghAfgiO/lWc0MDtYgjxLeRFzi3bad0sWn/+j4v/hRywVGeCUDa7 KMHUmFU0x/AW/vmdMG2z5NlvnFXETZRfGdZWh46RbNR6qGcFNUUmzOrm1dHgVC9tZLku3M4NZ Rw2y5U1TE+VaoRYJR7PS52AEk1zeQZmrTf8IxyKbO1uilcazHy0wwihcIT9XxqwaqCvHyRlxp 99G0rNxXjhR6vqWVlPwtBFVS+phUgJ1ZMVlMZww6skhjeckWDhaAq+9R2+xOOqzrsWFmNp1/d s6gdltqjBE2DIZNxQTPjd4vuLSxtZjzlKFWxAUP8kp80kMxp6LNYfY89eZbC3Yra8I8A= Sender: netdev-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: netdev@vger.kernel.org After the first timekeeping series from Deepa (merged into -tip now) and my follow-up for IPC system calls, this is a third set of system call conversions following the same principle. Most of the changes are straightforward, so I'm grouping them into a larger series even though the system calls are mostly unrelated to one another. After this series, the remaining calls that need to be changed are getrusage()/waitid(), pselect6/ppoll(), timer{,fd}_{get,set}time() and getitimer()/setitimer(). Those will be sent separately, once they are matured enough. To put the changes into perspective, a list of all system calls that require changes is available in a spreadsheet[1] and I have made another experimental patch that changes over x86[2] and arm[3] to actually use them. Please review! Arnd [1] https://docs.google.com/spreadsheets/d/1HCYwHXxs48TsTb6IGUduNjQnmfRvMPzCN6T_0YiQwis [2] https://git.kernel.org/pub/scm/linux/kernel/git/arnd/playground.git/commit/?h=y2038-next&id=2174e03cd47384f30dc522f173f36c0d72cfedd7 [3] https://git.kernel.org/pub/scm/linux/kernel/git/arnd/playground.git/commit/?h=y2038-next&id=ba9a341eff2b13a8e25b5d42b3035b1c1dbfeacf Arnd Bergmann (17): y2038: compat: Move common compat types to asm-generic/compat.h y2038: Remove newstat family from default syscall set y2038: Remove stat64 family from default syscall set asm-generic: Remove unneeded __ARCH_WANT_SYS_LLSEEK macro asm-generic: Remove empty asm/unistd.h y2038: Change sys_utimensat() to use __kernel_timespec y2038: Compile utimes()/futimesat() conditionally y2038: utimes: Rework #ifdef guards for compat syscalls y2038: futex: Move compat implementation into futex.c y2038: futex: Add support for __kernel_timespec y2038: Prepare sched_rr_get_interval for __kernel_timespec y2038: aio: Prepare sys_io_getevents for __kernel_timespec y2038: socket: Convert recvmmsg to __kernel_timespec y2038: socket: Add compat_sys_recvmmsg_time64 y2038: signal: Change rt_sigtimedwait to use __kernel_timespec y2038: Make compat_sys_rt_sigtimedwait usable on 32-bit y2038: signal: Add compat_sys_rt_sigtimedwait_time64 Cc: linux-api@vger.kernel.org Cc: linux-arch@vger.kernel.org Cc: libc-alpha@sourceware.org Cc: tglx@linutronix.de Cc: netdev@vger.kernel.org Cc: deepa.kernel@gmail.com Cc: viro@zeniv.linux.org.uk Cc: albert.aribaud@3adev.fr Cc: Peter Zijlstra Cc: Darren Hart Cc: "Eric W. Biederman" Cc: Dominik Brodowski arch/alpha/include/asm/unistd.h | 2 + arch/arc/include/uapi/asm/unistd.h | 1 + arch/arm/include/asm/unistd.h | 4 +- arch/arm64/include/asm/compat.h | 20 +-- arch/arm64/include/asm/unistd.h | 2 +- arch/arm64/include/uapi/asm/unistd.h | 1 + arch/c6x/include/uapi/asm/unistd.h | 1 + arch/h8300/include/uapi/asm/unistd.h | 1 + arch/hexagon/include/uapi/asm/unistd.h | 1 + arch/ia64/include/asm/unistd.h | 3 + arch/m68k/include/asm/unistd.h | 2 +- arch/microblaze/include/asm/unistd.h | 2 +- arch/mips/include/asm/compat.h | 22 +--- arch/mips/include/asm/unistd.h | 3 +- arch/nds32/include/uapi/asm/unistd.h | 1 + arch/nios2/include/uapi/asm/unistd.h | 1 + arch/openrisc/include/uapi/asm/unistd.h | 1 + arch/parisc/include/asm/compat.h | 18 +-- arch/parisc/include/asm/unistd.h | 3 +- arch/powerpc/include/asm/compat.h | 18 +-- arch/powerpc/include/asm/unistd.h | 3 +- arch/s390/include/asm/compat.h | 18 +-- arch/s390/include/asm/unistd.h | 3 +- arch/sh/include/asm/unistd.h | 2 +- arch/sparc/include/asm/compat.h | 19 +-- arch/sparc/include/asm/unistd.h | 3 +- arch/unicore32/include/uapi/asm/unistd.h | 1 + arch/x86/include/asm/compat.h | 19 +-- arch/x86/include/asm/unistd.h | 3 +- arch/xtensa/include/asm/unistd.h | 2 +- fs/aio.c | 4 +- fs/read_write.c | 2 +- fs/stat.c | 3 + fs/utimes.c | 59 +++++---- include/asm-generic/compat.h | 24 +++- include/asm-generic/unistd.h | 13 -- include/linux/compat.h | 12 +- include/linux/compat_time.h | 5 + include/linux/futex.h | 8 -- include/linux/socket.h | 19 ++- include/linux/syscalls.h | 23 ++-- include/uapi/asm-generic/unistd.h | 2 + kernel/Makefile | 3 - kernel/futex.c | 207 +++++++++++++++++++++++++++++-- kernel/futex_compat.c | 202 ------------------------------ kernel/sched/core.c | 4 +- kernel/signal.c | 68 ++++++++-- kernel/sys_ni.c | 1 + net/compat.c | 16 +-- net/socket.c | 55 ++++++-- 50 files changed, 456 insertions(+), 454 deletions(-) delete mode 100644 include/asm-generic/unistd.h delete mode 100644 kernel/futex_compat.c -- 2.9.0