From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: X-Spam-Checker-Version: SpamAssassin 3.4.0 (2014-02-07) on aws-us-west-2-korg-lkml-1.web.codeaurora.org Received: from vger.kernel.org (vger.kernel.org [23.128.96.18]) by smtp.lore.kernel.org (Postfix) with ESMTP id 240A7C43217 for ; Tue, 4 Oct 2022 08:31:28 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S230155AbiJDIb1 (ORCPT ); Tue, 4 Oct 2022 04:31:27 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:44030 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S229464AbiJDIbZ (ORCPT ); Tue, 4 Oct 2022 04:31:25 -0400 Received: from ams.source.kernel.org (ams.source.kernel.org [IPv6:2604:1380:4601:e00::1]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 00BAB1DA46; Tue, 4 Oct 2022 01:31:24 -0700 (PDT) Received: from smtp.kernel.org (relay.kernel.org [52.25.139.140]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by ams.source.kernel.org (Postfix) with ESMTPS id ACA50B819A3; Tue, 4 Oct 2022 08:31:23 +0000 (UTC) Received: by smtp.kernel.org (Postfix) with ESMTPSA id 60F5DC433D6; Tue, 4 Oct 2022 08:31:07 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=kernel.org; s=k20201202; t=1664872282; bh=hzwhDKjm0QN4l6nCj6New+H+VKqAoD+H5iDhuJMENCI=; h=Date:From:To:Cc:Subject:References:In-Reply-To:From; b=e6YMHUumqzfDa6S3sXTEnwAIrdkA5+K0lTI8Uh499EKNLhPfQgNghPc5QqYo/4JEE WPCK7jx7NMMFgq76werkS/sssRw4EG+FWiQ3Qai45tpwNVKBMnHyShvvbd/0wOPoMo d8hqknZy04Uf2AC5HB0vAApU3LGIjxJzm5W8seDTI7PZ07HbN1V4OgMN7oQaZnMgZ1 yBGeQ766qhwYN4noaF8+3Dxmng+LArK0wWvvyz/AoyzeDCBvcXtiMt7O6VPekiLOD8 LEHhwoo+ZaP/VfUZObUrgMzg5oI4nedG4Gvch7Ke4yOCB+d15DK+TKEksIc3E8gskU SPTa2D824VstA== Date: Tue, 4 Oct 2022 11:30:55 +0300 From: Mike Rapoport To: Kees Cook Cc: Rick Edgecombe , x86@kernel.org, "H . Peter Anvin" , Thomas Gleixner , Ingo Molnar , linux-kernel@vger.kernel.org, linux-doc@vger.kernel.org, linux-mm@kvack.org, linux-arch@vger.kernel.org, linux-api@vger.kernel.org, Arnd Bergmann , Andy Lutomirski , Balbir Singh , Borislav Petkov , Cyrill Gorcunov , Dave Hansen , Eugene Syromiatnikov , Florian Weimer , "H . J . Lu" , Jann Horn , Jonathan Corbet , Mike Kravetz , Nadav Amit , Oleg Nesterov , Pavel Machek , Peter Zijlstra , Randy Dunlap , "Ravi V . Shankar" , Weijiang Yang , "Kirill A . Shutemov" , joao.moreira@intel.com, John Allen , kcc@google.com, eranian@google.com, jamorris@linux.microsoft.com, dethoma@microsoft.com Subject: Re: [PATCH v2 29/39] x86/cet/shstk: Support wrss for userspace Message-ID: References: <20220929222936.14584-1-rick.p.edgecombe@intel.com> <20220929222936.14584-30-rick.p.edgecombe@intel.com> <202210031525.78F3FA8@keescook> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <202210031525.78F3FA8@keescook> Precedence: bulk List-ID: X-Mailing-List: linux-api@vger.kernel.org On Mon, Oct 03, 2022 at 03:28:47PM -0700, Kees Cook wrote: > On Thu, Sep 29, 2022 at 03:29:26PM -0700, Rick Edgecombe wrote: > > For the current shadow stack implementation, shadow stacks contents easily > > be arbitrarily provisioned with data. > > I can't parse this sentence. > > > This property helps apps protect > > themselves better, but also restricts any potential apps that may want to > > do exotic things at the expense of a little security. > > Is anything using this right now? Wouldn't thing be safer without WRSS? > (Why can't we skip this patch?) CRIU uses WRSS to restore the shadow stack contents. > -- > Kees Cook -- Sincerely yours, Mike.