Received: by 2002:a05:6a10:1a4d:0:0:0:0 with SMTP id nk13csp3211134pxb; Fri, 4 Feb 2022 03:58:33 -0800 (PST) X-Google-Smtp-Source: ABdhPJw4/m2aMEyQPAK2sWbGXpxNSVplV8+wqA0dbbFFdpNsIMVfO8pNnmVNdngMK94/ZR8EQK1b X-Received: by 2002:a17:907:e8c:: with SMTP id ho12mr2178462ejc.284.1643975913014; Fri, 04 Feb 2022 03:58:33 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1643975913; cv=none; d=google.com; s=arc-20160816; b=o2xF4af+e/LFfCPVyFYfQZaVefcWV5L61J9MlQbBrHsRT8keCqpTqzl2fhDA0JtVir cLKg73wtZGbrZ0sgVV4Ow+l0R1ZsPV+HeSLSxEWIOa69m24DvBk5oY3/bv8zN1ZkRHFe 21GBTgh9n0DK7Z+fjKQIOLfwAEkUxMkD6X67m1GNcNimlgX1nw+nVytop0brg3raMKdt x72TVzHOlk/OHZ4ypmhxmyaUTmxdc9R920b7CkgPEd+5Yptxcre95RxrxnXdaZIeUjjl 9FmMu5mbCjn6eZrTsdgd4pZMRp21CVdpSmpUUX2D11jC/PS2qYgA/+fsh2Wr7uSF1BSG pMPQ== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:content-transfer-encoding:mime-version :message-id:date:subject:cc:to:from:dkim-signature; bh=ofHqQ4SurO6eGbHKRovoC68iUpsdRIsx+TX9bNpORIo=; b=UvRSu79CwgFHVUWQGDK9CFqtk/mEaxQeJ6w4BwzBB87e+c0IupJISJIDSFB4gVALlS OdgC7ikH5ZYrrU7xkJTUQKKzotjaZsKZKZBbHdnR0BCnaisZGPykO5xkl1L+mdtWWm0x YYDi4Wr8KUfDshti4SqIGx6uXcbsV+8kcmhHsMRZl3Fwx1gLTly80x3fdj5IDT8NAD+j 3xtMabDfvD3eyceD7qHRCQdZtjK0d6cHxqVcnEcagtw8UAThV4JqyUeT5ghmt4P3q9/1 xreSPsGDCr1YuhzemdinbGWFa4FcMD3Vn22wx9Tzaq48kt2JqgHjIT66cBcqYrt5GGuq FzUg== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@alien8.de header.s=dkim header.b=JqVE3xoX; 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=alien8.de Return-Path: Received: from out1.vger.email (out1.vger.email. [2620:137:e000::1:20]) by mx.google.com with ESMTP id b4si966163edr.13.2022.02.04.03.58.08; Fri, 04 Feb 2022 03:58:32 -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=@alien8.de header.s=dkim header.b=JqVE3xoX; 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=alien8.de Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1356319AbiBDIa3 (ORCPT + 99 others); Fri, 4 Feb 2022 03:30:29 -0500 Received: from mail.skyhub.de ([5.9.137.197]:42750 "EHLO mail.skyhub.de" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S234366AbiBDIa0 (ORCPT ); Fri, 4 Feb 2022 03:30:26 -0500 Received: from zn.tnic (dslb-088-067-221-104.088.067.pools.vodafone-ip.de [88.67.221.104]) (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 B1C1D1EC06A9; Fri, 4 Feb 2022 09:30:25 +0100 (CET) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=alien8.de; s=dkim; t=1643963425; h=from:from:reply-to:subject:subject:date:date:message-id:message-id: to:to:cc:cc:mime-version:mime-version:content-type: content-transfer-encoding:content-transfer-encoding:in-reply-to: references; bh=ofHqQ4SurO6eGbHKRovoC68iUpsdRIsx+TX9bNpORIo=; b=JqVE3xoXfO6EJADk2G05Pz35rYdguCoYyCIBwHKyzm1OWV4EXTt+t5q2PwPJZjvn/Nk0yw MHZvPN11jplUbvgggkXSjEeuyI+YJxsw9rV1lKFDdfVdo4Q2Et9VTtMDqB7Xi6tqzSPtC1 Wp9rm92dejrOWQxt5xoLlq+9LAvgoc4= From: Borislav Petkov To: Tony Luck Cc: Jakub Kicinski , Linus Torvalds , Marco Elver , X86 ML , LKML Subject: [PATCH 0/3] x86/mce: Fix more noinstr fun Date: Fri, 4 Feb 2022 09:30:12 +0100 Message-Id: <20220204083015.17317-1-bp@alien8.de> X-Mailer: git-send-email 2.29.2 MIME-Version: 1.0 Content-Transfer-Encoding: 8bit Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org From: Borislav Petkov Hi all, here's a second small set of fixes for objtool noinstr validation issues in the MCE code. It goes ontop of tip:locking/core where there are some more commits changing generic helpers to be always inlined. As always, comments and suggestions are appreciated. Thx. Borislav Petkov (3): cpumask: Add a x86-specific cpumask_clear_cpu() helper x86/ptrace: Always inline v8086_mode() for instrumentation x86/mce: Use arch atomic and bit helpers arch/x86/include/asm/cpumask.h | 10 ++++++ arch/x86/include/asm/ptrace.h | 2 +- arch/x86/kernel/cpu/mce/core.c | 58 ++++++++++-------------------- arch/x86/kernel/cpu/mce/internal.h | 23 ++++++++++-- arch/x86/kernel/cpu/mce/severity.c | 2 +- include/linux/cpumask.h | 4 +-- 6 files changed, 54 insertions(+), 45 deletions(-) -- 2.29.2