Received: by 2002:a05:6a10:413:0:0:0:0 with SMTP id 19csp3521514pxp; Tue, 8 Mar 2022 16:32:18 -0800 (PST) X-Google-Smtp-Source: ABdhPJylOisqxEwkzJk3hiNLkGLR0TKy8apGVpfXDZEuxDuZmwuNhWn5Otcc7wmTIjBFUGMFv7Cp X-Received: by 2002:a17:90b:1e47:b0:1bf:6d84:ca1d with SMTP id pi7-20020a17090b1e4700b001bf6d84ca1dmr7553649pjb.94.1646785938101; Tue, 08 Mar 2022 16:32:18 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1646785938; cv=none; d=google.com; s=arc-20160816; b=FePdmpwQctsoXuWBSBIqWBWmacII4NF4jg/ymATgTj/Bq9KBo70ts7IMKm/UqlJQFV kpcdZlcANiIhjX+gXB1K1p7lTUAXSufniQpDZCHEqg+5aVClaycekz/LPUxVaMJ4gMrS EgdujY6RWPGWUqGeREpFAwxOnqY5jR+HOc7Joj3fCI0iNg3rsD9PlEzyyEZvzLMDfxJJ 6s3PMeYK9Kjs+JdsvGpAR+n2QDozQlOWkYg9pjsdgVZoihsOr6WL7bHBQfaoHDroGGye OPbiSoNkcYCos4hd9KOeWP2kpS7AYE26IdYcnxXcSX+nJxcO9LjsWuh3BOYrrLaDRDXk CTkQ== 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=3DrXHfJUJQiuAbxg8KAX894kTH0h17V1hufjnFg1QDI=; b=i7teSft3aUx9bo1kaedietly+B3extBAdeHCCy9Kd0sje98utgY+GlxrVIS3gqxnv8 Kf0Xn+gU4VZKx7egT9QdS2rQAXi/2AYKdjYZM+BwdBg4Xlqezomc7F7hGAYJReWo/Bdi tTsKsoKRCkjINQkn1glyPrE6DOTboYR11qpPMWUmTEEBCHD+FrAfFZN7Q394fAPE4ZsF V5w8IO0sw8gX98wuyxKW3GVriJ2XyH4kU8ZE46wjBMzzC/G3Vrwg75n92tBVycATJGFb ZRBlvmA+Y/RCJRCNtDK/ShMhm2oLHij6QiBC6JeDB1OgU1A9fythsSqV/mQsmZo0HVYQ L3kA== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@gmail.com header.s=20210112 header.b=VN+sDijV; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:18 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=QUARANTINE dis=NONE) header.from=gmail.com Return-Path: Received: from lindbergh.monkeyblade.net (lindbergh.monkeyblade.net. [2620:137:e000::1:18]) by mx.google.com with ESMTPS id z1-20020a630a41000000b0036508fa5166si365399pgk.14.2022.03.08.16.32.17 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Tue, 08 Mar 2022 16:32:18 -0800 (PST) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:18 as permitted sender) client-ip=2620:137:e000::1:18; Authentication-Results: mx.google.com; dkim=pass header.i=@gmail.com header.s=20210112 header.b=VN+sDijV; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:18 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=QUARANTINE dis=NONE) header.from=gmail.com Received: from vger.kernel.org (vger.kernel.org [23.128.96.18]) by lindbergh.monkeyblade.net (Postfix) with ESMTP id 6A3B410C536; Tue, 8 Mar 2022 15:50:39 -0800 (PST) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1346496AbiCHUB4 (ORCPT + 99 others); Tue, 8 Mar 2022 15:01:56 -0500 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:39098 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S232253AbiCHUBx (ORCPT ); Tue, 8 Mar 2022 15:01:53 -0500 Received: from mail-pj1-x102e.google.com (mail-pj1-x102e.google.com [IPv6:2607:f8b0:4864:20::102e]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id D23C939812; Tue, 8 Mar 2022 12:00:56 -0800 (PST) Received: by mail-pj1-x102e.google.com with SMTP id m11-20020a17090a7f8b00b001beef6143a8so309577pjl.4; Tue, 08 Mar 2022 12:00:56 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20210112; h=date:from:to:cc:subject:message-id:references:mime-version :content-disposition:in-reply-to; bh=3DrXHfJUJQiuAbxg8KAX894kTH0h17V1hufjnFg1QDI=; b=VN+sDijVQqGSDFhwhTtC5smbj+eIxnY/ezsixNZjHygdNQ/oJceOfW03siodezRfbO yFHSrg9b1D2APOQN8O0jw177Wwy5xyZL1XrEeyZTjz7rht2jwkVg3+RKPCz/lS0zHbkF vk6W34irtH4n9YShvv56AnPmfONpg4DwBakoaECoclcacClzqdKsEk4XlO6+ecArqIja 5TVDpiz5EQPlJu+jU3EPLBRcqhTCfZr1iA6JRl0C4V3DdsUua1gthqWcPjQ5N7Gq/sl/ hiQGnMNf/2zJB7as8DKEU0VrHcFTejTH6lj1wH+0WtW7txUbYzv9BFL0gqa+WXtaDtp6 aJEA== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20210112; h=x-gm-message-state:date:from:to:cc:subject:message-id:references :mime-version:content-disposition:in-reply-to; bh=3DrXHfJUJQiuAbxg8KAX894kTH0h17V1hufjnFg1QDI=; b=QZowkWD62V+gHRm/xZ1F27vK+oi6oXfVVWLJk/9WoPjQFEFV5onb526BCdm0IA97Ma CqbDM4JalMRVN4XkUwznQbpgzrGkDAKWkv/gpbVvvUo4X4Z4ZVUTEHehSdwWiK+VlTUk MfSHXmm9//qpSs7aw9p3QBdG5CV6gvD/nBNJG8qJCIws0qIuFV4MqYvYZrZY04V9duU+ SLlXvKvXdXg2EpfjTetZqZDxEzOhhSSgkHuyyv/qQwUC0rpJUOR0eRI9mf5qH5hjpzk0 22oaOIKFeXul2UneYJVRm8inrroQcK6jLLuW7V6o5tFbmSweWXQZ/lsrWWOHwSC/bCpo DxsQ== X-Gm-Message-State: AOAM530dqdlj+boMX10DIhtMAGZVb71vzHNrI6kMV6p0JRq5EY/TW8KK rm3WPJSjiN7+7GtUZbxwXAyPAkkaHRg= X-Received: by 2002:a17:90b:1b43:b0:1bf:6180:367a with SMTP id nv3-20020a17090b1b4300b001bf6180367amr6583581pjb.172.1646769655974; Tue, 08 Mar 2022 12:00:55 -0800 (PST) Received: from ast-mbp.dhcp.thefacebook.com ([2620:10d:c090:500::2:53ea]) by smtp.gmail.com with ESMTPSA id l188-20020a6225c5000000b004f715e38283sm6439479pfl.63.2022.03.08.12.00.53 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Tue, 08 Mar 2022 12:00:55 -0800 (PST) Date: Tue, 8 Mar 2022 12:00:52 -0800 From: Alexei Starovoitov To: Peter Zijlstra Cc: 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, keescook@chromium.org, samitolvanen@google.com, mark.rutland@arm.com, alyssa.milburn@intel.com, mbenes@suse.cz, rostedt@goodmis.org, mhiramat@kernel.org, daniel@iogearbox.net, andrii@kernel.org, bpf@vger.kernel.org Subject: Re: [PATCH v4 00/45] x86: Kernel IBT Message-ID: <20220308200052.rpr4vkxppnxguirg@ast-mbp.dhcp.thefacebook.com> References: <20220308153011.021123062@infradead.org> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <20220308153011.021123062@infradead.org> X-Spam-Status: No, score=-1.7 required=5.0 tests=BAYES_00,DKIM_SIGNED, DKIM_VALID,DKIM_VALID_AU,FREEMAIL_FORGED_FROMDOMAIN,FREEMAIL_FROM, HEADER_FROM_DIFFERENT_DOMAINS,MAILING_LIST_MULTI,RDNS_NONE, SPF_HELO_NONE,T_SCC_BODY_TEXT_LINE autolearn=no 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, Mar 08, 2022 at 04:30:11PM +0100, Peter Zijlstra wrote: > Hopefully last posting... > > Since last time: > > - updated the ftrace_location() patch (naveen, rostedt) > - added a few comments and clarifications (bpetkov) > - disable jump-tables (joao) > - verified clang-14-rc2 works > - fixed a whole bunch of objtool unreachable insn issue > - picked up a few more tags > > Patches go on top of tip/master + arm64/for-next/linkage. Also available here: > > git://git.kernel.org/pub/scm/linux/kernel/git/peterz/queue.git x86/wip.ibt I've tried to test it. Applied the first 23 patches, since patch 24 failed to apply to bpf and bpf-next trees. selftest/bpf/test_progs shows that all bpf trampoline tests are failing and eventually the kernel is crashing: [ 53.040582] RIP: 0010:do_init_module+0x9/0x6f0 [ 53.052044] Call Trace: [ 53.052319] [ 53.052559] bpf_trampoline_6442471381_0+0x32/0x1000 [ 53.053117] do_init_module+0x5/0x6f0 [ 53.053550] load_module+0x77c0/0x9c00 I havne't had time to debug what's going on.