Received: by 2002:ad5:474a:0:0:0:0:0 with SMTP id i10csp418145imu; Fri, 16 Nov 2018 04:43:25 -0800 (PST) X-Google-Smtp-Source: AJdET5chICfRjcD63p6PnXTVsa2n+PhbJiDjy4wJ2o4QdaEowVOw4ync1DDnRzDHKdwn7J9gzx/g X-Received: by 2002:a63:31d0:: with SMTP id x199mr9691110pgx.10.1542372205917; Fri, 16 Nov 2018 04:43:25 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1542372205; cv=none; d=google.com; s=arc-20160816; b=OiNjs6GU37L9wrQgY5OkfPGJ/R3/vTSAqQOpdb8Mip08RDHvh8xr/11U88Oc5cfLO9 y+phtATwLMdiLbKayXHNwEmhP22uc7/ARq3ApU4zRsPvUHnLsFdgDuPuzet9pQ+YnzQW ApB8//Jk4Vkaw+I1/qEJB/UOCfDDp4INHSWf8gjeFwG6tcHosFpVvGcCsbKXYcioLT/W ttivIJj3uUJRAn4y16Ns1rot1oh19QFs/eRdytr3GayFMtED+PKWvzLlm309GhZY0uHl NO+zY+d1wn9GPgs7sTU7Zt6IAylC0vcC3uLSufUS/dEH3RZXXOtDyHI5CfNWDqoQabPM 6XRQ== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:mime-version:message-id:date:references :in-reply-to:subject:cc:to:from; bh=25iMFnx0P9rtXVCdomTyyligIglYTfHBsfCvB7v4tXA=; b=gFgsVl6Qw0HXwMXvIPusoQdxPoxLFB00enfjD+T8WT4NjpDgM55g2DxWsJtvfufRGE r97U4N5Nb1GoEzwRD8T0H8NgZhCHfdA3uK5ywnWUPqdOCMfBnlmmDzx4dhfm8hpUE+QN JR1Zg1R0i6sNWjWJLvezlcUpMhgY649nr2VDvmihQ821EpSA+o+CzcRBBgY8Z2aiN0p1 +sYwFFtgtamQL0vZTtlv+HNMjFb9royQhM555A7uADGv9DcSP1fgig2YU/jmc95JoVxX bKENpsOHCC0MyqmWNvXA8dD7gSvInlHE6JiAU0EHmSd8t8+d0OYUOz+csGprSJNfe02S y8/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 q9si9138579pll.275.2018.11.16.04.43.11; Fri, 16 Nov 2018 04:43:25 -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 S2389683AbeKPWyl (ORCPT + 99 others); Fri, 16 Nov 2018 17:54:41 -0500 Received: from ozlabs.org ([203.11.71.1]:51243 "EHLO ozlabs.org" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1727772AbeKPWyl (ORCPT ); Fri, 16 Nov 2018 17:54:41 -0500 Received: from authenticated.ozlabs.org (localhost [127.0.0.1]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by ozlabs.org (Postfix) with ESMTPSA id 42xHtn347bz9sDC; Fri, 16 Nov 2018 23:42:25 +1100 (AEDT) Authentication-Results: ozlabs.org; dmarc=none (p=none dis=none) header.from=ellerman.id.au From: Michael Ellerman To: Elvira Khabirova , benh@kernel.crashing.org, paulus@samba.org 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: Re: [PATCH v2] powerpc/ptrace: replace ptrace_report_syscall() with a tracehook call In-Reply-To: <20181116121701.14359da0@akathisia> References: <20181116121701.14359da0@akathisia> Date: Fri, 16 Nov 2018 23:42:24 +1100 Message-ID: <87ftw12nyn.fsf@concordia.ellerman.id.au> MIME-Version: 1.0 Content-Type: text/plain Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Elvira Khabirova writes: > Arch code should use tracehook_*() helpers, as documented > in include/linux/tracehook.h. Thanks. It probably also should have a comment explaining why we're ignoring the return value and why that's OK. cheers > 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