Received: by 2002:a05:6a10:206:0:0:0:0 with SMTP id 6csp2401815pxj; Sun, 6 Jun 2021 00:58:58 -0700 (PDT) X-Google-Smtp-Source: ABdhPJw/pJ4k25oVAZd7Qwk3TCtqJnmzYD5Nn+yOmJVLasmaYBDL2gbnXhafur7xjPvxMpAtiZlj X-Received: by 2002:a17:906:ca4c:: with SMTP id jx12mr12709301ejb.155.1622966338055; Sun, 06 Jun 2021 00:58:58 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1622966338; cv=none; d=google.com; s=arc-20160816; b=jLChFh/Maye5iVUM4jCXRxq5s09t00gh1PqHd7B4RHT8TYZV3aZoqLdG7hHPw5L9z+ iEgZCPe8iCtl1iCDTFF4vFx8JClF0A1LsdUf/z+OC1y2wfqz39xAson9JPEKZbnJxjqy vnDraeegoSRyTVvR/4Z0mW1YlNwL2socnx48Y+YmrgjkONgxTNxOM7E0sd56EDWdHuYR J4v9xuDmG6ih1EJyWsPvEXiVOv7+tyS6ztAZ/QPB9ZEFwhZjA+QS8BpdoLZXIzRVXtc3 jygKdNjDSR3R51pFdVXGX5n3l9F9GXLJJRVsz/OB32I/e4w81XjSKnY1YEEK9Pq53Syg vUoA== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:content-transfer-encoding:content-disposition :mime-version:message-id:subject:cc:to:from:date:dkim-signature :dkim-signature:dkim-signature:dkim-signature; bh=VstjiBMm33y78FQkXkeOep9BwkExlIKSBlnBgt6a8qw=; b=C7atXtz7P2b7K4e004EYlFV1+f7xGoQSW9FvmBiLePOECocYJzONh2NJ3Lr827DZ5b 9RVwAunK7qHavaIFLhcQGy6Vx7EkJmIm7cCP02MkJGUXQiMleZd64Ik3hls3WKQNGWe0 Fo2J+XYa9hcBefRzU4fcpkYlFPyoilSYduo161DIcFKeaTh1Nzi1YVbwg9Bwh5Qio9Ap IlxGZDbCuVuybL/DI7PrK0utjBNjXxF46xfpH6WpnmcDlrSDvNU/2W//Qnu4t7oZDi15 r1nJQvKeaPYRuUcLLCvnNGUGpFe/UQ2tiTPR/8Yrtgw9lmr+jTE8JIdodYjT47x3JVPI 9kug== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@suse.de header.s=susede2_rsa header.b=lxIcC7Z1; dkim=neutral (no key) header.i=@suse.de; dkim=pass header.i=@suse.de header.s=susede2_rsa header.b=lxIcC7Z1; dkim=neutral (no key) header.i=@suse.de header.b=ft+jBQPe; 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 Return-Path: Received: from vger.kernel.org (vger.kernel.org. [23.128.96.18]) by mx.google.com with ESMTP id d5si9236817ejd.323.2021.06.06.00.58.35; Sun, 06 Jun 2021 00:58:58 -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=@suse.de header.s=susede2_rsa header.b=lxIcC7Z1; dkim=neutral (no key) header.i=@suse.de; dkim=pass header.i=@suse.de header.s=susede2_rsa header.b=lxIcC7Z1; dkim=neutral (no key) header.i=@suse.de header.b=ft+jBQPe; 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 Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S230104AbhFFH5t (ORCPT + 99 others); Sun, 6 Jun 2021 03:57:49 -0400 Received: from smtp-out2.suse.de ([195.135.220.29]:56940 "EHLO smtp-out2.suse.de" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S229508AbhFFH5r (ORCPT ); Sun, 6 Jun 2021 03:57:47 -0400 Received: from imap.suse.de (imap-alt.suse-dmz.suse.de [192.168.254.47]) (using TLSv1.2 with cipher ECDHE-ECDSA-AES128-GCM-SHA256 (128/128 bits)) (No client certificate requested) by smtp-out2.suse.de (Postfix) with ESMTPS id 712911FD30; Sun, 6 Jun 2021 07:55:57 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=suse.de; s=susede2_rsa; t=1622966157; h=from:from:reply-to:date:date:message-id:message-id:to:to:cc:cc: mime-version:mime-version:content-type:content-type: content-transfer-encoding:content-transfer-encoding; bh=VstjiBMm33y78FQkXkeOep9BwkExlIKSBlnBgt6a8qw=; b=lxIcC7Z1zITMG5JYYXKhQVTOBw2wt8GFZoG4fLVDXtBdkex/ahl+qYFjtRgTncrYXRETm1 yv8rbCMp6impEThN6aCQqEmcaiFBwdu0RHlt76aleQ0GbBd1G6EDL+ODqo7z07M/+aHURX wXD5XAZXv9MSlh3lpjxjAJm0fGCbsOA= DKIM-Signature: v=1; a=ed25519-sha256; c=relaxed/relaxed; d=suse.de; s=susede2_ed25519; t=1622966157; h=from:from:reply-to:date:date:message-id:message-id:to:to:cc:cc: mime-version:mime-version:content-type:content-type: content-transfer-encoding:content-transfer-encoding; bh=VstjiBMm33y78FQkXkeOep9BwkExlIKSBlnBgt6a8qw=; b=ft+jBQPeQ2gPn+/idH6c3wJb2jfsbwrupOFsWzqOSHVU6iBZ66evLV5E81NZvTPrclTf/y hWOqC72qfyEzrTBw== Received: from imap3-int (imap-alt.suse-dmz.suse.de [192.168.254.47]) by imap.suse.de (Postfix) with ESMTP id 4CCF2118DD; Sun, 6 Jun 2021 07:55:57 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=suse.de; s=susede2_rsa; t=1622966157; h=from:from:reply-to:date:date:message-id:message-id:to:to:cc:cc: mime-version:mime-version:content-type:content-type: content-transfer-encoding:content-transfer-encoding; bh=VstjiBMm33y78FQkXkeOep9BwkExlIKSBlnBgt6a8qw=; b=lxIcC7Z1zITMG5JYYXKhQVTOBw2wt8GFZoG4fLVDXtBdkex/ahl+qYFjtRgTncrYXRETm1 yv8rbCMp6impEThN6aCQqEmcaiFBwdu0RHlt76aleQ0GbBd1G6EDL+ODqo7z07M/+aHURX wXD5XAZXv9MSlh3lpjxjAJm0fGCbsOA= DKIM-Signature: v=1; a=ed25519-sha256; c=relaxed/relaxed; d=suse.de; s=susede2_ed25519; t=1622966157; h=from:from:reply-to:date:date:message-id:message-id:to:to:cc:cc: mime-version:mime-version:content-type:content-type: content-transfer-encoding:content-transfer-encoding; bh=VstjiBMm33y78FQkXkeOep9BwkExlIKSBlnBgt6a8qw=; b=ft+jBQPeQ2gPn+/idH6c3wJb2jfsbwrupOFsWzqOSHVU6iBZ66evLV5E81NZvTPrclTf/y hWOqC72qfyEzrTBw== Received: from director2.suse.de ([192.168.254.72]) by imap3-int with ESMTPSA id VylUEo1/vGBiCwAALh3uQQ (envelope-from ); Sun, 06 Jun 2021 07:55:57 +0000 Date: Sun, 6 Jun 2021 09:55:52 +0200 From: Borislav Petkov To: Linus Torvalds Cc: x86-ml , lkml Subject: [GIT PULL] x86/urgent for v5.13-rc5 Message-ID: MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Disposition: inline Content-Transfer-Encoding: 8bit Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Hi Linus, a bunch of x86/urgent stuff accumulated for the last two weeks so lemme unload it to you. It should be all totally risk-free, ofcourse. :-) Please pull, thx. --- The following changes since commit c4681547bcce777daf576925a966ffa824edd09d: Linux 5.13-rc3 (2021-05-23 11:42:48 -1000) are available in the Git repository at: git://git.kernel.org/pub/scm/linux/kernel/git/tip/tip.git tags/x86_urgent_for_v5.13-rc5 for you to fetch changes up to 009767dbf42ac0dbe3cf48c1ee224f6b778aa85a: x86/sev: Check SME/SEV support in CPUID first (2021-06-04 18:39:09 +0200) ---------------------------------------------------------------- - Fix out-of-spec hardware (1st gen Hygon) which does not implement MSR_AMD64_SEV even though the spec clearly states so, and check CPUID bits first. - Send only one signal to a task when it is a SEGV_PKUERR si_code type. - Do away with all the wankery of reserving X amount of memory in the first megabyte to prevent BIOS corrupting it and simply and unconditionally reserve the whole first megabyte. - Make alternatives NOP optimization work at an arbitrary position within the patched sequence because the compiler can put single-byte NOPs for alignment anywhere in the sequence (32-bit retpoline), vs our previous assumption that the NOPs are only appended. - Force-disable ENQCMD[S] instructions support and remove update_pasid() because of insufficient protection against FPU state modification in an interrupt context, among other xstate horrors which are being addressed at the moment. This one limits the fallout until proper enablement. - Use cpu_feature_enabled() in the idxd driver so that it can be build-time disabled through the defines in .../asm/disabled-features.h. - Fix LVT thermal setup for SMI delivery mode by making sure the APIC LVT value is read before APIC initialization so that softlockups during boot do not happen at least on one machine. - Mark all legacy interrupts as legacy vectors when the IO-APIC is disabled and when all legacy interrupts are routed through the PIC. ---------------------------------------------------------------- Borislav Petkov (3): x86/thermal: Fix LVT thermal setup for SMI delivery mode dmaengine: idxd: Use cpu_feature_enabled() x86/alternative: Optimize single-byte NOPs at an arbitrary position Jiashuo Liang (1): x86/fault: Don't send SIGSEGV twice on SEGV_PKUERR Mike Rapoport (1): x86/setup: Always reserve the first 1M of RAM Pu Wen (1): x86/sev: Check SME/SEV support in CPUID first Thomas Gleixner (2): x86/apic: Mark _all_ legacy interrupts when IO/APIC is missing x86/cpufeatures: Force disable X86_FEATURE_ENQCMD and remove update_pasid() arch/x86/include/asm/apic.h | 1 + arch/x86/include/asm/disabled-features.h | 7 +--- arch/x86/include/asm/fpu/api.h | 6 +-- arch/x86/include/asm/fpu/internal.h | 7 ---- arch/x86/include/asm/thermal.h | 4 +- arch/x86/kernel/alternative.c | 64 +++++++++++++++++++++++--------- arch/x86/kernel/apic/apic.c | 1 + arch/x86/kernel/apic/vector.c | 20 ++++++++++ arch/x86/kernel/fpu/xstate.c | 57 ---------------------------- arch/x86/kernel/setup.c | 44 +++++++++++++++------- arch/x86/mm/fault.c | 4 +- arch/x86/mm/mem_encrypt_identity.c | 11 +++--- arch/x86/platform/efi/quirks.c | 12 ++++++ arch/x86/realmode/init.c | 14 ++++--- drivers/dma/idxd/init.c | 4 +- drivers/thermal/intel/therm_throt.c | 15 ++++++-- 16 files changed, 145 insertions(+), 126 deletions(-) -- Regards/Gruss, Boris. SUSE Software Solutions Germany GmbH, GF: Felix Imendörffer, HRB 36809, AG Nürnberg