Received: by 2002:a05:6a10:1a4d:0:0:0:0 with SMTP id nk13csp633136pxb; Mon, 7 Feb 2022 21:34:06 -0800 (PST) X-Google-Smtp-Source: ABdhPJzVFdPjd5iyKT7H1RCl2A7kOt3V5oJCwzkHcHqgW7QhvZco6suo6Qt2g6FolZQYbNWO2FOA X-Received: by 2002:a17:90a:ad81:: with SMTP id s1mr2589773pjq.51.1644298446332; Mon, 07 Feb 2022 21:34:06 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1644298446; cv=none; d=google.com; s=arc-20160816; b=zmGT2EVMfOBqI3PR7vSmhPukJGsjoCQlIHEysn9JwVkmT9sgMEHA4Lf1MDupPfVsb9 savQA0vyM71DP2GyQycu50e+GEish+LcgXYYlctXzeZ6FwYKNKqvw2k/sBur8eUr4VOA e2fqnJLdmGKOrQpyWQIfV0TabTjbrqC/0+vK/IRZlz3uOERcDeaswSwqKGrefWzOLNGo SK17tLhe99yY6w2gO6KEiU+rogKErJT4oPiBwZ1qNRfJCOeLZe7db5gsitdIZyIDoQbX s9EkYYM0o0sK7+ZfdOhFMsAzzhiSnwsEK8Oq4YoyN7AJk7+wB0wAuDv3L5S06hCbvU8a P72g== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:content-transfer-encoding:in-reply-to:subject :from:references:cc:to:content-language:user-agent:mime-version:date :message-id:dkim-signature; bh=rUfZrJ/Ooob2lhwsuZWbHOUZJ2teIkkYBdQD9dq2w58=; b=QuKchVynPxLydaw7hHx60EsMYksYMh//LpsN1xRYwinMw0+d1RtvMbhxsOXgrmsXIT lESSAIA13kf3jhuOvSCNmhcSmUQDMJx0KsLWvFMXAR64tH3J1i3W7FHXs8N5XWIiBzrX mJckHvgp7K4vl0K/BWVH0y1mo4leG++aXjv67hWej8gCcyHN/SRPq1RBhoO80JVAEjR0 BvLM/mLp2n5SpyVPsTEoJz7XUD27yNxkYIRSRiqSzGQ29LYMfJ2jUSdO46P4APvRSBM5 L9QrytBVuEeXfxLy6wGoDJU+puCmMN+OsxCMPJeXapb7cw5gSSWV2kEtpN81OJSQ1cz9 tgIw== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@intel.com header.s=Intel header.b="nfGJGU/w"; 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; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=intel.com Return-Path: Received: from out1.vger.email (out1.vger.email. [2620:137:e000::1:20]) by mx.google.com with ESMTP id k195si309895pgc.159.2022.02.07.21.33.53; Mon, 07 Feb 2022 21:34:06 -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=@intel.com header.s=Intel header.b="nfGJGU/w"; 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; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=intel.com Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1357055AbiBGQnf (ORCPT + 99 others); Mon, 7 Feb 2022 11:43:35 -0500 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:36888 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1382083AbiBGQcD (ORCPT ); Mon, 7 Feb 2022 11:32:03 -0500 X-Greylist: delayed 62 seconds by postgrey-1.37 at lindbergh.monkeyblade.net; Mon, 07 Feb 2022 08:31:57 PST Received: from mga18.intel.com (mga18.intel.com [134.134.136.126]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 28577C0401E8; Mon, 7 Feb 2022 08:31:56 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=intel.com; i=@intel.com; q=dns/txt; s=Intel; t=1644251517; x=1675787517; h=message-id:date:mime-version:to:cc:references:from: subject:in-reply-to:content-transfer-encoding; bh=/KVSVa7sgjsVxefcYGnYLwrI2Vchw9qvwnAjpTnywCY=; b=nfGJGU/w8RPiJAUoDgIgE5GRiayqDpC0pLvhcOQBB17LOJ17VbcuNbnS 4kMZfObRf/qt9UtmrhIxohADZ0tWvv69NIu7vFI7X7XTNXy2grYiXCUQY gv1a5KxeeN3g+WOULH6ecpE8SEZUZOk2XN3zqWObjSO+vQt4B8Otq9MuZ vSmYr2sTwQVv8FWp4hLb83YFdw8p0o08HcW167NyCaXmgC5PWxyF27on1 v9KeNsXoWg7zyk97kJ05mavsxuCwpDJzmfD9PDeI672B/AJkjsi99T5D7 WFZ2lXWkVOuCm4eKi7IBtr08lOBREN5Jbn1fK6SSe21wod1afTwmle8K2 w==; X-IronPort-AV: E=McAfee;i="6200,9189,10250"; a="232315628" X-IronPort-AV: E=Sophos;i="5.88,350,1635231600"; d="scan'208";a="232315628" Received: from orsmga007.jf.intel.com ([10.7.209.58]) by orsmga106.jf.intel.com with ESMTP/TLS/ECDHE-RSA-AES256-GCM-SHA384; 07 Feb 2022 08:30:54 -0800 X-IronPort-AV: E=Sophos;i="5.88,350,1635231600"; d="scan'208";a="525193372" Received: from hgrunes-mobl1.amr.corp.intel.com (HELO [10.251.3.57]) ([10.251.3.57]) by orsmga007-auth.jf.intel.com with ESMTP/TLS/ECDHE-RSA-AES256-GCM-SHA384; 07 Feb 2022 08:30:53 -0800 Message-ID: <8f96c2a6-9c03-f97a-df52-73ffc1d87957@intel.com> Date: Mon, 7 Feb 2022 08:30:50 -0800 MIME-Version: 1.0 User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:91.0) Gecko/20100101 Thunderbird/91.5.0 Content-Language: en-US To: Adrian Reber , Mike Rapoport 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 , Kees Cook , Mike Kravetz , Nadav Amit , Oleg Nesterov , Pavel Machek , Peter Zijlstra , Randy Dunlap , "Ravi V . Shankar" , Dave Martin , Weijiang Yang , "Kirill A . Shutemov" , joao.moreira@intel.com, John Allen , kcc@google.com, eranian@google.com, Andrei Vagin , Dmitry Safonov <0x7f454c46@gmail.com> References: <20220130211838.8382-1-rick.p.edgecombe@intel.com> From: Dave Hansen Subject: Re: [PATCH 00/35] Shadow stacks for userspace In-Reply-To: Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit X-Spam-Status: No, score=-2.1 required=5.0 tests=BAYES_00,DKIMWL_WL_HIGH, DKIM_SIGNED,DKIM_VALID,DKIM_VALID_AU,DKIM_VALID_EF,NICE_REPLY_A, SPF_HELO_NONE,SPF_NONE,T_SCC_BODY_TEXT_LINE 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 2/6/22 23:20, Adrian Reber wrote: >>> CRIU Support >>> ------------ >>> In the past there was some speculation on the mailing list about >>> whether CRIU would need to be taught about CET. It turns out, it does. >>> The first issue hit is that CRIU calls sigreturn directly from its >>> “parasite code” that it injects into the dumper process. This violates >>> this shadow stack implementation’s protection that intends to prevent >>> attackers from doing this. ... >>From the CRIU side I can say that I would definitely like to see this > resolved. CRIU just went through a similar exercise with rseq() being > enabled in glibc and CI broke all around for us and other projects > relying on CRIU. Although rseq() was around for a long time we were not > aware of it but luckily 5.13 introduced a way to handle it for CRIU with > ptrace. An environment variable existed but did not really help when > CRIU is called somewhere in the middle of the container software stack. > >>From my point of view a solution not involving an environment variable > would definitely be preferred. Have there been things like this for CRIU in the past? Something where CRIU needs control but that's also security-sensitive? Any thoughts on how you would _like_ to see this resolved?