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=-3.0 required=3.0 tests=DKIMWL_WL_HIGH,DKIM_SIGNED, DKIM_VALID,HEADER_FROM_DIFFERENT_DOMAINS,MAILING_LIST_MULTI,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 C57A2C4360F for ; Mon, 18 Mar 2019 10:49:43 +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 9529F20850 for ; Mon, 18 Mar 2019 10:49:43 +0000 (UTC) Authentication-Results: mail.kernel.org; dkim=pass (2048-bit key) header.d=lists.infradead.org header.i=@lists.infradead.org header.b="W0XNeTww" DMARC-Filter: OpenDMARC Filter v1.3.2 mail.kernel.org 9529F20850 Authentication-Results: mail.kernel.org; dmarc=none (p=none dis=none) header.from=arm.com Authentication-Results: mail.kernel.org; spf=none smtp.mailfrom=linux-arm-kernel-bounces+infradead-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=bombadil.20170209; h=Sender: Content-Transfer-Encoding:Content-Type:MIME-Version:Cc:List-Subscribe: List-Help:List-Post:List-Archive:List-Unsubscribe:List-Id: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=WL1gxdY1AQ57az0DvxXH2pEkbwl8TJnnJ3sx88a2+c0=; b=W0X NeTwwAzGhr5d68OJmSjn+nnv+0y39gG4xHi0cHzGLm3+aUmCLCzewBta7ZeNL0B+wBwf+GvontMiH YhKCKvd+6AIpHYcHzHKKt7lA5VZhmFT2tMSmxzQKP0V1al5EO/FmB7eAKKYly6Zd/HrJANC20sPda mW3BUtR7AV47W6T+28FFQ6G70GzPHSOUgmZHKmEK70HMzh1LT1MwPgsqUzSTQZAo/Pq7R4FgG9f6P LL9K0w0YqR9XZ8DaBYLMs1cYvRcgVm3t3OdJUuluEpbR0oDrqH2YbfClNwWt9bWDXm9gKnXhpjN3G 8F4D3FydyVA64wl5mgQGhF5llFVykxQ==; Received: from localhost ([127.0.0.1] helo=bombadil.infradead.org) by bombadil.infradead.org with esmtp (Exim 4.90_1 #2 (Red Hat Linux)) id 1h5ppr-0001Bj-31; Mon, 18 Mar 2019 10:49:39 +0000 Received: from foss.arm.com ([217.140.101.70]) by bombadil.infradead.org with esmtp (Exim 4.90_1 #2 (Red Hat Linux)) id 1h5ppo-0001BE-FE for linux-arm-kernel@lists.infradead.org; Mon, 18 Mar 2019 10:49:37 +0000 Received: from usa-sjc-imap-foss1.foss.arm.com (unknown [10.72.51.249]) by usa-sjc-mx-foss1.foss.arm.com (Postfix) with ESMTP id 84F9980D; Mon, 18 Mar 2019 03:49:35 -0700 (PDT) Received: from usa.arm.com (e107155-lin.cambridge.arm.com [10.1.196.42]) by usa-sjc-imap-foss1.foss.arm.com (Postfix) with ESMTPA id 8FC6F3F614; Mon, 18 Mar 2019 03:49:32 -0700 (PDT) From: Sudeep Holla To: x86@kernel.org, linux-arm-kernel@lists.infradead.org, linux-kernel@vger.kernel.org, linuxppc-dev@lists.ozlabs.org Subject: [PATCH v2 0/6] ptrace: consolidate PTRACE_SYSEMU handling and add support for arm64 Date: Mon, 18 Mar 2019 10:49:19 +0000 Message-Id: <20190318104925.16600-1-sudeep.holla@arm.com> X-Mailer: git-send-email 2.17.1 X-CRM114-Version: 20100106-BlameMichelson ( TRE 0.8.0 (BSD) ) MR-646709E3 X-CRM114-CacheID: sfid-20190318_034936_513798_EA82D753 X-CRM114-Status: GOOD ( 10.96 ) X-BeenThere: linux-arm-kernel@lists.infradead.org X-Mailman-Version: 2.1.21 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Cc: Haibo Xu , Steve Capper , Michael Ellerman , jdike@addtoit.com, Sudeep Holla , Will Deacon , Oleg Nesterov , Bin Lu , Richard Weinberger , Ingo Molnar , Paul Mackerras , Andy Lutomirski , Catalin Marinas , Thomas Gleixner MIME-Version: 1.0 Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7bit Sender: "linux-arm-kernel" Errors-To: linux-arm-kernel-bounces+infradead-linux-arm-kernel=archiver.kernel.org@lists.infradead.org Hi, This patchset evolved from the discussion in the thread[0][1]. When we wanted to add PTRACE_SYSEMU support to ARM64, we thought instead of duplicating what other architectures like x86 and powerpc have done, let consolidate the existing support and move it to the core as there's nothing arch specific in it. v1->v2: - added comment for empty statement after tracehook_report_syscall_entry - dropped x86 change in syscall_slow_exit_work as I had ended up changing logic unintentionally - removed spurious change in powerpc moving user_exit() Regards, Sudeep [0] https://patchwork.kernel.org/patch/10585505/ [1] https://patchwork.kernel.org/patch/10675237/ Sudeep Holla (6): ptrace: move clearing of TIF_SYSCALL_EMU flag to core ptrace: introduce ptrace_syscall_enter to consolidate PTRACE_SYSEMU handling x86: clean up _TIF_SYSCALL_EMU handling using ptrace_syscall_enter hook powerpc: use common ptrace_syscall_enter hook to handle _TIF_SYSCALL_EMU arm64: add PTRACE_SYSEMU{,SINGLESTEP} definations to uapi headers arm64: ptrace: add support for syscall emulation arch/arm64/include/asm/thread_info.h | 5 ++- arch/arm64/include/uapi/asm/ptrace.h | 3 ++ arch/arm64/kernel/ptrace.c | 3 ++ arch/powerpc/kernel/ptrace.c | 49 ++++++++++++---------------- arch/x86/entry/common.c | 12 ++----- arch/x86/kernel/ptrace.c | 3 -- include/linux/ptrace.h | 1 + kernel/ptrace.c | 26 +++++++++++++++ 8 files changed, 61 insertions(+), 41 deletions(-) -- 2.17.1 _______________________________________________ linux-arm-kernel mailing list linux-arm-kernel@lists.infradead.org http://lists.infradead.org/mailman/listinfo/linux-arm-kernel