Received: by 2002:a05:6a10:8c0a:0:0:0:0 with SMTP id go10csp1131008pxb; Thu, 4 Mar 2021 04:14:52 -0800 (PST) X-Google-Smtp-Source: ABdhPJzwh7lOqUGHCuqaKnh44Ixp/ogWRjZcaTcRYlteh649y9Q2wKEPLDgoTJBI+NkEakwdEdhQ X-Received: by 2002:aa7:c398:: with SMTP id k24mr3945886edq.61.1614860091895; Thu, 04 Mar 2021 04:14:51 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1614860091; cv=none; d=google.com; s=arc-20160816; b=b+SlHrU9gOR8Kv5T4v4473KxpTFnzEsbwsoFXOqneRSLFCNynYCJDVyWWG3a+cFPze cZ84ZMblvaDedpF7ByZkyDP48M4sfCKInZ+gajQF/4bryceHcPbqaG721KCAB6xAFBgS NXiXpVr+VrHSdTml2nDdz6yH0dP0DulUFaZHkvlCS5wPpx8L7WzvjZeEBlHs4FBYKE3A U4FlRpHP9Asq6th/rZp59XYJ8jB/Uz6KoohsYgiXW8ToajHMoZKH8lX7Idu7s4iBh0Vn C4hfkb3M8Mdr9rmezkvVG360fZ7uz9lnGPnHMJBa2rFka90bnt5IrvFrP8vFlkuyT+6/ eLsw== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:mime-version:user-agent:message-id:in-reply-to :date:references:subject:cc:to:from:dkim-signature; bh=72AvldDshkpAm4vjL1rTWERNo04lTYkEaJw4N5Ow1KY=; b=S99o2sYo2dv6SMoNM+DR8wSVdoGMXVbDuxYHIS9xa6HgTm7rMmNh0YZWo5i0c1Rps0 lABYamZSdR3eB4XI2w5px9s8cngv6ulVhQlosq8ZiDP6mVf4G5pT/zyGjMsqgonMarqt 5i9nlhyp7j22TVCqgYI96DL3vMXIOTJmVWho9ElRwsuMMCiaCiVBr9gy33gMfy5Ma4jH LOdfzApfLEEcKumlpAgiyk3UUupRXdCtMb5ZsL6UC0tsWHHS3j6YEJQTSDPZ2hi/9ZXE eUjbgNn+2s+piIQfyknJUIEEG4aU2kmxTLJ5jhpvXpWSnQxXlzcoMMZyGNz6cgPVqtkP sqlQ== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@redhat.com header.s=mimecast20190719 header.b=KwaJjgMd; 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; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=redhat.com Return-Path: Received: from vger.kernel.org (vger.kernel.org. [23.128.96.18]) by mx.google.com with ESMTP id p10si9653621eji.76.2021.03.04.04.14.29; Thu, 04 Mar 2021 04:14:51 -0800 (PST) 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; dkim=pass header.i=@redhat.com header.s=mimecast20190719 header.b=KwaJjgMd; 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; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=redhat.com Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1580674AbhCCSej (ORCPT + 99 others); Wed, 3 Mar 2021 13:34:39 -0500 Received: from us-smtp-delivery-124.mimecast.com ([216.205.24.124]:52682 "EHLO us-smtp-delivery-124.mimecast.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S236515AbhCCRMW (ORCPT ); Wed, 3 Mar 2021 12:12:22 -0500 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=redhat.com; s=mimecast20190719; t=1614791437; h=from:from:reply-to:subject:subject:date:date:message-id:message-id: to:to:cc:cc:mime-version:mime-version:content-type:content-type: in-reply-to:in-reply-to:references:references; bh=72AvldDshkpAm4vjL1rTWERNo04lTYkEaJw4N5Ow1KY=; b=KwaJjgMdoaO8EQJrjzNTcoUAq2SmwZuMpfzkcmoENN+gTQbSIndpHRrumSXbNuAKFdXf/j 4RqPuwFWe1utVlap0X7OXuSDX5do5RsqlBYCqzDAd1WHDhjSH01m46Bcqa1EhhF4DpABW+ TK316qlKshl3JK+F+PKkS5zubAp8xW8= Received: from mimecast-mx01.redhat.com (mimecast-mx01.redhat.com [209.132.183.4]) (Using TLS) by relay.mimecast.com with ESMTP id us-mta-391-Vzp06uWgMW-4lLCQSKAZmA-1; Wed, 03 Mar 2021 12:10:33 -0500 X-MC-Unique: Vzp06uWgMW-4lLCQSKAZmA-1 Received: from smtp.corp.redhat.com (int-mx06.intmail.prod.int.phx2.redhat.com [10.5.11.16]) (using TLSv1.2 with cipher AECDH-AES256-SHA (256/256 bits)) (No client certificate requested) by mimecast-mx01.redhat.com (Postfix) with ESMTPS id ACB2E100A61D; Wed, 3 Mar 2021 17:10:29 +0000 (UTC) Received: from oldenburg.str.redhat.com (ovpn-112-51.ams2.redhat.com [10.36.112.51]) by smtp.corp.redhat.com (Postfix) with ESMTPS id 006F45C5DF; Wed, 3 Mar 2021 17:10:21 +0000 (UTC) From: Florian Weimer To: Mathieu Desnoyers Cc: Piotr Figiel , Andrew Morton , Peter Zijlstra , paulmck , Boqun Feng , Oleg Nesterov , "Dmitry V. Levin" , Alexey Dobriyan , Andrei Vagin , linux-kernel , Peter Oskolkov , Kamil Yurtsever , Chris Kennelly , Paul Turner , emmir , linux-man , linux-api Subject: Re: [PATCH v2] ptrace: add PTRACE_GET_RSEQ_CONFIGURATION request References: <20210226135156.1081606-1-figiel@google.com> <192824546.8190.1614353555831.JavaMail.zimbra@efficios.com> Date: Wed, 03 Mar 2021 18:10:27 +0100 In-Reply-To: <192824546.8190.1614353555831.JavaMail.zimbra@efficios.com> (Mathieu Desnoyers's message of "Fri, 26 Feb 2021 10:32:35 -0500 (EST)") Message-ID: <87h7lsuprw.fsf@oldenburg.str.redhat.com> User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/27.1 (gnu/linux) MIME-Version: 1.0 Content-Type: text/plain X-Scanned-By: MIMEDefang 2.79 on 10.5.11.16 Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org * Mathieu Desnoyers: > This way, the configuration structure can be expanded in the future. The > rseq ABI structure is by definition fixed-size, so there is no point in > having its size here. > > Florian, did I understand your request correctly, or am I missing your > point ? No, the idea was that if the kernel ever supports different rseq ABI sizes on registration (it could as there's a size argument to the rseq system call), that needs to be communicated to CRIU, so that it restores with the right size. I haven't thought about whether it makes sense to make the ptrace argument struct extensible. Thanks, Florian