Received: by 2002:ad5:4acb:0:0:0:0:0 with SMTP id n11csp5729925imw; Wed, 20 Jul 2022 11:16:25 -0700 (PDT) X-Google-Smtp-Source: AGRyM1uLG4P/BkWmpN887stqUVQWk3dSADxG27LoOcZ8GmgLEhzM7QnL3yIvj0AdtFt0s94ltn22 X-Received: by 2002:a63:1921:0:b0:412:407f:f012 with SMTP id z33-20020a631921000000b00412407ff012mr33730831pgl.125.1658340985482; Wed, 20 Jul 2022 11:16:25 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1658340985; cv=none; d=google.com; s=arc-20160816; b=ZNiPgALfTDpcKACG64qXDtJa4Dd8KXrvNYh7eh+7+JGLpKcpZdCBWkUYDHOQrpBj7L FLCich8RHMSpc9yzLU0bAFJZFTWVs+2W9T5xVpzZUe7nfNDMYjAmo/zSoduFcWKRSMB+ 3fl88fsvq8BeT1AiS2XNMJ0eUfccS2hlRWKvTSDhe3hJq46WyUW7IJo5uFBIqkg8IBuo ujMUXv1tiWld/C1VWpw0VVHO35au0XdFhK2jW7FwjZcmDswNgTI0zoK0iia2dsPSuYg2 d4oxfV6j2s3PjVYcqgsEp8nQEXOlnjIiQBl59U0UBeYufK58ByO6YwFUwy0CkMDs+Gq7 9HaQ== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:cc:to:subject:message-id:date:from:in-reply-to :references:mime-version:dkim-signature; bh=WfFInv5ImNO15plC0c/RcDxCy7llN2JkDjkw6ed6RCE=; b=ePzyfRKCss1MB7YQoemeUfvEWRwMyAcmTFC4P6NbZKDFOB3TfL4SuZ2pZvYr9nP5vb 1vQHiixzQnw0GB+nrfAdlJluJCB+0KmpYKkytHFjZcIcqD3jVdzSbYdpNwsuyM52vSm+ b3VpzwE+XgJf2+EeRzLhYqCaxnA4XFCvwtwvNe7c6IGJhe9oAwY02855AlYw2mKpsma8 apKEOHqR2w5mvN87F0j+R8pv8RWd6jpp/sKrjeIe8xYovW+WRR+ywAXHWLDUGhdwY9kh zrsZUdeiyKNGJczjroJJLhXxNy/37a0gba4jycBp8JGA8NYJKv4ej252GU32r4DiQgIk ez+g== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@linux-foundation.org header.s=google header.b=AasR9VXx; 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 y24-20020a634b18000000b00415fcde211asi7588386pga.556.2022.07.20.11.16.10; Wed, 20 Jul 2022 11:16:25 -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=@linux-foundation.org header.s=google header.b=AasR9VXx; 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 S235043AbiGTSHt (ORCPT + 99 others); Wed, 20 Jul 2022 14:07:49 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:57892 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S230042AbiGTSHr (ORCPT ); Wed, 20 Jul 2022 14:07:47 -0400 Received: from mail-ed1-x530.google.com (mail-ed1-x530.google.com [IPv6:2a00:1450:4864:20::530]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id F27323AE57 for ; Wed, 20 Jul 2022 11:07:46 -0700 (PDT) Received: by mail-ed1-x530.google.com with SMTP id y8so24800635eda.3 for ; Wed, 20 Jul 2022 11:07:46 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=linux-foundation.org; s=google; h=mime-version:references:in-reply-to:from:date:message-id:subject:to :cc; bh=WfFInv5ImNO15plC0c/RcDxCy7llN2JkDjkw6ed6RCE=; b=AasR9VXxENAmKepuQslkxQbHvFYqU1QK/1I7fRsP60vVlub1ST9OvYs4fSJbB4sEcm /uuI4OPOwHEvMfjfvkYfZmHgUgIQj/7tb/1DxAZaLOkb1ZqRneukGeIqD/J0HdQEDG9/ odV/kjT8UkQOwAjH4LXl8Lun4rxoosQoE+iD8= X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20210112; h=x-gm-message-state:mime-version:references:in-reply-to:from:date :message-id:subject:to:cc; bh=WfFInv5ImNO15plC0c/RcDxCy7llN2JkDjkw6ed6RCE=; b=B2cFh+LpI8OIh6lXCaYBKUnXM93LGDICKncU08lNkZDifFenEIrgOC+RSJOAm6S0jL f9tUPtBMzK/GCQULbSOcHVTAtKC+c4gXqc+PWAmQj6/WtN7L0G8J7Vomi/tVoCSrhEbI NM2SNxt8SHdXiEfplGF+9ecBpmyxGMXxNMx0ocN4OfdIcIrhZ3zwMyC4S0XY0ovvVaTR S0aSfcDDtluw8nuq0S6sstwhoLdhbpCjaHiC90LreNlXHSNAQk0nii2rPt0gVrPT7BgY moYh9TUJkQR8DGcgk8R7SJPHMG55j1hNwxLKQqyV2VYzqTWwWRZLSV2Z7TuU9+F6+Doa ZlQA== X-Gm-Message-State: AJIora/+vNashEl7DdFAST3qn1fgQbGTPnPvUIZtxQEcHukm1AXm07MX bIZk7J6EEHbeLMzpqqzBER2xmwuBbxrnHZB9K6g= X-Received: by 2002:aa7:d155:0:b0:43a:bc8d:8d75 with SMTP id r21-20020aa7d155000000b0043abc8d8d75mr52493768edo.322.1658340465357; Wed, 20 Jul 2022 11:07:45 -0700 (PDT) Received: from mail-wr1-f53.google.com (mail-wr1-f53.google.com. [209.85.221.53]) by smtp.gmail.com with ESMTPSA id ez7-20020a056402450700b0043a87e6196esm12569182edb.6.2022.07.20.11.07.42 for (version=TLS1_3 cipher=TLS_AES_128_GCM_SHA256 bits=128/128); Wed, 20 Jul 2022 11:07:43 -0700 (PDT) Received: by mail-wr1-f53.google.com with SMTP id bu1so27234333wrb.9 for ; Wed, 20 Jul 2022 11:07:42 -0700 (PDT) X-Received: by 2002:adf:dd91:0:b0:21e:4e97:c146 with SMTP id x17-20020adfdd91000000b0021e4e97c146mr2233216wrl.281.1658340462416; Wed, 20 Jul 2022 11:07:42 -0700 (PDT) MIME-Version: 1.0 References: <20220716230344.239749011@linutronix.de> <20220720125736.48164a14@gandalf.local.home> <20220720135016.3178ffc6@gandalf.local.home> In-Reply-To: <20220720135016.3178ffc6@gandalf.local.home> From: Linus Torvalds Date: Wed, 20 Jul 2022 11:07:26 -0700 X-Gmail-Original-Message-ID: Message-ID: Subject: Re: [patch 00/38] x86/retbleed: Call depth tracking mitigation To: Steven Rostedt Cc: Peter Zijlstra , Thomas Gleixner , LKML , "the arch/x86 maintainers" , Tim Chen , Josh Poimboeuf , Andrew Cooper , Pawan Gupta , Johannes Wikner , Alyssa Milburn , Jann Horn , "H.J. Lu" , Joao Moreira , Joseph Nuzman , Juergen Gross , Masami Hiramatsu , Alexei Starovoitov , Daniel Borkmann Content-Type: text/plain; charset="UTF-8" X-Spam-Status: No, score=-1.8 required=5.0 tests=BAYES_00,DKIM_SIGNED, DKIM_VALID,DKIM_VALID_AU,HEADER_FROM_DIFFERENT_DOMAINS, RCVD_IN_DNSWL_NONE,SPF_HELO_NONE,SPF_PASS 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 Wed, Jul 20, 2022 at 10:50 AM Steven Rostedt wrote: > > [ 2.464117] missing return thunk: lkdtm_rodata_do_nothing+0x0/0x8-lkdtm_rodata_do_nothing+0x5/0x8: e9 00 00 00 00 Well, that looks like a "jmp" instruction that has never been relocated. The 'e9' is 'jmp', the four zeros after it are either "I'm jumping to the next instruction" or "I haven't been filled in". I'm assuming it's the second case. That lkdtm_rodata_do_nothing thing is odd, and does OBJCOPYFLAGS_rodata_objcopy.o := \ --rename-section .noinstr.text=.rodata,alloc,readonly,load,contents to put the code in an odd section. I'm assuming this hackery is related to it then not getting relocated. Linus