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=-17.7 required=3.0 tests=BAYES_00,DKIMWL_WL_HIGH, DKIM_SIGNED,DKIM_VALID,INCLUDES_PATCH,MAILING_LIST_MULTI,MENTIONS_GIT_HOSTING, SPF_HELO_NONE,SPF_PASS,URIBL_BLOCKED,USER_AGENT_GIT autolearn=unavailable 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 5EACCC4338F for ; Mon, 26 Jul 2021 14:14:16 +0000 (UTC) Received: from bombadil.infradead.org (bombadil.infradead.org [198.137.202.133]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by mail.kernel.org (Postfix) with ESMTPS id 317B760560 for ; Mon, 26 Jul 2021 14:14:16 +0000 (UTC) DMARC-Filter: OpenDMARC Filter v1.4.1 mail.kernel.org 317B760560 Authentication-Results: mail.kernel.org; dmarc=fail (p=none dis=none) header.from=kernel.org Authentication-Results: mail.kernel.org; spf=none smtp.mailfrom=lists.infradead.org DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=lists.infradead.org; s=bombadil.20210309; h=Sender: Content-Transfer-Encoding:Content-Type:List-Subscribe:List-Help:List-Post: List-Archive:List-Unsubscribe:List-Id:MIME-Version:Message-Id:Date:Subject:Cc :To:From:Reply-To:Content-ID:Content-Description:Resent-Date:Resent-From: Resent-Sender:Resent-To:Resent-Cc:Resent-Message-ID:In-Reply-To:References: List-Owner; bh=VF+ifixm3jnftHqqOWCmjrwWtMQ7etCHUkPCzuZ30iY=; b=eyfpKY1W+9rLi2 dalwZ6rVPrlQ4KKygNGLXYNCd2MEyRPzqnF9beFbWdThNrrs3DNUI36gV6QTNCK+NZTHlTlqa3tfT fl4SmTm8ajhaZqEK18I9lTp6+7FSQXQG5pDaOtUJLW3QQySC0rqAwWrHA+1gsjNTnNWaRX5YI8GFX UMIYVReV87++rrIP6caeJYvlpgisau1BHEQR0siehi0CQ6X6TS+k+gWkUd9g83yOGpaVhgfesJWM3 0x5WX1UUcBrFv2NsfbxGFrN9gyiqRxni/Zgguirsu7TuC4XPDrUSjPe3H9nTA/YDFHicImjYcLeAz J4SRbTAsm+TEpPGPC8KQ==; Received: from localhost ([::1] helo=bombadil.infradead.org) by bombadil.infradead.org with esmtp (Exim 4.94.2 #2 (Red Hat Linux)) id 1m81Kh-00BRpB-Sd; Mon, 26 Jul 2021 14:11:52 +0000 Received: from mail.kernel.org ([198.145.29.99]) by bombadil.infradead.org with esmtps (Exim 4.94.2 #2 (Red Hat Linux)) id 1m81Kd-00BRo9-HL for linux-arm-kernel@lists.infradead.org; Mon, 26 Jul 2021 14:11:49 +0000 Received: by mail.kernel.org (Postfix) with ESMTPSA id 30DC76008E; Mon, 26 Jul 2021 14:11:45 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=kernel.org; s=k20201202; t=1627308706; bh=XfV/GHrwokP79W0KwDE3X79qzGy2NGs86bgPl36XUXg=; h=From:To:Cc:Subject:Date:From; b=Hvfa4W0FR4f3NPAe0E/XOJdf9ePvCppwjT+Tg9rNH7gwS5wQIlbpZ3u6E5P2zTYC9 lsL9gdZax+59HvqS3gBAaOYGGp4AumNBR1lp5eHAM6FzjnFCCFHEpzq8SwX/sMNRVg NA+dxRC6NPYfWQR0hJXnf0/JpmB/inD8rj3+znoUukwiQQQhEkPLCG7dk2YlJv+wsL jRirdCM/iW35av+6N6MfCzsPOR8yg/Jt/CYLvcl2UKFrOIaehzM61IzWBzEpDUyZAP 8IjyfwGHKLFVwEdb41afxqhxGYYr31epdBLlLw3ncQpAeuYCuk9BOT/Lyl9KI4INUk uh8QTqNXeCb6g== From: Arnd Bergmann To: Russell King Cc: Arnd Bergmann , linux-kernel@vger.kernel.org, linux-arm-kernel@lists.infradead.org, linux-arch@vger.kernel.org, linux-mm@kvack.org, Alexander Viro , Linus Walleij Subject: [PATCH v5 00/10] ARM: remove set_fs callers and implementation Date: Mon, 26 Jul 2021 16:11:31 +0200 Message-Id: <20210726141141.2839385-1-arnd@kernel.org> X-Mailer: git-send-email 2.29.2 MIME-Version: 1.0 X-CRM114-Version: 20100106-BlameMichelson ( TRE 0.8.0 (BSD) ) MR-646709E3 X-CRM114-CacheID: sfid-20210726_071147_658743_FB89CABB X-CRM114-Status: GOOD ( 18.75 ) X-BeenThere: linux-arm-kernel@lists.infradead.org X-Mailman-Version: 2.1.34 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7bit Sender: "linux-arm-kernel" Errors-To: linux-arm-kernel-bounces+linux-arm-kernel=archiver.kernel.org@lists.infradead.org From: Arnd Bergmann Hi Christoph, Russell, This is the rebased version of my ARM set_fs patches on top of v5.14-rc2. There were a couple of minor conflicts that I resolved, but otherwise this is still identical to the version I tested earlier. The one notable change this time is that I rename thread_info->syscall to thread_info->abi_syscall, to clarify that this field now contains both the ABI bits (0x900000 for OABI, 0x000000 for EABI) in kernels that support both, and every access to this has to mask out the bits it needs. As Russell mentioned before, having a 'syscall' field that not just contains the syscall number is confusing and error-prone, so I hope this change is good enough. 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 those issues in the early versions. Linus Walleij did additional testing of v4 on Footbridge with OABI user space. With this and the m68k changes getting merged, we are very close to eliminating set_fs completely. Russell, you can pull these from https://git.kernel.org/pub/scm/linux/kernel/git/arnd/playground.git arm-setfs_v5 or I can add them to the ARM patch tracker if you prefer. Arnd v4: https://lore.kernel.org/linux-arm-kernel/20201030154519.1245983-1-arnd@kernel.org/ v3: https://lore.kernel.org/linux-arm-kernel/20201001141233.119343-1-arnd@arndb.de/ v2: https://lore.kernel.org/linux-arm-kernel/20200918124624.1469673-1-arnd@arndb.de/ v1: https://lore.kernel.org/linux-arm-kernel/20200907153701.2981205-1-arnd@arndb.de/ 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->abi_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 ARM: oabi-compat: fix oabi epoll sparse warning 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 | 6 +- arch/arm/include/asm/uaccess-asm.h | 6 - arch/arm/include/asm/uaccess.h | 169 ++++++++++++----------- arch/arm/include/uapi/asm/unistd.h | 1 + arch/arm/kernel/asm-offsets.c | 3 +- arch/arm/kernel/entry-common.S | 20 +-- arch/arm/kernel/process.c | 7 +- arch/arm/kernel/ptrace.c | 14 +- arch/arm/kernel/signal.c | 8 -- arch/arm/kernel/sys_oabi-compat.c | 214 +++++++++++++++++------------ 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, 361 insertions(+), 298 deletions(-) Cc: linux-kernel@vger.kernel.org Cc: linux-arm-kernel@lists.infradead.org Cc: linux-arch@vger.kernel.org Cc: linux-mm@kvack.org Cc: Alexander Viro Cc: Linus Walleij Cc: Arnd Bergmann -- 2.29.2 _______________________________________________ linux-arm-kernel mailing list linux-arm-kernel@lists.infradead.org http://lists.infradead.org/mailman/listinfo/linux-arm-kernel