From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: X-Spam-Checker-Version: SpamAssassin 3.4.0 (2014-02-07) on aws-us-west-2-korg-lkml-1.web.codeaurora.org X-Spam-Level: X-Spam-Status: No, score=-11.8 required=3.0 tests=BAYES_00, HEADER_FROM_DIFFERENT_DOMAINS,MAILING_LIST_MULTI,MENTIONS_GIT_HOSTING, SPF_HELO_NONE,SPF_PASS,USER_AGENT_GIT autolearn=ham autolearn_force=no version=3.4.0 Received: from mail.kernel.org (mail.kernel.org [198.145.29.99]) by smtp.lore.kernel.org (Postfix) with ESMTP id 4C898C47427 for ; Thu, 1 Oct 2020 14:13:09 +0000 (UTC) Received: from kanga.kvack.org (kanga.kvack.org [205.233.56.17]) by mail.kernel.org (Postfix) with ESMTP id D4A64221EF for ; Thu, 1 Oct 2020 14:13:08 +0000 (UTC) DMARC-Filter: OpenDMARC Filter v1.3.2 mail.kernel.org D4A64221EF Authentication-Results: mail.kernel.org; dmarc=none (p=none dis=none) header.from=arndb.de Authentication-Results: mail.kernel.org; spf=pass smtp.mailfrom=owner-linux-mm@kvack.org Received: by kanga.kvack.org (Postfix) id CF1976B006E; Thu, 1 Oct 2020 10:12:57 -0400 (EDT) Received: by kanga.kvack.org (Postfix, from userid 40) id ACCB7900003; Thu, 1 Oct 2020 10:12:57 -0400 (EDT) X-Delivered-To: int-list-linux-mm@kvack.org Received: by kanga.kvack.org (Postfix, from userid 63042) id 5BF1A6B0078; Thu, 1 Oct 2020 10:12:57 -0400 (EDT) X-Delivered-To: linux-mm@kvack.org Received: from forelay.hostedemail.com (smtprelay0045.hostedemail.com [216.40.44.45]) by kanga.kvack.org (Postfix) with ESMTP id EE3636B0073 for ; Thu, 1 Oct 2020 10:12:56 -0400 (EDT) Received: from smtpin20.hostedemail.com (10.5.19.251.rfc1918.com [10.5.19.251]) by forelay03.hostedemail.com (Postfix) with ESMTP id 9249C8249980 for ; Thu, 1 Oct 2020 14:12:56 +0000 (UTC) X-FDA: 77323547952.20.mask63_19038f12719c Received: from filter.hostedemail.com (10.5.16.251.rfc1918.com [10.5.16.251]) by smtpin20.hostedemail.com (Postfix) with ESMTP id 7199E180C07AF for ; Thu, 1 Oct 2020 14:12:56 +0000 (UTC) X-HE-Tag: mask63_19038f12719c X-Filterd-Recvd-Size: 4920 Received: from mout.kundenserver.de (mout.kundenserver.de [217.72.192.73]) by imf21.hostedemail.com (Postfix) with ESMTP for ; Thu, 1 Oct 2020 14:12:55 +0000 (UTC) Received: from threadripper.lan ([46.223.126.90]) by mrelayeu.kundenserver.de (mreue108 [212.227.15.145]) with ESMTPA (Nemesis) id 1MDQmW-1kEben1bZW-00ASUI; Thu, 01 Oct 2020 16:12:51 +0200 From: Arnd Bergmann To: Russell King , Christoph Hellwig Cc: Alexander Viro , linux-kernel@vger.kernel.org, linux-arm-kernel@lists.infradead.org, linux-arch@vger.kernel.org, linux-mm@kvack.org, Arnd Bergmann Subject: [PATCH v3 00/10] ARM: remove set_fs callers and implementation Date: Thu, 1 Oct 2020 16:12:23 +0200 Message-Id: <20201001141233.119343-1-arnd@arndb.de> X-Mailer: git-send-email 2.27.0 MIME-Version: 1.0 X-Provags-ID: V03:K1:uvT0YYMCSl5yaLC0/r8RyA+xGdKVT1cAiXxy5fc6u04+Z7n9ImA J6uOW5QZ/LsnTiydt7y11fk9jnUMLq1J2fKNQj/BVedh2XfzFisuEDQrKA4ybpaUNFEUtnz IuuxJCH7VyCbIARbJox82g2ljhI7S52bXKBbaIFCrjE4UgS6vcwwQxXrAkf1Cv9E4YEMpgW geXoKOZ1Dl3DAgMusEkNQ== X-UI-Out-Filterresults: notjunk:1;V03:K0:upTsn8YWAJw=:bCdYpMIkHwcotA5EW6TSXq iIuZdlAHh5fZnmzQj7wOUNsBOJbqbmCGyhYbaO6GS6UOUxI9ePnw49zQct8RaEDRTRf8KKiGk 03Sf2fIJcCnG4gpMu7KeYxOPHH0Vriqz27KTWuMNHDZ6OF0iTbtEhAn96dMHTJD97mHBTu6Jq uoTgZi6ElWW2sEOnp2jrrHq0Kk20CSwAnLlPWC7dlLIijzc+Id82FNXfaU55LPfJ014kOOrDi m7wnkLf87f33csKJEcUu6HtABRlMRwVtNOu7Roi6Cze7Zc/hmLyTca4zSNoFCA+f1Jg6SIMax f2YLED/AMOF/6xtWOihOzizHtGll7SaSeIMJs887u/RFXBr41sztwh1PbmOx4y2F5QBY2ETYg AmZcE2pwFlcJe5tPZkyxzddnXgUog0VxyqFm1VDm18d7TpCZy7dXZjxXSJNjZ6dxtDboz4kE1 DfkuwdL1lHKaIU3mYQneWnDU+1yutpqBZ17EvdfJ46lnb5V6mDvfJ6l34f9GrrrLDt65+6lAP J0oMVZ9cZxHTvw1tZgGRytaTxN9nT0a4j5QEU8PGZ8s/3XIIrH7EQSjc4/MnX0ALshbVpAr+J 1z736Q3pLNDRpkGP5+aoBg2Y34ox0wyvlyHyb1fddP6bS3nw9cEnl74x+XdHQQ0utT4fQFcSL Wm3H8Nb/Wzhy33xYSSY9F+Jae2cCHLzKbFr/TPGg6ua5OCHTrFYkDYXR+e/jnfnB/SqlebcML rk0C0eo5hAtplfQogMhE4zIzh65DH0MOoLsNW9w8O7ZYx5TPJf5CotTsnl6Uf+Y6oqv1aG7La J7dnKMtRyjA1fFUJw4BAFHowogyZNrte4cp0yzvlVrdQeajzPF2AlWSQWdEGnX1h07a8OGQ Content-Transfer-Encoding: quoted-printable X-Bogosity: Ham, tests=bogofilter, spamicity=0.000000, version=1.2.4 Sender: owner-linux-mm@kvack.org Precedence: bulk X-Loop: owner-majordomo@kvack.org List-ID: Hi Christoph, Russell, This is the updated version of my ARM set_fs patches, hopefully I managed to address your previous concerns. I have tested the oabi-compat changes using the LTP tests for the three modified syscalls using an Armv7 kernel and a Debian 5 OABI user space. I also tested the syscall_get_nr() in all combinations of OABI/EABI kernel user space and fixed the bugs I found after Russell pointed out one of those issues. The series is now based on https://git.kernel.org/pub/scm/linux/kernel/git/viro/vfs.git/log/?h=3Dbas= e.set_fs with no extra patches, after I included a patch to define a private TASK_SIZE_MAX. Russell, if you would still consider this seris for the next merge window and there are no further review comments, you can pull it from https://git.kernel.org/pub/scm/linux/kernel/git/arnd/playground.git \ arm-kill-set_fs-7 At this point I'd probably just defer it another release and rebase once -rc1 is out, dropping the TASK_SIZE_MAX patch. Arnd Arnd Bergmann (10): mm/maccess: fix unaligned copy_{from,to}_kernel_nofault ARM: traps: use get_kernel_nofault instead of set_fs() ARM: oabi-compat: add epoll_pwait handler ARM: syscall: always store thread_info->syscall ARM: oabi-compat: rework epoll_wait/epoll_pwait emulation ARM: oabi-compat: rework sys_semtimedop emulation ARM: oabi-compat: rework fcntl64() emulation ARM: uaccess: add __{get,put}_kernel_nofault ARM: provide a TASK_SIZE_MAX definition ARM: uaccess: remove set_fs() implementation arch/arm/Kconfig | 1 - arch/arm/include/asm/memory.h | 2 + arch/arm/include/asm/ptrace.h | 1 - arch/arm/include/asm/syscall.h | 16 ++- arch/arm/include/asm/thread_info.h | 4 - arch/arm/include/asm/uaccess-asm.h | 6 - arch/arm/include/asm/uaccess.h | 169 ++++++++++++++------------- arch/arm/kernel/asm-offsets.c | 3 +- arch/arm/kernel/entry-common.S | 17 +-- arch/arm/kernel/process.c | 7 +- arch/arm/kernel/ptrace.c | 9 +- arch/arm/kernel/signal.c | 8 -- arch/arm/kernel/sys_oabi-compat.c | 181 ++++++++++++++++------------- arch/arm/kernel/traps.c | 47 +++----- arch/arm/lib/copy_from_user.S | 3 +- arch/arm/lib/copy_to_user.S | 3 +- arch/arm/tools/syscall.tbl | 2 +- fs/eventpoll.c | 5 +- include/linux/eventpoll.h | 18 +++ include/linux/syscalls.h | 3 + ipc/sem.c | 84 ++++++++----- mm/maccess.c | 28 ++++- 22 files changed, 334 insertions(+), 283 deletions(-) --=20 2.27.0