Received: by 2002:ad5:474a:0:0:0:0:0 with SMTP id i10csp2570200imu; Mon, 17 Dec 2018 04:22:35 -0800 (PST) X-Google-Smtp-Source: AFSGD/UUO8b0t0iGd0GDbXc8o0V6Yh7866KuuCWzhrSIOhTebRClR+phkVJml2HfMi3zhQuIYQb/ X-Received: by 2002:a17:902:6909:: with SMTP id j9mr12068549plk.196.1545049355320; Mon, 17 Dec 2018 04:22:35 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1545049355; cv=none; d=google.com; s=arc-20160816; b=bNcvZED1srxsrwXuTJvVkxxHz6zloaY8wQjBmZBD90vHRWQVptwDp8PUnSY0v1BZoX tDNArjqC02k0bX98c9Nv3V/W326xIfzABmk/7lv7voGNMYoZNyd46vKQiR6uHzKNhYwj NBDNaIu7Wzo9GDEojPnF5/rHf9EzsMmHfMCnu5zAyRWl6PxczFUnk+IslSnZol+9JydF JvNFXSvj9c+SuOY4kf5S2Eh0l+iRvCEvQAdP/gamzID3QKFDK8mcAiIjOxzvrflnc8x2 R6LjTgs1APhKRzg6N+0xcmNIZnCYlx4wNdeEa/S1Fkp6VHHBMl1oRZTprk8dQMdlxJZ6 zv0w== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:in-reply-to:content-disposition :mime-version:references:message-id:subject:cc:to:from:date; bh=c2QU+d7LnQX5M5bsUUu4DGwdeWiZCTczqcIl0+swRvM=; b=So/1/PWH0QfwuVMtL+XNoCvNBRI2rD5X/t1qodwGi6RZczYA///lvVcsJntllvE1ri YV4VQkVV4qgCCPjuaPaK622fVqPZMaP5YIxBkEkVMJawfNj8/HsaaJoaduQMFhfxaeR5 UhD5uFLefMmb8tAeyOcknyyWA2d46TDvhhreqP6ud3bOxcWMVncE/IHRvwjR5bQUNH/u 7bpcfeA31HrXFMEJkpb1qPQAjbddyFrLKVILG0fUhNGTLrZCfB6CW9cG/blsCdILOLb7 IRCwJpqsE1nkqbHCh4sVpPGRPZ0HYYzCWfsnronIpFkv6AvoWL3rEPCogZCIlLy1Ej15 r5Vg== 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 g10si10327966plq.371.2018.12.17.04.22.19; Mon, 17 Dec 2018 04:22:35 -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 S1727144AbeLQLXy (ORCPT + 99 others); Mon, 17 Dec 2018 06:23:54 -0500 Received: from vmicros1.altlinux.org ([194.107.17.57]:57974 "EHLO vmicros1.altlinux.org" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1726810AbeLQLXy (ORCPT ); Mon, 17 Dec 2018 06:23:54 -0500 Received: from mua.local.altlinux.org (mua.local.altlinux.org [192.168.1.14]) by vmicros1.altlinux.org (Postfix) with ESMTP id 0089E72CA5E; Mon, 17 Dec 2018 14:23:51 +0300 (MSK) Received: by mua.local.altlinux.org (Postfix, from userid 508) id E4340964720; Mon, 17 Dec 2018 14:23:50 +0300 (MSK) Date: Mon, 17 Dec 2018 14:23:50 +0300 From: "Dmitry V. Levin" To: Michael Ellerman Cc: Oleg Nesterov , linuxppc-dev@lists.ozlabs.org, linux-kernel@vger.kernel.org Subject: Re: [PATCH] powerpc/ptrace: cleanup do_syscall_trace_enter Message-ID: <20181217112350.GB5778@altlinux.org> References: <20181203031823.GE11573@altlinux.org> <20181207011946.GA18558@altlinux.org> <87y391k2tq.fsf@concordia.ellerman.id.au> <20181207154255.GA28964@altlinux.org> <20181207155605.GB28964@altlinux.org> <20181207185226.GB31278@altlinux.org> <20181210132806.GA4177@redhat.com> <20181210133655.GH11942@altlinux.org> <20181216172828.GA25359@altlinux.org> <87y38otn5x.fsf@concordia.ellerman.id.au> MIME-Version: 1.0 Content-Type: multipart/signed; micalg=pgp-sha256; protocol="application/pgp-signature"; boundary="pvezYHf7grwyp3Bc" Content-Disposition: inline In-Reply-To: <87y38otn5x.fsf@concordia.ellerman.id.au> Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org --pvezYHf7grwyp3Bc Content-Type: text/plain; charset=us-ascii Content-Disposition: inline Content-Transfer-Encoding: quoted-printable Hi, On Mon, Dec 17, 2018 at 10:20:26PM +1100, Michael Ellerman wrote: > "Dmitry V. Levin" writes: > > Invoke tracehook_report_syscall_entry once. >=20 > Thanks. >=20 > > Signed-off-by: Dmitry V. Levin > > --- > > arch/powerpc/kernel/ptrace.c | 54 +++++++++++++++++++++--------------- > > 1 file changed, 31 insertions(+), 23 deletions(-) > > > > diff --git a/arch/powerpc/kernel/ptrace.c b/arch/powerpc/kernel/ptrace.c > > index 714c3480c52d..8794d32c2d9e 100644 > > --- a/arch/powerpc/kernel/ptrace.c > > +++ b/arch/powerpc/kernel/ptrace.c > > @@ -3263,32 +3263,40 @@ static inline int do_seccomp(struct pt_regs *re= gs) { return 0; } > > */ > > long do_syscall_trace_enter(struct pt_regs *regs) > > { > > + u32 cached_flags; > > + >=20 > Do you mind if I just call it "flags", I find "cached_flags" a bit > unwieldy for some reason. >=20 > I'm happy to fix it up when applying. No problem, feel free to call it whatever you like. Thanks, --=20 ldv --pvezYHf7grwyp3Bc Content-Type: application/pgp-signature; name="signature.asc" -----BEGIN PGP SIGNATURE----- iQIcBAEBCAAGBQJcF4dGAAoJEAVFT+BVnCUIqN0P/ROF4ZwS3xzAexyXGTVWOSqK j/l3IVN+IZCQFAXjHBHn8b2p/6/WlQiImJFykJIv1SwkrbXZ66k387FdcbGywlix T6vK3lq1r4jPqC3QhrBWQvYkpeX5hkmG698r4Z6WoMW9G12Z407ScGpSAlLEDNsR PspeHVKs0keASgix/Xt7S0MHhryLgDhQjnKFzbJkLzSc8RtThNVtZY2JI/rzVYGQ apa5KQ+rnhILwyG2yLA0qo4JJynexUeXHuUmXLyTyvlEEMTPloAO4WcFJxITWI++ ofwWoyJQZPDOpfIwo8JXO/mhs/Nds0X1Hnmo+eHOx4D0K91UGhlzfTbZ6IaoMKK0 mtLQPcyjflircLerqZ+HxslzovnVSIc3vLSTaHpqf75qLiEswwz1WucYhjWqvLMc 0ZkXBrsv4R6lVwLDtN0iRBMtUMpR7IbZpyz4qJV8+5vj2rJkOx6ayuk7HfjWN/Ir UCvR/0lg3oZRPPZjMWf0pi1bjVeM2ivVdz2oCv79nYJ5AhVo46j5HZReFWAT8jrP ZkqzbZE+cL++oHM/PbWBxDcbaM3Ai6bfm7kI7ti3f7abTC4pqgQIG8xsoZkcv0uc 1B81/fWYG6jtsr0G2mc9sS3EBOBLsLaipgD8BX5YwGAw+y6MMS9o3bLepPFOp+S+ NSfp2wySjVujD8Ti0h0u =bfGc -----END PGP SIGNATURE----- --pvezYHf7grwyp3Bc--