Received: by 2002:ad5:474a:0:0:0:0:0 with SMTP id i10csp907057imu; Fri, 7 Dec 2018 10:45:01 -0800 (PST) X-Google-Smtp-Source: AFSGD/XG35/qNOTHrjLCRfcunUdnGp8FXy/b0gfUHUKHDyZQg5C75vOlAHq5EdKZdN9QI06H+5UD X-Received: by 2002:a17:902:541:: with SMTP id 59mr3237349plf.88.1544208301591; Fri, 07 Dec 2018 10:45:01 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1544208301; cv=none; d=google.com; s=arc-20160816; b=EimooVbut5qDELkugCJFrrUCN9GfkfuUsFSPF6uVzmKE3QqneqVtZQ+V7Ob0rLvT+j 9q1p4ccd0nTSzG34Ja3Y9pqClTqmotTP2EaxvWx75TTAMySha+7kpzI10O8g3tezGQ14 g6WC7X9p9HZ7cnp+ohhUjjUiziswihbpbW0fTyb6+0bPsia2ZA/1KlcpfvulXCLA7TZm 9yOR4NcrzJEDqDj3hDjka5+DTLKnf73f1eOdG9QjDLXq0MSW6gwMHHdoGubkC2YvY1CI gu2JTpKSDibYsoVeJtT68hMzSMGLYzuF22o23QddSFsl2ESD+eXGcurFCRSAaL1gNXB/ 7Lxg== 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=1OFSCQ3uKyp2K22Is4Pr8iKg4WybaYXOvnPhVCRgqks=; b=vy4Y4pgJJdz8p6zle+qgOq1DUmQ7RR0+07WWHmI9wyySCKC0bni9j6rVX4tFVmCoZ8 JisnNSx4rvm0xSyGN9lsT4VWmGTRRSJizjNDYHL9VUAuySQE8I1R6ik0XwJzBMraTI1C GR4mgrlAJanAEatMVShvYlWgtOSK7QcgP3iJbVcouMixMdC1JxeCnxxpzXM+cQVy4Nng WF5fdzqTM+Pbj/pO+KFK6uKd+bIbbsLE2Q3n4K8aMGVuwTAw+cHqj93WAiCN4FP5aYXj +6Waobg+WyYHOoKBYuXvKQTMCvebXHPbM6z6J0AkFFqUYoSLW5Flr6EeZH90NPH+/ezq SkPA== 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 28si3300464pgz.593.2018.12.07.10.44.46; Fri, 07 Dec 2018 10:45:01 -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 S1726177AbeLGSmt (ORCPT + 99 others); Fri, 7 Dec 2018 13:42:49 -0500 Received: from vmicros1.altlinux.org ([194.107.17.57]:51702 "EHLO vmicros1.altlinux.org" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1726011AbeLGSmt (ORCPT ); Fri, 7 Dec 2018 13:42:49 -0500 Received: from mua.local.altlinux.org (mua.local.altlinux.org [192.168.1.14]) by vmicros1.altlinux.org (Postfix) with ESMTP id 6190872CC59; Fri, 7 Dec 2018 21:42:46 +0300 (MSK) Received: by mua.local.altlinux.org (Postfix, from userid 508) id 549507CEAAE; Fri, 7 Dec 2018 21:42:46 +0300 (MSK) Date: Fri, 7 Dec 2018 21:42:46 +0300 From: "Dmitry V. Levin" To: Oleg Nesterov Cc: Michael Ellerman , Benjamin Herrenschmidt , Paul Mackerras , Breno Leitao , Andy Lutomirski , Eugene Syromyatnikov , Elvira Khabirova , linuxppc-dev@lists.ozlabs.org, linux-kernel@vger.kernel.org Subject: Re: [PATCH v4] powerpc/ptrace: replace ptrace_report_syscall() with a tracehook call Message-ID: <20181207184246.GA31278@altlinux.org> References: <20181116121701.14359da0@akathisia> <87ftw12nyn.fsf@concordia.ellerman.id.au> <20181119210139.GA8360@altlinux.org> <87efbe166y.fsf@concordia.ellerman.id.au> <20181203031823.GE11573@altlinux.org> <20181207011946.GA18558@altlinux.org> <87y391k2tq.fsf@concordia.ellerman.id.au> <20181207154255.GA28964@altlinux.org> <20181207163410.GA19110@redhat.com> MIME-Version: 1.0 Content-Type: multipart/signed; micalg=pgp-sha256; protocol="application/pgp-signature"; boundary="OgqxwSJOaUobr8KG" Content-Disposition: inline In-Reply-To: <20181207163410.GA19110@redhat.com> Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org --OgqxwSJOaUobr8KG Content-Type: text/plain; charset=us-ascii Content-Disposition: inline Content-Transfer-Encoding: quoted-printable On Fri, Dec 07, 2018 at 05:34:10PM +0100, Oleg Nesterov wrote: > On 12/07, Dmitry V. Levin wrote: > > On Fri, Dec 07, 2018 at 10:12:49PM +1100, Michael Ellerman wrote: > > > > > > Sorry, this patch does not work, please ignore it. > > > > > > Hmm OK. Why exactly? > > > > Unfortunately, I have no idea why it doesn't work. > > All I can say is it breaks strace because the kernel no longer sends > > syscall entry stops. >=20 > May be because TIF_SYSCALL_EMU/etc is a bit number, not a mask? IOW, rath= er > than >=20 > whatever & TIF_XXX >=20 > you should do >=20 > whatever & _TIF_XXX >=20 > intstead? Thanks Oleg, this was exactly the reason why it didn't work. That kind of things happens when you let userspace people hack you kernel. = :) --=20 ldv --OgqxwSJOaUobr8KG Content-Type: application/pgp-signature; name="signature.asc" -----BEGIN PGP SIGNATURE----- iQIcBAEBCAAGBQJcCr8mAAoJEAVFT+BVnCUIStwP/RCWLHfccYIYOaOZbt2c+XfP o4z6JNFxh37RDbYe+7Omdn+UNJKHc+QHkaRK3fO/2aceuGIshUkqi6IvV6pXy4au jYxFyD75dgYTV33iDvFOFrATkCXHy3jRxZpKaQOxWdMRBIdgPHTqhgFh2fL0T9i4 Ld/eoaUiUd1KwdpzuJod5S5IxEFkjQdnAollvroo0tAFvC6PRO1MqxvDGZ1SAyA1 umN9tG5GMFXKVlKRnuX1wp54EBB//idStq0CVCdLdEWi3MlcMPPGFXOZYndIS5SN 0XXD5CD3FFMt+Gl+1kP4Z1V+cOTYCajKWN7NLzVq79gPwqP3Fy7BWmVSzXyh2qFD npF/qcGX4zh3OilqY/8MM2T9MHH5I7Hi9WCWag2HmRVDc9nkvXpgPB5572XFF038 wEDV4ZBH/+uPzm53pushoFL7za/WKS+y0QIEIxy0aS12fXCsvUx1xIniPk2PfgXK aIjQje0UeVC5MQ0Qabmkavg849KsyoBR+kZA57bsv+PydyWR2MJPIWpmvB2OVwBc yuudwLTrkIZm30qE7w1cEROzWgTUnC/DcUDVu7zjtlLV41mITDxwcTTdWP0/OvCv UvyW5K3VPGviyvfNMT6bCH86Cjb5W2DqCxcdeW2ZvBXUnjS+KxnKQh9ulrSJqCm9 +mFvkgjOZJ324Ure7AZh =3hv8 -----END PGP SIGNATURE----- --OgqxwSJOaUobr8KG--