From patchwork Fri Sep 18 12:46:15 2020 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Arnd Bergmann X-Patchwork-Id: 11784929 Return-Path: Received: from mail.kernel.org (pdx-korg-mail-1.web.codeaurora.org [172.30.200.123]) by pdx-korg-patchwork-2.web.codeaurora.org (Postfix) with ESMTP id 5F14D112E for ; Fri, 18 Sep 2020 12:47:08 +0000 (UTC) Received: from kanga.kvack.org (kanga.kvack.org [205.233.56.17]) by mail.kernel.org (Postfix) with ESMTP id 2942A21481 for ; Fri, 18 Sep 2020 12:47:08 +0000 (UTC) DMARC-Filter: OpenDMARC Filter v1.3.2 mail.kernel.org 2942A21481 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 0D9736B0070; Fri, 18 Sep 2020 08:46:47 -0400 (EDT) Delivered-To: linux-mm-outgoing@kvack.org Received: by kanga.kvack.org (Postfix, from userid 40) id 018656B0071; Fri, 18 Sep 2020 08:46:46 -0400 (EDT) X-Original-To: int-list-linux-mm@kvack.org X-Delivered-To: int-list-linux-mm@kvack.org Received: by kanga.kvack.org (Postfix, from userid 63042) id DAB476B0073; Fri, 18 Sep 2020 08:46:46 -0400 (EDT) X-Original-To: linux-mm@kvack.org X-Delivered-To: linux-mm@kvack.org Received: from forelay.hostedemail.com (smtprelay0102.hostedemail.com [216.40.44.102]) by kanga.kvack.org (Postfix) with ESMTP id B91BA6B0070 for ; Fri, 18 Sep 2020 08:46:46 -0400 (EDT) Received: from smtpin15.hostedemail.com (10.5.19.251.rfc1918.com [10.5.19.251]) by forelay01.hostedemail.com (Postfix) with ESMTP id 752E2180AD81D for ; Fri, 18 Sep 2020 12:46:46 +0000 (UTC) X-FDA: 77276156412.15.shade53_620b17f2712b Received: from filter.hostedemail.com (10.5.16.251.rfc1918.com [10.5.16.251]) by smtpin15.hostedemail.com (Postfix) with ESMTP id 78B711814B0CC for ; Fri, 18 Sep 2020 12:46:37 +0000 (UTC) X-Spam-Summary: 1,0,0,72d45abb34955af5,d41d8cd98f00b204,arnd@arndb.de,,RULES_HIT:41:69:355:379:541:968:973:988:989:1260:1311:1314:1345:1437:1515:1534:1542:1711:1730:1747:1777:1792:1801:2393:2559:2562:2895:3138:3139:3140:3141:3142:3353:3622:3865:3866:3867:3868:3871:4250:4605:5007:6119:6261:10004:11026:11473:11657:11658:11914:12043:12160:12296:12297:12438:12679:12895:13894:14096:14180:14181:14394:14721:21060:21080:21212:21220:21451:21627:21740:21795:30051:30054:30079,0,RBL:212.227.126.187:@arndb.de:.lbl8.mailshell.net-66.201.201.201 62.14.6.100;04yffsg78z5m89c1x9bo59nbct7mwypcjinfwwobj1f63c4brm1j1gqbe56gdw7.5nrzerhk64gexma6bun8om8uwx1ra9iixds668i9qyw6z89nw7sjftrp7iin9qb.a-lbl8.mailshell.net-223.238.255.100,CacheIP:none,Bayesian:0.5,0.5,0.5,Netcheck:none,DomainCache:0,MSF:not bulk,SPF:fn,MSBL:0,DNSBL:neutral,Custom_rules:0:0:0,LFtime:26,LUA_SUMMARY:none X-HE-Tag: shade53_620b17f2712b X-Filterd-Recvd-Size: 4242 Received: from mout.kundenserver.de (mout.kundenserver.de [212.227.126.187]) by imf26.hostedemail.com (Postfix) with ESMTP for ; Fri, 18 Sep 2020 12:46:36 +0000 (UTC) Received: from threadripper.lan ([149.172.98.151]) by mrelayeu.kundenserver.de (mreue011 [212.227.15.129]) with ESMTPA (Nemesis) id 1M89XH-1kOUyv18jL-005LlK; Fri, 18 Sep 2020 14:46:34 +0200 From: Arnd Bergmann To: Christoph Hellwig , Russell King , Alexander Viro Cc: linux-kernel@vger.kernel.org, linux-arm-kernel@lists.infradead.org, linux-arch@vger.kernel.org, linux-mm@kvack.org, Arnd Bergmann Subject: [PATCH v2 0/9] ARM: remove set_fs callers and implementation Date: Fri, 18 Sep 2020 14:46:15 +0200 Message-Id: <20200918124624.1469673-1-arnd@arndb.de> X-Mailer: git-send-email 2.27.0 MIME-Version: 1.0 X-Provags-ID: V03:K1:nmxKQc8+mlxCdbwLh20YUK4iPyhFqrbIVbvONGu23xOQJJLdRN2 2+xyADSruG1O9wHrRftwYOLBHwRJfDyIXwaFTqnimdCPzKF1SKWmVOt6fCwk3KuiaCx2wXO nkXcOq0MrNeyJcp3/UixkWJ4gh/yKLCgR1IjVyFiiEnKoX5Q+84c27tN793aFzlv+w0JEdv Rpy7xvT/VMvSLKz4XqQaA== X-Spam-Flag: NO X-UI-Out-Filterresults: notjunk:1;V03:K0:Yb7i0b89nVM=:P1939kZNz1oQxZjce03F3i n1Vv9IQaC8UxUrT/lhWAgqknz972LLDSVMGUl84nEnA2cKCDf0QNINGtTzmSlA9ler9NXWmgU 6cj6c2JfKMzjygFjM7Z1qFWp95ujwd9Ki37gkY8+hGQgwg7/MDe4yfBlBJQ43uWaFuuGvmS8Y YFyRZgfQXcL8giaaOrOoxwmk6Zn6vxCjcKEekj8EZamFq3WSVENaul1aSB5FWp7/1ubxio+HF HysS+bKsKGfbnEqCu7Zbho9RRW+AYEMN7VLNqXF6HDM3zwKZoSFO3qUDMQlQwkwwWFqQl8VBC 4MHyBPovfS7DpjrXuHEGrdiYYOj25Bkj6nFHk14cKY0VadkiGHybWWbGUw5JzrpCR/XUpO3EL eqjcYy0JywW2nOsraHUvvHuTRbA9bFEH6sHxP9oJ6WedJrBS7KtOhUx2pBDXmKp3t8jjtp5OM SJc28Lf4oBF8XifenM3gWPodnuJ/NTpdPQ+UUvKLUQnC7Riz71XGvZ0S6eWCwGEX/vVGx0/kP FaXCHrY6AGvcVfT9uNteygV3yCSfCoyH0hn5//euyx0hfryqcwgYqpL1lbxO5eb01jY6IqHn3 pHxpIAeYjinrLpCUHGXCz6OrZ2feJB7FWs91rZkFsRpC8IjX7DOlFRKvHgMMsFKz5KhCmIf6N 6uS+B0cVAFoL4+qOUN/Evcz0sqiEz7xvpLqp+g9QhgROLmIlRYMxRe4f5Oc9t6nCoMSne0bY0 1Tumx1w2w1hwfzgot5teXWCUUVMrUajMHwJjFPhk8/mpznPZ2Ne6tNs+EKMh8nOtd2VtVywDE FlU3pubYMMb4M3ROJ+YHubbyBU1kIS0+bhY3JC16aC4l69RCvDouoB6B+ZiPT5iSEipC04w 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, Here is an updated series for removing set_fs() from arch/arm, based on the previous feedback. 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, and I have lightly tested the get_kernel_nofault infrastructure by loading the test_lockup.ko module after setting CONFIG_DEBUG_SPINLOCK. Arnd Arnd Bergmann (9): 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: uaccess: remove set_fs() implementation arch/arm/Kconfig | 1 - 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 | 16 +-- arch/arm/kernel/process.c | 7 +- arch/arm/kernel/ptrace.c | 4 +- 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 ++++- 21 files changed, 328 insertions(+), 281 deletions(-)