Received: by 2002:ab2:7a55:0:b0:1f4:4a7d:290d with SMTP id u21csp344820lqp; Thu, 4 Apr 2024 15:21:22 -0700 (PDT) X-Forwarded-Encrypted: i=3; AJvYcCU2MjFIJyZTg/JqJImBG013OF6cb4ffqBtFWbu04Kuk3Hh3zKYXTwa+pTgT0l6YfLGlElfJM5dwloPjHnOfDAenzEWZUyruYME0PaQGIA== X-Google-Smtp-Source: AGHT+IFT/neyqfrUKcSVeYyUhiBev2PaAArrq8Jtsuxnr2XiZclay75pRJHpp7fEc1cgr78BP0MG X-Received: by 2002:a05:620a:8813:b0:78d:49e6:42d3 with SMTP id qj19-20020a05620a881300b0078d49e642d3mr136977qkn.46.1712269282490; Thu, 04 Apr 2024 15:21:22 -0700 (PDT) ARC-Seal: i=2; a=rsa-sha256; t=1712269282; cv=pass; d=google.com; s=arc-20160816; b=emaE9MuiLb+Z1wZeZ58ZJMQdfuEWotAHcA3gh5l48tlLz4K6UTPvp8uIQgNXbTKIG0 LWOoJOBHTDtvPp7Sqc682APqEwqzC372lbQYLbo3osp8RXs3mPRFPflSFnTjQl4fL3gG B2sbvXYSusP8r7mNkbLmkJnm0t1J23u9XO7KQUmsD6+PAh2Vgtn7xuHDV+x/BF9GeVo3 8q+WkpgP0e+ZZECPBlxY/zKc1RmMnAwq8wiWyo3GdaZvFyL24S/pk4GnDrnxYMYzHYRe c/56bZtopAuSFj3tuMF1EVpSOTE/kDjSGsrFT/1HvHiM7NGwHbnSRAsPjHHyw4aFozIB NvpQ== ARC-Message-Signature: i=2; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=cc:to:in-reply-to:references:date:message-id:from:subject :content-transfer-encoding:mime-version:list-unsubscribe :list-subscribe:list-id:precedence:dkim-signature; bh=2D2cVDWbjrx+Psotd1ZKugqqdbxBCilT9TcRHjF1n3k=; fh=BU1tD31w44t3LNFfLFTsXje317GyTo1BHAmza5dU7Lg=; b=AS9q5K3HtZgy2ZCBhDJlvnEpKhv3D+B+9TUjkU8g0wVLj55wX66cUihIJrDrzbpjrY 7GD7YlamrwOdsEl9d2ktlIuswVBMBhMnfz02eifNwnbCktruTSn2YIsi01sPOAlYw7dY boFD6KYSp/VkRMPCuZkzUkkge7c17LYs7nT/ZphLs/MMUjFwe4JbKNaqWXGtKFZFPv5w TpNxiqJuxCI0KiE7PmfTHOyE2TiGtniMywoGwYhW+jACpT3Z0O1uuQ4zH+rKn4rvtMjx V5vQ3rwsV0of2sdp1yeOOh1pYVXgfCx+i0xTkF/iuwS5wEUX12mBSQUS/z+Xez9elAcg ingQ==; dara=google.com ARC-Authentication-Results: i=2; mx.google.com; dkim=pass header.i=@kernel.org header.s=k20201202 header.b=IvRPV+kJ; arc=pass (i=1 dkim=pass dkdomain=kernel.org); spf=pass (google.com: domain of linux-kernel+bounces-132198-linux.lists.archive=gmail.com@vger.kernel.org designates 2604:1380:45d1:ec00::1 as permitted sender) smtp.mailfrom="linux-kernel+bounces-132198-linux.lists.archive=gmail.com@vger.kernel.org"; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=kernel.org Return-Path: Received: from ny.mirrors.kernel.org (ny.mirrors.kernel.org. [2604:1380:45d1:ec00::1]) by mx.google.com with ESMTPS id p4-20020a05620a056400b00789fb2dd6b7si332886qkp.459.2024.04.04.15.21.22 for (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Thu, 04 Apr 2024 15:21:22 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel+bounces-132198-linux.lists.archive=gmail.com@vger.kernel.org designates 2604:1380:45d1:ec00::1 as permitted sender) client-ip=2604:1380:45d1:ec00::1; Authentication-Results: mx.google.com; dkim=pass header.i=@kernel.org header.s=k20201202 header.b=IvRPV+kJ; arc=pass (i=1 dkim=pass dkdomain=kernel.org); spf=pass (google.com: domain of linux-kernel+bounces-132198-linux.lists.archive=gmail.com@vger.kernel.org designates 2604:1380:45d1:ec00::1 as permitted sender) smtp.mailfrom="linux-kernel+bounces-132198-linux.lists.archive=gmail.com@vger.kernel.org"; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=kernel.org Received: from smtp.subspace.kernel.org (wormhole.subspace.kernel.org [52.25.139.140]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by ny.mirrors.kernel.org (Postfix) with ESMTPS id 3B86C1C21A39 for ; Thu, 4 Apr 2024 22:21:22 +0000 (UTC) Received: from localhost.localdomain (localhost.localdomain [127.0.0.1]) by smtp.subspace.kernel.org (Postfix) with ESMTP id 681FD13C82A; Thu, 4 Apr 2024 22:20:33 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=kernel.org header.i=@kernel.org header.b="IvRPV+kJ" Received: from smtp.kernel.org (aws-us-west-2-korg-mail-1.web.codeaurora.org [10.30.226.201]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by smtp.subspace.kernel.org (Postfix) with ESMTPS id 8F92B13C3EC for ; Thu, 4 Apr 2024 22:20:32 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=10.30.226.201 ARC-Seal:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1712269232; cv=none; b=sJzMm5LYW8L5ZZVeT+LMWJD8Jls3JQXH/kafS3+8yMkcssrDvs1I/W2C47CdO1cbWxkAUDXS/w7cmBwlRxTqJ1JLw985ZAD7FXycAYGaq6Hi6gILcgk5P4CQaiHCyM2mBeSndyCKBoNjPAm1ZKAeIh/FdxvwYNBX6kRLGAf+E0I= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1712269232; c=relaxed/simple; bh=qrAEyFoT6o3bchi+2ioxOMyxKattiEg45Vsi0QCjJUw=; h=Content-Type:MIME-Version:Subject:From:Message-Id:Date:References: In-Reply-To:To:Cc; b=bN486eaW1UF+TaAXWoYT5esM6yeZdWs1PLNhIIeZOdOCKaTcne+FNbQmSMw+Nez+A/Uhqpg12Oev7md90BberpQ7Jckt+RKn+28d5+NdlZyz9A9AVABtarEXz5bfkYdaXlX+DskjDyz0Qt1+P69QIw/iuH4c3SLW3IxNwByRz0g= ARC-Authentication-Results:i=1; smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=kernel.org header.i=@kernel.org header.b=IvRPV+kJ; arc=none smtp.client-ip=10.30.226.201 Received: by smtp.kernel.org (Postfix) with ESMTPS id 235D9C43390; Thu, 4 Apr 2024 22:20:32 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=kernel.org; s=k20201202; t=1712269232; bh=qrAEyFoT6o3bchi+2ioxOMyxKattiEg45Vsi0QCjJUw=; h=Subject:From:Date:References:In-Reply-To:To:Cc:From; b=IvRPV+kJp5+WzRN1BoW25HQWFycjRxPonO+uN1qNV6YQxSDgYlHWv7m+xB9+cqiFL ns86QvTfrou2+/M5+iQcTvPSeNCjOGRY3qM99rvLCJaro4U/2egvi0W7lbe6hc96RX S4Dkcw9TFcEPMaTjwIpw9vKTTXyul7xs+HvwzbrnPJm5UvGAWQrVoqMFF+7lZhX8U7 hv5prmDn317MfuEO4FZ43lD5ggXgowQpK4WL7SkEq/RqT195Ixjn+ojlWEXTzbI7ri ihcxFmhmEqxWm9cEJ5OBrUmhocKSI8eBUO3KxTXCp4IUIAQ7Otk4FGXLDIoJAuVeA+ 0QqkIRKpTBlvQ== Received: from aws-us-west-2-korg-oddjob-1.ci.codeaurora.org (localhost.localdomain [127.0.0.1]) by aws-us-west-2-korg-oddjob-1.ci.codeaurora.org (Postfix) with ESMTP id 0FFA8D9A153; Thu, 4 Apr 2024 22:20:32 +0000 (UTC) Content-Type: text/plain; charset="utf-8" Precedence: bulk X-Mailing-List: linux-kernel@vger.kernel.org List-Id: List-Subscribe: List-Unsubscribe: MIME-Version: 1.0 Content-Transfer-Encoding: 8bit Subject: Re: [PATCH] riscv: process: Fix kernel gp leakage From: patchwork-bot+linux-riscv@kernel.org Message-Id: <171226923206.6067.4805872086419688742.git-patchwork-notify@kernel.org> Date: Thu, 04 Apr 2024 22:20:32 +0000 References: <20240327061258.2370291-1-sorear@fastmail.com> In-Reply-To: <20240327061258.2370291-1-sorear@fastmail.com> To: Stefan O'Rear Cc: linux-riscv@lists.infradead.org, paul.walmsley@sifive.com, palmer@dabbelt.com, aou@eecs.berkeley.edu, linux-kernel@vger.kernel.org Hello: This patch was applied to riscv/linux.git (fixes) by Palmer Dabbelt : On Wed, 27 Mar 2024 02:12:58 -0400 you wrote: > childregs represents the registers which are active for the new thread > in user context. For a kernel thread, childregs->gp is never used since > the kernel gp is not touched by switch_to. For a user mode helper, the > gp value can be observed in user space after execve or possibly by other > means. > > Fixes: 7db91e57a0ac ("RISC-V: Task implementation") > Signed-off-by: Stefan O'Rear > > [...] Here is the summary with links: - riscv: process: Fix kernel gp leakage https://git.kernel.org/riscv/c/d14fa1fcf69d You are awesome, thank you! -- Deet-doot-dot, I am a bot. https://korg.docs.kernel.org/patchwork/pwbot.html