Received: by 2002:a05:6a10:5bc5:0:0:0:0 with SMTP id os5csp4703733pxb; Tue, 2 Nov 2021 14:21:01 -0700 (PDT) X-Google-Smtp-Source: ABdhPJxnPczRPDtbK01YIuiJTFc1V5+3WfBbrIdvgRltaY3+vkY0jv3GO6OG/7AIJ0+K/3xfP89P X-Received: by 2002:a02:b603:: with SMTP id h3mr4163543jam.9.1635888060817; Tue, 02 Nov 2021 14:21:00 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1635888060; cv=none; d=google.com; s=arc-20160816; b=GS0j+qqgJHPQC6PRhqon3dwAtRbIjgpLyV1bnCiPVsYqGAUoxY/QwhW+8WnMelABMc nI+VfAkjC56fBH1yZF0X3fhEIO003I4DTNYbJ4qQpXsXc7If23a68Q3ZjBdZc6np/Qif kQfdcDBO9ffWjnW0+G0rW5GXEZtfjcFQbjOTEdWASfkjv+zyaPwY0XwD8nu35RWvtQPn n5nwbxF6CErGZ4j5HWoE/0YDaS4ElPUtWzOC4woGnxr5Ox3GILVvdSoUmZ7EOdR2uOyo bwQA5hpLTTmcZoPP2qhGlYfhAdvMwnpb0Eso2SYG8hItXuTFklBVQWLcN3wsrWKkzyU3 GVBA== 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=+/uDq33xUD46XLKdHYR9LMs4FyeNj1wjtbIaLFhaSWU=; b=b1IVR4Tkz3byMCnaCDev9FhsspKRCBUUUTEkIZ8CW1iaoNKQqm2AeOvB/yi4LFAKcH HR25n6elbx0OxgUjJK0yvspBl/8n4jGMc6unFCCNNK75jmSuG+UsJzUbGa7MZbzZfmMg qUrDq85PzWKDfrCg+6KSaFO50Qn3oPyNqh2BQzv6EN8AgppsGr67FNIsGwv0+SOP/rD/ pLQ+GaVML8mOWgpQzNGj3cyZ0qVoZowUPq4hWpjcNUzQSLICsVYKlNdPlER9tX+A84Iq GIz3FsqvGjf3zl5WPQBySC+IXQwQAUl4xe0u5x5tHMhk3csjCDzjt8t/6h3VERoqjtS7 BoGQ== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@alien8.de header.s=dkim header.b="mXz/zjz0"; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=alien8.de Return-Path: Received: from vger.kernel.org (vger.kernel.org. [23.128.96.18]) by mx.google.com with ESMTP id s1si103618ilj.87.2021.11.02.14.20.49; Tue, 02 Nov 2021 14:21:00 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) client-ip=23.128.96.18; Authentication-Results: mx.google.com; dkim=pass header.i=@alien8.de header.s=dkim header.b="mXz/zjz0"; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=alien8.de Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S230373AbhKBVU4 (ORCPT + 99 others); Tue, 2 Nov 2021 17:20:56 -0400 Received: from mail.skyhub.de ([5.9.137.197]:37678 "EHLO mail.skyhub.de" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S229931AbhKBVUy (ORCPT ); Tue, 2 Nov 2021 17:20:54 -0400 Received: from zn.tnic (p200300ec2f1e1e0080adfba3347e3dab.dip0.t-ipconnect.de [IPv6:2003:ec:2f1e:1e00:80ad:fba3:347e:3dab]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by mail.skyhub.de (SuperMail on ZX Spectrum 128k) with ESMTPSA id 4C4AD1EC0372; Tue, 2 Nov 2021 22:18:18 +0100 (CET) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=alien8.de; s=dkim; t=1635887898; h=from:from:reply-to:subject:subject:date:date:message-id:message-id: to:to:cc:cc:mime-version:mime-version:content-type:content-type: content-transfer-encoding:in-reply-to:in-reply-to: references:references; bh=+/uDq33xUD46XLKdHYR9LMs4FyeNj1wjtbIaLFhaSWU=; b=mXz/zjz0JdyUSUexsPc4zLrAmMcEklloNANLpGI8mtCpf6bWFQ0UShVIu+z0cuoZYhLDgT gL22/17Lk0ZAOlBLZ+fXQVHtehCZxGGmB+fz/OsOG42ryphNXlXed5gg508eT3iRJDFwNL yZK+7ypcGCRAoC0E/YJXQmPkPiY+vbw= Date: Tue, 2 Nov 2021 22:18:12 +0100 From: Borislav Petkov To: Linus Torvalds Cc: Peter Zijlstra , Thomas Gleixner , Josh Poimboeuf , Linux Kernel Mailing List , the arch/x86 maintainers , Alexander Popov Subject: Re: Stackleak vs noinstr (Was: [GIT pull] objtool/core for v5.16-rc1) Message-ID: References: <163572864256.3357115.931779940195622047.tglx@xen13> <163572864563.3357115.8793939214537874196.tglx@xen13> MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Disposition: inline In-Reply-To: Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On Tue, Nov 02, 2021 at 10:50:06AM -0700, Linus Torvalds wrote: > On Tue, Nov 2, 2021 at 3:05 AM Peter Zijlstra wrote: > > > > Having the plugin gate on section name seems a lot hacky, but given it's > > already doing that, one more doesn't hurt. > > Looks sane to me. > > Some of the other warnings are just odd. > > Why is mce_setup() 'noinst'? I'm not seeing any reason for it, but > maybe I'm just blind. That one complains about the memcpy() call. > > Of course, I suspect memcpy/memset might be better off noinstr anyway, > exactly because they can happen for very regular C code (struct > assignments etc). But mce_setup() doesn't really seem to have much > reason to not be instrumented. That is going away in my local patchset here. The aim is to have the #MC handler be noinstr, ofc, but that thing calls a bunch of other functions and even external ones so it needs careful massaging without destroying the whole house of cards in the process. :-) I should have something palatable - read: properly split patches - soon. -- Regards/Gruss, Boris. https://people.kernel.org/tglx/notes-about-netiquette