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,DKIMWL_WL_HIGH, DKIM_SIGNED,DKIM_VALID,HEADER_FROM_DIFFERENT_DOMAINS,MAILING_LIST_MULTI, MENTIONS_GIT_HOSTING,SPF_HELO_NONE,SPF_PASS,URIBL_BLOCKED,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 3430AC43461 for ; Mon, 7 Sep 2020 15:38:27 +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 B0AE12078E for ; Mon, 7 Sep 2020 15:38:26 +0000 (UTC) Authentication-Results: mail.kernel.org; dkim=pass (2048-bit key) header.d=lists.infradead.org header.i=@lists.infradead.org header.b="3XOddB9s" DMARC-Filter: OpenDMARC Filter v1.3.2 mail.kernel.org B0AE12078E Authentication-Results: mail.kernel.org; dmarc=none (p=none dis=none) header.from=arndb.de 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=MlgUIkekZJtTagPX/KpmFVk0sL8w3+fdHS0SQGFfpsM=; b=3XOddB9side+s+A0lw+C6seJIj reh5Yd+GUZCgSMNFB3oZzjk9KIHbT4qIcv6cVHDOTafZ3fTn5WyLu3MnENQekpm+ggZ8IZ3r13o/B cLReQUka7eBjfmp3C0CB1I04Rl+j5W6rBKBN38IXszqrTUw4PYXQ6Sbp4szNYukJZgtl3ZK2ToLvL MJkejad5tkqh2WGP1+rzRFFC2enWMxseiXMj7v7Ou8AyY/E0SW6kP3Racgw/8fPkY3N2YDdwFtIZW nKv+1ntnQV2aEE3ukDoo/Ek3aHOlAxkn6qcyf8Ci5+qHnuDCd6Q3pWJFLUj64x2c5uAptjdfBz7mL O55BD1QQ==; Received: from localhost ([::1] helo=merlin.infradead.org) by merlin.infradead.org with esmtp (Exim 4.92.3 #3 (Red Hat Linux)) id 1kFJCu-0003Gk-Bu; Mon, 07 Sep 2020 15:37:24 +0000 Received: from mout.kundenserver.de ([212.227.17.13]) by merlin.infradead.org with esmtps (Exim 4.92.3 #3 (Red Hat Linux)) id 1kFJCr-0003GH-H5 for linux-arm-kernel@lists.infradead.org; Mon, 07 Sep 2020 15:37:22 +0000 Received: from threadripper.lan ([149.172.98.151]) by mrelayeu.kundenserver.de (mreue109 [212.227.15.145]) with ESMTPA (Nemesis) id 1MQMmF-1jtUy03FLN-00MIv2; Mon, 07 Sep 2020 17:37:13 +0200 From: Arnd Bergmann To: Christoph Hellwig , Russell King Subject: [PATCH 0/9] ARM: remove set_fs callers and implementation Date: Mon, 7 Sep 2020 17:36:41 +0200 Message-Id: <20200907153701.2981205-1-arnd@arndb.de> X-Mailer: git-send-email 2.27.0 MIME-Version: 1.0 X-Provags-ID: V03:K1:VjRIHVKsrJ2cp1DZW/WWar2/93OzLGw+aSFBTMZna85P5K77sAZ Xch35nM3blzVomWJfJD7n6iXwAEm8E3HwandaTb2+6zBSlwd2VeBUH0fqENpQrUh0XtfTfD qfbOFRC61hirr7cOpMwF9FBayHhHu8B/OOTAIN6DrhaoGavRLobM+MTxqFg9mYvIyrsQcDq kSKFtTEpMK0s/MdO16Cww== X-UI-Out-Filterresults: notjunk:1;V03:K0:ndcJ4md6HKs=:k8lJJzPq5Q6bCc/q2u0d/F gOihSTsr/6SWTxmx92Lqbx6XJ0C8SqnQaEKKMCdZipxiRx6pDNivu2OSYx4pMUqyXtyfPEyDv a3mZq77kVBEBmnxZgwt6qPIaangNt2U0H7WelIhHbvdOareFCKqc1y0Lrhob7/FwUwi6JimyP pYcHqzyZ0QE2ninttJEXc523JmcGvUiwJFSXUgW6uEBn7e+x+RqQjgyAFiRIgdXoe29Sgm0A1 Vlu0qRlraIXFOzWYuqGdcoilXiJG8O6pAI6MflhHbVI57HHQ2+fdKhHJzx+Fy3BaMadwM5LmI c3YQFGJc9T0BGZWjrrOvZiBinPmrdcUaIpEpZJCWFPJi3y3KiPunrfCYK+zgGCqK31MUhaQ2o lrVVat8P5A/lycgKPZhAy9ah/ACyIJcrB4VjS9NPS7OrT76q6fsSfQtCsKWZ6Ez0I7MHy7oeL wh+ZAEig2auAChonuKGjg5n+a37AZWw8D3GzwUATHwXqgQHqiXdLRP480NT8okpx9RYMMSaiw zxXd5wJo6STcvilW/xQv17QEhfmdHeD5/bBVc/logNrrB6ELLkaJ+ExWid1aaSQIMZOy+A/4W h8hpT9uUZZ0+8AbEn3VqplebZDQuP/pjDN2n9aM5v1sbpO+FJnf8UkF9Aqq2hXvL0dsEiC/pq 3xF7DWf8d20TCwjAxPeDcyMDDAXeno1JtEhRVaNEVBHqC43mTqtWIJHNFAAgle/Qt0mU8v52b LWAKqRWaF5awi9zIMgGvMN4Up0FNcRYj6KrkhnJ0Mp7mBcBbLOHmjkTCyC5lVRZ5NK/OsEQZ3 +gkKrgZF+JQuGPT90Ylv+P3Px6XS7DQfYX527LIkEbErHEr4KwksdTq46L4E7UN/9R8XNB2 X-CRM114-Version: 20100106-BlameMichelson ( TRE 0.8.0 (BSD) ) MR-646709E3 X-CRM114-CacheID: sfid-20200907_113721_773800_C8F53024 X-CRM114-Status: GOOD ( 14.86 ) X-BeenThere: linux-arm-kernel@lists.infradead.org X-Mailman-Version: 2.1.29 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Cc: linux-arch@vger.kernel.org, Arnd Bergmann , linus.walleij@linaro.org, kernel@vger.kernel.org, Alexander Viro , linux-arm-kernel@lists.infradead.org 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 Hi Christoph, Russell, As promised, here is my series to remove set_fs() from arch/arm based on the architecture-independent patches. 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. Let me know if there is a more thorough test I should try. Overall there is a bit of ugliness getting introduced in the oabi compat code and for adding another code path for TUSER(). If anyone has a better idea, I can try out a different way. I assume these patches can go through Al's tree along with the corresponding changes for other architectures, once Russell is happy with them. Please review. Arnd [1] https://git.kernel.org/pub/scm/linux/kernel/git/arnd/playground.git/log/?h=arm-kill-set_fs 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 | 14 +++ 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 | 180 ++++++++++++++++------------- arch/arm/kernel/traps.c | 69 +++++------ 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 | 16 +++ include/linux/syscalls.h | 2 + ipc/sem.c | 84 +++++++++----- mm/maccess.c | 28 ++++- 21 files changed, 338 insertions(+), 287 deletions(-) -- 2.27.0 _______________________________________________ linux-arm-kernel mailing list linux-arm-kernel@lists.infradead.org http://lists.infradead.org/mailman/listinfo/linux-arm-kernel