Received: by 2002:ad5:474a:0:0:0:0:0 with SMTP id i10csp770146imu; Fri, 7 Dec 2018 08:37:04 -0800 (PST) X-Google-Smtp-Source: AFSGD/Xr5lD0J3kEbGN2nHQizfM56IoFecDqEZ3L1LHsJ812ABO+jbBqqRa/MY68AM0f5qGJaLoq X-Received: by 2002:a17:902:7402:: with SMTP id g2mr2727152pll.198.1544200624826; Fri, 07 Dec 2018 08:37:04 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1544200624; cv=none; d=google.com; s=arc-20160816; b=VwEYoi3bA9amT0HvMarvF/9tRlNcA96wunhmCTcIO3lLIo2guBEeT0vQTo7aWY2m8f 8LHyUHvguXXQMdEpxr5GHu86xOg+GlawCs6G8doSgMRI5fd+1n59anyPVI34ukPvnALb LEVvfVEiQnld+EGrACS1ZlOi4mSl04F3LEFDwOqDjX1QHAMfc7siM1N6GoMFdevh995k RfTxaQaPArugg3j2ggVm4By/NzYFBJf46Zotux43+58x8gDjEGlDI5NZYGfeJQSfAuLW 62nyVlkfJc3fX0ljVyaFYFSTgCqVkQ+nceq8rEk/g/8tlRGccOWpo+CHMYVr1jd+yZH2 Um9w== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:user-agent:in-reply-to :content-disposition:mime-version:references:message-id:subject:cc :to:from:date; bh=GEhWYrPMfi131LRbOCVT6DevwOMpgIN5VURE45r5KDo=; b=xk9Y1koAIjP4QHp+ZmDAWieVBTm7ofTA5/Ystbn3iVKhphRVOpSUUgdZ2nI6J629sx BueJ1YLrJk0BsX/yeiJ6SAlassJv1mHcJH4gEg2b+3gEot5V7by9ttOaQZMNKlu3XEOl 8ZWIfN4yiyie8qvJRc9Y/oWBbtk81TRuibM0JvB3UUTJc6hGV4KkbiDEfI68uamuVNl8 gPf2243cueV+w0fkULhQSqaieJ94HgUoSTkqRIkMFKCof7HCLW16M3D537IVDGgfu9KO cSYKMbRv+iTRePYsB2tmtGQTOAJM+VM9uVZveoOi8/293HpOoBQ9gv5v7qwg1Cb4LO+3 icOg== 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; dmarc=fail (p=NONE sp=NONE dis=NONE) header.from=redhat.com Return-Path: Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id g33si3113721pgm.426.2018.12.07.08.36.45; Fri, 07 Dec 2018 08:37:04 -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; dmarc=fail (p=NONE sp=NONE dis=NONE) header.from=redhat.com Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1726090AbeLGQeQ (ORCPT + 99 others); Fri, 7 Dec 2018 11:34:16 -0500 Received: from mx1.redhat.com ([209.132.183.28]:35836 "EHLO mx1.redhat.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1726027AbeLGQeQ (ORCPT ); Fri, 7 Dec 2018 11:34:16 -0500 Received: from smtp.corp.redhat.com (int-mx08.intmail.prod.int.phx2.redhat.com [10.5.11.23]) (using TLSv1.2 with cipher AECDH-AES256-SHA (256/256 bits)) (No client certificate requested) by mx1.redhat.com (Postfix) with ESMTPS id 82E5F30016E7; Fri, 7 Dec 2018 16:34:16 +0000 (UTC) Received: from dhcp-27-174.brq.redhat.com (unknown [10.43.17.131]) by smtp.corp.redhat.com (Postfix) with SMTP id 6C81D1974D; Fri, 7 Dec 2018 16:34:11 +0000 (UTC) Received: by dhcp-27-174.brq.redhat.com (nbSMTP-1.00) for uid 1000 oleg@redhat.com; Fri, 7 Dec 2018 17:34:16 +0100 (CET) Date: Fri, 7 Dec 2018 17:34:10 +0100 From: Oleg Nesterov To: "Dmitry V. Levin" 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: <20181207163410.GA19110@redhat.com> 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> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <20181207154255.GA28964@altlinux.org> User-Agent: Mutt/1.5.24 (2015-08-30) X-Scanned-By: MIMEDefang 2.84 on 10.5.11.23 X-Greylist: Sender IP whitelisted, not delayed by milter-greylist-4.5.16 (mx1.redhat.com [10.5.110.45]); Fri, 07 Dec 2018 16:34:16 +0000 (UTC) Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org 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. May be because TIF_SYSCALL_EMU/etc is a bit number, not a mask? IOW, rather than whatever & TIF_XXX you should do whatever & _TIF_XXX intstead? Oleg.