Received: by 2002:a25:683:0:0:0:0:0 with SMTP id 125csp323843ybg; Mon, 1 Jun 2020 02:17:19 -0700 (PDT) X-Google-Smtp-Source: ABdhPJzmq95nutJH1atcq1NT+5zU3jN/AHoLteIt37zJpDI8Px63GOfjdPO1/KQeVTcWfPm6yLFZ X-Received: by 2002:a50:ed14:: with SMTP id j20mr9927275eds.79.1591003039725; Mon, 01 Jun 2020 02:17:19 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1591003039; cv=none; d=google.com; s=arc-20160816; b=Uq/e8a9Xz+ZzQRoWqf8DpB8uW/14vSuZBkv3xNriyCk0tON2jr6OWSmsDPx+72d31v 6DNHG96mws/ufj3ft08Lgc42kG/Ai/FrBZMN2McCoujCqr03/faevWjXmW2NsVyOYX4P KcCC6WM8SI8exmCkvZAJ7CNLHgU9vgs/jQn+m4Eybor+pAbvm+89CAEqW41cZMmQsBP/ Ic3iD1ySarXoxlPwiyLu88xP5dgv4G/kJixEhbAuqQf3qiMCyiXwFn2M9SKPaHi9rLbV fG9+XRyAMNMmUlDF2cgyqL4RCXwRktg85kl2aQM6O8anKEuAxvRGhieroLkQ/o9T7RoF 9F0w== 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=TkdqvJHn80bHskeret9vwHmRny3HN12QZSZOJOGUG1s=; b=R0/NzudDtW6InTj3vl9tKpDjIrrBgOzSIsM0mW6lbqa/r5iB73puDkwvFeBQkoHGID NVXUnWCs91Q70LEjaob362HcVjcQEGjwXumldEJbhdvU5iiPgDkIR8VMPORQjAGvQx71 1yxl9GPkvEQcOpjWVbx9yHG3Ow/l2pQr4lA0kyh9pxkvWs7yIm1QjBd2UJjkBoaYuOnA QI8bMuw36gAeMySPnHjlmVhJtzgMQFtyPJ/USMnb/jajFfFj5pX3xizk9dccUqxI1ILY S5Zcy/l6fH3CPAy/SCkvXyhS3dvS+jZttQEZtHZJEJvhkZYK2stNsE3nd21/Gmf1qlED 5ynA== ARC-Authentication-Results: i=1; mx.google.com; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Return-Path: Received: from vger.kernel.org (vger.kernel.org. [23.128.96.18]) by mx.google.com with ESMTP id y1si10190498edi.491.2020.06.01.02.16.56; Mon, 01 Jun 2020 02:17:19 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) client-ip=23.128.96.18; Authentication-Results: mx.google.com; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1725970AbgFAJOp (ORCPT + 99 others); Mon, 1 Jun 2020 05:14:45 -0400 Received: from foss.arm.com ([217.140.110.172]:35244 "EHLO foss.arm.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1725778AbgFAJOp (ORCPT ); Mon, 1 Jun 2020 05:14:45 -0400 Received: from usa-sjc-imap-foss1.foss.arm.com (unknown [10.121.207.14]) by usa-sjc-mx-foss1.foss.arm.com (Postfix) with ESMTP id CE0E21FB; Mon, 1 Jun 2020 02:14:44 -0700 (PDT) Received: from arm.com (usa-sjc-imap-foss1.foss.arm.com [10.121.207.14]) by usa-sjc-imap-foss1.foss.arm.com (Postfix) with ESMTPSA id B12293F305; Mon, 1 Jun 2020 02:14:43 -0700 (PDT) Date: Mon, 1 Jun 2020 10:14:41 +0100 From: Dave Martin To: Keno Fischer Cc: Will Deacon , Kyle Huey , Catalin Marinas , Linux Kernel Mailing List , Oleg Nesterov , linux-arm-kernel@lists.infradead.org Subject: Re: arm64: Register modification during syscall entry/exit stop Message-ID: <20200601091441.GW5031@arm.com> References: <20200519081551.GA9980@willie-the-truck> <20200520174149.GB27629@willie-the-truck> <20200527095528.GC11111@willie-the-truck> <20200527101929.GT5031@arm.com> <20200531093320.GA30204@willie-the-truck> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: User-Agent: Mutt/1.5.23 (2014-03-12) Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On Sun, May 31, 2020 at 12:13:18PM -0400, Keno Fischer wrote: > > Keno -- are you planning to send out a patch? You previously spoke about > > implementing this using PTRACE_SETOPTIONS. > > Yes, I'll have a patch for you. Though I've come to the conclusion > that introducing a new regset is probably a better way to solve it. > We can then also expose orig_x0 at the same time and give it sane semantics > (there's some problems with the way it works currently - I'll write it up > together with the patch). I'd worry that having a new ptrace option would be useless bug- compatibility that is just going to bitrot. Can you explain why userspace would write a changed value for x7 but at the same time need that new to be thrown away? That sounds like a nonsensical thing for userspace to be doing. Cheers ---Dave