Received: by 2002:a05:6a10:413:0:0:0:0 with SMTP id 19csp1974176pxp; Sun, 13 Mar 2022 05:40:37 -0700 (PDT) X-Google-Smtp-Source: ABdhPJxUWKdVrELENhAPNHMV6Z5lCjgkLfgo4ryc6ev4EZWDNvN1Vg8cTBD1aPKIr2Z/0FAqrzJF X-Received: by 2002:a62:3896:0:b0:4f7:87dc:de5b with SMTP id f144-20020a623896000000b004f787dcde5bmr13431617pfa.49.1647175236832; Sun, 13 Mar 2022 05:40:36 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1647175236; cv=none; d=google.com; s=arc-20160816; b=Bsxli2Db0qCcMsGX7IM2QxSJWweWycySa6M4fQS/VeKulYMp6tE0+QLirCaLWH579R SvSenLNFiKkOsf/mYlvD56RLkTXMnPQGlWDQcKelR2hDtToFTVpGtDxeb0RxUxhj93mP BC7eg7E9enov2BgdYT6TWOgdq9ruIm/RIbDTW/eG7RBAuOm2qgFd5oifIrvLefEoionZ 8KRe12kJQWEZTkdL14tqxR07ErrMigbFSJYVtR3NuNs7VF0AGPqGxQcBzTnR6V8ZdjAz vFoy35Z4zfGdpEyczrXzrNHOlSFSIuCvm5BoIPv2txM8nJOUfk0/fN1ejDnuOJpyPcTm ki0w== 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=XxBAm++QJgtGU16ffhunyrTU2NHDo5CknXs8koZZv2Y=; b=CJU4eqibyYleEI4e0IiDVTvO/eduX4Vu2sN1pruvzxGjhykVJM4b5rfAXf5x2Tp2mL wzkk5PBNRdp3hpAqXapY9JzCyveeLg9f8v8bbeYvJGz7LjD211pKK+XjoLmiR4PEVyie Opi9rNAXrknWVqw+8ybxvnu5bYevqTZdekuTuiJh8CS7vvlKlw4lDWd7DGTXmcmzNrKz GuoaAJKX+1N8IyVs6P5FV1VAyUBvXEInKsgJgp/NBdys3ioig8VAd6FoIMVJ8RUmjZ6Z sQFdxsmu6L1BouM//VoGQR7dLVcyGoqeVMhl9YkDk6qFuHd6ROCA/h3csYH2QAj6DAiW LwcA== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@infradead.org header.s=desiato.20200630 header.b=iWI8oFWK; 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 y186-20020a638ac3000000b00380caf8cbaesi11267019pgd.749.2022.03.13.05.40.24; Sun, 13 Mar 2022 05:40:36 -0700 (PDT) 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=@infradead.org header.s=desiato.20200630 header.b=iWI8oFWK; 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 S231259AbiCMIyD (ORCPT + 99 others); Sun, 13 Mar 2022 04:54:03 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:38342 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S229379AbiCMIyB (ORCPT ); Sun, 13 Mar 2022 04:54:01 -0400 Received: from desiato.infradead.org (desiato.infradead.org [IPv6:2001:8b0:10b:1:d65d:64ff:fe57:4e05]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id B3C75238; Sun, 13 Mar 2022 00:52:49 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=infradead.org; s=desiato.20200630; h=In-Reply-To:Content-Type:MIME-Version: References:Message-ID:Subject:Cc:To:From:Date:Sender:Reply-To: Content-Transfer-Encoding:Content-ID:Content-Description; bh=XxBAm++QJgtGU16ffhunyrTU2NHDo5CknXs8koZZv2Y=; b=iWI8oFWKPrDvTTvon1p2L1CZSP 6KsP6t8vSsTn8h7vwkkVxYaB3HpCZNVntkjVS7DDOvISzoecPNFEgFkIm2vlhnjs9wtLFjFs0o1fj eQPxEo1BjdynXFkD4nF9rLMcU9VgPH0y7+iFrvABalSMoY7UJF2KTuo7owH8x6UlggTi9GBEezeNe PmIr4vMioNXdXTUT43fLGdtOPV8WE76SBERfy7t7LNVWS88WU+hdG0wrWKjf6qUEhCZSXNZakaOG/ tQB9QFtIuswz7Uuf/XjNTsZPB3bfWhwx6BTW9S9wfgQmXWszlNGUMO803v50cmebT6B5b3IQNiGfw LZmxn9dA==; Received: from j217100.upc-j.chello.nl ([24.132.217.100] helo=worktop.programming.kicks-ass.net) by desiato.infradead.org with esmtpsa (Exim 4.94.2 #2 (Red Hat Linux)) id 1nTJxY-000TQE-Ph; Sun, 13 Mar 2022 08:52:16 +0000 Received: by worktop.programming.kicks-ass.net (Postfix, from userid 1000) id 892E3987D0D; Sun, 13 Mar 2022 09:52:14 +0100 (CET) Date: Sun, 13 Mar 2022 09:52:14 +0100 From: Peter Zijlstra To: Alexei Starovoitov Cc: Kumar Kartikeya Dwivedi , X86 ML , joao@overdrivepizza.com, hjl.tools@gmail.com, Josh Poimboeuf , Andrew Cooper , LKML , Nick Desaulniers , Kees Cook , Sami Tolvanen , Mark Rutland , alyssa.milburn@intel.com, Miroslav Benes , Steven Rostedt , Masami Hiramatsu , Daniel Borkmann , Andrii Nakryiko , bpf Subject: Re: [PATCH v4 00/45] x86: Kernel IBT Message-ID: <20220313085214.GK28057@worktop.programming.kicks-ass.net> References: <20220309190917.w3tq72alughslanq@ast-mbp.dhcp.thefacebook.com> <20220312154407.GF28057@worktop.programming.kicks-ass.net> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: X-Spam-Status: No, score=-4.4 required=5.0 tests=BAYES_00,DKIM_SIGNED, DKIM_VALID,DKIM_VALID_AU,DKIM_VALID_EF,RCVD_IN_DNSWL_MED,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 Sat, Mar 12, 2022 at 05:33:39PM -0800, Alexei Starovoitov wrote: > During the build with gcc 8.5 I see: > > arch/x86/crypto/crc32c-intel.o: warning: objtool: file already has > .ibt_endbr_seal, skipping > arch/x86/crypto/crc32c-intel.o: warning: objtool: file already has > .orc_unwind section, skipping > LD [M] crypto/async_tx/async_xor.ko > LD [M] crypto/authenc.ko > make[3]: *** [../scripts/Makefile.modfinal:61: > arch/x86/crypto/crc32c-intel.ko] Error 255 > make[3]: *** Waiting for unfinished jobs.... > > but make clean cures it. > I suspect it's some missing makefile dependency. Yes, I recently ran into it; I've been trying to kick Makefile into submission but have not had success yet. Will try again on Monday. Problem appears to be that it will re-link .ko even though .o hasn't changed, resulting in duplicate objtool runs. I've been trying to have makefile generate .o.objtool empty file to serve as dependency marker to avoid doing second objtool run, but like said, no luck yet. > and: > vmlinux.o: warning: objtool: ksys_unshare()+0x626: unreachable instruction > which stays even after make clean. Humm, I shall have to dig out gcc-8.5 then. > The rcu "false positive" is still there that causes > sporadic hangs during the boot. I've merged fix for that yesterday, shall respin this ibt tree to include that. > The test_progs shows: > Summary: 228/1122 PASSED, 4 SKIPPED, 6 FAILED > (when I remove one test) > > That test is actually crashing the kernel: > ./test_progs -t mod_race Argh, I wasn't seeing crashing, I'll prod with sharp stick.