Received: by 2002:ad5:4acb:0:0:0:0:0 with SMTP id n11csp4696330imw; Tue, 12 Jul 2022 12:37:02 -0700 (PDT) X-Google-Smtp-Source: AGRyM1ujidKLusGFM+8wIcPKB9EOy3lxsqllOtMjQo0XB3mgmfKSY1PA44kFBCUn3slRwpEjBBvI X-Received: by 2002:a05:6402:35d1:b0:43a:cb5b:208b with SMTP id z17-20020a05640235d100b0043acb5b208bmr20359084edc.275.1657654622086; Tue, 12 Jul 2022 12:37:02 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1657654622; cv=none; d=google.com; s=arc-20160816; b=Y6tkzIjFacT6L0T2VG/3Tzr8zigP/+aV5kAt4+LhwmP3yPQOzYOMp2ZbZL1I4Tgqqa 4HuSI+8xwRUta3FnFWzXnPnA6ZpfznggVGetJmt/R3eT92ZsyPzGgXAxr2vzDJCcWHtL lwocwxY8x0bODDKQxbL4aKtXLGGThObaD8qLLAvsXe8mU0TZRQQQDnENgfNGt0hHeQm1 RGNtOjnUO+n8S0ZtEeNMIMuO+DCJ7BLXfmgY3s71Sg+9IIFJZyi1TlxQZC1KROfttWPj cDuH4Yg0Me1BC/9Wzm2946g6bHWbflnJKHrNTGYRYY/837gZBh/KKb1SzFOfktzJ7UTh Z1Kw== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:content-transfer-encoding:user-agent :mime-version:message-id:date:subject:cc:to:from:dkim-signature; bh=ff706/Zix3k0X+VQWaZ3DhcT1h9Fb8y206+PTM13aqY=; b=O4wVRy43iJINSPLK3Mgs65J/dSVPlNBQbFHHhls5x7RpQ3ZjjDNFbAZueo0l2LDGyT 6+IXL6txPvfqGq1Lt/YnV9YISuRlyXCGNL7jfez/ZALFrJaqIcbTV2mgxfjV9NZt3xxO iGfxNrLZQbj7hQTL8KxyyUmYOeagPNXS8Ve34EgjrF4ryZy9rZU7A5hTg7FrTBZyq5Ao nLVgv1ZXlE3Oz3ZZWfIr95sc2StE7kxR/waPwEsYll5sQY68QI7PbU3yeRLnlPuw7QC5 Be6nT/6VLSZ82DnlT5puGFEvS+9G31RSc3+ocmDNbcPwYL8cETiAzdfwK4XHfsOBaB8T nFwA== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@linuxfoundation.org header.s=korg header.b=L8cahueL; 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=linuxfoundation.org Return-Path: Received: from out1.vger.email (out1.vger.email. [2620:137:e000::1:20]) by mx.google.com with ESMTP id cx12-20020a05640222ac00b0043a9bfde144si13808339edb.598.2022.07.12.12.36.36; Tue, 12 Jul 2022 12:37:02 -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=@linuxfoundation.org header.s=korg header.b=L8cahueL; 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=linuxfoundation.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S235040AbiGLS7A (ORCPT + 99 others); Tue, 12 Jul 2022 14:59:00 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:42058 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S234743AbiGLS6I (ORCPT ); Tue, 12 Jul 2022 14:58:08 -0400 Received: from dfw.source.kernel.org (dfw.source.kernel.org [IPv6:2604:1380:4641:c500::1]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id D3807DE1A7; Tue, 12 Jul 2022 11:47:38 -0700 (PDT) Received: from smtp.kernel.org (relay.kernel.org [52.25.139.140]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by dfw.source.kernel.org (Postfix) with ESMTPS id 3D91D61257; Tue, 12 Jul 2022 18:47:38 +0000 (UTC) Received: by smtp.kernel.org (Postfix) with ESMTPSA id D4329C3411C; Tue, 12 Jul 2022 18:47:36 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=linuxfoundation.org; s=korg; t=1657651657; bh=kOumfv4cnrb7mL+TRjkeoGH3L+rmrFx/2MxHhDuBKwQ=; h=From:To:Cc:Subject:Date:From; b=L8cahueLNcPI+Q2JFu/ygOsHelEz+cuWG16rcy8Td362oCRZwhuQFeBqBM6oUHS6o oHQ/EpbLVS7Bh33Q01egWa50Rfy07ek2je1L0GQqKE9hmanjVWk8JLmPRnL1WWv3LF u03dzb+wFfrLFGA2xQMcWd+kmmRNfCKymRx8EZFQ= From: Greg Kroah-Hartman To: linux-kernel@vger.kernel.org Cc: Greg Kroah-Hartman , stable@vger.kernel.org, torvalds@linux-foundation.org, akpm@linux-foundation.org, linux@roeck-us.net, shuah@kernel.org, patches@kernelci.org, lkft-triage@lists.linaro.org, pavel@denx.de, jonathanh@nvidia.com, f.fainelli@gmail.com, sudipm.mukherjee@gmail.com, slade@sladewatkins.com Subject: [PATCH 5.15 00/78] 5.15.55-rc1 review Date: Tue, 12 Jul 2022 20:38:30 +0200 Message-Id: <20220712183238.844813653@linuxfoundation.org> X-Mailer: git-send-email 2.37.0 MIME-Version: 1.0 User-Agent: quilt/0.66 X-stable: review X-Patchwork-Hint: ignore X-KernelTest-Patch: http://kernel.org/pub/linux/kernel/v5.x/stable-review/patch-5.15.55-rc1.gz X-KernelTest-Tree: git://git.kernel.org/pub/scm/linux/kernel/git/stable/linux-stable-rc.git X-KernelTest-Branch: linux-5.15.y X-KernelTest-Patches: git://git.kernel.org/pub/scm/linux/kernel/git/stable/stable-queue.git X-KernelTest-Version: 5.15.55-rc1 X-KernelTest-Deadline: 2022-07-14T18:32+00:00 Content-Transfer-Encoding: 8bit X-Spam-Status: No, score=-7.7 required=5.0 tests=BAYES_00,DKIMWL_WL_HIGH, DKIM_SIGNED,DKIM_VALID,DKIM_VALID_AU,DKIM_VALID_EF,RCVD_IN_DNSWL_HI, SPF_HELO_NONE,SPF_PASS,T_SCC_BODY_TEXT_LINE autolearn=ham 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 This is the start of the stable review cycle for the 5.15.55 release. There are 78 patches in this series, all will be posted as a response to this one. If anyone has any issues with these being applied, please let me know. Responses should be made by Thu, 14 Jul 2022 18:32:19 +0000. Anything received after that time might be too late. The whole patch series can be found in one patch at: https://www.kernel.org/pub/linux/kernel/v5.x/stable-review/patch-5.15.55-rc1.gz or in the git tree and branch at: git://git.kernel.org/pub/scm/linux/kernel/git/stable/linux-stable-rc.git linux-5.15.y and the diffstat can be found below. thanks, greg k-h ------------- Pseudo-Shortlog of commits: Greg Kroah-Hartman Linux 5.15.55-rc1 Thomas Gleixner x86/static_call: Serialize __static_call_fixup() properly Pawan Gupta x86/speculation: Disable RRSBA behavior Konrad Rzeszutek Wilk x86/kexec: Disable RET on kexec Thadeu Lima de Souza Cascardo x86/bugs: Do not enable IBPB-on-entry when IBPB is not supported Peter Zijlstra x86/entry: Move PUSH_AND_CLEAR_REGS() back into error_entry Pawan Gupta x86/bugs: Add Cannon lake to RETBleed affected CPU list Peter Zijlstra x86/retbleed: Add fine grained Kconfig knobs Andrew Cooper x86/cpu/amd: Enumerate BTC_NO Peter Zijlstra x86/common: Stamp out the stepping madness Josh Poimboeuf x86/speculation: Fill RSB on vmexit for IBRS Josh Poimboeuf KVM: VMX: Fix IBRS handling after vmexit Josh Poimboeuf KVM: VMX: Prevent guest RSB poisoning attacks with eIBRS Josh Poimboeuf KVM: VMX: Convert launched argument to flags Josh Poimboeuf KVM: VMX: Flatten __vmx_vcpu_run() Josh Poimboeuf objtool: Re-add UNWIND_HINT_{SAVE_RESTORE} Josh Poimboeuf x86/speculation: Remove x86_spec_ctrl_mask Josh Poimboeuf x86/speculation: Use cached host SPEC_CTRL value for guest entry/exit Josh Poimboeuf x86/speculation: Fix SPEC_CTRL write on SMT state change Josh Poimboeuf x86/speculation: Fix firmware entry SPEC_CTRL handling Josh Poimboeuf x86/speculation: Fix RSB filling with CONFIG_RETPOLINE=n Peter Zijlstra x86/cpu/amd: Add Spectral Chicken Peter Zijlstra objtool: Add entry UNRET validation Josh Poimboeuf x86/bugs: Do IBPB fallback check only once Peter Zijlstra x86/bugs: Add retbleed=ibpb Peter Zijlstra x86/xen: Add UNTRAIN_RET Peter Zijlstra x86/xen: Rename SYS* entry points Peter Zijlstra objtool: Update Retpoline validation Peter Zijlstra intel_idle: Disable IBRS during long idle Peter Zijlstra x86/bugs: Report Intel retbleed vulnerability Peter Zijlstra x86/bugs: Split spectre_v2_select_mitigation() and spectre_v2_user_select_mitigation() Pawan Gupta x86/speculation: Add spectre_v2=ibrs option to support Kernel IBRS Peter Zijlstra x86/bugs: Optimize SPEC_CTRL MSR writes Thadeu Lima de Souza Cascardo x86/entry: Add kernel IBRS implementation Peter Zijlstra x86/bugs: Keep a per-CPU IA32_SPEC_CTRL value Kim Phillips x86/bugs: Enable STIBP for JMP2RET Alexandre Chartre x86/bugs: Add AMD retbleed= boot parameter Alexandre Chartre x86/bugs: Report AMD retbleed vulnerability Peter Zijlstra x86: Add magic AMD return-thunk Peter Zijlstra objtool: Treat .text.__x86.* as noinstr Peter Zijlstra x86/entry: Avoid very early RET Peter Zijlstra x86: Use return-thunk in asm code Kim Phillips x86/sev: Avoid using __x86_return_thunk Peter Zijlstra x86/vsyscall_emu/64: Don't use RET in vsyscall emulation Peter Zijlstra x86/kvm: Fix SETcc emulation for return thunks Peter Zijlstra x86/bpf: Use alternative RET encoding Peter Zijlstra x86/ftrace: Use alternative RET encoding Peter Zijlstra x86,static_call: Use alternative RET encoding Thadeu Lima de Souza Cascardo objtool: skip non-text sections when adding return-thunk sites Peter Zijlstra x86,objtool: Create .return_sites Peter Zijlstra x86: Undo return-thunk damage Peter Zijlstra x86/retpoline: Use -mfunction-return Peter Zijlstra x86/retpoline: Swizzle retpoline thunk Peter Zijlstra x86/retpoline: Cleanup some #ifdefery Peter Zijlstra x86/cpufeatures: Move RETPOLINE flags to word 11 Peter Zijlstra x86/kvm/vmx: Make noinstr clean Thadeu Lima de Souza Cascardo x86/realmode: build with -D__DISABLE_EXPORTS Peter Zijlstra x86/entry: Remove skip_r11rcx Peter Zijlstra objtool: Default ignore INT3 for unreachable Peter Zijlstra bpf,x86: Respect X86_FEATURE_RETPOLINE* Peter Zijlstra bpf,x86: Simplify computing label offsets Peter Zijlstra x86/alternative: Add debug prints to apply_retpolines() Peter Zijlstra x86/alternative: Try inline spectre_v2=retpoline,amd Peter Zijlstra x86/alternative: Handle Jcc __x86_indirect_thunk_\reg Peter Zijlstra x86/alternative: Implement .retpoline_sites support Peter Zijlstra x86/retpoline: Create a retpoline thunk array Peter Zijlstra x86/retpoline: Move the retpoline thunk declarations to nospec-branch.h Peter Zijlstra x86/asm: Fixup odd GEN-for-each-reg.h usage Peter Zijlstra x86/asm: Fix register order Peter Zijlstra x86/retpoline: Remove unused replacement symbols Peter Zijlstra objtool: Introduce CFI hash Peter Zijlstra objtool,x86: Replace alternatives with .retpoline_sites Peter Zijlstra objtool: Shrink struct instruction Peter Zijlstra objtool: Explicitly avoid self modifying code in .altinstr_replacement Peter Zijlstra objtool: Classify symbols Lai Jiangshan x86/entry: Don't call error_entry() for XENPV Lai Jiangshan x86/entry: Move PUSH_AND_CLEAR_REGS out of error_entry() Lai Jiangshan x86/entry: Switch the stack after error_entry() returns Lai Jiangshan x86/traps: Use pt_regs directly in fixup_bad_iret() ------------- Diffstat: Documentation/admin-guide/kernel-parameters.txt | 25 + Makefile | 10 +- arch/um/kernel/um_arch.c | 4 + arch/x86/Kconfig | 103 +++- arch/x86/Makefile | 2 +- arch/x86/entry/Makefile | 2 +- arch/x86/entry/calling.h | 72 ++- arch/x86/entry/entry.S | 22 + arch/x86/entry/entry_32.S | 2 - arch/x86/entry/entry_64.S | 88 ++- arch/x86/entry/entry_64_compat.S | 21 +- arch/x86/entry/vdso/Makefile | 1 + arch/x86/entry/vsyscall/vsyscall_emu_64.S | 9 +- arch/x86/include/asm/GEN-for-each-reg.h | 14 +- arch/x86/include/asm/alternative.h | 2 + arch/x86/include/asm/asm-prototypes.h | 18 - arch/x86/include/asm/cpufeatures.h | 12 +- arch/x86/include/asm/disabled-features.h | 21 +- arch/x86/include/asm/linkage.h | 8 + arch/x86/include/asm/msr-index.h | 13 + arch/x86/include/asm/nospec-branch.h | 133 ++--- arch/x86/include/asm/static_call.h | 17 + arch/x86/include/asm/traps.h | 2 +- arch/x86/include/asm/unwind_hints.h | 14 +- arch/x86/kernel/alternative.c | 260 ++++++++- arch/x86/kernel/cpu/amd.c | 46 +- arch/x86/kernel/cpu/bugs.c | 475 +++++++++++++--- arch/x86/kernel/cpu/common.c | 61 ++- arch/x86/kernel/cpu/cpu.h | 2 + arch/x86/kernel/cpu/hygon.c | 6 + arch/x86/kernel/cpu/scattered.c | 1 + arch/x86/kernel/ftrace.c | 7 +- arch/x86/kernel/head_64.S | 5 + arch/x86/kernel/module.c | 15 +- arch/x86/kernel/process.c | 2 +- arch/x86/kernel/relocate_kernel_32.S | 25 +- arch/x86/kernel/relocate_kernel_64.S | 23 +- arch/x86/kernel/static_call.c | 49 +- arch/x86/kernel/traps.c | 19 +- arch/x86/kernel/vmlinux.lds.S | 23 +- arch/x86/kvm/emulate.c | 26 +- arch/x86/kvm/svm/vmenter.S | 18 + arch/x86/kvm/vmx/nested.c | 2 +- arch/x86/kvm/vmx/run_flags.h | 8 + arch/x86/kvm/vmx/vmenter.S | 164 +++--- arch/x86/kvm/vmx/vmx.c | 76 ++- arch/x86/kvm/vmx/vmx.h | 6 +- arch/x86/kvm/x86.c | 4 +- arch/x86/lib/memmove_64.S | 7 +- arch/x86/lib/retpoline.S | 133 +++-- arch/x86/mm/mem_encrypt_boot.S | 10 +- arch/x86/net/bpf_jit_comp.c | 179 +++--- arch/x86/net/bpf_jit_comp32.c | 22 +- arch/x86/xen/setup.c | 6 +- arch/x86/xen/xen-asm.S | 30 +- arch/x86/xen/xen-head.S | 1 + arch/x86/xen/xen-ops.h | 6 +- drivers/base/cpu.c | 8 + drivers/idle/intel_idle.c | 43 +- include/linux/cpu.h | 2 + include/linux/kvm_host.h | 2 +- include/linux/objtool.h | 9 +- scripts/Makefile.build | 1 + scripts/link-vmlinux.sh | 3 + security/Kconfig | 11 - tools/arch/x86/include/asm/msr-index.h | 9 + tools/include/linux/objtool.h | 9 +- tools/objtool/arch/x86/decode.c | 145 +---- tools/objtool/builtin-check.c | 4 +- tools/objtool/check.c | 701 ++++++++++++++++++++---- tools/objtool/elf.c | 84 --- tools/objtool/include/objtool/arch.h | 3 +- tools/objtool/include/objtool/builtin.h | 2 +- tools/objtool/include/objtool/cfi.h | 2 + tools/objtool/include/objtool/check.h | 10 +- tools/objtool/include/objtool/elf.h | 9 +- tools/objtool/include/objtool/objtool.h | 1 + tools/objtool/objtool.c | 1 + tools/objtool/orc_gen.c | 15 +- tools/objtool/special.c | 8 - 80 files changed, 2470 insertions(+), 944 deletions(-)