Received: by 2002:a05:6358:d09b:b0:dc:cd0c:909e with SMTP id jc27csp7916782rwb; Mon, 12 Dec 2022 22:49:19 -0800 (PST) X-Google-Smtp-Source: AA0mqf7S3E2CyUud7b2n7rwBfUMheNdoKwIab39ZJECJ6VJf1JvCxNk0d0pvBny2tiq8WpN4s3aw X-Received: by 2002:a17:907:c00b:b0:7c1:7d81:d2a8 with SMTP id ss11-20020a170907c00b00b007c17d81d2a8mr4644575ejc.3.1670914159687; Mon, 12 Dec 2022 22:49:19 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1670914159; cv=none; d=google.com; s=arc-20160816; b=aZX/n2dVvLIY7ATmoKSRM5qlXBuNtFt+Bayu2/HsLfKVX6bB/hI3bddowPch9yb2wf 9e1V5B0qn8PwCwPQECcXj7R7JnoKX9S7/Q0UrU71Ie0JAkazczfELNEXjssspgbkq27K ykf7seFNJEe6IDf0DDE315fuB0TvyTvkm6pAeqe2t8tCxtX0M2VO+BEF0x9J13/gXiiR C+AndfrnZ0jbsSoH/lwMrL7l4B/D0r8lnUum3iMKBt9C8dYMMuvN6G+CHOikIs03fzLb 5BlRAeVpRMpR8d25iAZUkNXTcMP1Y7eztz03FqaB3e4kfNJd796PGxt56VFoUq3ed1Jv WVYw== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:to:from:content-transfer-encoding:mime-version :date:message-id:subject:references:in-reply-to:dkim-signature; bh=iTFwDLlgOeHNI6Dm6jsm1vXO5FMUxek2Gk3N4ANJmq0=; b=qNnT2Nj9OxUFl9SznfC2yt/5m+zFA4pVj5b45ZNfjvm+ItwSEOkSAlxV6DjUiKjno2 1XrB7r3Qm/kW+EsMHGebGz6qC1Bd8RP4qNDHZCvt/pfaBaRDg5TnFAYtvTzMeXW/mLbj sy1UsGO81guYR+qKbbipwH8InXdTg6Fs63CI2uAigkNQ+KwxWcEEDf7hRnWOEOR2UwlF 8D7i94V3eFHBi1T9iscLcWoIlBom8sO5MvEjhy7gpRgzkkoEp3FcdxWjchPpTKUBFo6O 0tMRCRnWvHy89liDZ9GUtaWEcXXYoPRNd/308uafk0cemqCFx0I8x/Kz8E2hmNkGSgQI PT7Q== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@rivosinc-com.20210112.gappssmtp.com header.s=20210112 header.b=L7TybuH5; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Return-Path: Received: from out1.vger.email (out1.vger.email. [2620:137:e000::1:20]) by mx.google.com with ESMTP id sd5-20020a1709076e0500b0078e11cbb722si7403797ejc.92.2022.12.12.22.49.01; Mon, 12 Dec 2022 22:49:19 -0800 (PST) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) client-ip=2620:137:e000::1:20; Authentication-Results: mx.google.com; dkim=pass header.i=@rivosinc-com.20210112.gappssmtp.com header.s=20210112 header.b=L7TybuH5; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S234278AbiLMGSS (ORCPT + 75 others); Tue, 13 Dec 2022 01:18:18 -0500 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:52290 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S233688AbiLMGSQ (ORCPT ); Tue, 13 Dec 2022 01:18:16 -0500 Received: from mail-pj1-x1031.google.com (mail-pj1-x1031.google.com [IPv6:2607:f8b0:4864:20::1031]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id A76701CFEE for ; Mon, 12 Dec 2022 22:18:15 -0800 (PST) Received: by mail-pj1-x1031.google.com with SMTP id e7-20020a17090a77c700b00216928a3917so2445983pjs.4 for ; Mon, 12 Dec 2022 22:18:15 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=rivosinc-com.20210112.gappssmtp.com; s=20210112; h=to:from:content-transfer-encoding:mime-version:date:message-id :subject:references:in-reply-to:from:to:cc:subject:date:message-id :reply-to; bh=iTFwDLlgOeHNI6Dm6jsm1vXO5FMUxek2Gk3N4ANJmq0=; b=L7TybuH5LCvauKz7RjNOVfsdBWSD+n0aqdrISEaq2OHQfkDU9FKrTF8LZcCDdD21ff 7gypu6ZBfxRWGxy93IrFWhnnkdFkMhtkhlP+ThDrDhUyvSmL4bJ72VoxqY/y4tFcZalz LH1eV5OaG0EzHxfHQIxEmkskjAQ0pv6eNmBlWfMfU9W1SArcQC3szuAi9JoND4OCOlWk gv8H6aumST9gVWpB6QlAIpQbr9JzqvKmwfT3TqFpAjj/JRZSCzhnHj+C6NObq4m+D3zM 72r6PdB0AInVk0rsLcPhr9tthOCBGTUvXQRnIwhyk5CQn0Ez7a3r2e92ytRu1yzAKmOB AHMw== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20210112; h=to:from:content-transfer-encoding:mime-version:date:message-id :subject:references:in-reply-to:x-gm-message-state:from:to:cc :subject:date:message-id:reply-to; bh=iTFwDLlgOeHNI6Dm6jsm1vXO5FMUxek2Gk3N4ANJmq0=; b=j8Qm7hM3l6wuX46ZGR9XAlTbPQRSw3CnufuiUsbi01FLNu/71s4+5pZ+i57HaSjpYh zphO01TxVOKZrIaJzhD4d2JTzYpc0RLvbXo4k9oEl0cuMQ54jkq7JGWkyMWdsHR/oCmD 6yaQWdaMfxLQQnx51Z6vz6fRMFcK3ZI+0G01CsY3rr+vftSb7US4sfd90kMREJsdT3RF cMpMI3RLNYZotw8ec9DZqiGOA/MmZdcGcejV/AUF06604JvUPadkFLZm6AHSrGlWj1Z3 9wFHCeZA/xROzxpvHbJxkZrO+d8ZMqWRdsoc44jYNzEbGvzbMKL53F3woM6/EwmpJCmC 1FsA== X-Gm-Message-State: ANoB5pmPoWjcyH0bFW25Aai0pdDZs24aOtETj7w9ty5C43untTIR88c0 IDCLS+1AHYSahnu6hVPcSCjysA== X-Received: by 2002:a17:902:d509:b0:189:b0fe:d70f with SMTP id b9-20020a170902d50900b00189b0fed70fmr24668449plg.60.1670912295171; Mon, 12 Dec 2022 22:18:15 -0800 (PST) Received: from localhost ([135.180.226.51]) by smtp.gmail.com with ESMTPSA id jj12-20020a170903048c00b0018996404dd5sm7500941plb.109.2022.12.12.22.18.14 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Mon, 12 Dec 2022 22:18:14 -0800 (PST) In-Reply-To: <20221130023515.20217-1-palmer@rivosinc.com> References: <20221130023515.20217-1-palmer@rivosinc.com> Subject: Re: [PATCH 1/2] RISC-V: Align the shadow stack Message-Id: <167091227726.18364.8127808951641932846.b4-ty@rivosinc.com> Date: Mon, 12 Dec 2022 22:17:57 -0800 MIME-Version: 1.0 Content-Type: text/plain; charset="utf-8" Content-Transfer-Encoding: 8bit X-Mailer: b4 0.11.0-dev-e660e From: Palmer Dabbelt To: Palmer Dabbelt , jszhang@kernel.org, linux-riscv@lists.infradead.org, guoren@kernel.org, linux-kernel@vger.kernel.org X-Spam-Status: No, score=-1.9 required=5.0 tests=BAYES_00,DKIM_SIGNED, DKIM_VALID,RCVD_IN_DNSWL_NONE,SPF_HELO_NONE,SPF_PASS autolearn=ham autolearn_force=no version=3.4.6 X-Spam-Checker-Version: SpamAssassin 3.4.6 (2021-04-09) on lindbergh.monkeyblade.net Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On Tue, 29 Nov 2022 18:35:14 -0800, Palmer Dabbelt wrote: > The standard RISC-V ABIs all require 16-byte stack alignment. We're > only calling that one function on the shadow stack so I doubt it'd > result in a real issue, but might as well keep this lined up. > > Applied, thanks! [1/2] RISC-V: Align the shadow stack https://git.kernel.org/palmer/c/c3ec1e8964fb [2/2] RISC-V: Add some comments about the shadow and overflow stacks https://git.kernel.org/palmer/c/de57ecc47610 Best regards, -- Palmer Dabbelt