Linux 6.1.81
Greg Kroah-Hartman
maintainerI'm announcing the release of the 6.1.81 kernel.
All users of the 6.1 kernel series must upgrade.
The updated 6.1.y git tree can be found at:
git://git.kernel.org/pub/scm/linux/kernel/git/stable/linux-stable.git linux-6.1.y
and can be browsed at the normal kernel.org git web browser:
https://git.kernel.org/?p=linux/kernel/git/stable/linux-stable.git;a=summary
thanks,
greg k-h
------------
Documentation/x86/boot.rst | 2 Documentation/x86/mds.rst | 38 MAINTAINERS | 7 Makefile | 2 arch/arm/boot/dts/imx23.dtsi | 2 arch/arm/boot/dts/imx28.dtsi | 2 arch/arm/boot/dts/imx6qdl.dtsi | 2 arch/arm/boot/dts/imx6sx.dtsi | 2 arch/arm/boot/dts/imx6ul.dtsi | 2 arch/arm/boot/dts/imx7s.dtsi | 3 arch/arm64/crypto/aes-neonbs-glue.c | 11 arch/arm64/include/asm/efi.h | 1 arch/powerpc/platforms/pseries/iommu.c | 156 ++- arch/riscv/include/asm/ftrace.h | 5 arch/riscv/include/asm/pgtable.h | 2 arch/riscv/kernel/Makefile | 2 arch/riscv/kernel/return_address.c | 48 arch/x86/Kconfig | 17 arch/x86/boot/compressed/Makefile | 13 arch/x86/boot/compressed/acpi.c | 14 arch/x86/boot/compressed/cmdline.c | 4 arch/x86/boot/compressed/efi_mixed.S | 328 ++++++ arch/x86/boot/compressed/efi_thunk_64.S | 195 ---- arch/x86/boot/compressed/head_32.S | 38 arch/x86/boot/compressed/head_64.S | 593 ++---------- arch/x86/boot/compressed/ident_map_64.c | 7 arch/x86/boot/compressed/kaslr.c | 26 arch/x86/boot/compressed/mem_encrypt.S | 152 ++- arch/x86/boot/compressed/misc.c | 85 + arch/x86/boot/compressed/misc.h | 3 arch/x86/boot/compressed/pgtable.h | 10 arch/x86/boot/compressed/pgtable_64.c | 94 - arch/x86/boot/compressed/sev.c | 114 +- arch/x86/boot/header.S | 2 arch/x86/boot/tools/build.c | 2 arch/x86/entry/entry.S | 23 arch/x86/entry/entry_32.S | 3 arch/x86/entry/entry_64.S | 11 arch/x86/entry/entry_64_compat.S | 1 arch/x86/include/asm/boot.h | 10 arch/x86/include/asm/cpufeatures.h | 2 arch/x86/include/asm/efi.h | 14 arch/x86/include/asm/entry-common.h | 1 arch/x86/include/asm/nospec-branch.h | 27 arch/x86/include/asm/sev.h | 7 arch/x86/kernel/cpu/bugs.c | 15 arch/x86/kernel/cpu/intel.c | 178 +-- arch/x86/kernel/e820.c | 8 arch/x86/kernel/nmi.c | 3 arch/x86/kvm/vmx/run_flags.h | 7 arch/x86/kvm/vmx/vmenter.S | 9 arch/x86/kvm/vmx/vmx.c | 12 drivers/bluetooth/btqca.c | 104 +- drivers/bluetooth/btqca.h | 23 drivers/bluetooth/hci_qca.c | 310 +++++- drivers/clk/tegra/clk-tegra20.c | 28 drivers/cpufreq/intel_pstate.c | 3 drivers/dma/fsl-qdma.c | 21 drivers/dma/ptdma/ptdma-dmaengine.c | 2 drivers/firmware/efi/capsule-loader.c | 2 drivers/firmware/efi/efi.c | 22 drivers/firmware/efi/libstub/Makefile | 1 drivers/firmware/efi/libstub/alignedmem.c | 7 drivers/firmware/efi/libstub/arm64-stub.c | 11 drivers/firmware/efi/libstub/efi-stub-helper.c | 2 drivers/firmware/efi/libstub/efistub.h | 32 drivers/firmware/efi/libstub/mem.c | 5 drivers/firmware/efi/libstub/randomalloc.c | 17 drivers/firmware/efi/libstub/x86-5lvl.c | 95 + drivers/firmware/efi/libstub/x86-stub.c | 315 +++--- drivers/firmware/efi/libstub/x86-stub.h | 17 drivers/firmware/efi/vars.c | 13 drivers/gpio/gpio-74x164.c | 4 drivers/gpio/gpiolib.c | 10 drivers/gpu/drm/amd/display/dc/dml/Makefile | 4 drivers/gpu/drm/amd/pm/legacy-dpm/si_dpm.c | 29 drivers/gpu/drm/drm_buddy.c | 10 drivers/gpu/drm/meson/meson_drv.c | 23 drivers/gpu/drm/meson/meson_encoder_cvbs.c | 1 drivers/gpu/drm/meson/meson_encoder_hdmi.c | 1 drivers/gpu/drm/tegra/drm.c | 23 drivers/infiniband/core/cm_trace.h | 2 drivers/infiniband/core/cma.c | 255 ++--- drivers/infiniband/core/cma_trace.h | 2 drivers/infiniband/core/user_mad.c | 23 drivers/input/joystick/xpad.c | 5 drivers/interconnect/core.c | 18 drivers/iommu/arm/arm-smmu-v3/arm-smmu-v3.c | 19 drivers/iommu/arm/arm-smmu/arm-smmu-qcom.c | 16 drivers/iommu/sprd-iommu.c | 29 drivers/mmc/core/mmc.c | 2 drivers/mmc/host/mmci_stm32_sdmmc.c | 24 drivers/mmc/host/sdhci-xenon-phy.c | 48 drivers/mtd/nand/spi/gigadevice.c | 6 drivers/net/ethernet/Kconfig | 2 drivers/net/ethernet/intel/igb/igb_ptp.c | 5 drivers/net/ethernet/mellanox/mlxsw/spectrum_acl_tcam.c | 10 drivers/net/ethernet/stmicro/stmmac/stmmac_main.c | 4 drivers/net/gtp.c | 12 drivers/net/tun.c | 1 drivers/net/usb/dm9601.c | 2 drivers/net/usb/lan78xx.c | 5 drivers/net/veth.c | 40 drivers/of/overlay.c | 2 drivers/of/property.c | 2 drivers/pci/controller/dwc/pci-layerscape-ep.c | 119 ++ drivers/phy/freescale/phy-fsl-imx8-mipi-dphy.c | 2 drivers/power/supply/bq27xxx_battery_i2c.c | 4 drivers/scsi/scsi_lib.c | 52 - drivers/scsi/sd.c | 26 drivers/soc/qcom/rpmhpd.c | 7 drivers/usb/gadget/composite.c | 18 drivers/usb/gadget/configfs.c | 3 drivers/usb/gadget/udc/core.c | 27 drivers/usb/gadget/udc/trace.h | 5 drivers/usb/storage/scsiglue.c | 7 drivers/usb/storage/uas.c | 7 drivers/video/fbdev/core/fbcon.c | 8 drivers/xen/events/events_base.c | 5 fs/afs/dir.c | 4 fs/btrfs/dev-replace.c | 24 fs/btrfs/disk-io.c | 22 fs/btrfs/disk-io.h | 2 fs/btrfs/ioctl.c | 2 fs/btrfs/send.c | 17 fs/btrfs/transaction.c | 2 fs/efivarfs/vars.c | 17 fs/exportfs/expfs.c | 8 fs/lockd/svc4proc.c | 1 fs/lockd/svclock.c | 17 fs/lockd/svcproc.c | 1 fs/lockd/svcsubs.c | 4 fs/locks.c | 24 fs/nfs/nfs4trace.h | 6 fs/nfs/nfstrace.h | 6 fs/nfs/write.c | 4 fs/nfsd/Kconfig | 19 fs/nfsd/Makefile | 5 fs/nfsd/blocklayout.c | 1 fs/nfsd/blocklayoutxdr.c | 1 fs/nfsd/export.h | 1 fs/nfsd/filecache.c | 39 fs/nfsd/flexfilelayout.c | 1 fs/nfsd/netns.h | 2 fs/nfsd/nfs4callback.c | 72 + fs/nfsd/nfs4idmap.c | 1 fs/nfsd/nfs4proc.c | 31 fs/nfsd/nfs4state.c | 312 ++++-- fs/nfsd/nfs4xdr.c | 771 ++++++++-------- fs/nfsd/nfsctl.c | 13 fs/nfsd/nfsd.h | 9 fs/nfsd/nfsfh.h | 10 fs/nfsd/nfsproc.c | 66 - fs/nfsd/nfssvc.c | 8 fs/nfsd/state.h | 11 fs/nfsd/trace.h | 106 ++ fs/nfsd/vfs.c | 64 + fs/nfsd/vfs.h | 1 fs/nfsd/xdr4.h | 5 fs/nfsd/xdr4cb.h | 6 fs/ntfs3/frecord.c | 5 fs/ntfs3/fsntfs.c | 1 fs/ntfs3/index.c | 11 include/linux/bvec.h | 2 include/linux/decompress/mm.h | 2 include/linux/efi.h | 1 include/linux/fs.h | 14 include/linux/netfilter.h | 4 include/linux/nfs4.h | 13 include/linux/usb/composite.h | 2 include/linux/usb/gadget.h | 8 include/net/ipv6_stubs.h | 5 include/net/mctp.h | 1 include/net/netfilter/nf_conntrack.h | 8 include/scsi/scsi_device.h | 52 - include/trace/events/fs.h | 122 -- include/trace/events/nfs.h | 375 ------- include/trace/events/rdma.h | 168 --- include/trace/events/rpcgss.h | 2 include/trace/events/rpcrdma.h | 4 include/trace/events/sunrpc.h | 2 include/trace/events/sunrpc_base.h | 18 include/trace/misc/fs.h | 122 ++ include/trace/misc/nfs.h | 387 ++++++++ include/trace/misc/rdma.h | 168 +++ include/trace/misc/sunrpc.h | 18 include/uapi/linux/bpf.h | 31 include/uapi/linux/in6.h | 2 lib/nlattr.c | 4 mm/huge_memory.c | 4 net/bluetooth/hci_core.c | 7 net/bluetooth/hci_event.c | 13 net/bluetooth/hci_sync.c | 7 net/bluetooth/l2cap_core.c | 8 net/bridge/br_netfilter_hooks.c | 96 + net/bridge/netfilter/nf_conntrack_bridge.c | 30 net/core/filter.c | 30 net/core/rtnetlink.c | 11 net/hsr/hsr_forward.c | 2 net/ipv4/ip_tunnel.c | 28 net/ipv4/netfilter/nf_reject_ipv4.c | 1 net/ipv6/addrconf.c | 7 net/ipv6/af_inet6.c | 1 net/ipv6/netfilter/nf_reject_ipv6.c | 1 net/mctp/route.c | 10 net/mptcp/diag.c | 5 net/mptcp/pm_netlink.c | 48 net/mptcp/pm_userspace.c | 12 net/mptcp/protocol.c | 56 + net/mptcp/protocol.h | 13 net/mptcp/subflow.c | 15 net/netfilter/core.c | 16 net/netfilter/nf_conntrack_core.c | 13 net/netfilter/nf_conntrack_proto_tcp.c | 35 net/netfilter/nf_tables_api.c | 7 net/netfilter/nft_compat.c | 20 net/netlink/af_netlink.c | 2 net/tls/tls_sw.c | 11 net/unix/garbage.c | 21 net/wireless/nl80211.c | 2 security/landlock/fs.c | 4 security/tomoyo/common.c | 3 sound/core/Makefile | 1 sound/firewire/amdtp-stream.c | 2 sound/pci/hda/patch_realtek.c | 3 tools/include/uapi/linux/bpf.h | 31 tools/testing/selftests/net/mptcp/mptcp_join.sh | 5 227 files changed, 5027 insertions(+), 3096 deletions(-)
Abdun Nihaal (1):
fs/ntfs3: Fix NULL dereference in ni_write_inode
Alex Deucher (2):
Revert "drm/amd/pm: resolve reboot exception for si oland" drm/amd/display: Increase frame warning limit with KASAN or KCSAN in dml
Alexander Lobakin (1):
x86/boot: Robustify calling startup_{32,64}() from the decompressor code
Alexander Ofitserov (1):
gtp: fix use-after-free and null-ptr-deref in gtp_newlink()
Alexander Stein (1):
phy: freescale: phy-fsl-imx8-mipi-dphy: Fix alias name to use dashes
Andy Shevchenko (1):
gpiolib: Fix the error path order in gpiochip_add_data_with_key()
Anna Schumaker (1):
NFSD: Simplify READ_PLUS
Ard Biesheuvel (49):
crypto: arm64/neonbs - fix out-of-bounds access on short input
efi: libstub: use EFI_LOADER_CODE region when moving the kernel in memory x86/boot/compressed: Rename efi_thunk_64.S to efi-mixed.S x86/boot/compressed: Move 32-bit entrypoint code into .text section x86/boot/compressed: Move bootargs parsing out of 32-bit startup code x86/boot/compressed: Move efi32_pe_entry into .text section x86/boot/compressed: Move efi32_entry out of head_64.S x86/boot/compressed: Move efi32_pe_entry() out of head_64.S x86/boot/compressed, efi: Merge multiple definitions of image_offset into one x86/boot/compressed: Simplify IDT/GDT preserve/restore in the EFI thunk x86/boot/compressed: Avoid touching ECX in startup32_set_idt_entry() x86/boot/compressed: Pull global variable reference into startup32_load_idt() x86/boot/compressed: Move startup32_load_idt() into .text section x86/boot/compressed: Move startup32_load_idt() out of head_64.S x86/boot/compressed: Move startup32_check_sev_cbit() into .text x86/boot/compressed: Move startup32_check_sev_cbit() out of head_64.S x86/boot/compressed: Adhere to calling convention in get_sev_encryption_bit() x86/boot/compressed: Only build mem_encrypt.S if AMD_MEM_ENCRYPT=y x86/efi: Make the deprecated EFI handover protocol optional x86/efistub: Branch straight to kernel entry point from C code x86/decompressor: Store boot_params pointer in callee save register x86/decompressor: Assign paging related global variables earlier x86/decompressor: Call trampoline as a normal function x86/decompressor: Use standard calling convention for trampoline x86/decompressor: Avoid the need for a stack in the 32-bit trampoline x86/decompressor: Call trampoline directly from C code x86/decompressor: Only call the trampoline when changing paging levels x86/decompressor: Pass pgtable address to trampoline directly x86/decompressor: Merge trampoline cleanup with switching code x86/decompressor: Move global symbol references to C code
decompress: Use 8 byte alignment
arm64: efi: Limit allocations to 48-bit addressable physical region
efi: efivars: prevent double registration
x86/efistub: Simplify and clean up handover entry code x86/decompressor: Avoid magic offsets for EFI handover entrypoint x86/efistub: Clear BSS in EFI handover protocol entrypoint efi/libstub: Add memory attribute protocol definitions efi/libstub: Add limit argument to efi_random_alloc() x86/efistub: Perform 4/5 level paging switch from the stub x86/decompressor: Factor out kernel decompression and relocation x86/efistub: Prefer EFI memory attributes protocol over DXE services x86/efistub: Perform SNP feature test while running in the firmware x86/efistub: Avoid legacy decompressor when doing EFI boot efi/x86: Avoid physical KASLR on older Dell systems
x86/efistub: Avoid placing the kernel below LOAD_PHYSICAL_ADDR x86/boot: Rename conflicting 'boot_params' pointer to 'boot_params_ptr' x86/boot: efistub: Assign global boot_params variable
efi/x86: Fix the missing KASLR_FLAG bit in boot_params->hdr.loadflags x86/efistub: Give up if memory attribute protocol returns an error
Arnd Bergmann (2):
clk: tegra20: fix gcc-7 constant overflow warning efi/capsule-loader: fix incorrect allocation size
Arturas Moskvinas (1):
gpio: 74x164: Enable output pins after registers are reset
Bartosz Golaszewski (1):
gpio: fix resource unwinding order in error path
Bjorn Andersson (1):
pmdomain: qcom: rpmhpd: Fix enabled_corner aggregation
Bjorn Helgaas (1):
net: restore alpha order to Ethernet devices in config
Christophe Kerello (1):
mmc: mmci: stm32: fix DMA API overlapping mappings warning
Chuck Lever (15):
NFSD: Flesh out a documenting comment for filecache.c
NFSD: Clean up nfs4_preprocess_stateid_op() call sites
NFSD: Trace stateids returned via DELEGRETURN
NFSD: Trace delegation revocations
NFSD: Use const pointers as parameters to fh_ helpers
NFSD: Update file_hashtbl() helpers
NFSD: Clean up nfsd4_init_file()
NFSD: Add a nfsd4_file_hash_remove() helper
NFSD: Clean up find_or_add_file()
NFSD: Refactor find_file()
NFSD: Use rhashtable for managing nfs4_file objects
NFSD: Fix licensing header in filecache.c
trace: Relocate event helper files
NFSD: Use only RQ_DROPME to signal the need to drop a reply
NFSD: Use set_bit(RQ_DROPME)
Chunyan Zhang (1):
iommu/sprd: Release dma buffer to avoid memory leak
Colin Ian King (1):
NFSD: Remove redundant assignment to variable host_err
Curtis Klein (1):
dmaengine: fsl-qdma: init irq after reg initialization
Dai Ngo (6):
NFSD: refactoring courtesy_client_reaper to a generic low memory shrinker
NFSD: add support for sending CB_RECALL_ANY
NFSD: add delegation reaper to react to low memory condition
NFSD: add CB_RECALL_ANY tracepoints
NFSD: register/unregister of nfsd-client shrinker at nfsd startup/shutdown time
NFSD: replace delayed_work with work_struct for nfsd_client_shrinker
David Disseldorp (1):
exportfs: use pr_debug for unreachable debug statements
David Howells (1):
afs: Fix endless loop in directory parsing
David Sterba (1):
btrfs: dev-replace: properly validate device names
Davide Caratti (1):
mptcp: fix double-free on socket dismantle
Dimitris Vlachos (1):
riscv: Sparse-Memory/vmemmap out-of-bounds fix
Doug Smythies (1):
cpufreq: intel_pstate: fix pstate limits enforcement for adjust_perf call back
Edward Lo (1):
fs/ntfs3: Add length check in indx_get_root
Elad Nachman (2):
mmc: sdhci-xenon: add timeout for PHY init complete
mmc: sdhci-xenon: fix PHY init clock stability
Elson Roy Serrao (1):
usb: gadget: Properly configure the device for remote wakeup
Eniac Zhang (1):
ALSA: hda/realtek: fix mute/micmute LED For HP mt440
Eric Dumazet (1):
ipv6: fix potential "struct net" leak in inet6_rtm_getaddr()
Filipe Manana (2):
btrfs: fix double free of anonymous device after snapshot creation failure
btrfs: send: don't issue unnecessary zero writes for trailing hole
Florian Westphal (4):
netlink: add nla be16/32 types to minlen array
net: ip_tunnel: prevent perpetual headroom growth
netfilter: let reset rules clean out conntrack entries
netfilter: bridge: confirm multicast packets before passing them up the stack
Frank Li (1):
PCI: layerscape: Add the endpoint linkup notifier support
Gaurav Batra (1):
powerpc/pseries/iommu: IOMMU table is not initialized for kdump over SR-IOV
Geert Uytterhoeven (1):
of: overlay: Reorder struct fragment fields kerneldoc
Geliang Tang (2):
mptcp: map v4 address to v6 when destroying subflow
selftests: mptcp: join: add ss mptcp support check
Greg Kroah-Hartman (3):
Revert "interconnect: Fix locking for runpm vs reclaim" Revert "interconnect: Teach lockdep about icc_bw_lock order" Linux 6.1.81
Gustavo A. R. Silva (1):
RDMA/core: Fix multiple -Warray-bounds warnings
Han Xu (1):
mtd: spinand: gigadevice: Fix the get ecc status issue
Hans Peter (1):
ALSA: hda/realtek: Enable Mute LED on HP 840 G8 (MB 8AB8)
Hans de Goede (1):
power: supply: bq27xxx-i2c: Do not free non existing IRQ
Ido Schimmel (2):
mlxsw: spectrum_acl_tcam: Make fini symmetric to init
mlxsw: spectrum_acl_tcam: Add missing mutex_destroy()
Ignat Korchagin (1):
netfilter: nf_tables: allow NFPROTO_INET in nft_(match/target)_validate()
Ivan Semenov (1):
mmc: core: Fix eMMC initialization with 1-bit bus connection
Jakub Kicinski (2):
net: veth: clear GRO when clearing XDP even when down
veth: try harder when allocating queue memory
Jakub Raczynski (1):
stmmac: Clear variable when destroying workqueue
Janaki Ramaiah Thota (1):
Bluetooth: hci_qca: Set BDA quirk bit if fwnode exists in DT
Javier Carrasco (1):
net: usb: dm9601: fix wrong return value in dm9601_mdio_read
Jeff Layton (11):
nfsd: ignore requests to disable unsupported versions
nfsd: move nfserrno() to vfs.c
nfsd: allow disabling NFSv2 at compile time
filelock: add a new locks_inode_context accessor function
lockd: use locks_inode_context helper
nfsd: use locks_inode_context helper
nfsd: fix up the filecache laundrette scheduling
lockd: set missing fl_flags field when retrieving args
lockd: ensure we use the correct file descriptor when unlocking
lockd: fix file selection in nlmsvc_cancel_blocked
nfsd: don't destroy global nfs4_file table in per-net shutdown
Jeremy Kerr (1):
net: mctp: take ownership of skb in mctp_local_output
Jia-Ju Bai (1):
fs/ntfs3: Fix a possible null-pointer dereference in ni_clear()
Jiri Bohac (1):
x86/e820: Don't reserve SETUP_RNG_SEED in e820
Jiri Slaby (SUSE) (1):
fbcon: always restore the old font data in fbcon_do_set_font()
Johan Hovold (1):
efi: verify that variable services are supported
Johannes Berg (1):
wifi: nl80211: reject iftype change with mesh ID change
Jonas Dreßler (1):
Bluetooth: hci_sync: Check the correct flag before starting a scan
Justin Iurman (1):
uapi: in6: replace temporary label with rfc9486
Kai-Heng Feng (1):
Bluetooth: Enforce validation on max value of connection interval
Kees Cook (1):
NFSD: Avoid clashing function prototypes
Krzysztof Kozlowski (1):
Bluetooth: hci_qca: mark OF related data as maybe unused
Kuniyuki Iwashima (2):
af_unix: Fix task hung while purging oob_skb in GC.
af_unix: Drop oob_skb ref before purging queue in GC.
Lin Ma (1):
rtnetlink: fix error logic of IFLA_BRIDGE_FLAGS writing back
Louis DeLosSantos (1):
bpf: Add table ID to bpf_fib_lookup BPF helper
Luca Weiss (1):
Bluetooth: btqca: Add WCN3988 support
Luiz Augusto von Dentz (2):
Bluetooth: hci_sync: Fix accept_list when attempting to suspend
Bluetooth: hci_event: Fix handling of HCI_EV_IO_CAPA_REQUEST
Lukasz Majewski (1):
net: hsr: Use correct offset for HSR TLV values in supervisory HSR frames
Manivannan Sadhasivam (1):
iommu/arm-smmu-qcom: Limit the SMR groups to 128
Marek Vasut (1):
ARM: dts: imx7s: Drop dma-apb interrupt-names
Martin Blumenstingl (1):
drm/meson: Don't remove bridges which are created by other drivers
Martin K. Petersen (1):
scsi: sd: usb_storage: uas: Access media prior to querying device properties
Martynas Pumputis (1):
bpf: Derive source IP addr via bpf_*_fib_lookup()
Matthew Auld (1):
drm/buddy: fix range bias
Matthieu Baerts (NGI0) (1):
mptcp: continue marking the first subflow as UNCONNECTED
Maximilian Heyne (1):
xen/events: close evtchn after mapping cleanup
Mickaël Salaün (1):
landlock: Fix asymmetric private inodes referring
Mike Christie (1):
scsi: core: Add struct for args to execution functions
Min-Hua Chen (1):
Bluetooth: btqca: use le32_to_cpu for ver.soc_id
Ming Lei (1):
block: define bvec_iter as __packed __aligned(4)
Neil Armstrong (3):
drm/meson: fix unbind path if HDMI fails to bind
Bluetooth: qca: use switch case for soc type behavior
Bluetooth: qca: add support for WCN7850
NeilBrown (1):
NFS: Fix data corruption caused by congestion.
Oleksij Rempel (3):
lan78xx: enable auto speed configuration for LAN7850 if no EEPROM is detected
net: lan78xx: fix "softirq work is pending" error
igb: extend PTP timestamp adjustments to i211
Pablo Neira Ayuso (1):
netfilter: nf_tables: disallow timeout for anonymous sets
Paolo Abeni (6):
mptcp: fix data races on local_id
mptcp: fix data races on remote_id
mptcp: fix duplicate subflow creation
mptcp: push at DSS boundaries
mptcp: fix snd_wnd initialization for passive socket
mptcp: fix possible deadlock in subflow diag
Paolo Bonzini (1):
x86/cpu/intel: Detect TME keyid bits before setting MTRR mask registers
Patrisious Haddad (1):
RDMA/core: Refactor rdma_bind_addr
Pawan Gupta (6):
x86/bugs: Add asm helpers for executing VERW x86/entry_64: Add VERW just before userspace transition x86/entry_32: Add VERW just before userspace transition x86/bugs: Use ALTERNATIVE() instead of mds_user_clear static key KVM/VMX: Use BT+JNC, i.e. EFLAGS.CF to select VMRESUME vs. VMLAUNCH KVM/VMX: Move VERW closer to VMentry for MDS mitigation
Peng Ma (1):
dmaengine: fsl-qdma: fix SoC may hang on 16 byte unaligned read
Ryosuke Yasuoka (1):
netlink: Fix kernel-infoleak-after-free in __skb_datagram_iter
Sabrina Dubroca (2):
tls: decrement decrypt_pending if no async completion will be called
tls: fix peeking with sync+async decryption
Saravana Kannan (1):
of: property: fw_devlink: Fix stupid bug in remote-endpoint parsing
Shiraz Saleem (1):
RDMA/core: Update CMA destination address on rdma_resolve_addr
Steev Klimaszewski (1):
Bluetooth: hci_qca: Add support for QTI Bluetooth chip wcn6855
Stefan Wahren (1):
ARM: dts: imx: Adjust dma-apbh node name
Tadeusz Struk (1):
dmaengine: ptdma: use consistent DMA masks
Takashi Iwai (1):
ALSA: Drop leftover snd-rtctimer stuff from Makefile
Takashi Sakamoto (1):
ALSA: firewire-lib: fix to check cycle continuity
Tetsuo Handa (1):
tomoyo: fix UAF write bug in tomoyo_write_control()
Thierry Reding (1):
drm/tegra: Remove existing framebuffer only if we support display
Tim Schumacher (1):
efivarfs: Request at most 512 bytes for variable names
Tomas Krcka (1):
iommu/arm-smmu-v3: Acknowledge pri/event queue overflow if any
Vicki Pfau (1):
Input: xpad - add constants for GIP interface numbers
Xiaowei Bao (1):
PCI: layerscape: Add workaround for lost link capabilities during reset
Xiu Jianfeng (1):
NFSD: Use struct_size() helper in alloc_session()
Yang Shi (1):
mm: huge_memory: don't force huge page alignment on 32 bit
Ye Bin (1):
fs/ntfs3: Fix NULL pointer dereference in 'ni_write_inode'
Ying Hsu (1):
Bluetooth: Avoid potential use-after-free in hci_error_reset
Yunjian Wang (1):
tun: Fix xdp_rxq_info's queue_index when detaching
Zijun Hu (2):
Bluetooth: hci_event: Fix wrongly recorded wakeup BD_ADDR
Bluetooth: qca: Fix wrong event type for patch config command
Zong Li (1):
riscv: add CALLER_ADDRx support
Greg Kroah-Hartman
maintainerDocumentation/x86/boot.rst +1 -1
@@ -1416,7 +1416,7 @@ execution context provided by the EFI firmware. The function prototype for the handover entry point looks like this:: - efi_main(void *handle, efi_system_table_t *table, struct boot_params *bp) + efi_stub_entry(void *handle, efi_system_table_t *table, struct boot_params *bp) 'handle' is the EFI image handle passed to the boot loader by the EFI firmware, 'table' is the EFI system table - these are the first two
Documentation/x86/mds.rst +27 -11
@@ -95,6 +95,9 @@ The kernel provides a function to invoke the buffer clearing: mds_clear_cpu_buffers() +Also macro CLEAR_CPU_BUFFERS can be used in ASM late in exit-to-user path. +Other than CFLAGS.ZF, this macro doesn't clobber any registers. + The mitigation is invoked on kernel/userspace, hypervisor/guest and C-state (idle) transitions.
@@ -138,17 +141,30 @@ Mitigation points When transitioning from kernel to user space the CPU buffers are flushed on affected CPUs when the mitigation is not disabled on the kernel - command line. The migitation is enabled through the static key - mds_user_clear. - - The mitigation is invoked in prepare_exit_to_usermode() which covers - all but one of the kernel to user space transitions. The exception - is when we return from a Non Maskable Interrupt (NMI), which is - handled directly in do_nmi(). - - (The reason that NMI is special is that prepare_exit_to_usermode() can - enable IRQs. In NMI context, NMIs are blocked, and we don't want to - enable IRQs with NMIs blocked.) + command line. The mitigation is enabled through the feature flag + X86_FEATURE_CLEAR_CPU_BUF. + + The mitigation is invoked just before transitioning to userspace after + user registers are restored. This is done to minimize the window in + which kernel data could be accessed after VERW e.g. via an NMI after + VERW. + + **Corner case not handled** + Interrupts returning to kernel don't clear CPUs buffers since the + exit-to-user path is expected to do that anyways. But, there could be + a case when an NMI is generated in kernel after the exit-to-user path + has cleared the buffers. This case is not handled and NMI returning to + kernel don't clear CPU buffers because: + + 1. It is rare to get an NMI after VERW, but before returning to userspace. + 2. For an unprivileged user, there is no known way to make that NMI + less rare or target it. + 3. It would take a large number of these precisely-timed NMIs to mount + an actual attack. There's presumably not enough bandwidth. + 4. The NMI in question occurs after a VERW, i.e. when user state is + restored and most interesting data is already scrubbed. Whats left + is only the data that NMI touches, and that may or may not be of + any interest. 2. C-State transition
MAINTAINERS +7 -0
@@ -10051,6 +10051,7 @@ F: drivers/infiniband/ F: include/rdma/ F: include/trace/events/ib_mad.h F: include/trace/events/ib_umad.h +F: include/trace/misc/rdma.h F: include/uapi/linux/if_infiniband.h F: include/uapi/rdma/ F: samples/bpf/ibumad_kern.c
@@ -11139,6 +11140,12 @@ F: fs/nfs_common/ F: fs/nfsd/ F: include/linux/lockd/ F: include/linux/sunrpc/ +F: include/trace/events/rpcgss.h +F: include/trace/events/rpcrdma.h +F: include/trace/events/sunrpc.h +F: include/trace/misc/fs.h +F: include/trace/misc/nfs.h +F: include/trace/misc/sunrpc.h F: include/uapi/linux/nfsd/ F: include/uapi/linux/sunrpc/ F: net/sunrpc/
Makefile +1 -1
@@ -1,7 +1,7 @@ # SPDX-License-Identifier: GPL-2.0 VERSION = 6 PATCHLEVEL = 1 -SUBLEVEL = 80 +SUBLEVEL = 81 EXTRAVERSION = NAME = Curry Ramen
arch/arm/boot/dts/imx23.dtsi +1 -1
@@ -59,7 +59,7 @@ icoll: interrupt-controller@80000000 { reg = <0x80000000 0x2000>; }; - dma_apbh: dma-apbh@80004000 { + dma_apbh: dma-controller@80004000 { compatible = "fsl,imx23-dma-apbh"; reg = <0x80004000 0x2000>; interrupts = <0 14 20 0
arch/arm/boot/dts/imx28.dtsi +1 -1
@@ -78,7 +78,7 @@ hsadc: hsadc@80002000 { status = "disabled"; }; - dma_apbh: dma-apbh@80004000 { + dma_apbh: dma-controller@80004000 { compatible = "fsl,imx28-dma-apbh"; reg = <0x80004000 0x2000>; interrupts = <82 83 84 85
arch/arm/boot/dts/imx6qdl.dtsi +1 -1
@@ -150,7 +150,7 @@ soc: soc { interrupt-parent = <&gpc>; ranges; - dma_apbh: dma-apbh@110000 { + dma_apbh: dma-controller@110000 { compatible = "fsl,imx6q-dma-apbh", "fsl,imx28-dma-apbh"; reg = <0x00110000 0x2000>; interrupts = <0 13 IRQ_TYPE_LEVEL_HIGH>,
arch/arm/boot/dts/imx6sx.dtsi +1 -1
@@ -209,7 +209,7 @@ gpu: gpu@1800000 { power-domains = <&pd_pu>; }; - dma_apbh: dma-apbh@1804000 { + dma_apbh: dma-controller@1804000 { compatible = "fsl,imx6sx-dma-apbh", "fsl,imx28-dma-apbh"; reg = <0x01804000 0x2000>; interrupts = <GIC_SPI 13 IRQ_TYPE_LEVEL_HIGH>,
arch/arm/boot/dts/imx6ul.dtsi +1 -1
@@ -164,7 +164,7 @@ intc: interrupt-controller@a01000 { <0x00a06000 0x2000>; }; - dma_apbh: dma-apbh@1804000 { + dma_apbh: dma-controller@1804000 { compatible = "fsl,imx6q-dma-apbh", "fsl,imx28-dma-apbh"; reg = <0x01804000 0x2000>; interrupts = <0 13 IRQ_TYPE_LEVEL_HIGH>,
arch/arm/boot/dts/imx7s.dtsi +1 -2
@@ -1267,14 +1267,13 @@ fec1: ethernet@30be0000 { }; }; - dma_apbh: dma-apbh@33000000 { + dma_apbh: dma-controller@33000000 { compatible = "fsl,imx7d-dma-apbh", "fsl,imx28-dma-apbh"; reg = <0x33000000 0x2000>; interrupts = <GIC_SPI 12 IRQ_TYPE_LEVEL_HIGH>, <GIC_SPI 12 IRQ_TYPE_LEVEL_HIGH>, <GIC_SPI 12 IRQ_TYPE_LEVEL_HIGH>, <GIC_SPI 12 IRQ_TYPE_LEVEL_HIGH>; - interrupt-names = "gpmi0", "gpmi1", "gpmi2", "gpmi3"; #dma-cells = <1>; dma-channels = <4>; clocks = <&clks IMX7D_NAND_USDHC_BUS_RAWNAND_CLK>;
arch/arm64/crypto/aes-neonbs-glue.c +11 -0
@@ -227,8 +227,19 @@ static int ctr_encrypt(struct skcipher_request *req) src += blocks *AES_BLOCK_SIZE ; }if (nbytes && walk.nbytes == walk.total) { +u8 buf[AES_BLOCK_SIZE ]; +u8 *d = dst; + +if (unlikely (nbytes <AES_BLOCK_SIZE )) + src = dst =memcpy (buf +sizeof (buf) - nbytes, + src, nbytes); +neon_aes_ctr_encrypt (dst, src, ctx->enc, ctx->key.rounds, nbytes, walk.iv); + +if (unlikely (nbytes <AES_BLOCK_SIZE )) +memcpy (d, dst, nbytes); + nbytes =0 ; }kernel_neon_end ();
arch/arm64/include/asm/efi.h +1 -0
@@ -103,6 +103,7 @@ static inline void free_screen_info(struct screen_info *si) }#define EFI_ALLOC_ALIGN SZ_64K +#define EFI_ALLOC_LIMIT ((1UL << 48) - 1)/* * On ARM systems, virtually remapped UEFI runtime services are set up in two
arch/powerpc/platforms/pseries/iommu.c +105 -51
219 lines not on this page · raw message
arch/riscv/include/asm/ftrace.h +5 -0
@@ -25,6 +25,11 @@#define ARCH_SUPPORTS_FTRACE_OPS 1#ifndef __ASSEMBLY__ + +extern void *return_address (unsigned int level); + +#define ftrace_return_address (n) return_address(n) +void MCOUNT_NAME (void );static inline unsigned long ftrace_call_adjust (unsigned long addr) {
arch/riscv/include/asm/pgtable.h +1 -1
@@ -79,7 +79,7 @@* Define vmemmap for pfn_to_page & page_to_pfn calls. Needed if kernel * is configured with CONFIG_SPARSEMEM_VMEMMAP enabled. */ -#define vmemmap ((struct page *)VMEMMAP_START) +#define vmemmap ((struct page *)VMEMMAP_START - (phys_ram_base >> PAGE_SHIFT))#define PCI_IO_SIZE SZ_16M#define PCI_IO_END VMEMMAP_START
arch/riscv/kernel/Makefile +2 -0
@@ -7,6 +7,7 @@ ifdef CONFIG_FTRACE CFLAGS_REMOVE_ftrace.o = $(CC_FLAGS_FTRACE) CFLAGS_REMOVE_patch.o = $(CC_FLAGS_FTRACE) CFLAGS_REMOVE_sbi.o = $(CC_FLAGS_FTRACE) +CFLAGS_REMOVE_return_address.o = $(CC_FLAGS_FTRACE) endif CFLAGS_syscall_table.o += $(call cc-option,-Wno-override-init,) CFLAGS_compat_syscall_table.o += $(call cc-option,-Wno-override-init,)
@@ -41,6 +42,7 @@ obj-y += irq.o obj-y += process.o obj-y += ptrace.o obj-y += reset.o +obj-y += return_address.o obj-y += setup.o obj-y += signal.o obj-y += syscall_table.o
arch/riscv/kernel/return_address.c new file +48 -0
48 lines not on this page · raw message
arch/x86/Kconfig +17 -0
@@ -1982,6 +1982,23 @@ config EFI_STUB See Documentation/admin-guide/efi-stub.rst for more information. +config EFI_HANDOVER_PROTOCOL + bool "EFI handover protocol (DEPRECATED)" + depends on EFI_STUB + default y + help + Select this in order to include support for the deprecated EFI + handover protocol, which defines alternative entry points into the + EFI stub. This is a practice that has no basis in the UEFI + specification, and requires a priori knowledge on the part of the + bootloader about Linux/x86 specific ways of passing the command line + and initrd, and where in memory those assets may be loaded. + + If in doubt, say Y. Even though the corresponding support is not + present in upstream GRUB or other bootloaders, most distros build + GRUB with numerous downstream patches applied, and may rely on the + handover protocol as as result. + config EFI_MIXED bool "EFI mixed-mode support" depends on EFI_STUB && X86_64
arch/x86/boot/compressed/Makefile +9 -4
@@ -74,6 +74,11 @@ LDFLAGS_vmlinux += -z noexecstack ifeq ($(CONFIG_LD_IS_BFD),y) LDFLAGS_vmlinux += $(call ld-option,--no-warn-rwx-segments) endif +ifeq ($(CONFIG_EFI_STUB),y) +# ensure that the static EFI stub library will be pulled in, even if it is +# never referenced explicitly from the startup code +LDFLAGS_vmlinux += -u efi_pe_entry +endif LDFLAGS_vmlinux += -T hostprogs := mkpiggy
@@ -100,7 +105,7 @@ vmlinux-objs-$(CONFIG_RANDOMIZE_BASE) += $(obj)/kaslr.o ifdef CONFIG_X86_64 vmlinux-objs-y += $(obj)/ident_map_64.o vmlinux-objs-y += $(obj)/idt_64.o $(obj)/idt_handlers_64.o - vmlinux-objs-y += $(obj)/mem_encrypt.o + vmlinux-objs-$(CONFIG_AMD_MEM_ENCRYPT) += $(obj)/mem_encrypt.o vmlinux-objs-y += $(obj)/pgtable_64.o vmlinux-objs-$(CONFIG_AMD_MEM_ENCRYPT) += $(obj)/sev.o endif
@@ -108,11 +113,11 @@ endif vmlinux-objs-$(CONFIG_ACPI) += $(obj)/acpi.o vmlinux-objs-$(CONFIG_INTEL_TDX_GUEST) += $(obj)/tdx.o $(obj)/tdcall.o -vmlinux-objs-$(CONFIG_EFI_MIXED) += $(obj)/efi_thunk_$(BITS).o vmlinux-objs-$(CONFIG_EFI) += $(obj)/efi.o -efi-obj-$(CONFIG_EFI_STUB) = $(objtree)/drivers/firmware/efi/libstub/lib.a +vmlinux-objs-$(CONFIG_EFI_MIXED) += $(obj)/efi_mixed.o +vmlinux-objs-$(CONFIG_EFI_STUB) += $(objtree)/drivers/firmware/efi/libstub/lib.a -$(obj)/vmlinux: $(vmlinux-objs-y) $(efi-obj-y) FORCE +$(obj)/vmlinux: $(vmlinux-objs-y) FORCE $(call if_changed,ld) OBJCOPYFLAGS_vmlinux.bin := -R .comment -S
arch/x86/boot/compressed/acpi.c +7 -7
@@ -30,13 +30,13 @@ __efi_get_rsdp_addr(unsigned long cfg_tbl_pa, unsigned int cfg_tbl_len)* Search EFI system tables for RSDP. Preferred is ACPI_20_TABLE_GUID to * ACPI_TABLE_GUID because it has more features. */ - rsdp_addr =efi_find_vendor_table (boot_params, cfg_tbl_pa, cfg_tbl_len, + rsdp_addr =efi_find_vendor_table (boot_params_ptr, cfg_tbl_pa, cfg_tbl_len,ACPI_20_TABLE_GUID );if (rsdp_addr)return (acpi_physical_address )rsdp_addr;/* No ACPI_20_TABLE_GUID found, fallback to ACPI_TABLE_GUID. */ - rsdp_addr =efi_find_vendor_table (boot_params, cfg_tbl_pa, cfg_tbl_len, + rsdp_addr =efi_find_vendor_table (boot_params_ptr, cfg_tbl_pa, cfg_tbl_len,ACPI_TABLE_GUID );if (rsdp_addr)return (acpi_physical_address )rsdp_addr;
@@ -56,15 +56,15 @@ static acpi_physical_address efi_get_rsdp_addr(void)enum efi_type et;int ret; - et =efi_get_type (boot_params); + et =efi_get_type (boot_params_ptr);if (et ==EFI_TYPE_NONE )return 0 ; - systab_pa =efi_get_system_table (boot_params); + systab_pa =efi_get_system_table (boot_params_ptr);if (!systab_pa)error ("EFI support advertised, but unable to locate system table." ); - ret =efi_get_conf_table (boot_params, &cfg_tbl_pa, &cfg_tbl_len); + ret =efi_get_conf_table (boot_params_ptr, &cfg_tbl_pa, &cfg_tbl_len);if (ret || !cfg_tbl_pa)error ("EFI config table not found." );
@@ -156,7 +156,7 @@ acpi_physical_address get_rsdp_addr(void) {acpi_physical_address pa; - pa = boot_params->acpi_rsdp_addr; + pa = boot_params_ptr->acpi_rsdp_addr;if (!pa) pa =efi_get_rsdp_addr ();
@@ -210,7 +210,7 @@ static unsigned long get_acpi_srat_table(void) rsdp = (struct acpi_table_rsdp *)get_cmdline_acpi_rsdp ();if (!rsdp) rsdp = (struct acpi_table_rsdp *)(long ) - boot_params->acpi_rsdp_addr; + boot_params_ptr->acpi_rsdp_addr;if (!rsdp)return 0 ;
arch/x86/boot/compressed/cmdline.c +2 -2
@@ -14,9 +14,9 @@ static inline char rdfs8(addr_t addr)#include "../cmdline.c" unsigned long get_cmd_line_ptr (void ) { -unsigned long cmd_line_ptr = boot_params->hdr.cmd_line_ptr; +unsigned long cmd_line_ptr = boot_params_ptr->hdr.cmd_line_ptr; - cmd_line_ptr |= (u64 )boot_params->ext_cmd_line_ptr <<32 ; + cmd_line_ptr |= (u64 )boot_params_ptr->ext_cmd_line_ptr <<32 ;return cmd_line_ptr; }
arch/x86/boot/compressed/efi_mixed.S new file +328 -0
328 lines not on this page · raw message
arch/x86/boot/compressed/efi_thunk_64.S deleted +0 -195
195 lines not on this page · raw message
arch/x86/boot/compressed/head_32.S +1 -37
@@ -84,19 +84,6 @@ SYM_FUNC_START(startup_32) #ifdef CONFIG_RELOCATABLE leal startup_32@GOTOFF(%edx), %ebx - -#ifdef CONFIG_EFI_STUB -/* - * If we were loaded via the EFI LoadImage service, startup_32() will be at an - * offset to the start of the space allocated for the image. efi_pe_entry() will - * set up image_offset to tell us where the image actually starts, so that we - * can use the full available buffer. - * image_offset = startup_32 - image_base - * Otherwise image_offset will be zero and has no effect on the calculations. - */ - subl image_offset@GOTOFF(%edx), %ebx -#endif - movl BP_kernel_alignment(%esi), %eax decl %eax addl %eax, %ebx
@@ -150,17 +137,6 @@ SYM_FUNC_START(startup_32) jmp *%eax SYM_FUNC_END(startup_32) -#ifdef CONFIG_EFI_STUB -SYM_FUNC_START(efi32_stub_entry) - add $0x4, %esp - movl 8(%esp), %esi /* save boot_params pointer */ - call efi_main - /* efi_main returns the possibly relocated address of startup_32 */ - jmp *%eax -SYM_FUNC_END(efi32_stub_entry) -SYM_FUNC_ALIAS(efi_stub_entry, efi32_stub_entry) -#endif - .text SYM_FUNC_START_LOCAL_NOALIGN(.Lrelocated)
@@ -179,15 +155,9 @@ SYM_FUNC_START_LOCAL_NOALIGN(.Lrelocated) */ /* push arguments for extract_kernel: */ - pushl output_len@GOTOFF(%ebx) /* decompressed length, end of relocs */ pushl %ebp /* output address */ - pushl input_len@GOTOFF(%ebx) /* input_len */ - leal input_data@GOTOFF(%ebx), %eax - pushl %eax /* input_data */ - leal boot_heap@GOTOFF(%ebx), %eax - pushl %eax /* heap area */ pushl %esi /* real mode pointer */ - call extract_kernel /* returns kernel location in %eax */ + call extract_kernel /* returns kernel entry point in %eax */ addl $24, %esp /*
@@ -208,17 +178,11 @@ SYM_DATA_START_LOCAL(gdt) .quad 0x00cf92000000ffff /* __KERNEL_DS */ SYM_DATA_END_LABEL(gdt, SYM_L_LOCAL, gdt_end) -#ifdef CONFIG_EFI_STUB -SYM_DATA(image_offset, .long 0) -#endif - /* * Stack and heap for uncompression */ .bss .balign 4 -boot_heap: - .fill BOOT_HEAP_SIZE, 1, 0 boot_stack: .fill BOOT_STACK_SIZE, 1, 0 boot_stack_end:
arch/x86/boot/compressed/head_64.S +104 -489
760 lines not on this page · raw message
arch/x86/boot/compressed/ident_map_64.c +4 -3
@@ -167,8 +167,9 @@ void initialize_identity_maps(void *rmode)* or does not touch all the pages covering them. */ kernel_add_identity_map ((unsigned long )_head, (unsigned long )_end); - boot_params = rmode; -kernel_add_identity_map ((unsigned long )boot_params, (unsigned long )(boot_params +1 )); + boot_params_ptr = rmode; +kernel_add_identity_map ((unsigned long )boot_params_ptr, + (unsigned long )(boot_params_ptr +1 )); cmdline =get_cmd_line_ptr ();kernel_add_identity_map (cmdline, cmdline +COMMAND_LINE_SIZE );
@@ -176,7 +177,7 @@ void initialize_identity_maps(void *rmode)* Also map the setup_data entries passed via boot_params in case they * need to be accessed by uncompressed kernel via the identity mapping. */ - sd = (struct setup_data *)boot_params->hdr.setup_data; + sd = (struct setup_data *)boot_params_ptr->hdr.setup_data;while (sd) {unsigned long sd_addr = (unsigned long )sd;
arch/x86/boot/compressed/kaslr.c +13 -13
@@ -63,7 +63,7 @@ static unsigned long get_boot_seed(void)unsigned long hash =0 ; hash =rotate_xor (hash, build_str,sizeof (build_str)); - hash =rotate_xor (hash, boot_params,sizeof (*boot_params)); + hash =rotate_xor (hash, boot_params_ptr,sizeof (*boot_params_ptr));return hash; }
@@ -383,7 +383,7 @@ static void handle_mem_options(void)static void mem_avoid_init (unsigned long input,unsigned long input_size,unsigned long output) { -unsigned long init_size = boot_params->hdr.init_size; +unsigned long init_size = boot_params_ptr->hdr.init_size;u64 initrd_start, initrd_size;unsigned long cmd_line, cmd_line_size;
@@ -395,10 +395,10 @@ static void mem_avoid_init(unsigned long input, unsigned long input_size, mem_avoid[MEM_AVOID_ZO_RANGE ].size = (output + init_size) - input;/* Avoid initrd. */ - initrd_start = (u64 )boot_params->ext_ramdisk_image <<32 ; - initrd_start |= boot_params->hdr.ramdisk_image; - initrd_size = (u64 )boot_params->ext_ramdisk_size <<32 ; - initrd_size |= boot_params->hdr.ramdisk_size; + initrd_start = (u64 )boot_params_ptr->ext_ramdisk_image <<32 ; + initrd_start |= boot_params_ptr->hdr.ramdisk_image; + initrd_size = (u64 )boot_params_ptr->ext_ramdisk_size <<32 ; + initrd_size |= boot_params_ptr->hdr.ramdisk_size; mem_avoid[MEM_AVOID_INITRD ].start = initrd_start; mem_avoid[MEM_AVOID_INITRD ].size = initrd_size;/* No need to set mapping for initrd, it will be handled in VO. */
@@ -413,8 +413,8 @@ static void mem_avoid_init(unsigned long input, unsigned long input_size, }/* Avoid boot parameters. */ - mem_avoid[MEM_AVOID_BOOTPARAMS ].start = (unsigned long )boot_params; - mem_avoid[MEM_AVOID_BOOTPARAMS ].size =sizeof (*boot_params); + mem_avoid[MEM_AVOID_BOOTPARAMS ].start = (unsigned long )boot_params_ptr; + mem_avoid[MEM_AVOID_BOOTPARAMS ].size =sizeof (*boot_params_ptr);/* We don't need to set a mapping for setup_data. */
@@ -447,7 +447,7 @@ static bool mem_avoid_overlap(struct mem_vector *img, }/* Avoid all entries in the setup_data linked list. */ - ptr = (struct setup_data *)(unsigned long )boot_params->hdr.setup_data; + ptr = (struct setup_data *)(unsigned long )boot_params_ptr->hdr.setup_data;while (ptr) {struct mem_vector avoid;
@@ -679,7 +679,7 @@ static bool process_mem_region(struct mem_vector *region,static bool process_efi_entries (unsigned long minimum,unsigned long image_size) { -struct efi_info *e = &boot_params->efi_info; +struct efi_info *e = &boot_params_ptr->efi_info;bool efi_mirror_found = false;struct mem_vector region;efi_memory_desc_t *md;
@@ -761,8 +761,8 @@ static void process_e820_entries(unsigned long minimum,struct boot_e820_entry *entry;/* Verify potential e820 positions, appending to slots list. */ -for (i =0 ; i < boot_params->e820_entries; i++) { - entry = &boot_params->e820_table[i]; +for (i =0 ; i < boot_params_ptr->e820_entries; i++) { + entry = &boot_params_ptr->e820_table[i];/* Skip non-RAM entries. */ if (entry->type !=E820_TYPE_RAM )continue ;
@@ -836,7 +836,7 @@ void choose_random_location(unsigned long input,return ; } - boot_params->hdr.loadflags |=KASLR_FLAG ; + boot_params_ptr->hdr.loadflags |=KASLR_FLAG ;if (IS_ENABLED (CONFIG_X86_32 )) mem_limit =KERNEL_IMAGE_SIZE ;
arch/x86/boot/compressed/mem_encrypt.S +139 -13
189 lines not on this page · raw message
arch/x86/boot/compressed/misc.c +55 -30
171 lines not on this page · raw message
arch/x86/boot/compressed/misc.h +0 -3
@@ -52,7 +52,6 @@ extern memptr free_mem_ptr;extern memptr free_mem_end_ptr;void *malloc (int size);void free (void *where); -extern struct boot_params *boot_params;void __putstr (const char *s);void __puthex (unsigned long value);#define error_putstr (__x) __putstr(__x)
@@ -170,9 +169,7 @@ static inline int count_immovable_mem_regions(void) { return 0; }#endif /* ident_map_64.c */ -#ifdef CONFIG_X86_5LEVEL extern unsigned int __pgtable_l5_enabled, pgdir_shift, ptrs_per_p4d; -#endif extern void kernel_add_identity_map (unsigned long start,unsigned long end);/* Used by PAGE_KERN* macros: */
arch/x86/boot/compressed/pgtable.h +4 -6
@@ -3,18 +3,16 @@#define TRAMPOLINE_32BIT_SIZE (2 * PAGE_SIZE) -#define TRAMPOLINE_32BIT_PGTABLE_OFFSET 0 -#define TRAMPOLINE_32BIT_CODE_OFFSET PAGE_SIZE -#define TRAMPOLINE_32BIT_CODE_SIZE 0x80 - -#define TRAMPOLINE_32BIT_STACK_END TRAMPOLINE_32BIT_SIZE +#define TRAMPOLINE_32BIT_CODE_SIZE 0xA0#ifndef __ASSEMBLER__extern unsigned long *trampoline_32bit; -extern void trampoline_32bit_src (void *return_ptr); +extern void trampoline_32bit_src (void *trampoline,bool enable_5lvl); + +extern const u16 trampoline_ljmp_imm_offset;#endif /* __ASSEMBLER__ */ #endif /* BOOT_COMPRESSED_PAGETABLE_H */
arch/x86/boot/compressed/pgtable_64.c +39 -55
172 lines not on this page · raw message
arch/x86/boot/compressed/sev.c +67 -47
168 lines not on this page · raw message
arch/x86/boot/header.S +1 -1
@@ -406,7 +406,7 @@ xloadflags: # define XLF1 0 #endif -#ifdef CONFIG_EFI_STUB +#ifdef CONFIG_EFI_HANDOVER_PROTOCOL # ifdef CONFIG_EFI_MIXED # define XLF23 (XLF_EFI_HANDOVER_32|XLF_EFI_HANDOVER_64) # else
arch/x86/boot/tools/build.c +2 -0
@@ -290,6 +290,7 @@ static void efi_stub_entry_update(void) {unsigned long addr = efi32_stub_entry; +#ifdef CONFIG_EFI_HANDOVER_PROTOCOL #ifdef CONFIG_X86_64 /* Yes, this is really how we defined it :( */ addr = efi64_stub_entry -0x200 ;
@@ -298,6 +299,7 @@ static void efi_stub_entry_update(void)#ifdef CONFIG_EFI_MIXED if (efi32_stub_entry != addr)die ("32-bit and 64-bit EFI entry points do not match\n" ); +#endif #endif put_unaligned_le32 (addr, &buf[0x264 ]); }
arch/x86/entry/entry.S +23 -0
@@ -6,6 +6,9 @@ #include <linux/linkage.h> #include <asm/export.h> #include <asm/msr-index.h> +#include <asm/unwind_hints.h> +#include <asm/segment.h> +#include <asm/cache.h> .pushsection .noinstr.text, "ax"
@@ -20,3 +23,23 @@ SYM_FUNC_END(entry_ibpb) EXPORT_SYMBOL_GPL(entry_ibpb); .popsection + +/* + * Define the VERW operand that is disguised as entry code so that + * it can be referenced with KPTI enabled. This ensure VERW can be + * used late in exit-to-user path after page tables are switched. + */ +.pushsection .entry.text, "ax" + +.align L1_CACHE_BYTES, 0xcc +SYM_CODE_START_NOALIGN(mds_verw_sel) + UNWIND_HINT_EMPTY + ANNOTATE_NOENDBR + .word __KERNEL_DS +.align L1_CACHE_BYTES, 0xcc +SYM_CODE_END(mds_verw_sel); +/* For KVM */ +EXPORT_SYMBOL_GPL(mds_verw_sel); + +.popsection +
arch/x86/entry/entry_32.S +3 -0
@@ -912,6 +912,7 @@ SYM_FUNC_START(entry_SYSENTER_32) BUG_IF_WRONG_CR3 no_user_check=1 popfl popl %eax + CLEAR_CPU_BUFFERS /* * Return back to the vDSO, which will pop ecx and edx.
@@ -981,6 +982,7 @@ restore_all_switch_stack: /* Restore user state */ RESTORE_REGS pop=4 # skip orig_eax/error_code + CLEAR_CPU_BUFFERS .Lirq_return: /* * ARCH_HAS_MEMBARRIER_SYNC_CORE rely on IRET core serialization
@@ -1173,6 +1175,7 @@ SYM_CODE_START(asm_exc_nmi) /* Not on SYSENTER stack. */ call exc_nmi + CLEAR_CPU_BUFFERS jmp .Lnmi_return .Lnmi_from_sysenter_stack:
arch/x86/entry/entry_64.S +11 -0
@@ -223,6 +223,7 @@ syscall_return_via_sysret: SYM_INNER_LABEL(entry_SYSRETQ_unsafe_stack, SYM_L_GLOBAL) ANNOTATE_NOENDBR swapgs + CLEAR_CPU_BUFFERS sysretq SYM_INNER_LABEL(entry_SYSRETQ_end, SYM_L_GLOBAL) ANNOTATE_NOENDBR
@@ -656,6 +657,7 @@ SYM_INNER_LABEL(swapgs_restore_regs_and_return_to_usermode, SYM_L_GLOBAL) /* Restore RDI. */ popq %rdi swapgs + CLEAR_CPU_BUFFERS jmp .Lnative_iret
@@ -767,6 +769,8 @@ native_irq_return_ldt: */ popq %rax /* Restore user RAX */ + CLEAR_CPU_BUFFERS + /* * RSP now points to an ordinary IRET frame, except that the page * is read-only and RSP[31:16] are preloaded with the userspace
@@ -1493,6 +1497,12 @@ nmi_restore: std movq $0, 5*8(%rsp) /* clear "NMI executing" */ + /* + * Skip CLEAR_CPU_BUFFERS here, since it only helps in rare cases like + * NMI in kernel after user state is restored. For an unprivileged user + * these conditions are hard to meet. + */ + /* * iretq reads the "iret" frame and exits the NMI stack in a * single instruction. We are returning to kernel mode, so this
@@ -1511,6 +1521,7 @@ SYM_CODE_START(ignore_sysret) UNWIND_HINT_EMPTY ENDBR mov $-ENOSYS, %eax + CLEAR_CPU_BUFFERS sysretl SYM_CODE_END(ignore_sysret) #endif
arch/x86/entry/entry_64_compat.S +1 -0
@@ -272,6 +272,7 @@ SYM_INNER_LABEL(entry_SYSRETL_compat_unsafe_stack, SYM_L_GLOBAL) xorl %r9d, %r9d xorl %r10d, %r10d swapgs + CLEAR_CPU_BUFFERS sysretl SYM_INNER_LABEL(entry_SYSRETL_compat_end, SYM_L_GLOBAL) ANNOTATE_NOENDBR
arch/x86/include/asm/boot.h +10 -0
@@ -79,4 +79,14 @@# define BOOT_STACK_SIZE 0x1000#endif +#ifndef __ASSEMBLY__ +extern unsigned int output_len; +extern const unsigned long kernel_total_size; + +unsigned long decompress_kernel (unsigned char *outbuf,unsigned long virt_addr, +void (*error)(char *x)); + +extern struct boot_params *boot_params_ptr; +#endif +#endif /* _ASM_X86_BOOT_H */
arch/x86/include/asm/cpufeatures.h +1 -1
@@ -304,7 +304,7 @@#define X86_FEATURE_UNRET (11*32+15)/* "" AMD BTB untrain return */ #define X86_FEATURE_USE_IBPB_FW (11*32+16)/* "" Use IBPB during runtime firmware calls */ #define X86_FEATURE_RSB_VMEXIT_LITE (11*32+17)/* "" Fill RSB on VM exit when EIBRS is enabled */ - +#define X86_FEATURE_CLEAR_CPU_BUF (11*32+18)/* "" Clear CPU buffers using VERW */ #define X86_FEATURE_MSR_TSX_CTRL (11*32+20)/* "" MSR IA32_TSX_CTRL (Intel) implemented */
arch/x86/include/asm/efi.h +12 -2
@@ -88,6 +88,8 @@ static inline void efi_fpu_end(void) }#ifdef CONFIG_X86_32 +#define EFI_X86_KERNEL_ALLOC_LIMIT (SZ_512M - 1) +#define arch_efi_call_virt_setup () \ ({ \ efi_fpu_begin(); \
@@ -101,8 +103,7 @@ static inline void efi_fpu_end(void) })#else /* !CONFIG_X86_32 */ - -#define EFI_LOADER_SIGNATURE "EL64" +#define EFI_X86_KERNEL_ALLOC_LIMIT EFI_ALLOC_LIMIT extern asmlinkage u64 __efi_call(void *fp, ...);
@@ -214,6 +215,8 @@ efi_status_t efi_set_virtual_address_map(unsigned long memory_map_size,#ifdef CONFIG_EFI_MIXED +#define EFI_ALLOC_LIMIT (efi_is_64bit() ? ULONG_MAX : U32_MAX) +#define ARCH_HAS_EFISTUB_WRAPPERS static inline bool efi_is_64bit (void )
@@ -325,6 +328,13 @@ static inline u32 efi64_convert_status(efi_status_t status)#define __efi64_argmap_set_memory_space_attributes (phys, size, flags) \ (__efi64_split(phys), __efi64_split(size), __efi64_split(flags)) +/* Memory Attribute Protocol */ +#define __efi64_argmap_set_memory_attributes (protocol, phys, size, flags) \ + ((protocol), __efi64_split(phys), __efi64_split(size), __efi64_split(flags)) + +#define __efi64_argmap_clear_memory_attributes (protocol, phys, size, flags) \ + ((protocol), __efi64_split(phys), __efi64_split(size), __efi64_split(flags)) +/* * The macros below handle the plumbing for the argument mapping. To add a * mapping for a specific EFI method, simply define a macro
arch/x86/include/asm/entry-common.h +0 -1
@@ -91,7 +91,6 @@ static inline void arch_exit_to_user_mode_prepare(struct pt_regs *regs, static __always_inline void arch_exit_to_user_mode(void) { -mds_user_clear_cpu_buffers ();amd_clear_divider (); }#define arch_exit_to_user_mode arch_exit_to_user_mode
arch/x86/include/asm/nospec-branch.h +15 -12
@@ -194,6 +194,19 @@#endif .endm +/* + * Macro to execute VERW instruction that mitigate transient data sampling + * attacks such as MDS. On affected systems a microcode update overloaded VERW + * instruction to also clear the CPU buffers. VERW clobbers CFLAGS.ZF. + * + * Note: Only the memory operand variant of VERW clears the CPU buffers. + */ +.macro CLEAR_CPU_BUFFERS + ALTERNATIVE "jmp .Lskip_verw_\@", "", X86_FEATURE_CLEAR_CPU_BUF + verw _ASM_RIP(mds_verw_sel) +.Lskip_verw_\@: +.endm + #else /* __ASSEMBLY__ */#define ANNOTATE_RETPOLINE_SAFE \
@@ -368,13 +381,14 @@ DECLARE_STATIC_KEY_FALSE(switch_to_cond_stibp);DECLARE_STATIC_KEY_FALSE (switch_mm_cond_ibpb);DECLARE_STATIC_KEY_FALSE (switch_mm_always_ibpb); -DECLARE_STATIC_KEY_FALSE (mds_user_clear);DECLARE_STATIC_KEY_FALSE (mds_idle_clear);DECLARE_STATIC_KEY_FALSE (switch_mm_cond_l1d_flush);DECLARE_STATIC_KEY_FALSE (mmio_stale_data_clear); +extern u16 mds_verw_sel; +#include <asm/segment.h> /**
@@ -400,17 +414,6 @@ static __always_inline void mds_clear_cpu_buffers(void) asmvolatile ("verw %[ds]" : : [ds]"m" (ds) :"cc" ); } -/** -* mds_user_clear_cpu_buffers - Mitigation for MDS and TAA vulnerability -* -* Clear CPU buffers if the corresponding static key is enabled -*/ -static __always_inline void mds_user_clear_cpu_buffers(void) -{ -if (static_branch_likely (&mds_user_clear))
Lines of this file are not shown. View the raw message.
arch/x86/kernel/cpu/intel.c +91 -87
178 lines not on this page · raw message
drivers/bluetooth/btqca.c +81 -23
104 lines not on this page · raw message
drivers/bluetooth/hci_qca.c +258 -52
310 lines not on this page · raw message
drivers/firmware/efi/libstub/alignedmem.c +5 -2
Lines of this file are not shown. View the raw message.
drivers/firmware/efi/libstub/arm64-stub.c +7 -4
Lines of this file are not shown. View the raw message.
drivers/firmware/efi/libstub/efi-stub-helper.c +2 -0
Lines of this file are not shown. View the raw message.
drivers/firmware/efi/libstub/efistub.h +30 -2
Lines of this file are not shown. View the raw message.
drivers/firmware/efi/libstub/randomalloc.c +11 -6
Lines of this file are not shown. View the raw message.
drivers/firmware/efi/libstub/x86-5lvl.c new file +95 -0
95 lines not on this page · raw message
drivers/firmware/efi/libstub/x86-stub.c +185 -130
315 lines not on this page · raw message
drivers/firmware/efi/libstub/x86-stub.h new file +17 -0
Lines of this file are not shown. View the raw message.
drivers/gpu/drm/amd/display/dc/dml/Makefile +4 -0
Lines of this file are not shown. View the raw message.
drivers/gpu/drm/amd/pm/legacy-dpm/si_dpm.c +29 -0
Lines of this file are not shown. View the raw message.
drivers/gpu/drm/meson/meson_encoder_cvbs.c +0 -1
Lines of this file are not shown. View the raw message.
drivers/gpu/drm/meson/meson_encoder_hdmi.c +0 -1
Lines of this file are not shown. View the raw message.
drivers/infiniband/core/cma.c +132 -123
255 lines not on this page · raw message
drivers/iommu/arm/arm-smmu-v3/arm-smmu-v3.c +14 -5
Lines of this file are not shown. View the raw message.
drivers/iommu/arm/arm-smmu/arm-smmu-qcom.c +15 -1
Lines of this file are not shown. View the raw message.
drivers/mmc/host/sdhci-xenon-phy.c +39 -9
48 lines not on this page · raw message
drivers/net/ethernet/intel/igb/igb_ptp.c +3 -2
Lines of this file are not shown. View the raw message.
drivers/net/ethernet/mellanox/mlxsw/spectrum_acl_tcam.c +7 -3
Lines of this file are not shown. View the raw message.
drivers/net/ethernet/stmicro/stmmac/stmmac_main.c +3 -1
Lines of this file are not shown. View the raw message.
drivers/pci/controller/dwc/pci-layerscape-ep.c +118 -1
119 lines not on this page · raw message
drivers/phy/freescale/phy-fsl-imx8-mipi-dphy.c +1 -1
Lines of this file are not shown. View the raw message.
drivers/power/supply/bq27xxx_battery_i2c.c +3 -1
Lines of this file are not shown. View the raw message.
drivers/scsi/scsi_lib.c +25 -27
52 lines not on this page · raw message
fs/nfsd/nfs4callback.c +72 -0
72 lines not on this page · raw message
fs/nfsd/nfs4state.c +210 -102
312 lines not on this page · raw message
fs/nfsd/nfs4xdr.c +409 -362
771 lines not on this page · raw message
fs/nfsd/nfsproc.c +2 -64
66 lines not on this page · raw message
fs/nfsd/trace.h +106 -0
106 lines not on this page · raw message
fs/nfsd/vfs.c +63 -1
64 lines not on this page · raw message
include/scsi/scsi_device.h +38 -14
52 lines not on this page · raw message
include/trace/events/fs.h deleted +0 -122
122 lines not on this page · raw message
include/trace/events/nfs.h deleted +0 -375
375 lines not on this page · raw message
include/trace/events/rdma.h deleted +0 -168
168 lines not on this page · raw message
include/trace/events/sunrpc_base.h deleted +0 -18
Lines of this file are not shown. View the raw message.
include/trace/misc/fs.h new file +122 -0
122 lines not on this page · raw message
include/trace/misc/nfs.h new file +387 -0
387 lines not on this page · raw message
include/trace/misc/rdma.h new file +168 -0
168 lines not on this page · raw message
net/bridge/br_netfilter_hooks.c +96 -0
96 lines not on this page · raw message
net/bridge/netfilter/nf_conntrack_bridge.c +30 -0
Lines of this file are not shown. View the raw message.
net/mptcp/pm_netlink.c +25 -23
48 lines not on this page · raw message
net/mptcp/protocol.c +54 -2
56 lines not on this page · raw message
net/netfilter/nf_conntrack_proto_tcp.c +35 -0
Lines of this file are not shown. View the raw message.
tools/testing/selftests/net/mptcp/mptcp_join.sh +5 -0
Lines of this file are not shown. View the raw message.
The rest of this diff is not shown. View the raw message.
Part of the diff is not shown here. View the raw message.