Received: by 2002:ad5:474a:0:0:0:0:0 with SMTP id i10csp331411imu; Fri, 16 Nov 2018 03:18:09 -0800 (PST) X-Google-Smtp-Source: AJdET5dxc0pMhytCBfUZ3JpMlkbhgPP+xAC7eJGb7imSqvg9Y2d0CsE+XP56wHuX29PaW0DQNuxE X-Received: by 2002:a17:902:1e3:: with SMTP id b90-v6mr10279640plb.117.1542367088964; Fri, 16 Nov 2018 03:18:08 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1542367088; cv=none; d=google.com; s=arc-20160816; b=HBAYP/SyG8+cNcxI0DCLQgkuu0rLDlZg3Oz76UoCnEQqf6KtG5ndnRI5EJ3fd82xuS o5dtoLG5ModFHS4zRTSNPYuTBlnmxJHyerY9NC3neb683ChVWgTd+vkK/c7bflKm+9e3 7P26zxlYFYFJyhRXElpbcfYTaxlhg8XrCy1y2syTXlQIAy7NrN1akRtRVPTrvP/LYBjr SzNVZoFmvzOXqhe6+tF9T1MT0WgRwnGBA0qzjlcm6/0H5NionqmRlT3rKbdFWF90gavh LJc/Yue5xpJidUE2Tos+HWtl/3DGoHDjqlxoNCDcUaQPxvxZZ+iBzFrJvJcFdnfZgHEI k+3g== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:content-transfer-encoding:mime-version :message-id:subject:cc:to:from:date; bh=66CuurYYM2K5IlR9n5Pns/RnPD5fo4Sw8D9RGuHghVk=; b=ymg380+ijkn8ZvrwJJz7COp+2PsoNGakXzZnct2BiDIuBX+s5qc1iZegVi1eEkU/fw ZgO0o/TSOrQUaS2Sgc7/jzBjT0Dqm+FXorZJg9mbMvAVuRaeCMcjCTL+TJzgboY/gopo szCbT5ZmsqwM7ADNRMZil9iq0MwRor7APpOm/+nrgsfAJnyPhwjytoAx9t4BztxsiuAj /ADbCpOTVete+cfABeC97zKAycZfp34tFPBE1b7hq+9yRj7MnJ8MlXlfpCV8EvNT73ZS VlHkrFr5InZMzcaIDZ+016+vzBqouUbQWWK9hPw7Ul05t3fJnSTXmtvdfPc59w3JLJO5 uj+Q== ARC-Authentication-Results: i=1; mx.google.com; spf=pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Return-Path: Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id y12si2648043pgh.289.2018.11.16.03.17.54; Fri, 16 Nov 2018 03:18:08 -0800 (PST) Received-SPF: pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) client-ip=209.132.180.67; Authentication-Results: mx.google.com; spf=pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S2389598AbeKPV3D (ORCPT + 99 others); Fri, 16 Nov 2018 16:29:03 -0500 Received: from air.basealt.ru ([194.107.17.39]:58120 "EHLO air.basealt.ru" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S2389571AbeKPV3C (ORCPT ); Fri, 16 Nov 2018 16:29:02 -0500 Received: by air.basealt.ru (Postfix, from userid 490) id 57A06589A5D; Fri, 16 Nov 2018 11:17:06 +0000 (UTC) X-Spam-Checker-Version: SpamAssassin 3.4.1 (2015-04-28) on sa.local.altlinux.org X-Spam-Level: X-Spam-Status: No, score=-2.9 required=5.0 tests=ALL_TRUSTED,BAYES_00 autolearn=ham autolearn_force=no version=3.4.1 Received: from akathisia (ip4-83-240-49-150.cust.nbox.cz [83.240.49.150]) by air.basealt.ru (Postfix) with ESMTPSA id 098AE589A3B; Fri, 16 Nov 2018 11:17:03 +0000 (UTC) Date: Fri, 16 Nov 2018 12:17:01 +0100 From: Elvira Khabirova To: benh@kernel.crashing.org, paulus@samba.org, mpe@ellerman.id.au Cc: linuxppc-dev@lists.ozlabs.org, linux-kernel@vger.kernel.org, leitao@debian.org, oleg@redhat.com, luto@kernel.org, ldv@altlinux.org, esyr@redhat.com Subject: [PATCH v2] powerpc/ptrace: replace ptrace_report_syscall() with a tracehook call Message-ID: <20181116121701.14359da0@akathisia> MIME-Version: 1.0 Content-Type: text/plain; charset=US-ASCII Content-Transfer-Encoding: 7bit Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Arch code should use tracehook_*() helpers, as documented in include/linux/tracehook.h. Fixes: 5521eb4bca2d ("powerpc/ptrace: Add support for PTRACE_SYSEMU") Signed-off-by: Elvira Khabirova --- arch/powerpc/kernel/ptrace.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/arch/powerpc/kernel/ptrace.c b/arch/powerpc/kernel/ptrace.c index afb819f4ca68..d79d907f9acc 100644 --- a/arch/powerpc/kernel/ptrace.c +++ b/arch/powerpc/kernel/ptrace.c @@ -3266,7 +3266,7 @@ long do_syscall_trace_enter(struct pt_regs *regs) user_exit(); if (test_thread_flag(TIF_SYSCALL_EMU)) { - ptrace_report_syscall(regs); + (void) tracehook_report_syscall_entry(regs); /* * Returning -1 will skip the syscall execution. We want to * avoid clobbering any register also, thus, not 'gotoing' -- 2.19.1