Received: by 2002:ad5:474a:0:0:0:0:0 with SMTP id i10csp6710imu; Wed, 7 Nov 2018 12:04:26 -0800 (PST) X-Google-Smtp-Source: AJdET5fMogOi8T5tmLao4XAKLZodByJ5CBsGFtY0b+gU4lEkWCgv7FOWLCzFsNHgtTSYk3iZzeVJ X-Received: by 2002:a63:e101:: with SMTP id z1mr1397851pgh.310.1541621066801; Wed, 07 Nov 2018 12:04:26 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1541621066; cv=none; d=google.com; s=arc-20160816; b=1GDdZkHhVQbirIMFOVesJIqgZxJHffOZc5siQBE5B5uy1NVtnNx7oieX+2Gm4RaYr8 xp84+6SvmgxnEPn6bBcIJut/Esod7bJdYXU/lKxZo9rWxKpZqU8tEgUmyqjUWI8U6ezM t5Rhi9Vcv9XEvNhYXxkCVVLYyvNMgB+nkDdtKTay1nZSxLRO1zChcvIW84d6oPoRjxnc cRBpqH3yVjDY1me73+FDuSNgBx1rhwVe9PzIGUqmF43gSthU+odsDY6rhREBi54MY1z4 FVTD+h1hex8iE/UK6P9x16qQFRFuk5Az76Y44QPWSDRrGvTqm5jMLLNC3ZYrXcekCY3j kWjw== 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 :references:in-reply-to:message-id:subject:cc:to:from:date; bh=3bkVMw4IWlZjRAGl4koTDve9q1FrDAfvixDxABywyuk=; b=GbcjhTlU3GsJ41TCZIQdHaf+rMJAyNNFiUhpyjVU//L3SArHB4wxY+3IGPGBrNk4lD 6J6CP5d/vFc4VYy46LwhvA60wmVuAbL6be4meAnkGW6LXLsFy5AopYlSQNJB8cM3a/kb 7gpvckzYrH0LHT3Nyclt5uLi2RzzQC/qC2EtVt+WN7MsvKQ7tbi/eeJfqP2RdRifZfx+ WQ995si6L9+XZdVXJOEIc/at3pm8eZLHtATwVjkSA4Cr5YwN+9QifLdsWGyY9yhDrIBz l3NSqCLFB9XbJR1thVfPcShj9yhkGhnTe4wQzt7xPSmLk1C9pSOsKvZVqekwtAp+7xuk gPLw== 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 h5-v6si1708441pfg.226.2018.11.07.12.04.10; Wed, 07 Nov 2018 12:04:26 -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 S1726722AbeKHFew (ORCPT + 99 others); Thu, 8 Nov 2018 00:34:52 -0500 Received: from air.basealt.ru ([194.107.17.39]:39056 "EHLO air.basealt.ru" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1726027AbeKHFew (ORCPT ); Thu, 8 Nov 2018 00:34:52 -0500 Received: by air.basealt.ru (Postfix, from userid 490) id C26E9589A96; Wed, 7 Nov 2018 20:02:57 +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 502C558959F; Wed, 7 Nov 2018 20:02:55 +0000 (UTC) Date: Wed, 7 Nov 2018 21:02:51 +0100 From: Elvira Khabirova To: Oleg Nesterov Cc: Andy Lutomirski , rostedt@goodmis.org, mingo@redhat.com, linux-kernel@vger.kernel.org, ldv@altlinux.org, esyr@redhat.com, luto@kernel.org, strace-devel@lists.strace.io Subject: Re: [RFC PATCH] ptrace: add PTRACE_GET_SYSCALL_INFO request Message-ID: <20181107210251.542cf8a1@akathisia> In-Reply-To: <20181107164443.GA8726@redhat.com> References: <20181107042751.3b519062@akathisia> <20181107112100.GA20419@redhat.com> <3BDB914D-12F3-4703-A033-EBE02226EC45@amacapital.net> <20181107164443.GA8726@redhat.com> 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 On Wed, 7 Nov 2018 17:44:44 +0100 Oleg Nesterov wrote: > To me PT_IN_SYSCALL_STOP makes no real sense, but I won't argue. > > At least I'd ask to not abuse task->ptrace. ptrace_report_syscall() can clear > ->ptrace_message on exit if we really want PTRACE_GET_SYSCALL_INFO to fail after > that. I really would not like to rely on ->ptrace_message remaining empty; this looks too fragile.