Received: by 2002:a05:6a10:9afc:0:0:0:0 with SMTP id t28csp633611pxm; Fri, 25 Feb 2022 15:46:03 -0800 (PST) X-Google-Smtp-Source: ABdhPJzXU8WRiQksT0JNsDAq4FPQ++DD5zr/G1VxSs36R3QgDOJYXjVBQda2B1zPzVMIU007Q2gU X-Received: by 2002:a17:906:2f94:b0:6cf:e4f7:13a with SMTP id w20-20020a1709062f9400b006cfe4f7013amr7743014eji.269.1645832762891; Fri, 25 Feb 2022 15:46:02 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1645832762; cv=none; d=google.com; s=arc-20160816; b=t8+Cc7Yrkf41W0RtFYyLUVqhtVhO+2z6b0cnmBgB9+IAYz9g6tzoFacDYxkb1J68Zr 2cUz3tUKxl/3sNcq3Ocmg4Skihac6juZHMw3ybCL9t78YhYuAL3vNhh8gValPC9CcS6+ Se3cbiOoLXLJozYqmBST+7JqCjl9cZDlZRrpnfrFn7XQVcDCaY+PZp5dou7Eak2SVJim xGbhVcZXkeFgsQKitf1pPg5xI3Th7du2aanzNL+5/F0byINa0At5vIPRG2taGgBR5osJ xLeeIKZGXxentJd4BT64QghITsBs3cxftjZ2Z4n1EZjggLPXH5Ov+1trfMNArydfC1wU lbfg== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:in-reply-to:content-disposition:mime-version :references:message-id:subject:cc:to:from:date:dkim-signature; bh=qqNnNqFnky8XV3sBgHbAi7/qDxrQvjadICtGCct0mcg=; b=n0KbYn4OVt9SV7CqVAgn9H5kKijyqqK4CNMDS0mtq2uzIxBDjIPrcwGGJjSABfPKsE Lf7aUO3+SgthCmWkE4l+mrZqomp8Jk9yDlejVyyVF8kS+ONM7KzkTjvnAraycKLflMkk KBpV0Pel5mKg7E6hTdL/vFVRp2tyz4VPwwPGO5UbcLp0JCGhUUHHWaj8EyKSVk69WSHl 2C24qNUaAH0QldWk6wBua3wCENGo1BMEPIKpLCoi1+1P5Dauqx5TiTt4bLFXr2ZO3Qhp 5v/CXgkms5BSWJnwD6MG8m5VurLVhq245PGgYGC6mxMps1ipeyrUzZiKGFFl/dWPInn+ 23sw== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@kernel.org header.s=k20201202 header.b=gv0D6s3p; 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=kernel.org Return-Path: Received: from out1.vger.email (out1.vger.email. [2620:137:e000::1:20]) by mx.google.com with ESMTP id i11-20020a0564020f0b00b00410a8bd95f8si3016268eda.99.2022.02.25.15.45.40; Fri, 25 Feb 2022 15:46:02 -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=@kernel.org header.s=k20201202 header.b=gv0D6s3p; 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=kernel.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S234622AbiBYWIu (ORCPT + 99 others); Fri, 25 Feb 2022 17:08:50 -0500 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:34014 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S233977AbiBYWIq (ORCPT ); Fri, 25 Feb 2022 17:08:46 -0500 Received: from dfw.source.kernel.org (dfw.source.kernel.org [IPv6:2604:1380:4641:c500::1]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 7C03D14088 for ; Fri, 25 Feb 2022 14:08:13 -0800 (PST) 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 dfw.source.kernel.org (Postfix) with ESMTPS id 193FB61880 for ; Fri, 25 Feb 2022 22:08:13 +0000 (UTC) Received: by smtp.kernel.org (Postfix) with ESMTPSA id 547D0C340E7; Fri, 25 Feb 2022 22:08:09 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=kernel.org; s=k20201202; t=1645826892; bh=8p7WkXuGAypZbBNf4T87PSxeCyirSi+UTVXXW12vVOs=; h=Date:From:To:Cc:Subject:References:In-Reply-To:From; b=gv0D6s3pQeR8kgih9xJOwkPz/IXt3SA4RHJWwfcBzul6s3CvcQxQcT21MHTzIBgsE rid2yMfryrFqLMVwoxt2jBd6fXXpghzy8IVpfsuEtxXAIlb6b3RKKbVsGsXDBCyCS3 wsKuXAcIS0QQplx5/rADmquYj70UJHk+cgc2VTt7wihnJhDPUBa1bqXMdSjohcNb99 WbLduf8p2G58Dwf81dcAf83zyN+J66hr/9wqug08G2m8fGnlnrF/7EUibbsdhtO4q4 gZL0QjDYeY1UhEaB4xbueXioxDH6msnhMpHRvRx9+B6laJJ9KtVcUjZeduc1DDceN2 Jjl62N03qt/0A== Date: Fri, 25 Feb 2022 15:08:06 -0700 From: Nathan Chancellor To: Kees Cook Cc: Peter Zijlstra , x86@kernel.org, joao@overdrivepizza.com, hjl.tools@gmail.com, jpoimboe@redhat.com, andrew.cooper3@citrix.com, linux-kernel@vger.kernel.org, ndesaulniers@google.com, samitolvanen@google.com, mark.rutland@arm.com, alyssa.milburn@intel.com, mbenes@suse.cz, rostedt@goodmis.org, mhiramat@kernel.org, alexei.starovoitov@gmail.com, llvm@lists.linux.dev Subject: Re: [PATCH v2 05/39] x86: Base IBT bits Message-ID: References: <20220224145138.952963315@infradead.org> <20220224151322.307406918@infradead.org> <202202241627.EEF3D5D2@keescook> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: X-Spam-Status: No, score=-7.1 required=5.0 tests=BAYES_00,DKIMWL_WL_HIGH, DKIM_SIGNED,DKIM_VALID,DKIM_VALID_AU,DKIM_VALID_EF,RCVD_IN_DNSWL_HI, SPF_HELO_NONE,SPF_PASS,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 Thu, Feb 24, 2022 at 05:46:59PM -0700, Nathan Chancellor wrote: > On Thu, Feb 24, 2022 at 04:35:51PM -0800, Kees Cook wrote: > > On Thu, Feb 24, 2022 at 03:51:43PM +0100, Peter Zijlstra wrote: > > > Add Kconfig, Makefile and basic instruction support for x86 IBT. > > > > > > XXX clang is not playing ball, probably lld being 'funny', I'm having > > > problems with .plt entries appearing all over after linking. > > > > I'll try to look into this; I know you've been chatting with Nathan > > about it. Is there an open bug for it? (And any kind of reproducer > > smaller than a 39 patch series we can show the linker folks?) :) > > I should be able to create a reproducer with cvise and file a bug on > GitHub around this tomorrow, I should have done it after Peter's > comments on IRC. https://github.com/ClangBuiltLinux/linux/issues/1606 Cheers, Nathan