Received: by 2002:a05:6a10:2785:0:0:0:0 with SMTP id ia5csp691451pxb; Wed, 13 Jan 2021 13:40:01 -0800 (PST) X-Google-Smtp-Source: ABdhPJyAUc7dZq3kiMLe6IsW/0cK8PNbZBfl7U+GfSIyIug3dVMibSq3dCrmnHDIjTjxYuMnIkPn X-Received: by 2002:a50:b586:: with SMTP id a6mr3404092ede.206.1610574001624; Wed, 13 Jan 2021 13:40:01 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1610574001; cv=none; d=google.com; s=arc-20160816; b=H3s2BWn7KBPNzVjPE5GKDfq4PJ8bho9EMnnguWVha0VISqXT6zFADtepnojAKMWcju CFgEZqSCs38a+cmvBJrlsbwfAZHdBLTWnjOJEJBgjme0R2D7lsBoNNvZv3jp17gt6sOQ Xm7IkUigasbWnnRykZnICWMmlRvrYLJBxIQovrBf7SoA9Sk2WyuX0nW4h6CwuM4gnReb 9ViNvgovx156WjnmVYptRyXqQSnkLZSm7hJ1Ud/gyuXfYy7fytEjC2yGpakrT1OwBdFm 9ZPl8wxkakCj2j81zrmdSwJHKondcb8CW6zY9uHKK6cVJ7A9Rhna3neGIeIfrH/tYHw1 09iw== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:in-reply-to:content-disposition:mime-version :references:message-id:subject:cc:to:from:date:dkim-signature; bh=C1D6OpS9nOPNTAL661gj0FTLgnooIvfmNmJpQrvYYu4=; b=I/GwZzb0qTWJ0eVEFPExDk67LubwMdWlZFeoGQqY8AZHFIXmZXPmC1o9BUc1dx5PNi Oxk5MEVOSUPwxhQ2ln8MERTFvDZjTnzRA31gfTBlEdAa0g1vUbzycc6fWRfXn3ulWRA/ AGMjjeUQ7HsvK76nN6qdClYP3/PqqA5wIZruTN1xuuhK4A8+j4N9kZ633B4hyhjZzk4I 7gxVv1tsVBjX9EwsRdpGjgm5QX06A2/ZToa6L/7fSymag5A+FeoqGZL7umvSpKYctU4M Fq2L/418e9+4xr5aW3OUWnLNOJquTV2YyC5BE7HZNOdxsA4HeaWcLebeTZq6SAgtNKg3 niXw== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@gmail.com header.s=20161025 header.b=sAvodikF; 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=QUARANTINE dis=NONE) header.from=gmail.com Return-Path: Received: from vger.kernel.org (vger.kernel.org. [23.128.96.18]) by mx.google.com with ESMTP id fy14si1416671ejb.227.2021.01.13.13.39.38; Wed, 13 Jan 2021 13:40:01 -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=@gmail.com header.s=20161025 header.b=sAvodikF; 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=QUARANTINE dis=NONE) header.from=gmail.com Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1729190AbhAMViL (ORCPT + 99 others); Wed, 13 Jan 2021 16:38:11 -0500 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:44082 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1729013AbhAMVdV (ORCPT ); Wed, 13 Jan 2021 16:33:21 -0500 Received: from mail-wr1-x429.google.com (mail-wr1-x429.google.com [IPv6:2a00:1450:4864:20::429]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id E4AEEC061575; Wed, 13 Jan 2021 13:32:34 -0800 (PST) Received: by mail-wr1-x429.google.com with SMTP id a12so3642083wrv.8; Wed, 13 Jan 2021 13:32:34 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20161025; h=date:from:to:cc:subject:message-id:references:mime-version :content-disposition:in-reply-to; bh=C1D6OpS9nOPNTAL661gj0FTLgnooIvfmNmJpQrvYYu4=; b=sAvodikFz3mZ5/hcI7jeCBI8awd8Gkp0GiUMiP+09PgZZxw02S6hf1FgcEEErDOM/7 aNSy3GCfaX63RMZX7Twwv1YVJJC6n+Gvyn3Q2RF7Y+LUUQ1a9JkqGa26ZfN28RhjoqAS 7ez94e1YpL23VHtx2h0stkOtVPdOHO0ym9caNvivJa3sbXYdmy2IWgZqoV1nVZG91b8C kWYZBd7Q35LS4d65GpJ0lHFmQMUBJO1IPGDN9lz63TYgFLjeZMquX/gVaidmPEIT66nB 1B4gHOA5UJYK82OZ9jW9x4k4Uzx6I8mQS42oqYLreoEpyFSpXVJhdWDpCY2u7Kpv4LeU uI9Q== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:date:from:to:cc:subject:message-id:references :mime-version:content-disposition:in-reply-to; bh=C1D6OpS9nOPNTAL661gj0FTLgnooIvfmNmJpQrvYYu4=; b=WfJsF93XoNqRPBzNpGvwwe5U4zoHJX1vA+OK4TYJFX1nNfOUATtH4rRcnkJ9oRlF4K zvdMukFL6BIwnXQDI1T+TuAhP8ryRRavLEjFrWzA2VluLy3LIdgeu3vdZrAeetIMDJvg X9gFngIp6ivcYyRPUFhldV5C9er0wywYNnp1Hv4MdB7i9YyQLlRGMHiRvPt+sjFWekST QEZ7svcFyBh9DxehCOmrv4hJa93GbjH6umig5K2lRNWwvVUZpsZcb/Lf8GzXEgYoNg4P xxc+l31SjOWqsBdGJ1xS1R5wtifSAm+5Vd5vYsQ8+fn5rQuFuiMlHhhol/0vEyRnL6T9 jEpQ== X-Gm-Message-State: AOAM532yK0wyscoaQ1IP5GQ1xuvLhEO2rmkfM4VC1jrJWVm3K3Z58SUn OAnHXePN88KA/vSqSex2F6bb8cySAqJV X-Received: by 2002:adf:ce84:: with SMTP id r4mr4485117wrn.91.1610573553740; Wed, 13 Jan 2021 13:32:33 -0800 (PST) Received: from localhost.localdomain ([46.53.249.51]) by smtp.gmail.com with ESMTPSA id r7sm4630108wmh.2.2021.01.13.13.32.32 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Wed, 13 Jan 2021 13:32:33 -0800 (PST) Date: Thu, 14 Jan 2021 00:32:30 +0300 From: Alexey Dobriyan To: Piotr Figiel Cc: "Eric W. Biederman" , Andrew Morton , Kees Cook , Alexey Gladkov , Christian Brauner , Michel Lespinasse , Bernd Edlinger , Andrei Vagin , mathieu.desnoyers@efficios.com, linux-kernel@vger.kernel.org, linux-fsdevel@vger.kernel.org, posk@google.com, kyurtsever@google.com, ckennelly@google.com, pjt@google.com Subject: Re: [PATCH] fs/proc: Expose RSEQ configuration Message-ID: <20210113213230.GA488607@localhost.localdomain> References: <20210113174127.2500051-1-figiel@google.com> MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Disposition: inline In-Reply-To: <20210113174127.2500051-1-figiel@google.com> Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On Wed, Jan 13, 2021 at 06:41:27PM +0100, Piotr Figiel wrote: > For userspace checkpoint and restore (C/R) some way of getting process > state containing RSEQ configuration is needed. > + seq_printf(m, "0x%llx 0x%x\n", (uint64_t)task->rseq, task->rseq_sig); %llx is too much on 32-bit. "%tx %x" is better (or even %08x)