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 09A5FC10F00 for ; Thu, 28 Feb 2019 18:32:36 +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 D04BC218AE for ; Thu, 28 Feb 2019 18:32:35 +0000 (UTC) Authentication-Results: mail.kernel.org; dkim=pass (2048-bit key) header.d=lists.infradead.org header.i=@lists.infradead.org header.b="rxDMB3fh" DMARC-Filter: OpenDMARC Filter v1.3.2 mail.kernel.org D04BC218AE 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=NnuqOVVugpEiKv2a9QTodgQk0CHbiJUenbBBQdhKx2o=; b=rxD MB3fhbvUz9ouAWP7DoxvDSFDoIfzzNaT0c377EnP8j+eU49oeYDULMKjOd8A16HpioxrYnltfKjSf nl+hvvFkUuqYHNPWHUN++g5nf8Re1QhKdUUAbl9ZmJ5mmFeLidGfc8i4AqbwM/wRFtoTLP6KxagEi HvdeJa+xPlqthZvrevFvDpLDokUce/RzFw857b1vxEftx7bYZz9nutgCPw9MeUSR2VsgQ3F66U/Hq ZDB4Q8lzb9HJ5LJ9zEPUFS0cF0LCPdFWbre+1PdFQuD9WWY+mrdR5h9joYyZqf7NbsGppUWL4D76O uL01dw7YurR86az8jXDv7ho9SvTzoWg==; 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 1gzQTv-0001Hc-SC; Thu, 28 Feb 2019 18:32:31 +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 1gzQTt-0001HC-Hq for linux-arm-kernel@lists.infradead.org; Thu, 28 Feb 2019 18:32:31 +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 A6BBBEBD; Thu, 28 Feb 2019 10:32:28 -0800 (PST) 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 D5A523F5C1; Thu, 28 Feb 2019 10:32:25 -0800 (PST) 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 0/6] ptrace: consolidate PTRACE_SYSEMU handling and add support for arm64 Date: Thu, 28 Feb 2019 18:32:14 +0000 Message-Id: <20190228183220.15626-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-20190228_103229_592415_FBAADD5F X-CRM114-Status: GOOD ( 11.40 ) 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 , 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. So this is the first attempt to the same. 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 | 51 ++++++++++++---------------- arch/x86/entry/common.c | 22 +++--------- arch/x86/kernel/ptrace.c | 3 -- include/linux/ptrace.h | 1 + kernel/ptrace.c | 20 +++++++++++ 8 files changed, 57 insertions(+), 51 deletions(-) -- 2.17.1 _______________________________________________ linux-arm-kernel mailing list linux-arm-kernel@lists.infradead.org http://lists.infradead.org/mailman/listinfo/linux-arm-kernel