Message ID | 20201030154519.1245983-1-arnd@kernel.org (mailing list archive) |
---|---|
Headers | show
Return-Path: <SRS0=O8pC=EF=lists.infradead.org=linux-arm-kernel-bounces+linux-arm-kernel=archiver.kernel.org@kernel.org> 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=-12.0 required=3.0 tests=BAYES_00,DKIMWL_WL_HIGH, DKIM_SIGNED,DKIM_VALID,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 781F8C00A89 for <linux-arm-kernel@archiver.kernel.org>; Fri, 30 Oct 2020 15:47:10 +0000 (UTC) Received: from merlin.infradead.org (merlin.infradead.org [205.233.59.134]) (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 00D97206E9 for <linux-arm-kernel@archiver.kernel.org>; Fri, 30 Oct 2020 15:47:09 +0000 (UTC) Authentication-Results: mail.kernel.org; dkim=pass (2048-bit key) header.d=lists.infradead.org header.i=@lists.infradead.org header.b="yXWiTZG/"; dkim=fail reason="signature verification failed" (1024-bit key) header.d=kernel.org header.i=@kernel.org header.b="TmRaUqar" DMARC-Filter: OpenDMARC Filter v1.3.2 mail.kernel.org 00D97206E9 Authentication-Results: mail.kernel.org; dmarc=fail (p=none dis=none) header.from=kernel.org Authentication-Results: mail.kernel.org; spf=none smtp.mailfrom=linux-arm-kernel-bounces+linux-arm-kernel=archiver.kernel.org@lists.infradead.org DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=lists.infradead.org; s=merlin.20170209; h=Sender:Content-Transfer-Encoding: Content-Type:Cc:List-Subscribe:List-Help:List-Post:List-Archive: List-Unsubscribe:List-Id:MIME-Version:Message-Id:Date:Subject: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=fkOlDh/i+gu6mzfEQMXOBU+vk9xzIwrYkknuyOxHVBQ=; b=yXWiTZG/MqOgOegiUUOT3I1RXF 8S6ZmfqDkvr3zTcp/ftKKN9HW8GT1wkozaw5kD5v8cHn1wgDMxKEvhpCITsUFVKrCM5LNGkt0TZKR ZqNfgCoIW9BKGbrbWz8luaxDXtqsSP0AksLUJlWoZ//RSIdYqxOKslagc8DP7FbQ/+y4D3teWmiZL IlEcBQx5c7eVp+VcRMRhqb6el3fKVX8aGQfsZioYNW/2mhv7ooTPpUqz8J+CF+n1WUNoUeYPlNtlq 9GTWtDvWGuPoxA27TUr804NDChJDL8Tq9iZsFGNEfzO9M0FXwUarnImWYYwK2o1j2tj9by/FHf+Xu zHxxoXpg==; Received: from localhost ([::1] helo=merlin.infradead.org) by merlin.infradead.org with esmtp (Exim 4.92.3 #3 (Red Hat Linux)) id 1kYWbA-0001lM-TI; Fri, 30 Oct 2020 15:45:52 +0000 Received: from mail.kernel.org ([198.145.29.99]) by merlin.infradead.org with esmtps (Exim 4.92.3 #3 (Red Hat Linux)) id 1kYWb7-0001kM-Qb for linux-arm-kernel@lists.infradead.org; Fri, 30 Oct 2020 15:45:50 +0000 Received: from localhost.localdomain (HSI-KBW-46-223-126-90.hsi.kabel-badenwuerttemberg.de [46.223.126.90]) (using TLSv1.2 with cipher ECDHE-RSA-AES128-GCM-SHA256 (128/128 bits)) (No client certificate requested) by mail.kernel.org (Postfix) with ESMTPSA id 96B6620936; Fri, 30 Oct 2020 15:45:46 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=kernel.org; s=default; t=1604072748; bh=nlOMXqka12e9yQIr/OhzGs4UNVMEOM0e+JUVN3RvNMk=; h=From:To:Cc:Subject:Date:From; b=TmRaUqarMiry5LSRwQ7CF1t9t2MeNM7kh8bk2DkIF7CQhWDT3xwEZAzbRrgeKFDnk Td2bCdvpBwwWoLmoa1EH3+nDChqbPqnxXUVD2CPpWk7dLaeaU32XXKn/cJOTz+PiM4 7dj65fb+6Wrfaq4SWmJ0NQh2SIKHXTtrhIyMmYK0= From: Arnd Bergmann <arnd@kernel.org> To: Russell King <linux@armlinux.org.uk>, Christoph Hellwig <hch@lst.de> Subject: [PATCH v4 0/9] ARM: remove set_fs callers and implementation Date: Fri, 30 Oct 2020 16:45:10 +0100 Message-Id: <20201030154519.1245983-1-arnd@kernel.org> X-Mailer: git-send-email 2.27.0 MIME-Version: 1.0 X-CRM114-Version: 20100106-BlameMichelson ( TRE 0.8.0 (BSD) ) MR-646709E3 X-CRM114-CacheID: sfid-20201030_114549_994533_A6EEA8D4 X-CRM114-Status: GOOD ( 17.56 ) X-BeenThere: linux-arm-kernel@lists.infradead.org X-Mailman-Version: 2.1.29 Precedence: list List-Id: <linux-arm-kernel.lists.infradead.org> List-Unsubscribe: <http://lists.infradead.org/mailman/options/linux-arm-kernel>, <mailto:linux-arm-kernel-request@lists.infradead.org?subject=unsubscribe> List-Archive: <http://lists.infradead.org/pipermail/linux-arm-kernel/> List-Post: <mailto:linux-arm-kernel@lists.infradead.org> List-Help: <mailto:linux-arm-kernel-request@lists.infradead.org?subject=help> List-Subscribe: <http://lists.infradead.org/mailman/listinfo/linux-arm-kernel>, <mailto:linux-arm-kernel-request@lists.infradead.org?subject=subscribe> Cc: linux-arch@vger.kernel.org, Arnd Bergmann <arnd@arndb.de>, Linus Walleij <linus.walleij@linaro.org>, linux-kernel@vger.kernel.org, linux-mm@kvack.org, Alexander Viro <viro@zeniv.linux.org.uk>, linux-arm-kernel@lists.infradead.org Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7bit Sender: "linux-arm-kernel" <linux-arm-kernel-bounces@lists.infradead.org> Errors-To: linux-arm-kernel-bounces+linux-arm-kernel=archiver.kernel.org@lists.infradead.org |
Series |
ARM: remove set_fs callers and implementation
|
expand
|
On Fri, Oct 30, 2020 at 4:45 PM Arnd Bergmann <arnd@kernel.org> wrote: > This is the rebased version of my ARM set_fs patches on top of > v5.10-rc1, dropping the TASK_SIZE_MAX patch but leaving everything > else unchanged. > > 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 tested this patch set on the ARM Footbridge (SA110) with an ages old Red Hat Linux OABI userspace. It works. Tested-by: Linus Walleij <linus.walleij@linaro.org> Yours, Linus Walleij
From: Arnd Bergmann <arnd@arndb.de> Hi Christoph, Russell, This is the rebased version of my ARM set_fs patches on top of v5.10-rc1, dropping the TASK_SIZE_MAX patch but leaving everything else unchanged. 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. Russell, you can pull these from https://git.kernel.org/pub/scm/linux/kernel/git/arnd/playground.git arm-setfs_v4 or I can add them to the ARM patch tracker if you prefer. 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 | 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 ++++- 21 files changed, 332 insertions(+), 283 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 <viro@zeniv.linux.org.uk> Cc: Linus Walleij <linus.walleij@linaro.org> Cc: Arnd Bergmann <arnd@arndb.de>