Received: by 2002:a05:7412:3290:b0:fa:6e18:a558 with SMTP id ev16csp237376rdb; Thu, 25 Jan 2024 13:44:58 -0800 (PST) X-Google-Smtp-Source: AGHT+IH6rzjA3O4Jjw7xbP0eJO0hwjM+qEnBUXn2VqV1M6HdZlicGOswtmVr4NYNdWB9WhHvbGT8 X-Received: by 2002:a17:903:2689:b0:1d7:5af3:5ceb with SMTP id jf9-20020a170903268900b001d75af35cebmr330701plb.38.1706219097946; Thu, 25 Jan 2024 13:44:57 -0800 (PST) ARC-Seal: i=2; a=rsa-sha256; t=1706219097; cv=pass; d=google.com; s=arc-20160816; b=gqoS+/9FTPtkpZAS1msMkoG1n5eIhLEalD8NbnGfM+71IRQmpVbbUFQMXxVVZMmA5V tx72EnrP6QMigQJjkfGKHfRpwk6BRRhdn9bslxhm1lS16nzX110MxPyPMmQSyC+KeJv2 up06OMvyVAg0PzQnVwqPY/OIgWPSCP7UESCmaFGdP730rGZHu47Sb4dYPSkIESD1qe3s n9Y4E4Tale1stvwT7qPDXAOn/O8Gk8EwOhr7/kZK+v8hJ3FD6KlVaC8Z+0zsW2vw7SrF Z01IL8fM4UFnIKF6Y35+Q/5BBZaSIgzZWuUvqKqYNwYFG4tZSeeJ1TCaHQ6xL1AuHN2l 24xw== 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=n8XJi8fN6aOw7MYn5gJ7vbPuVf6oDMyvC/ooUrc5Sq0=; fh=t0uibKj20Pu902DKruRe7CuXFHJmju9GvPNIwQsLZVM=; b=EjfsIyQ1LEsD5q8Z5lkZCLPnmqW4W9VOSPdtlkuqDFiiFf+u80fbk1jzhdJ9dGz8DM LEHUIZsYDRDKxlWuqmCFRU53KzrvphWoQtlVMbj8/5oZQM6zOHcZeSGpDdlMl/2TyooU Ep3vAgdOg5rf+4o1ZYJagaapeh5q6QGUIY801TATzMtJ/mvXN74BCvIl0OMQVdplFhPG 1ry7uOwPf7P4MbD5D3Gc9gNL51YNAI4XlBtnt/8mcXdg6EzFOF+auu79BTDO/68SRvIh Yyt3iNYO2N1u0xyB+WkJxRBq58QQ6Si1nkl4QWFUIWtuPS6Y62K/+c/djRj2clAapl5D fQTg== ARC-Authentication-Results: i=2; mx.google.com; dkim=pass header.i=@kernel.org header.s=k20201202 header.b=XQvcmpdN; arc=pass (i=1 dkim=pass dkdomain=kernel.org); spf=pass (google.com: domain of linux-kernel+bounces-39318-linux.lists.archive=gmail.com@vger.kernel.org designates 2604:1380:40f1:3f00::1 as permitted sender) smtp.mailfrom="linux-kernel+bounces-39318-linux.lists.archive=gmail.com@vger.kernel.org"; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=kernel.org Return-Path: Received: from sy.mirrors.kernel.org (sy.mirrors.kernel.org. [2604:1380:40f1:3f00::1]) by mx.google.com with ESMTPS id n9-20020a1709026a8900b001d3a6cb519dsi13837305plk.543.2024.01.25.13.44.57 for (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Thu, 25 Jan 2024 13:44:57 -0800 (PST) Received-SPF: pass (google.com: domain of linux-kernel+bounces-39318-linux.lists.archive=gmail.com@vger.kernel.org designates 2604:1380:40f1:3f00::1 as permitted sender) client-ip=2604:1380:40f1:3f00::1; Authentication-Results: mx.google.com; dkim=pass header.i=@kernel.org header.s=k20201202 header.b=XQvcmpdN; arc=pass (i=1 dkim=pass dkdomain=kernel.org); spf=pass (google.com: domain of linux-kernel+bounces-39318-linux.lists.archive=gmail.com@vger.kernel.org designates 2604:1380:40f1:3f00::1 as permitted sender) smtp.mailfrom="linux-kernel+bounces-39318-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 sy.mirrors.kernel.org (Postfix) with ESMTPS id B7897B2113D for ; Thu, 25 Jan 2024 21:31:58 +0000 (UTC) Received: from localhost.localdomain (localhost.localdomain [127.0.0.1]) by smtp.subspace.kernel.org (Postfix) with ESMTP id CD0D713D4E0; Thu, 25 Jan 2024 21:30:33 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=kernel.org header.i=@kernel.org header.b="XQvcmpdN" 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 1570313AA22; Thu, 25 Jan 2024 21:30:29 +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=1706218230; cv=none; b=ZRjCME1jedsiZnjiA1P7ggUEHO3ASjMny19Bx3UK66tAnVEKDP/UO1vuinL7k0FaIske47tu8flCmauIPb2bmf/yZz3X4YAefz74+YogittFoXbzDYiRgMeYnZ7QIYAweOqx1xAVF9FUT4UYdaqHs6h17cxK+K0Vk4gz5C/IyYU= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1706218230; c=relaxed/simple; bh=X2mNprfouPEmvBoKw8baKQx7oOuTfhqFfvOx4U8Q8wU=; h=Content-Type:MIME-Version:Subject:From:Message-Id:Date:References: In-Reply-To:To:Cc; b=iKF5dFXclga5g+HpFVTztzfP7nEuLSEPZ4hOrRo4EPtK79/HgcmeGOmUF7olTBn2QKyPfs6pbG014B0c5XPCYMiooSZjnP09n9S5fm2rb98Im6ctv/DVLkBgYE/AJSh7SKxrB7J2zC6BWarh6zYWJWDYWmOPll6aysJiC9/V1+U= ARC-Authentication-Results:i=1; smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=kernel.org header.i=@kernel.org header.b=XQvcmpdN; arc=none smtp.client-ip=10.30.226.201 Received: by smtp.kernel.org (Postfix) with ESMTPS id 70F08C43601; Thu, 25 Jan 2024 21:30:29 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=kernel.org; s=k20201202; t=1706218229; bh=X2mNprfouPEmvBoKw8baKQx7oOuTfhqFfvOx4U8Q8wU=; h=Subject:From:Date:References:In-Reply-To:To:Cc:From; b=XQvcmpdNzt0ETY1MUWWfaBPOe9ZLr+MHgLnmCec4ax5XDwFNheBmLQQiAa7dNpbnR A8ErelEO4mNiAHDgU5lSz3NJKX8mtlEH2i4QNJVcdMoe3wVt+HVdIFrKWXme8krD8V /cRzq0f+AOYf4fUypSykgJYIqQ5vB++Bqnl++GKZjmgBE0d0PaVaQpD3TethO7rX2j z/kmGB5QoXDmC6OY8mbQ2JWWE9urYtmoYh+BPE+h2cB5rW+cu0eep+qilNpEDsOZ7R EUjLFNLBLx/vuLwYRBwNkUxRnix2NHnvLllsEFOloLdESJyuEAvPm6jhLf2BQDHuoB 0Yqn2vdq1RIJA== 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 5CFCDDC9A06; Thu, 25 Jan 2024 21:30:29 +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 V2] riscv: Support RANDOMIZE_KSTACK_OFFSET From: patchwork-bot+linux-riscv@kernel.org Message-Id: <170621822937.6239.4360145858676634125.git-patchwork-notify@kernel.org> Date: Thu, 25 Jan 2024 21:30:29 +0000 References: <20231109133751.212079-1-songshuaishuai@tinylab.org> In-Reply-To: <20231109133751.212079-1-songshuaishuai@tinylab.org> To: Song Shuai Cc: linux-riscv@lists.infradead.org, paul.walmsley@sifive.com, palmer@dabbelt.com, aou@eecs.berkeley.edu, keescook@chromium.org, guoren@kernel.org, bjorn@rivosinc.com, jszhang@kernel.org, conor.dooley@microchip.com, andy.chiu@sifive.com, samitolvanen@google.com, coelacanthushex@gmail.com, dlemoal@kernel.org, linux-kernel@vger.kernel.org, linux-hardening@vger.kernel.org, palmer@rivosinc.com Hello: This patch was applied to riscv/linux.git (for-next) by Palmer Dabbelt : On Thu, 9 Nov 2023 21:37:51 +0800 you wrote: > Inspired from arm64's implement -- commit 70918779aec9 > ("arm64: entry: Enable random_kstack_offset support") > > Add support of kernel stack offset randomization while handling syscall, > the offset is defaultly limited by KSTACK_OFFSET_MAX() (i.e. 10 bits). > > In order to avoid trigger stack canaries (due to __builtin_alloca) and > slowing down the entry path, use __no_stack_protector attribute to > disable stack protector for do_trap_ecall_u() at the function level. > > [...] Here is the summary with links: - [V2] riscv: Support RANDOMIZE_KSTACK_OFFSET https://git.kernel.org/riscv/c/05d450aabd73 You are awesome, thank you! -- Deet-doot-dot, I am a bot. https://korg.docs.kernel.org/patchwork/pwbot.html