Received: by 2002:a05:6a10:2785:0:0:0:0 with SMTP id ia5csp519193pxb; Thu, 14 Jan 2021 11:25:42 -0800 (PST) X-Google-Smtp-Source: ABdhPJwBABXcZHSOLurRDd4woew9CGc7YsBA/A6pEDl1t9lGSReoOXnIMm8QaXmA8OMbPRbxYMuG X-Received: by 2002:a05:6402:310f:: with SMTP id dc15mr6803668edb.225.1610652342562; Thu, 14 Jan 2021 11:25:42 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1610652342; cv=none; d=google.com; s=arc-20160816; b=JeZhotN7ZLMNKOJx3QlNnMFgHdoZ5rHR7i0r0O46z2CT/iZvfnZMsAcwJTNus+u6wb 71mYaKbsMPZsEJ9jk0DvZKlzrw8MrvnZoUqmUEMp4D/mhO/AE5GudbWwm32SX5vCqlSY 9oZmSnH5pvsGNHbE9qSthYjeFa6uzem7ILUCAtMj228+Zy3OfqbzWB3ZBVqOIJ7lMo+d fuaHaTAemw1kUrW7V9N2nw7njEJro2VGQZ+NGo1bC+Cru6zxJNKXZQxHfXnodC5vtaFC 6LtdERVVCbFtxqvPv2KNDPZ69uJsJI9V9v52O+riK6bOc+qEYNUztxXA8aSeENdbXIuW tV9Q== 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=G+3wq4HbMGsLz02vnWPc8X5CuisGBMzZ/msi7tDk0Cc=; b=NiIKRxDfVNeXd3EyxQqrwVwmZkfICaeoJR+/b9gpt5tHT8HhyiAqiVj/9USDS1doFu FdYs6lERCPSsjuWlVCe+RzW6QcLbGmOoK0cjWp7M2Lh76YeBD515GiDvgyV6JWPBEWUC IuV/2S2NagAMq4p0Orv2Vpu8bpuHZBmPBtHarP7VMSzNmoHi+gibUTxXvJSATBPINc6f b9JB0J5O/a4njTswjugd5oo7s3fo35vXi/eRBB/7JwBPaBuJIjOCDeHhXlELRqUBmHPi I6TglmQb6bI3BY1caDSLTruFT+iZzmZuAaP2rbhPlQbd7LPVkhrJPo1tVuyuEsmX39cL sLdg== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@google.com header.s=20161025 header.b=Ejbyg26r; 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=REJECT sp=REJECT dis=NONE) header.from=google.com Return-Path: Received: from vger.kernel.org (vger.kernel.org. [23.128.96.18]) by mx.google.com with ESMTP id x20si3072495edv.330.2021.01.14.11.25.18; Thu, 14 Jan 2021 11:25:42 -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=@google.com header.s=20161025 header.b=Ejbyg26r; 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=REJECT sp=REJECT dis=NONE) header.from=google.com Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1729997AbhANTUz (ORCPT + 99 others); Thu, 14 Jan 2021 14:20:55 -0500 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:43322 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1728994AbhANTUz (ORCPT ); Thu, 14 Jan 2021 14:20:55 -0500 Received: from mail-ej1-x62b.google.com (mail-ej1-x62b.google.com [IPv6:2a00:1450:4864:20::62b]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id ADF78C0613C1 for ; Thu, 14 Jan 2021 11:20:14 -0800 (PST) Received: by mail-ej1-x62b.google.com with SMTP id w1so9817517ejf.11 for ; Thu, 14 Jan 2021 11:20:14 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=20161025; h=date:from:to:cc:subject:message-id:references:mime-version :content-disposition:in-reply-to; bh=G+3wq4HbMGsLz02vnWPc8X5CuisGBMzZ/msi7tDk0Cc=; b=Ejbyg26r3zoTbu/HIHrzEVIxt0cl9UJH08qjWjRc4XBuXSllW0qFGwSgwywiQSHZ5h 4FqOy/ydMWnI2HrlO3dPBZzKUWBcuXLLYfKhjfx4G/JSQu6KnrB9yvIRHtvqQhrnjO/c Q+cDqa+FFwSB4Eapu1DD9AULDfdGLuLIg0ATKqDmOexsgyURGhcv6NK2mRFf12vKuJph x8O4v2ppPTGX6SU9HQZzVUnBlyCfXtV8uwWxYZvxiU6zNNLdCeFHp7wozNPnagosvioG CQaoSdekTAcqmzV0K2+4VQlY9nPupEwMvmVQCaAn6rpwZh/DzWZerH0ozYd3GIZDEUkm ijsw== 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=G+3wq4HbMGsLz02vnWPc8X5CuisGBMzZ/msi7tDk0Cc=; b=h+EJbFg7IIaCK8/nk0JEmGhHYm5XK/bV/ZQ5l4Z34Ei4+1+qTPDKSRY78p9APXTABj 32/QL6if7kvXTt4k6Qg68vk9RISdCUUnpxw2l/G2s3rbrh/w05UnKmF93VXAkpNkTrsq J8yATnpKLv920t4Vw4lXSnAxfyAn5xD25BzXiSSTevXJNMkiIHQmsBj4ZMfg2yv5N30j +CofaYupfxIVuR+oI4rYbaOih89nP8d+V/0/Ejh8P2dlsZM72XZjwSnY1vto7IOIj/KR aDIderpQMK3mTDwFHhO2qopieTNkafhVqEDDFMBiyB2zPFtldT7fYsOOqYgI1L6aVhKf Q5yg== X-Gm-Message-State: AOAM530OuJa3mbiM/NJN0UtipI0aAbFpJ10SbCDJY9nOV5asHeMY9DAb x/uC+k18qF93TrfJR7GYwFg5lw== X-Received: by 2002:a17:906:f0d7:: with SMTP id dk23mr2565969ejb.131.1610652013255; Thu, 14 Jan 2021 11:20:13 -0800 (PST) Received: from google.com ([2a00:79e0:2:11:1ea0:b8ff:fe79:fe73]) by smtp.gmail.com with ESMTPSA id j23sm2348324ejs.112.2021.01.14.11.20.12 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Thu, 14 Jan 2021 11:20:12 -0800 (PST) Date: Thu, 14 Jan 2021 20:20:07 +0100 From: Piotr Figiel To: Alexey Dobriyan 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: References: <20210113174127.2500051-1-figiel@google.com> <20210113213230.GA488607@localhost.localdomain> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <20210113213230.GA488607@localhost.localdomain> Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On Thu, Jan 14, 2021 at 12:32:30AM +0300, Alexey Dobriyan wrote: > 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) Hi, many thanks for the suggestion. I applied this on v2, https://lore.kernel.org/linux-fsdevel/20210114185445.996-1-figiel@google.com I had to cast it via uintptr_t to cast-away the user address space without warnings. Could you please take a look? Best regards, Piotr.