Skip to contentSkip to conversation

Linux 5.10.215

DISCUSSION Greg Kroah-Hartman 1 participant 2 messages Apr 13, 2024 Stable branch

lore
Share & tools
lore

Greg Kroah-Hartman

author maintainer
#0 lore raw

I'm announcing the release of the 5.10.215 kernel.

All users of the 5.10 kernel series must upgrade.

The updated 5.10.y git tree can be found at:
git://git.kernel.org/pub/scm/linux/kernel/git/stable/linux-stable.git linux-5.10.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/ABI/testing/sysfs-devices-system-cpu              |    1 
 Documentation/admin-guide/hw-vuln/index.rst                     |    1 
 Documentation/admin-guide/hw-vuln/reg-file-data-sampling.rst    |  104 ++++
 Documentation/admin-guide/hw-vuln/spectre.rst                   |   18 
 Documentation/admin-guide/kernel-parameters.txt                 |   27 -
 Documentation/block/queue-sysfs.rst                             |    7 
 Documentation/x86/mds.rst                                       |   38 +
 Makefile                                                        |    2 
 arch/arm/boot/dts/mmp2-brownstone.dts                           |    2 
 arch/arm64/boot/dts/qcom/sc7180-trogdor.dtsi                    |    3 
 arch/arm64/boot/dts/rockchip/rk3328.dtsi                        |   11 
 arch/arm64/boot/dts/rockchip/rk3399.dtsi                        |   12 
 arch/hexagon/kernel/vmlinux.lds.S                               |    1 
 arch/parisc/include/asm/assembly.h                              |   18 
 arch/parisc/include/asm/checksum.h                              |   10 
 arch/powerpc/include/asm/reg_fsl_emb.h                          |   11 
 arch/powerpc/lib/Makefile                                       |    2 
 arch/riscv/include/asm/uaccess.h                                |    4 
 arch/s390/kernel/entry.S                                        |    1 
 arch/sparc/kernel/nmi.c                                         |    2 
 arch/sparc/vdso/vma.c                                           |    7 
 arch/x86/Kconfig                                                |   18 
 arch/x86/Makefile                                               |    8 
 arch/x86/entry/entry.S                                          |   23 
 arch/x86/entry/entry_32.S                                       |   59 --
 arch/x86/entry/entry_64.S                                       |   10 
 arch/x86/entry/entry_64_compat.S                                |    1 
 arch/x86/include/asm/asm-prototypes.h                           |    1 
 arch/x86/include/asm/asm.h                                      |    5 
 arch/x86/include/asm/cpufeature.h                               |    8 
 arch/x86/include/asm/cpufeatures.h                              |    5 
 arch/x86/include/asm/disabled-features.h                        |    3 
 arch/x86/include/asm/entry-common.h                             |    1 
 arch/x86/include/asm/irqflags.h                                 |    1 
 arch/x86/include/asm/msr-index.h                                |   10 
 arch/x86/include/asm/nospec-branch.h                            |   47 +
 arch/x86/include/asm/processor.h                                |   15 
 arch/x86/include/asm/ptrace.h                                   |    5 
 arch/x86/include/asm/required-features.h                        |    3 
 arch/x86/include/asm/segment.h                                  |   30 -
 arch/x86/include/asm/setup.h                                    |    1 
 arch/x86/include/asm/stackprotector.h                           |   79 ---
 arch/x86/include/asm/suspend_32.h                               |   12 
 arch/x86/kernel/Makefile                                        |    1 
 arch/x86/kernel/asm-offsets_32.c                                |    5 
 arch/x86/kernel/cpu/amd.c                                       |   10 
 arch/x86/kernel/cpu/bugs.c                                      |  245 ++++++----
 arch/x86/kernel/cpu/common.c                                    |   64 ++
 arch/x86/kernel/cpu/mce/core.c                                  |    4 
 arch/x86/kernel/doublefault_32.c                                |    4 
 arch/x86/kernel/head64.c                                        |    9 
 arch/x86/kernel/head_32.S                                       |   18 
 arch/x86/kernel/head_64.S                                       |   24 
 arch/x86/kernel/nmi.c                                           |    3 
 arch/x86/kernel/setup_percpu.c                                  |    1 
 arch/x86/kernel/tls.c                                           |    8 
 arch/x86/kvm/cpuid.h                                            |    2 
 arch/x86/kvm/svm/sev.c                                          |   16 
 arch/x86/kvm/vmx/run_flags.h                                    |    7 
 arch/x86/kvm/vmx/vmenter.S                                      |    9 
 arch/x86/kvm/vmx/vmx.c                                          |   12 
 arch/x86/kvm/x86.c                                              |    5 
 arch/x86/lib/insn-eval.c                                        |    4 
 arch/x86/lib/retpoline.S                                        |    6 
 arch/x86/mm/ident_map.c                                         |   23 
 arch/x86/mm/pat/memtype.c                                       |   50 +-
 arch/x86/platform/pvh/head.S                                    |   14 
 arch/x86/power/cpu.c                                            |    6 
 arch/x86/xen/enlighten_pv.c                                     |    1 
 block/blk-settings.c                                            |   41 +
 block/blk-stat.c                                                |    2 
 block/blk-sysfs.c                                               |    8 
 block/ioctl.c                                                   |   11 
 drivers/accessibility/speakup/synth.c                           |    4 
 drivers/acpi/acpica/dbnames.c                                   |    8 
 drivers/acpi/sleep.c                                            |   12 
 drivers/ata/ahci.c                                              |    5 
 drivers/ata/sata_mv.c                                           |   63 +-
 drivers/ata/sata_sx4.c                                          |    6 
 drivers/base/core.c                                             |   26 -
 drivers/base/cpu.c                                              |    8 
 drivers/base/power/wakeirq.c                                    |    4 
 drivers/bluetooth/btintel.c                                     |    2 
 drivers/clk/qcom/gcc-ipq6018.c                                  |    2 
 drivers/clk/qcom/gcc-ipq8074.c                                  |    2 
 drivers/clk/qcom/gcc-sdm845.c                                   |    1 
 drivers/clk/qcom/mmcc-apq8084.c                                 |    2 
 drivers/clk/qcom/mmcc-msm8974.c                                 |    2 
 drivers/cpufreq/brcmstb-avs-cpufreq.c                           |    5 
 drivers/cpufreq/cpufreq-dt.c                                    |    2 
 drivers/crypto/qat/qat_common/adf_aer.c                         |   23 
 drivers/firmware/efi/vars.c                                     |   17 
 drivers/gpu/drm/amd/amdkfd/kfd_chardev.c                        |    4 
 drivers/gpu/drm/amd/display/dc/dcn30/dcn30_hwseq.c              |   12 
 drivers/gpu/drm/amd/display/modules/hdcp/hdcp_psp.c             |    3 
 drivers/gpu/drm/amd/display/modules/inc/mod_stats.h             |    4 
 drivers/gpu/drm/drm_panel.c                                     |   17 
 drivers/gpu/drm/etnaviv/etnaviv_drv.c                           |    2 
 drivers/gpu/drm/etnaviv/etnaviv_hwdb.c                          |    9 
 drivers/gpu/drm/exynos/exynos_drm_vidi.c                        |    4 
 drivers/gpu/drm/exynos/exynos_hdmi.c                            |    4 
 drivers/gpu/drm/i915/gt/intel_engine_pm.c                       |    3 
 drivers/gpu/drm/i915/gt/intel_lrc.c                             |    3 
 drivers/gpu/drm/imx/parallel-display.c                          |    4 
 drivers/gpu/drm/ttm/ttm_memory.c                                |    2 
 drivers/gpu/drm/vc4/vc4_hdmi.c                                  |    2 
 drivers/gpu/drm/vmwgfx/vmwgfx_binding.c                         |   20 
 drivers/gpu/drm/vmwgfx/vmwgfx_blit.c                            |    4 
 drivers/gpu/drm/vmwgfx/vmwgfx_bo.c                              |   92 ++-
 drivers/gpu/drm/vmwgfx/vmwgfx_cmdbuf.c                          |    8 
 drivers/gpu/drm/vmwgfx/vmwgfx_cmdbuf_res.c                      |    4 
 drivers/gpu/drm/vmwgfx/vmwgfx_cotable.c                         |    4 
 drivers/gpu/drm/vmwgfx/vmwgfx_drv.c                             |    2 
 drivers/gpu/drm/vmwgfx/vmwgfx_drv.h                             |   11 
 drivers/gpu/drm/vmwgfx/vmwgfx_execbuf.c                         |   12 
 drivers/gpu/drm/vmwgfx/vmwgfx_fb.c                              |    2 
 drivers/gpu/drm/vmwgfx/vmwgfx_mob.c                             |    4 
 drivers/gpu/drm/vmwgfx/vmwgfx_msg.c                             |    6 
 drivers/gpu/drm/vmwgfx/vmwgfx_resource.c                        |   12 
 drivers/gpu/drm/vmwgfx/vmwgfx_scrn.c                            |    4 
 drivers/gpu/drm/vmwgfx/vmwgfx_shader.c                          |    4 
 drivers/gpu/drm/vmwgfx/vmwgfx_so.c                              |    3 
 drivers/gpu/drm/vmwgfx/vmwgfx_ttm_buffer.c                      |   50 --
 drivers/gpu/drm/vmwgfx/vmwgfx_validation.c                      |    6 
 drivers/hwmon/amc6821.c                                         |   11 
 drivers/infiniband/core/cm.c                                    |   20 
 drivers/input/rmi4/rmi_driver.c                                 |    6 
 drivers/md/dm-integrity.c                                       |    2 
 drivers/md/dm-raid.c                                            |    2 
 drivers/md/dm-snap.c                                            |    4 
 drivers/md/raid5.c                                              |   12 
 drivers/media/pci/sta2x11/sta2x11_vip.c                         |    9 
 drivers/media/tuners/xc4000.c                                   |    4 
 drivers/misc/mei/hw-me-regs.h                                   |    2 
 drivers/misc/mei/pci-me.c                                       |    2 
 drivers/misc/vmw_vmci/vmci_datagram.c                           |    6 
 drivers/mmc/core/block.c                                        |   14 
 drivers/mmc/host/tmio_mmc_core.c                                |    2 
 drivers/mtd/nand/raw/meson_nand.c                               |    2 
 drivers/mtd/ubi/fastmap.c                                       |    7 
 drivers/mtd/ubi/vtbl.c                                          |    6 
 drivers/net/ethernet/hisilicon/hns3/hns3pf/hclge_trace.h        |    8 
 drivers/net/ethernet/hisilicon/hns3/hns3vf/hclgevf_trace.h      |    8 
 drivers/net/ethernet/intel/i40e/i40e_main.c                     |    7 
 drivers/net/ethernet/intel/i40e/i40e_virtchnl_pf.c              |   34 -
 drivers/net/ethernet/intel/ixgbe/ixgbe_ipsec.c                  |   16 
 drivers/net/ethernet/marvell/octeontx2/af/cgx.c                 |    5 
 drivers/net/ethernet/marvell/octeontx2/nic/otx2_pf.c            |    2 
 drivers/net/ethernet/neterion/vxge/vxge-config.c                |    2 
 drivers/net/ethernet/pensando/ionic/ionic_lif.c                 |    5 
 drivers/net/ethernet/realtek/r8169_main.c                       |    9 
 drivers/net/ethernet/renesas/ravb_main.c                        |    7 
 drivers/net/ethernet/stmicro/stmmac/dwmac4_core.c               |   40 +
 drivers/net/ethernet/stmicro/stmmac/dwxgmac2_core.c             |   38 +
 drivers/net/ethernet/xilinx/ll_temac_main.c                     |    2 
 drivers/net/wireguard/netlink.c                                 |   10 
 drivers/net/wireless/ath/ath9k/antenna.c                        |    2 
 drivers/net/wireless/broadcom/brcm80211/brcmfmac/cfg80211.c     |    4 
 drivers/nvme/host/pci.c                                         |    3 
 drivers/nvmem/meson-efuse.c                                     |   25 -
 drivers/of/dynamic.c                                            |   12 
 drivers/pci/controller/dwc/pcie-designware-ep.c                 |    7 
 drivers/pci/pci-driver.c                                        |   23 
 drivers/pci/pci.c                                               |    6 
 drivers/pci/pci.h                                               |   17 
 drivers/pci/pcie/Makefile                                       |    2 
 drivers/pci/pcie/dpc.c                                          |   15 
 drivers/pci/pcie/err.c                                          |   33 +
 drivers/pci/pcie/rcec.c                                         |   59 ++
 drivers/pci/probe.c                                             |    7 
 drivers/pci/quirks.c                                            |  100 ++++
 drivers/pci/setup-res.c                                         |    8 
 drivers/phy/tegra/xusb.c                                        |   13 
 drivers/pinctrl/renesas/core.c                                  |    4 
 drivers/platform/x86/touchscreen_dmi.c                          |    9 
 drivers/s390/crypto/zcrypt_api.c                                |    2 
 drivers/scsi/hosts.c                                            |    7 
 drivers/scsi/lpfc/lpfc_nportdisc.c                              |    6 
 drivers/scsi/lpfc/lpfc_nvmet.c                                  |    2 
 drivers/scsi/myrb.c                                             |   20 
 drivers/scsi/myrs.c                                             |   24 
 drivers/scsi/qla2xxx/qla_attr.c                                 |   14 
 drivers/scsi/qla2xxx/qla_def.h                                  |    2 
 drivers/scsi/qla2xxx/qla_gs.c                                   |    2 
 drivers/scsi/qla2xxx/qla_init.c                                 |  102 +---
 drivers/scsi/qla2xxx/qla_target.c                               |   10 
 drivers/scsi/sd.c                                               |    7 
 drivers/slimbus/core.c                                          |    4 
 drivers/soc/fsl/qbman/qman.c                                    |   98 +++-
 drivers/staging/comedi/drivers/comedi_test.c                    |   30 +
 drivers/staging/media/ipu3/ipu3-v4l2.c                          |   16 
 drivers/staging/vc04_services/vchiq-mmal/mmal-vchiq.c           |    5 
 drivers/tee/optee/device.c                                      |    3 
 drivers/tty/n_gsm.c                                             |    3 
 drivers/tty/serial/8250/8250_port.c                             |    6 
 drivers/tty/serial/fsl_lpuart.c                                 |    7 
 drivers/tty/serial/max310x.c                                    |    7 
 drivers/tty/serial/sc16is7xx.c                                  |   15 
 drivers/tty/serial/serial_core.c                                |   12 
 drivers/tty/vt/vt.c                                             |    2 
 drivers/usb/class/cdc-wdm.c                                     |    6 
 drivers/usb/core/hub.c                                          |   23 
 drivers/usb/core/hub.h                                          |    2 
 drivers/usb/core/port.c                                         |    5 
 drivers/usb/core/sysfs.c                                        |   16 
 drivers/usb/dwc2/core.h                                         |   14 
 drivers/usb/dwc2/core_intr.c                                    |   63 +-
 drivers/usb/dwc2/gadget.c                                       |    4 
 drivers/usb/dwc2/hcd.c                                          |   47 +
 drivers/usb/dwc2/hcd_ddma.c                                     |   17 
 drivers/usb/dwc2/hw.h                                           |    2 
 drivers/usb/gadget/function/f_ncm.c                             |    2 
 drivers/usb/gadget/udc/core.c                                   |    4 
 drivers/usb/gadget/udc/tegra-xudc.c                             |   53 +-
 drivers/usb/host/sl811-hcd.c                                    |    2 
 drivers/usb/phy/phy-generic.c                                   |    7 
 drivers/usb/serial/cp210x.c                                     |    4 
 drivers/usb/serial/ftdi_sio.c                                   |    2 
 drivers/usb/serial/ftdi_sio_ids.h                               |    6 
 drivers/usb/serial/option.c                                     |    6 
 drivers/usb/storage/isd200.c                                    |   23 
 drivers/usb/typec/tcpm/tcpci.c                                  |    1 
 drivers/usb/typec/ucsi/ucsi.c                                   |   42 +
 drivers/usb/typec/ucsi/ucsi.h                                   |    4 
 drivers/vfio/fsl-mc/vfio_fsl_mc_intr.c                          |    7 
 drivers/vfio/pci/vfio_pci_intrs.c                               |  176 ++++---
 drivers/vfio/platform/vfio_platform_irq.c                       |  106 ++--
 drivers/vfio/virqfd.c                                           |   21 
 drivers/video/fbdev/core/fbmon.c                                |    7 
 drivers/video/fbdev/via/accel.c                                 |    4 
 drivers/virtio/virtio.c                                         |   10 
 drivers/xen/events/events_base.c                                |    5 
 fs/aio.c                                                        |    8 
 fs/btrfs/export.c                                               |    9 
 fs/btrfs/ioctl.c                                                |   25 -
 fs/btrfs/send.c                                                 |   10 
 fs/btrfs/volumes.c                                              |   14 
 fs/exec.c                                                       |    1 
 fs/ext4/mballoc.c                                               |   22 
 fs/ext4/resize.c                                                |    3 
 fs/ext4/super.c                                                 |   12 
 fs/fat/nfs.c                                                    |    6 
 fs/fuse/dir.c                                                   |    4 
 fs/fuse/fuse_i.h                                                |    1 
 fs/fuse/inode.c                                                 |    7 
 fs/isofs/inode.c                                                |   18 
 fs/nfs/direct.c                                                 |   11 
 fs/nfs/write.c                                                  |    2 
 fs/nilfs2/btree.c                                               |    9 
 fs/nilfs2/direct.c                                              |    9 
 fs/nilfs2/inode.c                                               |    2 
 fs/pstore/zone.c                                                |    2 
 fs/sysv/itree.c                                                 |   10 
 fs/ubifs/file.c                                                 |   13 
 fs/vboxsf/super.c                                               |    3 
 include/linux/blkdev.h                                          |   15 
 include/linux/cpu.h                                             |    2 
 include/linux/device.h                                          |    1 
 include/linux/gfp.h                                             |    9 
 include/linux/hyperv.h                                          |   22 
 include/linux/nfs_fs.h                                          |    1 
 include/linux/objtool.h                                         |    8 
 include/linux/pci.h                                             |    6 
 include/linux/phy/tegra/xusb.h                                  |    2 
 include/linux/sunrpc/sched.h                                    |    2 
 include/linux/timer.h                                           |   18 
 include/linux/udp.h                                             |   28 +
 include/linux/vfio.h                                            |    2 
 include/net/cfg802154.h                                         |    1 
 include/net/inet_connection_sock.h                              |    1 
 include/net/sock.h                                              |    7 
 include/soc/fsl/qman.h                                          |    9 
 include/uapi/linux/input-event-codes.h                          |    1 
 init/initramfs.c                                                |    2 
 io_uring/io_uring.c                                             |    2 
 kernel/bounds.c                                                 |    2 
 kernel/bpf/verifier.c                                           |    5 
 kernel/events/core.c                                            |    9 
 kernel/panic.c                                                  |    8 
 kernel/power/suspend.c                                          |    1 
 kernel/printk/printk.c                                          |   63 +-
 kernel/time/timer.c                                             |  164 +++---
 kernel/trace/ring_buffer.c                                      |  193 ++++---
 mm/compaction.c                                                 |    7 
 mm/memory-failure.c                                             |    2 
 mm/memory.c                                                     |    4 
 mm/memtest.c                                                    |    4 
 mm/migrate.c                                                    |    6 
 mm/page_alloc.c                                                 |   10 
 mm/swapfile.c                                                   |   13 
 mm/vmscan.c                                                     |    5 
 net/bluetooth/hci_debugfs.c                                     |   48 +
 net/bluetooth/hci_event.c                                       |   25 +
 net/bridge/netfilter/ebtables.c                                 |    6 
 net/core/sock_map.c                                             |    6 
 net/ipv4/inet_connection_sock.c                                 |   14 
 net/ipv4/ip_gre.c                                               |    5 
 net/ipv4/netfilter/arp_tables.c                                 |    4 
 net/ipv4/netfilter/ip_tables.c                                  |    4 
 net/ipv4/tcp.c                                                  |    2 
 net/ipv4/udp.c                                                  |    7 
 net/ipv4/udp_offload.c                                          |   13 
 net/ipv6/ip6_fib.c                                              |   14 
 net/ipv6/ip6_gre.c                                              |    3 
 net/ipv6/netfilter/ip6_tables.c                                 |    4 
 net/ipv6/udp.c                                                  |    2 
 net/ipv6/udp_offload.c                                          |    8 
 net/mac80211/cfg.c                                              |    5 
 net/mac802154/llsec.c                                           |   18 
 net/mptcp/protocol.c                                            |    3 
 net/mptcp/subflow.c                                             |    3 
 net/netfilter/nf_tables_api.c                                   |   74 ++-
 net/nfc/nci/core.c                                              |    5 
 net/rds/rdma.c                                                  |    2 
 net/sched/act_skbmod.c                                          |   10 
 net/smc/smc_pnet.c                                              |   10 
 net/xfrm/xfrm_user.c                                            |    3 
 scripts/Makefile.extrawarn                                      |    2 
 scripts/dummy-tools/gcc                                         |    6 
 scripts/gcc-x86_32-has-stack-protector.sh                       |    6 
 scripts/kernel-doc                                              |    2 
 security/smack/smack_lsm.c                                      |   12 
 sound/pci/hda/patch_realtek.c                                   |    9 
 sound/sh/aica.c                                                 |   17 
 sound/soc/soc-ops.c                                             |    2 
 tools/iio/iio_utils.c                                           |    2 
 tools/include/linux/objtool.h                                   |    8 
 tools/lib/perf/evlist.c                                         |   18 
 tools/lib/perf/include/internal/evlist.h                        |    4 
 tools/power/x86/x86_energy_perf_policy/x86_energy_perf_policy.c |    1 
 tools/testing/ktest/ktest.pl                                    |    1 
 tools/testing/selftests/mqueue/setting                          |    1 
 tools/testing/selftests/net/reuseaddr_conflict.c                |    2 
 virt/kvm/async_pf.c                                             |   31 +
 334 files changed, 3242 insertions(+), 1521 deletions(-)

Alan Stern (3):
USB: usb-storage: Prevent divide-by-0 error in isd200_ata_command
USB: core: Add hub_get() and hub_put() routines
USB: core: Fix deadlock in usb_deauthorize_interface()

Alban Boyé (1):
platform/x86: touchscreen_dmi: Add an extra entry for a variant of the Chuwi Vi8 tablet

Aleksandr Burakov (1):
fbdev: viafb: fix typo in hw_bitblt_1 and hw_bitblt_2

Aleksandr Loktionov (2):
i40e: fix i40e_count_filters() to count only active/new filters
i40e: fix vf may be used uninitialized in this function warning

Alex Henrie (1):
isofs: handle CDs with bad root inode but good Joliet root directory

Alex Williamson (7):
vfio/platform: Disable virqfds on cleanup vfio/pci: Disable auto-enable of exclusive INTx IRQ vfio/pci: Lock external INTx masking ops
vfio: Introduce interface to flush virqfd inject workqueue vfio/pci: Create persistent INTx handler vfio/platform: Create persistent IRQ handlers vfio/fsl-mc: Block calling interrupt handler without trigger

Alexander Stein (1):
Revert "usb: phy: generic: Get the vbus supply"

Alexander Usyskin (2):
mei: me: add arrow lake point S DID
mei: me: add arrow lake point H DID

Amey Narkhede (1):
PCI: Cache PCIe Device Capabilities register

Amit Pundir (1):
clk: qcom: gcc-sdm845: Add soft dependency on rpmhpd

Andrei Matei (1):
bpf: Protect against int overflow for stack access size

Andrey Jr. Melnikov (1):
ahci: asm1064: correct count of reported ports

Andy Lutomirski (1):
x86/stackprotector/32: Make the canary into a regular percpu variable

Antoine Tenart (2):
udp: do not transition UDP GRO fraglist partial checksums to unnecessary
udp: do not accept non-tunnel GSO skbs landing in a tunnel

Anton Altaparmakov (1):
x86/pm: Work around false positive kmemleak report in msr_build_context()

Aric Cyr (1):
drm/amd/display: Fix nanosec stat overflow

Arnd Bergmann (6):
staging: vc04_services: changen strncpy() to strscpy_pad() dm integrity: fix out-of-range warning
ata: sata_sx4: fix pdc20621_get_from_dimm() on 64-bit
scsi: mylex: Fix sysfs buffer lengths
ata: sata_mv: Fix PCI device ID table declaration compilation warning
media: sta2x11: fix irq handler cast

Arseniy Krasnov (1):
mtd: rawnand: meson: fix scrambling mode value in command macro

Aurélien Jacobs (1):
USB: serial: option: add MeiG Smart SLM320 product

Baokun Li (1):
ext4: correct best extent lstart adjustment logic

Bart Van Assche (1):
fs/aio: Check IOCB_AIO_RW before the struct aio_kiocb conversion

Bastien Nocera (1):
Bluetooth: Fix TOCTOU in HCI debugfs implementation

Bikash Hazarika (2):
scsi: qla2xxx: Update manufacturer details
scsi: qla2xxx: Update manufacturer detail

Bjorn Helgaas (1):
PCI: Work around Intel I210 ROM BAR overlap defect

Borislav Petkov (1):

      x86/bugs: Use sysfs_emit()

Borislav Petkov (AMD) (5):
x86/CPU/AMD: Update the Zenbleed microcode revisions
x86/mce: Make sure to grab mce_sysfs_mutex in set_bank() x86/bugs: Fix the SRSO mitigation on Zen3/4
x86/retpoline: Do the necessary fixup to the Zen3/4 srso return thunk for !SRSO x86/retpoline: Add NOENDBR annotation to the SRSO dummy return thunk

Cameron Williams (1):
USB: serial: add device ID for VeriFone adapter

Chris Wilson (1):
drm/i915/gt: Reset queue_priority_hint on parking

Christian A. Ehrhardt (2):
usb: typec: ucsi: Ack unsupported commands
usb: typec: ucsi: Clear UCSI_CCI_RESET_COMPLETE before reset

Christian Gmeiner (1):
drm/etnaviv: Restore some id values

Christian Häggström (1):

      USB: serial: cp210x: add ID for MGP Instruments PDS100

Christian König (2):
drm/vmwgfx: stop using ttm_bo_create v2 drm/vmwgfx: switch over to the new pin interface v2

Christophe JAILLET (2):
slimbus: core: Remove usage of the deprecated ida_simple_xx() API
vboxsf: Avoid an spurious warning if load_nls_xxx() fails

Claus Hansen Ries (1):
net: ll_temac: platform_get_resource replaced by wrong function

Colin Ian King (1):
usb: sl811-hcd: only defined function checkdone if QUIRK2 is defined

Conrad Kostecki (1):
ahci: asm1064: asm1166: don't limit reported ports

Dai Ngo (1):
SUNRPC: increase size of rpc_wait_queue.qlen from unsigned short to unsigned int

Damian Muszynski (1):
crypto: qat - resolve race condition during AER recovery

Damien Le Moal (2):
block: introduce zone_write_granularity limit
block: Clear zone limits for a non-zoned stacked queue

Dan Carpenter (1):
staging: vc04_services: fix information leak in create_component()

Daniel Drake (1):
Revert "ACPI: PM: Block ASUS B1400CEAE from suspend to idle by default"

Daniel Vogelbacher (1):
USB: serial: ftdi_sio: add support for GMC Z216C Adapter IR-USB

Dave Airlie (1):
amdkfd: use calloc instead of kzalloc to avoid integer overflow

David Hildenbrand (2):
virtio: reenable config if freezing device failed x86/mm/pat: fix VM_PAT handling in COW mappings

David Sterba (3):
btrfs: handle chunk tree lookup error in btrfs_relocate_sys_chunks()
btrfs: export: handle invalid inode or root reference in btrfs_get_parent()
btrfs: send: handle path ref underflow in header iterate_inode_ref()

Davide Caratti (1):
mptcp: don't account accept() of non-MPC client as fallback to TCP

Dmitry Antipov (1):
wifi: ath9k: fix LNA selection in ath_ant_try_scan()

Dominique Martinet (1):
mmc: core: Fix switch on gp3 partition

Duje Mihanović (1):

      arm: dts: marvell: Fix maxium->maxim typo in brownstone dts

Duoming Zhou (1):
ALSA: sh: aica: reorder cleanup operations to avoid UAF bugs

Edward Adam Davis (1):
Bluetooth: btintel: Fix null ptr deref in btintel_read_version

Eric Dumazet (5):
tcp: properly terminate timers for kernel sockets
netfilter: validate user input for expected length net/sched: act_skbmod: prevent kernel-infoleak
erspan: make sure erspan_base_hdr is present in skb->head net/smc: reduce rtnl pressure in smc_pnet_create_pnetids_list()

Fedor Pchelkin (1):
mac802154: fix llsec key resources release in mac802154_llsec_key_del

Felix Fietkau (1):
wifi: mac80211: check/clear fast rx for non-4addr sta VLAN changes

Filipe Manana (1):
btrfs: fix off-by-one chunk length calculation at contains_pending_extent()

Gabor Juhos (4):
clk: qcom: gcc-ipq6018: fix terminating of frequency table arrays
clk: qcom: gcc-ipq8074: fix terminating of frequency table arrays
clk: qcom: mmcc-apq8084: fix terminating of frequency table arrays
clk: qcom: mmcc-msm8974: fix terminating of frequency table arrays

Geert Uytterhoeven (1):
pinctrl: renesas: checker: Limit cfg reg enum checks to provided IDs

Gergo Koteles (1):
Input: allocate keycode for Display refresh rate toggle

Goldwyn Rodrigues (1):
btrfs: allocate btrfs_ioctl_defrag_range_args on stack

Greg Kroah-Hartman (2):
cpufreq: brcmstb-avs-cpufreq: fix up "add check for cpufreq_cpu_get's return value" Linux 5.10.215

Guenter Roeck (4):
parisc: Fix ip_fast_csum
parisc: Fix csum_ipv6_magic on 32-bit systems
parisc: Fix csum_ipv6_magic on 64-bit systems
parisc: Strip upper 32 bit of sum in csum_ipv6_magic for 64-bit builds

Gui-Dong Han (1):
media: xc4000: Fix atomicity violation in xc4000_get_frequency

Guilherme G. Piccoli (1):
scsi: core: Fix unremoved procfs host directory regression

Harald Freudenberger (1):
s390/zcrypt: fix reference counting on zcrypt card objects

Hariprasad Kelam (1):
Octeontx2-af: fix pause frame configuration in GMP mode

Harshit Mogalapalli (1):
VMCI: Fix memcpy() run-time warning in dg_dispatch_as_host()

Heiner Kallweit (1):
r8169: fix issue caused by buggy BIOS on certain boards with RTL8168d

Herve Codina (2):
driver core: Introduce device_link_wait_removal()
of: dynamic: Synchronize of_changeset_destroy() with the devlink removals

Hidenori Kobayashi (1):
media: staging: ipu3-imgu: Set fields before media_entity_pads_init()

Hugo Villeneuve (2):
serial: max310x: fix NULL pointer dereference in I2C instantiation
serial: sc16is7xx: convert from _raw_ to _noinc_ regmap functions for FIFO

Hui Wang (1):
Bluetooth: hci_event: set the conn encrypted before conn establishes

I Gede Agastya Darma Laksana (1):
ALSA: hda/realtek: Update Panasonic CF-SZ6 quirk to support headset with microphone

Ian Abbott (1):
comedi: comedi_test: Prevent timers rescheduling during deletion

Ian Rogers (1):
libperf evlist: Avoid out-of-bounds access

Ingo Molnar (1):
Revert "x86/mm/ident_map: Use gbpages only where full GB page should be mapped."

Jakub Kicinski (1):
selftests: reuseaddr_conflict: add missing new line at the end of the output

Jakub Sitnicki (1):
bpf, sockmap: Prevent lock inversion deadlock in map delete elem

Jameson Thies (1):
usb: typec: ucsi: Clean up UCSI_CABLE_PROP macros

Jan Kara (1):
fat: fix uninitialized field in nostale filehandles

Jani Nikula (4):
drm/panel: do not return negative error codes from drm_panel_get_modes() drm/exynos: do not return negative values from .get_modes() drm/imx/ipuv3: do not return negative values from .get_modes() drm/vc4: hdmi: do not return negative values from .get_modes()

Jason A. Donenfeld (2):
wireguard: netlink: check for dangling peer via is_dead instead of empty list
wireguard: netlink: access device through ctx instead of peer

Jens Axboe (1):
io_uring: ensure '0' is returned on file registration success

Jerome Brunet (1):
nvmem: meson-efuse: fix function pointer type mismatch

Jiawei Fu (iBug) (1):
drivers/nvme: Add quirks for device 126f:2262

Johan Hovold (1):
arm64: dts: qcom: sc7180-trogdor: mark bluetooth address as broken

Johan Jonker (2):
arm64: dts: rockchip: fix rk3328 hdmi ports node
arm64: dts: rockchip: fix rk3399 hdmi ports node

John David Anglin (1):
parisc: Avoid clobbering the C/B bits in the PSW with tophys and tovirt macros

John Ogness (2):
printk: Update @console_may_schedule in console_trylock_spinning()
panic: Flush kernel log buffer at the end

John Sperbeck (1):
init: open /initrd.image with O_LARGEFILE

Jon Hunter (1):
usb: gadget: tegra-xudc: Use dev_err_probe()

Josef Bacik (1):
nfs: fix UAF in direct writes

Josh Poimboeuf (1):
objtool: Add asm version of STACK_FRAME_NON_STANDARD

Josua Mayer (1):
hwmon: (amc6821) add of_match table

Justin Tee (1):
scsi: lpfc: Fix possible memory leak in lpfc_rcv_padisc()

Kailang Yang (1):
ALSA: hda/realtek - Fix headset Mic no show at resume back for Lenovo ALC897 platform

Kim Phillips (2):
x86/cpu: Support AMD Automatic IBRS
x86/cpu: Enable STIBP on AMD if Automatic IBRS is enabled

Krishna Kurapati (1):
usb: gadget: ncm: Fix handling of zero block length packets

Kuniyuki Iwashima (1):
ipv6: Fix infinite recursion in fib6_dump_done().

Kunwu Chan (2):
pstore/zone: Add a null pointer check to the psz_kmsg_read
Input: synaptics-rmi4 - fail probing if memory allocation for "phys" fails

Lee Jones (1):
drm/vmwgfx/vmwgfx_cmdbuf_res: Remove unused variable 'ret'

Leo Ma (1):
drm/amd/display: Fix noise issue on HDMI AV mute

Lin Yujun (1):
Documentation/hw-vuln: Update spectre doc

Liu Shixin (1):
mm/memory-failure: fix an incorrect use of tail pages

Luiz Augusto von Dentz (1):
Bluetooth: btintel: Fixe build regression

Mahmoud Adam (1):
net/rds: fix possible cp null dereference

Manjunath Patil (1):
RDMA/cm: add timeout to cm_destroy_id wait

Marco Felsch (1):
usb: typec: tcpci: add generic tcpci fallback compatible

Marek Szyprowski (1):
cpufreq: dt: always allocate zeroed cpumask

Mathias Nyman (1):
usb: port: Don't try to peer unused USB ports based on location

Matthew Wilcox (Oracle) (2):
bounds: support non-power-of-two CONFIG_NR_CPUS
ubifs: Set page uptodate in the correct place

Maulik Shah (1):
PM: suspend: Set mem_sleep_current during kernel command line setup

Max Filippov (1):
exec: Fix NOMMU linux_binprm::exec in transfer_args_to_stack()

Maximilian Heyne (2):
ext4: fix corruption during on-line resize xen/events: close evtchn after mapping cleanup

Michael Ellerman (1):
powerpc/fsl: Fix mfpmr build errors with newer binutils

Michael Kelley (1):
Drivers: hv: vmbus: Calculate ring buffer size for more efficient use of memory

Michael Roth (1):
x86/head/64: Re-enable stack protection

Michal Kubecek (1):
kbuild: dummy-tools: adjust to stricter stackprotector check

Mika Westerberg (3):
PCI/ASPM: Make Intel DG2 L1 acceptable latency unlimited PCI/DPC: Quirk PIO log size for certain Intel Root Ports PCI/DPC: Quirk PIO log size for Intel Ice Lake Root Ports

Mikko Rapeli (2):
mmc: core: Initialize mmc_blk_ioc_data
mmc: core: Avoid negative index with array access

Miklos Szeredi (2):
fuse: fix root lookup with nonzero generation
fuse: don't unhash root

Mikulas Patocka (1):
dm snapshot: fix lockup in dm_exception_table_exit

Min Li (1):
block: add check that partition length needs to be aligned with block size

Minas Harutyunyan (4):
usb: dwc2: host: Fix remote wakeup from hibernation
usb: dwc2: host: Fix hibernation flow
usb: dwc2: host: Fix ISOC flow in DDMA mode
usb: dwc2: gadget: LPM flow fix

Muhammad Usama Anjum (1):
scsi: lpfc: Correct size for wqe for memset()

Nathan Chancellor (4):
kbuild: Move -Wenum-{compare-conditional,enum-conversion} into W=1
xfrm: Avoid clang fortify warning in copy_to_user_tmpl()
powerpc: xor_vmx: Add '-mhard-float' to CFLAGS
hexagon: vmlinux.lds.S: handle attributes section

Nicolas Pitre (1):
vt: fix unicode buffer corruption when deleting characters

Nikita Kiryushin (1):
ACPICA: debugger: check status of acpi_evaluate_object() in acpi_db_walk_for_fields()

Niklas Cassel (1):
PCI: dwc: endpoint: Fix advertised resizable BAR size

Oliver Neukum (1):
usb: cdc-wdm: close race between read and workqueue

Pablo Neira Ayuso (9):
netfilter: nf_tables: mark set as dead when unbinding anonymous set with timeout
netfilter: nf_tables: disallow anonymous set with timeout flag
netfilter: nf_tables: reject constant set with timeout
netfilter: nf_tables: disallow timeout for anonymous sets
netfilter: nf_tables: reject new basechain after table flag update
netfilter: nf_tables: flush pending destroy work before exit_net release
netfilter: nf_tables: release batch on table validation from abort path
netfilter: nf_tables: release mutex after nft_gc_seq_end from abort path
netfilter: nf_tables: discard table flag update with pending basechain deletion

Paul Barker (1):
net: ravb: Always process TX descriptor ring

Paul Menzel (1):
PCI/DPC: Quirk PIO log size for Intel Raptor Lake Root Ports

Pawan Gupta (11):
x86/asm: Add _ASM_RIP() macro for x86-64 (%rip) suffix 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 x86/mmio: Disable KVM mitigation when X86_FEATURE_CLEAR_CPU_BUF is set Documentation/hw-vuln: Add documentation for RFDS x86/rfds: Mitigate Register File Data Sampling (RFDS) KVM/x86: Export RFDS_NO and RFDS_CLEAR to guests

Peter Collingbourne (1):
serial: Lock console when calling into driver before registration

Petr Mladek (1):
printk/console: Split out code that enables default console

Petre Rodan (1):
tools: iio: replace seekdir() in iio_generic_buffer

Piotr Wejman (1):
net: stmmac: fix rx queue priority assignment

Przemek Kitszel (1):
ixgbe: avoid sleeping allocation in ixgbe_ipsec_vf_add_sa()

Pu Wen (1):
x86/srso: Add SRSO mitigation for Hygon processors

Qiang Zhang (1):
memtest: use {READ,WRITE}_ONCE in memory scanning

Qingliang Li (1):
PM: sleep: wakeirq: fix wake irq warning in system suspend

Quinn Tran (3):
scsi: qla2xxx: Split FCE|EFT trace control
scsi: qla2xxx: Fix command flush on cable pull
scsi: qla2xxx: Delay I/O Abort on PCI error

Rafael J. Wysocki (1):
PCI/PM: Drain runtime-idle callbacks before driver removal

Randy Dunlap (2):
sparc64: NMI watchdog: fix return value of __setup handler
sparc: vDSO: fix return value of __setup handler

Ricardo B. Marliere (1):
ktest: force $buildonly = 1 for 'make_warnings_file' test type

Richard Weinberger (1):
ubi: Check for too small LEB size in VTBL code

Roberto Sassu (2):
smack: Set SMACK64TRANSMUTE only for dirs in smack_inode_setxattr()
smack: Handle SMACK64TRANSMUTE in smack_inode_setsecurity()

Rodrigo Siqueira (1):
drm/amd/display: Return the correct HDCP error code

Roman Smirnov (2):
block: prevent division by zero in blk_rq_stat_sum()
fbmon: prevent division by zero in fb_videomode_from_videomode()

Ryan Roberts (1):
mm: swap: fix race between free_swap_and_cache() and swapoff()

Ryosuke Yasuoka (1):
nfc: nci: Fix uninit-value in nci_dev_up and nci_ntf_packet

Ryusuke Konishi (2):
nilfs2: fix failure to detect DAT corruption in btree and direct mappings
nilfs2: prevent kernel bug at submit_bh_wbc()

Salvatore Bonaccorso (1):
scripts: kernel-doc: Fix syntax error due to undeclared args variable

Samasth Norway Ananda (1):
tools/power x86_energy_perf_policy: Fix file leak in get_pkg_num()

Samuel Holland (1):
riscv: Fix spurious errors from __get/put_kernel_nofault

Samuel Thibault (1):
speakup: Fix 8bit characters from direct synth

Sandipan Das (1):
x86/cpufeatures: Add new word for scattered features

Sean Anderson (4):
soc: fsl: qbman: Always disable interrupts when taking cgr_lock
soc: fsl: qbman: Add helper for sanity checking cgr ops
soc: fsl: qbman: Add CGR update function
soc: fsl: qbman: Use raw spinlock for cgr_lock

Sean Christopherson (3):
KVM: Always flush async #PF workqueue when vCPU is being destroyed
KVM: SVM: Flush pages under kvm->lock to fix UAF in svm_register_enc_region() x86/cpufeatures: Add CPUID_LNX_5 to track recently added Linux-defined word

Sean V Kelley (2):
PCI/ERR: Cache RCEC EA Capability offset in pci_init_capabilities() PCI/ERR: Clear AER status only when we control AER

SeongJae Park (1):
selftests/mqueue: Set timeout to 180 seconds

Shannon Nelson (1):
ionic: set adminq irq affinity

Sherry Sun (1):
tty: serial: fsl_lpuart: avoid idle preamble pending if CTS is enabled

Shin'ichiro Kawasaki (1):
scsi: sd: Fix wrong zone_write_granularity value during revalidate

Song Liu (1):
Revert "Revert "md/raid5: Wait for MD_SB_CHANGE_PENDING in raid5d""

Stanislaw Gruszka (1):
PCI/AER: Block runtime suspend when handling errors

Stephen Lee (1):
ASoC: ops: Fix wraparound for mask in snd_soc_get_volsw

Steven Rostedt (Google) (5):
ring-buffer: Fix waking up ring buffer readers
ring-buffer: Do not set shortest_full when full target is hit
ring-buffer: Fix resetting of shortest_full
ring-buffer: Fix full_waiters_pending in poll
net: hns3: tracing: fix hclgevf trace event strings

Su Hui (1):
octeontx2-pf: check negative error code in otx2_open()

Sumanth Korikkar (1):
s390/entry: align system call table on 8 bytes

Sumit Garg (1):
tee: optee: Fix kernel panic caused by incorrect error handling

Svyatoslav Pankratov (1):
crypto: qat - fix double free during reset

Tetsuo Handa (1):
sysv: don't call sb_bread() with pointers_lock held

Thadeu Lima de Souza Cascardo (1):
tty: n_gsm: require CAP_NET_ADMIN to attach N_GSM0710 ldisc

Thomas Gleixner (3):
timers: Update kernel-doc for various functions
timers: Use del_timer_sync() even on UP
timers: Rename del_timer_sync() to timer_delete_sync()

Tim Schumacher (1):
efivarfs: Request at most 512 bytes for variable names

Toru Katagiri (1):

      USB: serial: cp210x: add pid/vid for TDK NC0110013M and MM0110113M

Uwe Kleine-König (1):

      PCI: Drop pci_device_remove() test of pci_dev->driver

Vasiliy Kovalev (1):
VMCI: Fix possible memcpy() run-time warning in vmci_datagram_invoke_guest_handler()

Venkata Lakshmi Narayana Gubba (1):
arm64: dts: qcom: sc7180: Remove clock for bluetooth on Trogdor

Vlastimil Babka (1):
mm, vmscan: prevent infinite loop for costly GFP_NOIO | __GFP_RETRY_MAYFAIL allocations

Wayne Chang (2):
phy: tegra: xusb: Add API to retrieve the port number of phy
usb: gadget: tegra-xudc: Fix USB3 PHY retrieval logic

Wolfram Sang (1):
mmc: tmio: avoid concurrent runs of mmc_request_done()

Xu Wang (1):
vxge: remove unnecessary cast in kfree()

Yang Jihong (1):
perf/core: Fix reentry problem in perf_output_read_group()

Ye Bin (1):
ext4: forbid commit inconsistent quota data when errors=remount-ro

Yu Kuai (1):

      dm-raid: fix lockdep waring in "pers->hot_add_disk"

Zack Rusin (2):
drm/vmwgfx: Fix some static checker warnings
drm/vmwgfx: Fix possible null pointer derefence with invalid contexts

Zhang Yi (2):
ubi: correct the calculation of fastmap size
ext4: add a hint for block bitmap corrupt state in mb_groups

Zheng Wang (1):
wifi: brcmfmac: Fix use-after-free bug in brcmf_cfg80211_detach

Zi Yan (1):
mm/migrate: set swap entry values of THP tail pages properly.

Ziyang Xuan (1):
netfilter: nf_tables: Fix potential data-race in __nft_flowtable_type_get()

linke li (1):

      ring-buffer: use READ_ONCE() to read cpu_buffer->commit_page in concurrent environment

yuan linyu (1):
usb: udc: remove warning when queue disabled ep

author maintainer
#1 lore raw
Documentation/ABI/testing/sysfs-devices-system-cpu +1 -0
index bfb4f4fada33..2a273bfebed0 100644
@@ -507,6 +507,7 @@ What:		/sys/devices/system/cpu/vulnerabilities
 		/sys/devices/system/cpu/vulnerabilities/mds
 		/sys/devices/system/cpu/vulnerabilities/meltdown
 		/sys/devices/system/cpu/vulnerabilities/mmio_stale_data
+		/sys/devices/system/cpu/vulnerabilities/reg_file_data_sampling
 		/sys/devices/system/cpu/vulnerabilities/retbleed
 		/sys/devices/system/cpu/vulnerabilities/spec_store_bypass
 		/sys/devices/system/cpu/vulnerabilities/spectre_v1
Documentation/admin-guide/hw-vuln/index.rst +1 -0
index 84742be223ff..e020d1637e1c 100644
@@ -18,3 +18,4 @@ are configurable at compile, boot or run time.
    processor_mmio_stale_data.rst
    gather_data_sampling.rst
    srso
+   reg-file-data-sampling
Documentation/admin-guide/hw-vuln/reg-file-data-sampling.rst new file +104 -0

104 lines not on this page · raw message

Documentation/admin-guide/hw-vuln/spectre.rst +11 -7
index 0fba3758d0da..305600351209 100644
@@ -484,11 +484,14 @@ Spectre variant 2
 
    Systems which support enhanced IBRS (eIBRS) enable IBRS protection once at
    boot, by setting the IBRS bit, and they're automatically protected against
-   Spectre v2 variant attacks, including cross-thread branch target injections
-   on SMT systems (STIBP). In other words, eIBRS enables STIBP too.
+   Spectre v2 variant attacks.
 
-   Legacy IBRS systems clear the IBRS bit on exit to userspace and
-   therefore explicitly enable STIBP for that
+   On Intel's enhanced IBRS systems, this includes cross-thread branch target
+   injections on SMT systems (STIBP). In other words, Intel eIBRS enables
+   STIBP, too.
+
+   AMD Automatic IBRS does not protect userspace, and Legacy IBRS systems clear
+   the IBRS bit on exit to userspace, therefore both explicitly enable STIBP.
 
    The retpoline mitigation is turned on by default on vulnerable
    CPUs. It can be forced on or off by the administrator
@@ -622,9 +625,10 @@ kernel command line.
                 retpoline,generic       Retpolines
                 retpoline,lfence        LFENCE; indirect branch
                 retpoline,amd           alias for retpoline,lfence
-                eibrs                   enhanced IBRS
-                eibrs,retpoline         enhanced IBRS + Retpolines
-                eibrs,lfence            enhanced IBRS + LFENCE
+                eibrs                   Enhanced/Auto IBRS
+                eibrs,retpoline         Enhanced/Auto IBRS + Retpolines
+                eibrs,lfence            Enhanced/Auto IBRS + LFENCE
+                ibrs                    use IBRS to protect kernel
 
 		Not specifying this option is equivalent to
 		spectre_v2=auto.
Documentation/admin-guide/kernel-parameters.txt +24 -3
index f1f7c068cf65..8e4882bb8cf8 100644
@@ -993,6 +993,26 @@
 			The filter can be disabled or changed to another
 			driver later using sysfs.
 
+	reg_file_data_sampling=
+			[X86] Controls mitigation for Register File Data
+			Sampling (RFDS) vulnerability. RFDS is a CPU
+			vulnerability which may allow userspace to infer
+			kernel data values previously stored in floating point
+			registers, vector registers, or integer registers.
+			RFDS only affects Intel Atom processors.
+
+			on:	Turns ON the mitigation.
+			off:	Turns OFF the mitigation.
+
+			This parameter overrides the compile time default set
+			by CONFIG_MITIGATION_RFDS. Mitigation cannot be
+			disabled when other VERW based mitigations (like MDS)
+			are enabled. In order to disable RFDS mitigation all
+			VERW based mitigations need to be disabled.
+
+			For details see:
+			Documentation/admin-guide/hw-vuln/reg-file-data-sampling.rst
+
 	driver_async_probe=  [KNL]
 			List of driver names to be probed asynchronously.
 			Format: <driver_name1>,<driver_name2>...
@@ -2919,6 +2939,7 @@
 					       nopti [X86,PPC]
 					       nospectre_v1 [X86,PPC]
 					       nospectre_v2 [X86,PPC,S390,ARM64]
+					       reg_file_data_sampling=off [X86]
 					       retbleed=off [X86]
 					       spec_store_bypass_disable=off [X86,PPC]
 					       spectre_v2_user=off [X86]
@@ -5091,9 +5112,9 @@
 			retpoline,generic - Retpolines
 			retpoline,lfence  - LFENCE; indirect branch
 			retpoline,amd     - alias for retpoline,lfence
-			eibrs		  - enhanced IBRS
-			eibrs,retpoline   - enhanced IBRS + Retpolines
-			eibrs,lfence      - enhanced IBRS + LFENCE
+			eibrs		  - Enhanced/Auto IBRS
+			eibrs,retpoline   - Enhanced/Auto IBRS + Retpolines
+			eibrs,lfence      - Enhanced/Auto IBRS + LFENCE
 			ibrs		  - use IBRS to protect kernel
 
 			Not specifying this option is equivalent to
Documentation/block/queue-sysfs.rst +7 -0
index 2638d3446b79..c8bf8bc3c03a 100644
@@ -273,4 +273,11 @@ devices are described in the ZBC (Zoned Block Commands) and ZAC
 do not support zone commands, they will be treated as regular block devices
 and zoned will report "none".
 
+zone_write_granularity (RO)
+---------------------------
+This indicates the alignment constraint, in bytes, for write operations in
+sequential zones of zoned block devices (devices with a zoned attributed
+that reports "host-managed" or "host-aware"). This value is always 0 for
+regular block devices.
+
 Jens Axboe <[email protected]>, February 2009
Documentation/x86/mds.rst +27 -11
index 5d4330be200f..e801df0bb3a8 100644
@@ -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
Makefile +1 -1
index 88d4de93aed7..2af799d3ce78 100644
@@ -1,7 +1,7 @@
 # SPDX-License-Identifier: GPL-2.0
 VERSION = 5
 PATCHLEVEL = 10
-SUBLEVEL = 214
+SUBLEVEL = 215
 EXTRAVERSION =
 NAME = Dare mighty things
 
arch/arm/boot/dts/mmp2-brownstone.dts +1 -1
index 04f1ae1382e7..bc64348b8218 100644
@@ -28,7 +28,7 @@ &uart3 {
 &twsi1 {
 	status = "okay";
 	pmic: max8925@3c {
-		compatible = "maxium,max8925";
+		compatible = "maxim,max8925";
 		reg = <0x3c>;
 		interrupts = <1>;
 		interrupt-parent = <&intcmux4>;
arch/arm64/boot/dts/qcom/sc7180-trogdor.dtsi +2 -1
index cb2c47f13a8a..9ce8bfbf7ea2 100644
@@ -810,7 +810,8 @@ bluetooth: bluetooth {
 		vddrf-supply = <&pp1300_l2c>;
 		vddch0-supply = <&pp3300_l10c>;
 		max-speed = <3200000>;
-		clocks = <&rpmhcc RPMH_RF_CLK2>;
+
+		qcom,local-bd-address-broken;
 	};
 };
 
arch/arm64/boot/dts/rockchip/rk3328.dtsi +10 -1
index 72112fe05a5c..10df6636a6b6 100644
@@ -732,11 +732,20 @@ hdmi: hdmi@ff3c0000 {
 		status = "disabled";
 
 		ports {
-			hdmi_in: port {
+			#address-cells = <1>;
+			#size-cells = <0>;
+
+			hdmi_in: port@0 {
+				reg = <0>;
+
 				hdmi_in_vop: endpoint {
 					remote-endpoint = <&vop_out_hdmi>;
 				};
 			};
+
+			hdmi_out: port@1 {
+				reg = <1>;
+			};
 		};
 	};
 
arch/arm64/boot/dts/rockchip/rk3399.dtsi +10 -2
index 3180f576ed02..e2515218ff73 100644
@@ -1769,6 +1769,7 @@ simple-audio-card,codec {
 	hdmi: hdmi@ff940000 {
 		compatible = "rockchip,rk3399-dw-hdmi";
 		reg = <0x0 0xff940000 0x0 0x20000>;
+		reg-io-width = <4>;
 		interrupts = <GIC_SPI 23 IRQ_TYPE_LEVEL_HIGH 0>;
 		clocks = <&cru PCLK_HDMI_CTRL>,
 			 <&cru SCLK_HDMI_SFR>,
@@ -1777,13 +1778,16 @@ hdmi: hdmi@ff940000 {
 			 <&cru PLL_VPLL>;
 		clock-names = "iahb", "isfr", "cec", "grf", "vpll";
 		power-domains = <&power RK3399_PD_HDCP>;
-		reg-io-width = <4>;
 		rockchip,grf = <&grf>;
 		#sound-dai-cells = <0>;
 		status = "disabled";
 
 		ports {
-			hdmi_in: port {
+			#address-cells = <1>;
+			#size-cells = <0>;
+
+			hdmi_in: port@0 {
+				reg = <0>;
 				#address-cells = <1>;
 				#size-cells = <0>;
 
@@ -1796,6 +1800,10 @@ hdmi_in_vopl: endpoint@1 {
 					remote-endpoint = <&vopl_out_hdmi>;
 				};
 			};
+
+			hdmi_out: port@1 {
+				reg = <1>;
+			};
 		};
 	};
 
arch/hexagon/kernel/vmlinux.lds.S +1 -0
index 57465bff1fe4..df7f349c8d4f 100644
@@ -64,6 +64,7 @@ SECTIONS
 	STABS_DEBUG
 	DWARF_DEBUG
 	ELF_DETAILS
+	.hexagon.attributes 0 : { *(.hexagon.attributes) }
 
 	DISCARDS
 }
arch/parisc/include/asm/assembly.h +10 -8
index a39250cb7dfc..d3f23ed570c6 100644
@@ -83,26 +83,28 @@
 	 * version takes two arguments: a src and destination register.
 	 * However, the source and destination registers can not be
 	 * the same register.
+	 *
+	 * We use add,l to avoid clobbering the C/B bits in the PSW.
 	 */
 
 	.macro  tophys  grvirt, grphys
-	ldil    L%(__PAGE_OFFSET), \grphys
-	sub     \grvirt, \grphys, \grphys
+	ldil    L%(-__PAGE_OFFSET), \grphys
+	addl    \grvirt, \grphys, \grphys
 	.endm
-	
+
 	.macro  tovirt  grphys, grvirt
 	ldil    L%(__PAGE_OFFSET), \grvirt
-	add     \grphys, \grvirt, \grvirt
+	addl    \grphys, \grvirt, \grvirt
 	.endm
 
 	.macro  tophys_r1  gr
-	ldil    L%(__PAGE_OFFSET), %r1
-	sub     \gr, %r1, \gr
+	ldil    L%(-__PAGE_OFFSET), %r1
+	addl    \gr, %r1, \gr
 	.endm
-	
+
 	.macro  tovirt_r1  gr
 	ldil    L%(__PAGE_OFFSET), %r1
-	add     \gr, %r1, \gr
+	addl    \gr, %r1, \gr
 	.endm
 
 	.macro delay value
arch/parisc/include/asm/checksum.h +6 -4
index 3c43baca7b39..2aceebcd695c 100644
@@ -40,7 +40,7 @@ static inline __sum16 ip_fast_csum(const void *iph, unsigned int ihl)
 "	addc		%0, %5, %0\n"
 "	addc		%0, %3, %0\n"
 "1:	ldws,ma		4(%1), %3\n"
-"	addib,<		0, %2, 1b\n"
+"	addib,>		-1, %2, 1b\n"
 "	addc		%0, %3, %0\n"
 "\n"
 "	extru		%0, 31, 16, %4\n"
@@ -126,6 +126,7 @@ static __inline__ __sum16 csum_ipv6_magic(const struct in6_addr *saddr,
 	** Try to keep 4 registers with "live" values ahead of the ALU.
 	*/
 
+"	depdi		0, 31, 32, %0\n"/* clear upper half of incoming checksum */
 "	ldd,ma		8(%1), %4\n"	/* get 1st saddr word */
 "	ldd,ma		8(%2), %5\n"	/* get 1st daddr word */
 "	add		%4, %0, %0\n"
@@ -137,8 +138,8 @@ static __inline__ __sum16 csum_ipv6_magic(const struct in6_addr *saddr,
 "	add,dc		%3, %0, %0\n"  /* fold in proto+len | carry bit */
 "	extrd,u		%0, 31, 32, %4\n"/* copy upper half down */
 "	depdi		0, 31, 32, %0\n"/* clear upper half */
-"	add		%4, %0, %0\n"	/* fold into 32-bits */
-"	addc		0, %0, %0\n"	/* add carry */
+"	add,dc		%4, %0, %0\n"	/* fold into 32-bits, plus carry */
+"	addc		0, %0, %0\n"	/* add final carry */
 
 #else
 
@@ -163,7 +164,8 @@ static __inline__ __sum16 csum_ipv6_magic(const struct in6_addr *saddr,
 "	ldw,ma		4(%2), %7\n"	/* 4th daddr */
 "	addc		%6, %0, %0\n"
 "	addc		%7, %0, %0\n"
-"	addc		%3, %0, %0\n"	/* fold in proto+len, catch carry */
+"	addc		%3, %0, %0\n"	/* fold in proto+len */
+"	addc		0, %0, %0\n"	/* add carry */
 
 #endif
 	: "=r" (sum), "=r" (saddr), "=r" (daddr), "=r" (len),
arch/powerpc/include/asm/reg_fsl_emb.h +9 -2
index a21f529c43d9..8359c06d92d9 100644
@@ -12,9 +12,16 @@
 #ifndef __ASSEMBLY__
 /* Performance Monitor Registers */
 #define mfpmr(rn)	({unsigned int rval; \
-			asm volatile("mfpmr %0," __stringify(rn) \
+			asm volatile(".machine push; " \
+				     ".machine e300; " \
+				     "mfpmr %0," __stringify(rn) ";" \
+				     ".machine pop; " \
 				     : "=r" (rval)); rval;})
-#define mtpmr(rn, v)	asm volatile("mtpmr " __stringify(rn) ",%0" : : "r" (v))
+#define mtpmr(rn, v)	asm volatile(".machine push; " \
+				     ".machine e300; " \
+				     "mtpmr " __stringify(rn) ",%0; " \
+				     ".machine pop; " \
+				     : : "r" (v))
 #endif /* __ASSEMBLY__ */
 
 /* Freescale Book E Performance Monitor APU Registers */
arch/powerpc/lib/Makefile +1 -1
index 321cab5c3ea0..bd5012aa94e3 100644
@@ -67,6 +67,6 @@ obj-$(CONFIG_PPC_LIB_RHEAP) += rheap.o
 obj-$(CONFIG_FTR_FIXUP_SELFTEST) += feature-fixups-test.o
 
 obj-$(CONFIG_ALTIVEC)	+= xor_vmx.o xor_vmx_glue.o
-CFLAGS_xor_vmx.o += -maltivec $(call cc-option,-mabi=altivec)
+CFLAGS_xor_vmx.o += -mhard-float -maltivec $(call cc-option,-mabi=altivec)
 
 obj-$(CONFIG_PPC64) += $(obj64-y)
arch/riscv/include/asm/uaccess.h +2 -2
index 66af6abfe8af..c351231b7792 100644
@@ -468,7 +468,7 @@ unsigned long __must_check clear_user(void __user *to, unsigned long n)
 
 #define __get_kernel_nofault(dst, src, type, err_label)			\
 do {									\
-	long __kr_err;							\
+	long __kr_err = 0;						\
 									\
 	__get_user_nocheck(*((type *)(dst)), (type *)(src), __kr_err);	\
 	if (unlikely(__kr_err))						\
@@ -477,7 +477,7 @@ do {									\
 
 #define __put_kernel_nofault(dst, src, type, err_label)			\
 do {									\
-	long __kr_err;							\
+	long __kr_err = 0;						\
 									\
 	__put_user_nocheck(*((type *)(src)), (type *)(dst), __kr_err);	\
 	if (unlikely(__kr_err))						\
arch/s390/kernel/entry.S +1 -0
index 88ecbcf097a3..127a8d295ae3 100644
@@ -1298,6 +1298,7 @@ ENDPROC(stack_overflow)
 
 #endif
 	.section .rodata, "a"
+	.balign	8
 #define SYSCALL(esame,emu)	.quad __s390x_ ## esame
 	.globl	sys_call_table
 sys_call_table:
arch/sparc/kernel/nmi.c +1 -1
index 060fff95a305..fbf25e926f67 100644
@@ -274,7 +274,7 @@ static int __init setup_nmi_watchdog(char *str)
 	if (!strncmp(str, "panic", 5))
 		panic_on_timeout = 1;
 
-	return 0;
+	return 1;
 }
 __setup("nmi_watchdog=", setup_nmi_watchdog);
 
arch/sparc/vdso/vma.c +3 -4
index cc19e09b0fa1..b073153c711a 100644
@@ -449,9 +449,8 @@ static __init int vdso_setup(char *s)
 	unsigned long val;
 
 	err = kstrtoul(s, 10, &val);
-	if (err)
-		return err;
-	vdso_enabled = val;
-	return 0;
+	if (!err)
+		vdso_enabled = val;
+	return 1;
 }
 __setup("vdso=", vdso_setup);
arch/x86/Kconfig +13 -5
index 6dc670e36393..9b3fa05e4622 100644
@@ -352,10 +352,6 @@ config X86_64_SMP
 	def_bool y
 	depends on X86_64 && SMP
 
-config X86_32_LAZY_GS
-	def_bool y
-	depends on X86_32 && !STACKPROTECTOR
-
 config ARCH_SUPPORTS_UPROBES
 	def_bool y
 
@@ -378,7 +374,8 @@ config CC_HAS_SANE_STACKPROTECTOR
 	default $(success,$(srctree)/scripts/gcc-x86_32-has-stack-protector.sh $(CC))
 	help
 	   We have to make sure stack protector is unconditionally disabled if
-	   the compiler produces broken code.
+	   the compiler produces broken code or if it does not let us control
+	   the segment on 32-bit kernels.
 
 menu "Processor type and features"
 
@@ -2511,6 +2508,17 @@ config GDS_FORCE_MITIGATION
 
 	  If in doubt, say N.
 
+config MITIGATION_RFDS
+	bool "RFDS Mitigation"
+	depends on CPU_SUP_INTEL
+	default y
+	help
+	  Enable mitigation for Register File Data Sampling (RFDS) by default.
+	  RFDS is a hardware vulnerability which affects Intel Atom CPUs. It
+	  allows unprivileged speculative access to stale data previously
+	  stored in floating point, vector and integer registers.
+	  See also <file:Documentation/admin-guide/hw-vuln/reg-file-data-sampling.rst>
+
 endif
 
 config ARCH_HAS_ADD_PAGES
arch/x86/Makefile +8 -0
index 1f796050c6dd..8b9fa777f513 100644
@@ -87,6 +87,14 @@ ifeq ($(CONFIG_X86_32),y)
 
         # temporary until string.h is fixed
         KBUILD_CFLAGS += -ffreestanding
+
+	ifeq ($(CONFIG_STACKPROTECTOR),y)
+		ifeq ($(CONFIG_SMP),y)
+			KBUILD_CFLAGS += -mstack-protector-guard-reg=fs -mstack-protector-guard-symbol=__stack_chk_guard
+		else
+			KBUILD_CFLAGS += -mstack-protector-guard=global
+		endif
+	endif
 else
         BITS := 64
         UTS_MACHINE := x86_64
arch/x86/entry/entry.S +23 -0
index bfb7bcb362bc..09e99d13fc0b 100644
@@ -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 +7 -52

102 lines not on this page · raw message

arch/x86/entry/entry_64.S +10 -0
index 23212c53cef7..1631a9a1566e 100644
@@ -615,6 +615,7 @@ SYM_INNER_LABEL(swapgs_restore_regs_and_return_to_usermode, SYM_L_GLOBAL)
 	/* Restore RDI. */
 	popq	%rdi
 	SWAPGS
+	CLEAR_CPU_BUFFERS
 	INTERRUPT_RETURN
 
 
@@ -721,6 +722,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
@@ -1487,6 +1490,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
@@ -1504,6 +1513,7 @@ SYM_CODE_END(asm_exc_nmi)
 SYM_CODE_START(ignore_sysret)
 	UNWIND_HINT_EMPTY
 	mov	$-ENOSYS, %eax
+	CLEAR_CPU_BUFFERS
 	sysretl
 SYM_CODE_END(ignore_sysret)
 #endif
arch/x86/entry/entry_64_compat.S +1 -0
index 4d637a965efb..7f09e7ad3c74 100644
@@ -319,6 +319,7 @@ sysret32_from_system_call:
 	xorl	%r9d, %r9d
 	xorl	%r10d, %r10d
 	swapgs
+	CLEAR_CPU_BUFFERS
 	sysretl
 SYM_CODE_END(entry_SYSCALL_compat)
 
arch/x86/include/asm/asm-prototypes.h +1 -0
index 8f80de627c60..5cdccea45554 100644
@@ -12,6 +12,7 @@
 #include <asm/special_insns.h>
 #include <asm/preempt.h>
 #include <asm/asm.h>
+#include <asm/nospec-branch.h>
 
 #ifndef CONFIG_X86_CMPXCHG64
 extern void cmpxchg8b_emu(void);
arch/x86/include/asm/asm.h +5 -0
index 0603c7423aca..c01005d7a4ed 100644
@@ -6,12 +6,14 @@
 # define __ASM_FORM(x)	x
 # define __ASM_FORM_RAW(x)     x
 # define __ASM_FORM_COMMA(x) x,
+# define __ASM_REGPFX			%
 #else
 #include <linux/stringify.h>
 
 # define __ASM_FORM(x)	" " __stringify(x) " "
 # define __ASM_FORM_RAW(x)     __stringify(x)
 # define __ASM_FORM_COMMA(x) " " __stringify(x) ","
+# define __ASM_REGPFX			%%
 #endif
 
 #ifndef __x86_64__
@@ -48,6 +50,9 @@
 #define _ASM_SI		__ASM_REG(si)
 #define _ASM_DI		__ASM_REG(di)
 
+/* Adds a (%rip) suffix on 64 bits only; for immediate memory references */
+#define _ASM_RIP(x)	__ASM_SEL_RAW(x, x (__ASM_REGPFX rip))
+
 #ifndef __x86_64__
 /* 32 bit */
 
arch/x86/include/asm/cpufeature.h +6 -2
index cc3f62f5d551..955ca6b13e35 100644
@@ -33,6 +33,8 @@ enum cpuid_leafs
 	CPUID_7_EDX,
 	CPUID_8000_001F_EAX,
 	CPUID_8000_0021_EAX,
+	CPUID_LNX_5,
+	NR_CPUID_WORDS,
 };
 
 #ifdef CONFIG_X86_FEATURE_NAMES
@@ -93,8 +95,9 @@ extern const char * const x86_bug_flags[NBUGINTS*32];
 	   CHECK_BIT_IN_MASK_WORD(REQUIRED_MASK, 18, feature_bit) ||	\
 	   CHECK_BIT_IN_MASK_WORD(REQUIRED_MASK, 19, feature_bit) ||	\
 	   CHECK_BIT_IN_MASK_WORD(REQUIRED_MASK, 20, feature_bit) ||	\
+	   CHECK_BIT_IN_MASK_WORD(REQUIRED_MASK, 21, feature_bit) ||	\
 	   REQUIRED_MASK_CHECK					  ||	\
-	   BUILD_BUG_ON_ZERO(NCAPINTS != 21))
+	   BUILD_BUG_ON_ZERO(NCAPINTS != 22))
 
 #define DISABLED_MASK_BIT_SET(feature_bit)				\
 	 ( CHECK_BIT_IN_MASK_WORD(DISABLED_MASK,  0, feature_bit) ||	\
@@ -118,8 +121,9 @@ extern const char * const x86_bug_flags[NBUGINTS*32];
 	   CHECK_BIT_IN_MASK_WORD(DISABLED_MASK, 18, feature_bit) ||	\
 	   CHECK_BIT_IN_MASK_WORD(DISABLED_MASK, 19, feature_bit) ||	\
 	   CHECK_BIT_IN_MASK_WORD(DISABLED_MASK, 20, feature_bit) ||	\
+	   CHECK_BIT_IN_MASK_WORD(DISABLED_MASK, 21, feature_bit) ||	\
 	   DISABLED_MASK_CHECK					  ||	\
-	   BUILD_BUG_ON_ZERO(NCAPINTS != 21))
+	   BUILD_BUG_ON_ZERO(NCAPINTS != 22))
 
 #define cpu_has(c, bit)							\
 	(__builtin_constant_p(bit) && REQUIRED_MASK_BIT_SET(bit) ? 1 :	\
arch/x86/include/asm/cpufeatures.h +4 -1
index 5a54c3685a06..e1bc2bad8cff 100644
@@ -13,7 +13,7 @@
 /*
  * Defines x86 CPU feature bits
  */
-#define NCAPINTS			21	   /* N 32-bit words worth of info */
+#define NCAPINTS			22	   /* N 32-bit words worth of info */
 #define NBUGINTS			2	   /* N 32-bit bug flags */
 
 /*
@@ -300,6 +300,7 @@
 #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_MSR_TSX_CTRL	(11*32+18) /* "" MSR IA32_TSX_CTRL (Intel) implemented */
+#define X86_FEATURE_CLEAR_CPU_BUF	(11*32+19) /* "" Clear CPU buffers using VERW */
 
 #define X86_FEATURE_SRSO		(11*32+24) /* "" AMD BTB untrain RETs */
 #define X86_FEATURE_SRSO_ALIAS		(11*32+25) /* "" AMD BTB untrain RETs through aliasing */
@@ -403,6 +404,7 @@
 #define X86_FEATURE_SEV_ES		(19*32+ 3) /* AMD Secure Encrypted Virtualization - Encrypted State */
 #define X86_FEATURE_SME_COHERENT	(19*32+10) /* "" AMD hardware-enforced cache coherency */
 
+#define X86_FEATURE_AUTOIBRS		(20*32+ 8) /* "" Automatic IBRS */
 #define X86_FEATURE_SBPB		(20*32+27) /* "" Selective Branch Prediction Barrier */
 #define X86_FEATURE_IBPB_BRTYPE		(20*32+28) /* "" MSR_PRED_CMD[IBPB] flushes all branch type predictions */
 #define X86_FEATURE_SRSO_NO		(20*32+29) /* "" CPU is not affected by SRSO */
@@ -452,4 +454,5 @@
 /* BUG word 2 */
 #define X86_BUG_SRSO			X86_BUG(1*32 + 0) /* AMD SRSO bug */
 #define X86_BUG_DIV0			X86_BUG(1*32 + 1) /* AMD DIV0 speculation bug */
+#define X86_BUG_RFDS			X86_BUG(1*32 + 2) /* CPU is vulnerable to Register File Data Sampling */
 #endif /* _ASM_X86_CPUFEATURES_H */
arch/x86/include/asm/disabled-features.h +2 -1
index 3c24378e67be..e5f44a3e275c 100644
@@ -103,6 +103,7 @@
 #define DISABLED_MASK18	0
 #define DISABLED_MASK19	0
 #define DISABLED_MASK20	0
-#define DISABLED_MASK_CHECK BUILD_BUG_ON_ZERO(NCAPINTS != 21)
+#define DISABLED_MASK21	0
+#define DISABLED_MASK_CHECK BUILD_BUG_ON_ZERO(NCAPINTS != 22)
 
 #endif /* _ASM_X86_DISABLED_FEATURES_H */
arch/x86/include/asm/entry-common.h +0 -1
index 5443851d3aa6..264ab414e9f6 100644
@@ -77,7 +77,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/irqflags.h +1 -0
index 8c86edefa115..f40dea50dfbf 100644
@@ -134,6 +134,7 @@ static __always_inline unsigned long arch_local_irq_save(void)
 #define INTERRUPT_RETURN	jmp native_iret
 #define USERGS_SYSRET64				\
 	swapgs;					\
+	CLEAR_CPU_BUFFERS;			\
 	sysretq;
 #define USERGS_SYSRET32				\
 	swapgs;					\
arch/x86/include/asm/msr-index.h +10 -0
index 7d7a3cbb8e01..52a6d43ed2f9 100644
@@ -30,6 +30,7 @@
 #define _EFER_SVME		12 /* Enable virtualization */
 #define _EFER_LMSLE		13 /* Long Mode Segment Limit Enable */
 #define _EFER_FFXSR		14 /* Enable Fast FXSAVE/FXRSTOR */
+#define _EFER_AUTOIBRS		21 /* Enable Automatic IBRS */
 
 #define EFER_SCE		(1<<_EFER_SCE)
 #define EFER_LME		(1<<_EFER_LME)
@@ -38,6 +39,7 @@
 #define EFER_SVME		(1<<_EFER_SVME)
 #define EFER_LMSLE		(1<<_EFER_LMSLE)
 #define EFER_FFXSR		(1<<_EFER_FFXSR)
+#define EFER_AUTOIBRS		(1<<_EFER_AUTOIBRS)
 
 /* Intel MSRs. Some also available on other CPUs */
 
@@ -166,6 +168,14 @@
 						 * CPU is not vulnerable to Gather
 						 * Data Sampling (GDS).
 						 */
+#define ARCH_CAP_RFDS_NO		BIT(27)	/*
+						 * Not susceptible to Register
+						 * File Data Sampling.
+						 */
+#define ARCH_CAP_RFDS_CLEAR		BIT(28)	/*
+						 * VERW clears CPU Register
+						 * File.
+						 */
 
 #define MSR_IA32_FLUSH_CMD		0x0000010b
 #define L1D_FLUSH			BIT(0)	/*
arch/x86/include/asm/nospec-branch.h +29 -18

80 lines not on this page · raw message

arch/x86/include/asm/processor.h +4 -11
index d7e017b0b4c3..6dc3c5f0be07 100644
@@ -441,6 +441,9 @@ struct fixed_percpu_data {
 	 * GCC hardcodes the stack canary as %gs:40.  Since the
 	 * irq_stack is the object at %gs:0, we reserve the bottom
 	 * 48 bytes of the irq stack for the canary.
+	 *
+	 * Once we are willing to require -mstack-protector-guard-symbol=
+	 * support for x86_64 stackprotector, we can get rid of this.
 	 */
 	char		gs_base[40];
 	unsigned long	stack_canary;
@@ -461,17 +464,7 @@ extern asmlinkage void ignore_sysret(void);
 void current_save_fsgs(void);
 #else	/* X86_64 */
 #ifdef CONFIG_STACKPROTECTOR
-/*
- * Make sure stack canary segment base is cached-aligned:
- *   "For Intel Atom processors, avoid non zero segment base address
- *    that is not aligned to cache line boundary at all cost."
- * (Optim Ref Manual Assembly/Compiler Coding Rule 15.)
- */
-struct stack_canary {
-	char __pad[20];		/* canary at %gs:20 */
-	unsigned long canary;
-};
-DECLARE_PER_CPU_ALIGNED(struct stack_canary, stack_canary);
+DECLARE_PER_CPU(unsigned long, __stack_chk_guard);
 #endif
 /* Per CPU softirq stack pointer */
 DECLARE_PER_CPU(struct irq_stack *, softirq_stack_ptr);
arch/x86/include/asm/ptrace.h +4 -1
index 409f661481e1..b94f615600d5 100644
@@ -37,7 +37,10 @@ struct pt_regs {
 	unsigned short __esh;
 	unsigned short fs;
 	unsigned short __fsh;
-	/* On interrupt, gs and __gsh store the vector number. */
+	/*
+	 * On interrupt, gs and __gsh store the vector number.  They never
+	 * store gs any more.
+	 */
 	unsigned short gs;
 	unsigned short __gsh;
 	/* On interrupt, this is the error code. */
arch/x86/include/asm/required-features.h +2 -1
index 9bf60a8b9e9c..1fbe53583e95 100644
@@ -103,6 +103,7 @@
 #define REQUIRED_MASK18	0
 #define REQUIRED_MASK19	0
 #define REQUIRED_MASK20	0
-#define REQUIRED_MASK_CHECK BUILD_BUG_ON_ZERO(NCAPINTS != 21)
+#define REQUIRED_MASK21	0
+#define REQUIRED_MASK_CHECK BUILD_BUG_ON_ZERO(NCAPINTS != 22)
 
 #endif /* _ASM_X86_REQUIRED_FEATURES_H */
arch/x86/include/asm/segment.h +8 -22
index 7fdd4facfce7..72044026eb3c 100644
@@ -95,7 +95,7 @@
  *
  *  26 - ESPFIX small SS
  *  27 - per-cpu			[ offset to per-cpu data area ]
- *  28 - stack_canary-20		[ for stack protector ]		<=== cacheline #8
+ *  28 - unused
  *  29 - unused
  *  30 - unused
  *  31 - TSS for double fault handler
@@ -118,7 +118,6 @@
 
 #define GDT_ENTRY_ESPFIX_SS		26
 #define GDT_ENTRY_PERCPU		27
-#define GDT_ENTRY_STACK_CANARY		28
 
 #define GDT_ENTRY_DOUBLEFAULT_TSS	31
 
@@ -158,12 +157,6 @@
 # define __KERNEL_PERCPU		0
 #endif
 
-#ifdef CONFIG_STACKPROTECTOR
-# define __KERNEL_STACK_CANARY		(GDT_ENTRY_STACK_CANARY*8)
-#else
-# define __KERNEL_STACK_CANARY		0
-#endif
-
 #else /* 64-bit: */
 
 #include <asm/cache.h>
@@ -364,22 +357,15 @@ static inline void __loadsegment_fs(unsigned short value)
 	asm("mov %%" #seg ",%0":"=r" (value) : : "memory")
 
 /*
- * x86-32 user GS accessors:
+ * x86-32 user GS accessors.  This is ugly and could do with some cleaning up.
  */
 #ifdef CONFIG_X86_32
-# ifdef CONFIG_X86_32_LAZY_GS
-#  define get_user_gs(regs)		(u16)({ unsigned long v; savesegment(gs, v); v; })
-#  define set_user_gs(regs, v)		loadsegment(gs, (unsigned long)(v))
-#  define task_user_gs(tsk)		((tsk)->thread.gs)
-#  define lazy_save_gs(v)		savesegment(gs, (v))
-#  define lazy_load_gs(v)		loadsegment(gs, (v))
-# else	/* X86_32_LAZY_GS */
-#  define get_user_gs(regs)		(u16)((regs)->gs)
-#  define set_user_gs(regs, v)		do { (regs)->gs = (v); } while (0)
-#  define task_user_gs(tsk)		(task_pt_regs(tsk)->gs)
-#  define lazy_save_gs(v)		do { } while (0)
-#  define lazy_load_gs(v)		do { } while (0)
-# endif	/* X86_32_LAZY_GS */
+# define get_user_gs(regs)		(u16)({ unsigned long v; savesegment(gs, v); v; })
+# define set_user_gs(regs, v)		loadsegment(gs, (unsigned long)(v))
+# define task_user_gs(tsk)		((tsk)->thread.gs)
+# define lazy_save_gs(v)		savesegment(gs, (v))
+# define lazy_load_gs(v)		loadsegment(gs, (v))
+# define load_gs_index(v)		loadsegment(gs, (v))
 #endif	/* X86_32 */
 
 #endif /* !__ASSEMBLY__ */
arch/x86/include/asm/setup.h +0 -1
index 4e1757bf66a8..d65bfc293a48 100644
@@ -49,7 +49,6 @@ extern unsigned long saved_video_mode;
 extern void reserve_standard_io_resources(void);
 extern void i386_reserve_resources(void);
 extern unsigned long __startup_64(unsigned long physaddr, struct boot_params *bp);
-extern unsigned long __startup_secondary_64(void);
 extern void startup_64_setup_env(unsigned long physbase);
 extern void early_setup_idt(void);
 extern void __init do_early_exception(struct pt_regs *regs, int trapnr);
arch/x86/include/asm/stackprotector.h +16 -63

115 lines not on this page · raw message

arch/x86/include/asm/suspend_32.h +5 -7
index 3b97aa921543..d8416b3bf832 100644
@@ -12,13 +12,6 @@
 
 /* image of the saved processor state */
 struct saved_context {
-	/*
-	 * On x86_32, all segment registers, with the possible exception of
-	 * gs, are saved at kernel entry in pt_regs.
-	 */
-#ifdef CONFIG_X86_32_LAZY_GS
-	u16 gs;
-#endif
 	unsigned long cr0, cr2, cr3, cr4;
 	u64 misc_enable;
 	struct saved_msrs saved_msrs;
@@ -29,6 +22,11 @@ struct saved_context {
 	unsigned long tr;
 	unsigned long safety;
 	unsigned long return_address;
+	/*
+	 * On x86_32, all segment registers except gs are saved at kernel
+	 * entry in pt_regs.
+	 */
+	u16 gs;
 	bool misc_enable_saved;
 } __attribute__((packed));
 
arch/x86/kernel/Makefile +0 -1
index c06f3a961d64..fd5a2a53f41f 100644
@@ -49,7 +49,6 @@ endif
 # non-deterministic coverage.
 KCOV_INSTRUMENT		:= n
 
-CFLAGS_head$(BITS).o	+= -fno-stack-protector
 CFLAGS_cc_platform.o	+= -fno-stack-protector
 
 CFLAGS_irq.o := -I $(srctree)/$(src)/../include/asm/trace
arch/x86/kernel/asm-offsets_32.c +0 -5
index 6e043f295a60..2b411cd00a4e 100644
@@ -53,11 +53,6 @@ void foo(void)
 	       offsetof(struct cpu_entry_area, tss.x86_tss.sp1) -
 	       offsetofend(struct cpu_entry_area, entry_stack_page.stack));
 
-#ifdef CONFIG_STACKPROTECTOR
-	BLANK();
-	OFFSET(stack_canary_offset, stack_canary, canary);
-#endif
-
 	BLANK();
 	DEFINE(EFI_svam, offsetof(efi_runtime_services_t, set_virtual_address_map));
 }
arch/x86/kernel/cpu/amd.c +5 -5
index f29c6bed9d65..3b02cb8b0533 100644
@@ -1049,11 +1049,11 @@ static bool cpu_has_zenbleed_microcode(void)
 	u32 good_rev = 0;
 
 	switch (boot_cpu_data.x86_model) {
-	case 0x30 ... 0x3f: good_rev = 0x0830107a; break;
-	case 0x60 ... 0x67: good_rev = 0x0860010b; break;
-	case 0x68 ... 0x6f: good_rev = 0x08608105; break;
-	case 0x70 ... 0x7f: good_rev = 0x08701032; break;
-	case 0xa0 ... 0xaf: good_rev = 0x08a00008; break;
+	case 0x30 ... 0x3f: good_rev = 0x0830107b; break;
+	case 0x60 ... 0x67: good_rev = 0x0860010c; break;
+	case 0x68 ... 0x6f: good_rev = 0x08608107; break;
+	case 0x70 ... 0x7f: good_rev = 0x08701033; break;
+	case 0xa0 ... 0xaf: good_rev = 0x08a00009; break;
 
 	default:
 		return false;
arch/x86/kernel/cpu/bugs.c +165 -80

463 lines not on this page · raw message

arch/x86/kernel/cpu/common.c +49 -15

129 lines not on this page · raw message

arch/x86/kernel/cpu/mce/core.c +3 -1
index 18a6ed2afca0..97ab29429093 100644
@@ -2389,12 +2389,14 @@ static ssize_t set_bank(struct device *s, struct device_attribute *attr,
 		return -EINVAL;
 
 	b = &per_cpu(mce_banks_array, s->id)[bank];
-
 	if (!b->init)
 		return -ENODEV;
 
 	b->ctl = new;
+
+	mutex_lock(&mce_sysfs_mutex);
 	mce_restart();
+	mutex_unlock(&mce_sysfs_mutex);
 
 	return size;
 }
arch/x86/kernel/doublefault_32.c +1 -3
index 759d392cbe9f..d1d49e3d536b 100644
@@ -100,9 +100,7 @@ DEFINE_PER_CPU_PAGE_ALIGNED(struct doublefault_stack, doublefault_stack) = {
 		.ss		= __KERNEL_DS,
 		.ds		= __USER_DS,
 		.fs		= __KERNEL_PERCPU,
-#ifndef CONFIG_X86_32_LAZY_GS
-		.gs		= __KERNEL_STACK_CANARY,
-#endif
+		.gs		= 0,
 
 		.__cr3		= __pa_nodebug(swapper_pg_dir),
 	},
arch/x86/kernel/head64.c +0 -9
index 8596b4dca945..2988ffd099da 100644
@@ -302,15 +302,6 @@ unsigned long __head __startup_64(unsigned long physaddr,
 	return sme_get_me_mask();
 }
 
-unsigned long __startup_secondary_64(void)
-{
-	/*
-	 * Return the SME encryption mask (if SME is active) to be used as a
-	 * modifier for the initial pgdir entry programmed into CR3.
-	 */
-	return sme_get_me_mask();
-}
-
 /* Wipe all early page tables except for the kernel symbol map */
 static void __init reset_early_page_tables(void)
 {
arch/x86/kernel/head_32.S +2 -16
index 3f1691b89231..0359333f6bde 100644
@@ -319,8 +319,8 @@ SYM_FUNC_START(startup_32_smp)
 	movl $(__KERNEL_PERCPU), %eax
 	movl %eax,%fs			# set this cpu's percpu
 
-	movl $(__KERNEL_STACK_CANARY),%eax
-	movl %eax,%gs
+	xorl %eax,%eax
+	movl %eax,%gs			# clear possible garbage in %gs
 
 	xorl %eax,%eax			# Clear LDT
 	lldt %ax
@@ -340,20 +340,6 @@ SYM_FUNC_END(startup_32_smp)
  */
 __INIT
 setup_once:
-#ifdef CONFIG_STACKPROTECTOR
-	/*
-	 * Configure the stack canary. The linker can't handle this by
-	 * relocation.  Manually set base address in stack canary
-	 * segment descriptor.
-	 */
-	movl $gdt_page,%eax
-	movl $stack_canary,%ecx
-	movw %cx, 8 * GDT_ENTRY_STACK_CANARY + 2(%eax)
-	shrl $16, %ecx
-	movb %cl, 8 * GDT_ENTRY_STACK_CANARY + 4(%eax)
-	movb %ch, 8 * GDT_ENTRY_STACK_CANARY + 7(%eax)
-#endif
-
 	andl $0,setup_once_ref	/* Once is enough, thanks */
 	RET
 
arch/x86/kernel/head_64.S +21 -3
index 0424c2a6c15b..713b1ac34639 100644
@@ -74,6 +74,22 @@ SYM_CODE_START_NOALIGN(startup_64)
 	leaq	(__end_init_task - SIZEOF_PTREGS)(%rip), %rsp
 
 	leaq	_text(%rip), %rdi
+
+	/*
+	 * initial_gs points to initial fixed_percpu_data struct with storage for
+	 * the stack protector canary. Global pointer fixups are needed at this
+	 * stage, so apply them as is done in fixup_pointer(), and initialize %gs
+	 * such that the canary can be accessed at %gs:40 for subsequent C calls.
+	 */
+	movl	$MSR_GS_BASE, %ecx
+	movq	initial_gs(%rip), %rax
+	movq	$_text, %rdx
+	subq	%rdx, %rax
+	addq	%rdi, %rax
+	movq	%rax, %rdx
+	shrq	$32,  %rdx
+	wrmsr
+
 	pushq	%rsi
 	call	startup_64_setup_env
 	popq	%rsi
@@ -141,9 +157,11 @@ SYM_INNER_LABEL(secondary_startup_64_no_verify, SYM_L_GLOBAL)
 	 * Retrieve the modifier (SME encryption mask if SME is active) to be
 	 * added to the initial pgdir entry that will be programmed into CR3.
 	 */
-	pushq	%rsi
-	call	__startup_secondary_64
-	popq	%rsi
+#ifdef CONFIG_AMD_MEM_ENCRYPT
+	movq	sme_me_mask, %rax
+#else
+	xorq	%rax, %rax
+#endif
 
 	/* Form the CR3 value being sure to include the CR3 modifier */
 	addq	$(init_top_pgt - __START_KERNEL_map), %rax
arch/x86/kernel/nmi.c +0 -3
index 2ef961cf4cfc..f2e53b20df7e 100644
@@ -519,9 +519,6 @@ DEFINE_IDTENTRY_RAW(exc_nmi)
 		write_cr2(this_cpu_read(nmi_cr2));
 	if (this_cpu_dec_return(nmi_state))
 		goto nmi_restart;
-
-	if (user_mode(regs))
-		mds_user_clear_cpu_buffers();
 }
 
 #if defined(CONFIG_X86_64) && IS_ENABLED(CONFIG_KVM_INTEL)
arch/x86/kernel/setup_percpu.c +0 -1
index fd945ce78554..0941d2f44f2a 100644
@@ -224,7 +224,6 @@ void __init setup_per_cpu_areas(void)
 		per_cpu(this_cpu_off, cpu) = per_cpu_offset(cpu);
 		per_cpu(cpu_number, cpu) = cpu;
 		setup_percpu_segment(cpu);
-		setup_stack_canary_segment(cpu);
 		/*
 		 * Copy data used in early init routines from the
 		 * initial arrays to the per cpu data areas.  These
arch/x86/kernel/tls.c +1 -7
index 64a496a0687f..3c883e064242 100644
@@ -164,17 +164,11 @@ int do_set_thread_area(struct task_struct *p, int idx,
 		savesegment(fs, sel);
 		if (sel == modified_sel)
 			loadsegment(fs, sel);
-
-		savesegment(gs, sel);
-		if (sel == modified_sel)
-			load_gs_index(sel);
 #endif
 
-#ifdef CONFIG_X86_32_LAZY_GS
 		savesegment(gs, sel);
 		if (sel == modified_sel)
-			loadsegment(gs, sel);
-#endif
+			load_gs_index(sel);
 	} else {
 #ifdef CONFIG_X86_64
 		if (p->thread.fsindex == modified_sel)
arch/x86/kvm/cpuid.h +2 -0
index 1ba9313d26b9..e25853c2eb0f 100644
@@ -76,10 +76,12 @@ static const struct cpuid_reg reverse_cpuid[] = {
  */
 static __always_inline void reverse_cpuid_check(unsigned int x86_leaf)
 {
+	BUILD_BUG_ON(NR_CPUID_WORDS != NCAPINTS);
 	BUILD_BUG_ON(x86_leaf == CPUID_LNX_1);
 	BUILD_BUG_ON(x86_leaf == CPUID_LNX_2);
 	BUILD_BUG_ON(x86_leaf == CPUID_LNX_3);
 	BUILD_BUG_ON(x86_leaf == CPUID_LNX_4);
+	BUILD_BUG_ON(x86_leaf == CPUID_LNX_5);
 	BUILD_BUG_ON(x86_leaf >= ARRAY_SIZE(reverse_cpuid));
 	BUILD_BUG_ON(reverse_cpuid[x86_leaf].function == 0);
 }
arch/x86/kvm/svm/sev.c +9 -7
index c2b34998c27d..52e14d6aa496 100644
@@ -1024,20 +1024,22 @@ int svm_register_enc_region(struct kvm *kvm,
 		goto e_free;
 	}
 
-	region->uaddr = range->addr;
-	region->size = range->size;
-
-	list_add_tail(&region->list, &sev->regions_list);
-	mutex_unlock(&kvm->lock);
-
 	/*
 	 * The guest may change the memory encryption attribute from C=0 -> C=1
 	 * or vice versa for this memory range. Lets make sure caches are
 	 * flushed to ensure that guest data gets written into memory with
-	 * correct C-bit.
+	 * correct C-bit.  Note, this must be done before dropping kvm->lock,
+	 * as region and its array of pages can be freed by a different task
+	 * once kvm->lock is released.
 	 */
 	sev_clflush_pages(region->pages, region->npages);
 
+	region->uaddr = range->addr;
+	region->size = range->size;
+
+	list_add_tail(&region->list, &sev->regions_list);
+	mutex_unlock(&kvm->lock);
+
 	return ret;
 
 e_free:
arch/x86/kvm/vmx/run_flags.h +5 -2
index edc3f16cc189..6a9bfdfbb6e5 100644
@@ -2,7 +2,10 @@
 #ifndef __KVM_X86_VMX_RUN_FLAGS_H
 #define __KVM_X86_VMX_RUN_FLAGS_H
 
-#define VMX_RUN_VMRESUME	(1 << 0)
-#define VMX_RUN_SAVE_SPEC_CTRL	(1 << 1)
+#define VMX_RUN_VMRESUME_SHIFT		0
+#define VMX_RUN_SAVE_SPEC_CTRL_SHIFT	1
+
+#define VMX_RUN_VMRESUME		BIT(VMX_RUN_VMRESUME_SHIFT)
+#define VMX_RUN_SAVE_SPEC_CTRL		BIT(VMX_RUN_SAVE_SPEC_CTRL_SHIFT)
 
 #endif /* __KVM_X86_VMX_RUN_FLAGS_H */
arch/x86/kvm/vmx/vmenter.S +6 -3
index 982138bebb70..7a4b999d5701 100644
@@ -77,7 +77,7 @@ SYM_FUNC_START(__vmx_vcpu_run)
 	mov (%_ASM_SP), %_ASM_AX
 
 	/* Check if vmlaunch or vmresume is needed */
-	testb $VMX_RUN_VMRESUME, %bl
+	bt   $VMX_RUN_VMRESUME_SHIFT, %bx
 
 	/* Load guest registers.  Don't clobber flags. */
 	mov VCPU_RCX(%_ASM_AX), %_ASM_CX
@@ -99,8 +99,11 @@ SYM_FUNC_START(__vmx_vcpu_run)
 	/* Load guest RAX.  This kills the @regs pointer! */
 	mov VCPU_RAX(%_ASM_AX), %_ASM_AX
 
-	/* Check EFLAGS.ZF from 'testb' above */
-	jz .Lvmlaunch
+	/* Clobbers EFLAGS.ZF */
+	CLEAR_CPU_BUFFERS
+
+	/* Check EFLAGS.CF from the VMX_RUN_VMRESUME bit test above. */
+	jnc .Lvmlaunch
 
 	/*
 	 * After a successful VMRESUME/VMLAUNCH, control flow "magically"
arch/x86/kvm/vmx/vmx.c +8 -4
index 2445c6103895..3e9bb9ae836d 100644
@@ -397,7 +397,8 @@ static __always_inline void vmx_enable_fb_clear(struct vcpu_vmx *vmx)
 
 static void vmx_update_fb_clear_dis(struct kvm_vcpu *vcpu, struct vcpu_vmx *vmx)
 {
-	vmx->disable_fb_clear = vmx_fb_clear_ctrl_available;
+	vmx->disable_fb_clear = !cpu_feature_enabled(X86_FEATURE_CLEAR_CPU_BUF) &&
+		vmx_fb_clear_ctrl_available;
 
 	/*
 	 * If guest will not execute VERW, there is no need to set FB_CLEAR_DIS
@@ -6792,11 +6793,14 @@ static noinstr void vmx_vcpu_enter_exit(struct kvm_vcpu *vcpu,
 	guest_enter_irqoff();
 	lockdep_hardirqs_on(CALLER_ADDR0);
 
-	/* L1D Flush includes CPU buffer clear to mitigate MDS */
+	/*
+	 * L1D Flush includes CPU buffer clear to mitigate MDS, but VERW
+	 * mitigation for MDS is done late in VMentry and is still
+	 * executed in spite of L1D Flush. This is because an extra VERW
+	 * should not matter much after the big hammer L1D Flush.
+	 */
 	if (static_branch_unlikely(&vmx_l1d_should_flush))
 		vmx_l1d_flush(vcpu);
-	else if (static_branch_unlikely(&mds_user_clear))
-		mds_clear_cpu_buffers();
 	else if (static_branch_unlikely(&mmio_stale_data_clear) &&
 		 kvm_arch_has_assigned_device(vcpu->kvm))
 		mds_clear_cpu_buffers();
arch/x86/kvm/x86.c +4 -1
index 6c2bf7cd7aec..8e0b957c6219 100644
@@ -1389,7 +1389,8 @@ static unsigned int num_msr_based_features;
 	 ARCH_CAP_SKIP_VMENTRY_L1DFLUSH | ARCH_CAP_SSB_NO | ARCH_CAP_MDS_NO | \
 	 ARCH_CAP_PSCHANGE_MC_NO | ARCH_CAP_TSX_CTRL_MSR | ARCH_CAP_TAA_NO | \
 	 ARCH_CAP_SBDR_SSDP_NO | ARCH_CAP_FBSDP_NO | ARCH_CAP_PSDP_NO | \
-	 ARCH_CAP_FB_CLEAR | ARCH_CAP_RRSBA | ARCH_CAP_PBRSB_NO | ARCH_CAP_GDS_NO)
+	 ARCH_CAP_FB_CLEAR | ARCH_CAP_RRSBA | ARCH_CAP_PBRSB_NO | ARCH_CAP_GDS_NO | \
+	 ARCH_CAP_RFDS_NO | ARCH_CAP_RFDS_CLEAR)
 
 static u64 kvm_get_arch_capabilities(void)
 {
@@ -1426,6 +1427,8 @@ static u64 kvm_get_arch_capabilities(void)
 		data |= ARCH_CAP_SSB_NO;
 	if (!boot_cpu_has_bug(X86_BUG_MDS))
 		data |= ARCH_CAP_MDS_NO;
+	if (!boot_cpu_has_bug(X86_BUG_RFDS))
+		data |= ARCH_CAP_RFDS_NO;
 
 	if (!boot_cpu_has(X86_FEATURE_RTM)) {
 		/*
arch/x86/lib/insn-eval.c +0 -4
index ffc8b7dcf1fe..6ed542e310ad 100644
@@ -404,10 +404,6 @@ static short get_segment_selector(struct pt_regs *regs, int seg_reg_idx)
 	case INAT_SEG_REG_FS:
 		return (unsigned short)(regs->fs & 0xffff);
 	case INAT_SEG_REG_GS:
-		/*
-		 * GS may or may not be in regs as per CONFIG_X86_32_LAZY_GS.
-		 * The macro below takes care of both cases.
-		 */
 		return get_user_gs(regs);
 	case INAT_SEG_REG_IGNORE:
 	default:
arch/x86/lib/retpoline.S +3 -3
index 6f5321b36dbb..ab9b047790dd 100644
@@ -108,6 +108,7 @@ SYM_START(srso_alias_untrain_ret, SYM_L_GLOBAL, SYM_A_NONE)
 	ret
 	int3
 SYM_FUNC_END(srso_alias_untrain_ret)
+__EXPORT_THUNK(srso_alias_untrain_ret)
 #endif
 
 SYM_START(srso_alias_safe_ret, SYM_L_GLOBAL, SYM_A_NONE)
@@ -249,9 +250,7 @@ SYM_CODE_START(srso_return_thunk)
 SYM_CODE_END(srso_return_thunk)
 
 SYM_FUNC_START(entry_untrain_ret)
-	ALTERNATIVE_2 "jmp retbleed_untrain_ret", \
-		      "jmp srso_untrain_ret", X86_FEATURE_SRSO, \
-		      "jmp srso_alias_untrain_ret", X86_FEATURE_SRSO_ALIAS
+	ALTERNATIVE "jmp retbleed_untrain_ret", "jmp srso_untrain_ret", X86_FEATURE_SRSO
 SYM_FUNC_END(entry_untrain_ret)
 __EXPORT_THUNK(entry_untrain_ret)
 
@@ -259,6 +258,7 @@ SYM_CODE_START(__x86_return_thunk)
 	UNWIND_HINT_FUNC
 	ANNOTATE_NOENDBR
 	ANNOTATE_UNRET_SAFE
+	ANNOTATE_NOENDBR
 	ret
 	int3
 SYM_CODE_END(__x86_return_thunk)
arch/x86/mm/ident_map.c +5 -18
index f50cc210a981..968d7005f4a7 100644
@@ -26,31 +26,18 @@ static int ident_pud_init(struct x86_mapping_info *info, pud_t *pud_page,
 	for (; addr < end; addr = next) {
 		pud_t *pud = pud_page + pud_index(addr);
 		pmd_t *pmd;
-		bool use_gbpage;
 
 		next = (addr & PUD_MASK) + PUD_SIZE;
 		if (next > end)
 			next = end;
 
-		/* if this is already a gbpage, this portion is already mapped */
-		if (pud_large(*pud))
-			continue;
-
-		/* Is using a gbpage allowed? */
-		use_gbpage = info->direct_gbpages;
-
-		/* Don't use gbpage if it maps more than the requested region. */
-		/* at the begining: */
-		use_gbpage &= ((addr & ~PUD_MASK) == 0);
-		/* ... or at the end: */
-		use_gbpage &= ((next & ~PUD_MASK) == 0);
-
-		/* Never overwrite existing mappings */
-		use_gbpage &= !pud_present(*pud);
-
-		if (use_gbpage) {
+		if (info->direct_gbpages) {
 			pud_t pudval;
 
+			if (pud_present(*pud))
+				continue;
+
+			addr &= PUD_MASK;
 			pudval = __pud((addr - info->offset) | info->page_flag);
 			set_pud(pud, pudval);
 			continue;
arch/x86/mm/pat/memtype.c +36 -14

86 lines not on this page · raw message

arch/x86/platform/pvh/head.S +0 -14
index 43b4d864817e..afbf0bb252da 100644
@@ -45,10 +45,8 @@
 
 #define PVH_GDT_ENTRY_CS	1
 #define PVH_GDT_ENTRY_DS	2
-#define PVH_GDT_ENTRY_CANARY	3
 #define PVH_CS_SEL		(PVH_GDT_ENTRY_CS * 8)
 #define PVH_DS_SEL		(PVH_GDT_ENTRY_DS * 8)
-#define PVH_CANARY_SEL		(PVH_GDT_ENTRY_CANARY * 8)
 
 SYM_CODE_START_LOCAL(pvh_start_xen)
 	cld
@@ -109,17 +107,6 @@ SYM_CODE_START_LOCAL(pvh_start_xen)
 
 #else /* CONFIG_X86_64 */
 
-	/* Set base address in stack canary descriptor. */
-	movl $_pa(gdt_start),%eax
-	movl $_pa(canary),%ecx
-	movw %cx, (PVH_GDT_ENTRY_CANARY * 8) + 2(%eax)
-	shrl $16, %ecx
-	movb %cl, (PVH_GDT_ENTRY_CANARY * 8) + 4(%eax)
-	movb %ch, (PVH_GDT_ENTRY_CANARY * 8) + 7(%eax)
-
-	mov $PVH_CANARY_SEL,%eax
-	mov %eax,%gs
-
 	call mk_early_pgtbl_32
 
 	mov $_pa(initial_page_table), %eax
@@ -163,7 +150,6 @@ SYM_DATA_START_LOCAL(gdt_start)
 	.quad GDT_ENTRY(0xc09a, 0, 0xfffff) /* PVH_CS_SEL */
 #endif
 	.quad GDT_ENTRY(0xc092, 0, 0xfffff) /* PVH_DS_SEL */
-	.quad GDT_ENTRY(0x4090, 0, 0x18)    /* PVH_CANARY_SEL */
 SYM_DATA_END_LABEL(gdt_start, SYM_L_LOCAL, gdt_end)
 
 	.balign 16
arch/x86/power/cpu.c +1 -5
index 4e4e76ecd3ec..84c7b2312ea9 100644
@@ -101,11 +101,8 @@ static void __save_processor_state(struct saved_context *ctxt)
 	/*
 	 * segment registers
 	 */
-#ifdef CONFIG_X86_32_LAZY_GS
 	savesegment(gs, ctxt->gs);
-#endif
 #ifdef CONFIG_X86_64
-	savesegment(gs, ctxt->gs);
 	savesegment(fs, ctxt->fs);
 	savesegment(ds, ctxt->ds);
 	savesegment(es, ctxt->es);
@@ -234,7 +231,6 @@ static void notrace __restore_processor_state(struct saved_context *ctxt)
 	wrmsrl(MSR_GS_BASE, ctxt->kernelmode_gs_base);
 #else
 	loadsegment(fs, __KERNEL_PERCPU);
-	loadsegment(gs, __KERNEL_STACK_CANARY);
 #endif
 
 	/* Restore the TSS, RO GDT, LDT, and usermode-relevant MSRs. */
@@ -257,7 +253,7 @@ static void notrace __restore_processor_state(struct saved_context *ctxt)
 	 */
 	wrmsrl(MSR_FS_BASE, ctxt->fs_base);
 	wrmsrl(MSR_KERNEL_GS_BASE, ctxt->usermode_gs_base);
-#elif defined(CONFIG_X86_32_LAZY_GS)
+#else
 	loadsegment(gs, ctxt->gs);
 #endif
 
arch/x86/xen/enlighten_pv.c +0 -1
index 815030b7f6fa..94804670caab 100644
@@ -1193,7 +1193,6 @@ static void __init xen_setup_gdt(int cpu)
 	pv_ops.cpu.write_gdt_entry = xen_write_gdt_entry_boot;
 	pv_ops.cpu.load_gdt = xen_load_gdt_boot;
 
-	setup_stack_canary_segment(cpu);
 	switch_to_new_gdt(cpu);
 
 	pv_ops.cpu.write_gdt_entry = xen_write_gdt_entry;
block/blk-settings.c +40 -1

72 lines not on this page · raw message

block/blk-stat.c +1 -1
index ae3dd1fb8e61..6e602f9b966e 100644
@@ -28,7 +28,7 @@ void blk_rq_stat_init(struct blk_rq_stat *stat)
 /* src is a per-cpu stat, mean isn't initialized */
 void blk_rq_stat_sum(struct blk_rq_stat *dst, struct blk_rq_stat *src)
 {
-	if (!src->nr_samples)
+	if (dst->nr_samples + src->nr_samples <= dst->nr_samples)
 		return;
 
 	dst->min = min(dst->min, src->min);
block/blk-sysfs.c +8 -0
index 9174137a913c..ddf23bf3e0f1 100644
@@ -219,6 +219,12 @@ static ssize_t queue_write_zeroes_max_show(struct request_queue *q, char *page)
 		(unsigned long long)q->limits.max_write_zeroes_sectors << 9);
 }
 
+static ssize_t queue_zone_write_granularity_show(struct request_queue *q,
+						 char *page)
+{
+	return queue_var_show(queue_zone_write_granularity(q), page);
+}
+
 static ssize_t queue_zone_append_max_show(struct request_queue *q, char *page)
 {
 	unsigned long long max_sectors = q->limits.max_zone_append_sectors;
@@ -585,6 +591,7 @@ QUEUE_RO_ENTRY(queue_discard_zeroes_data, "discard_zeroes_data");
 QUEUE_RO_ENTRY(queue_write_same_max, "write_same_max_bytes");
 QUEUE_RO_ENTRY(queue_write_zeroes_max, "write_zeroes_max_bytes");
 QUEUE_RO_ENTRY(queue_zone_append_max, "zone_append_max_bytes");
+QUEUE_RO_ENTRY(queue_zone_write_granularity, "zone_write_granularity");
 
 QUEUE_RO_ENTRY(queue_zoned, "zoned");
 QUEUE_RO_ENTRY(queue_nr_zones, "nr_zones");
@@ -639,6 +646,7 @@ static struct attribute *queue_attrs[] = {
 	&queue_write_same_max_entry.attr,
 	&queue_write_zeroes_max_entry.attr,
 	&queue_zone_append_max_entry.attr,
+	&queue_zone_write_granularity_entry.attr,
 	&queue_nonrot_entry.attr,
 	&queue_zoned_entry.attr,
 	&queue_nr_zones_entry.attr,
block/ioctl.c +7 -4
index 24f8042f12b6..bc97698e0e8a 100644
@@ -17,7 +17,7 @@ static int blkpg_do_ioctl(struct block_device *bdev,
 			  struct blkpg_partition __user *upart, int op)
 {
 	struct blkpg_partition p;
-	long long start, length;
+	sector_t start, length;
 
 	if (!capable(CAP_SYS_ADMIN))
 		return -EACCES;
@@ -32,6 +32,12 @@ static int blkpg_do_ioctl(struct block_device *bdev,
 	if (op == BLKPG_DEL_PARTITION)
 		return bdev_del_partition(bdev, p.pno);
 
+	if (p.start < 0 || p.length <= 0 || p.start + p.length < 0)
+		return -EINVAL;
+	/* Check that the partition is aligned to the block size */
+	if (!IS_ALIGNED(p.start | p.length, bdev_logical_block_size(bdev)))
+		return -EINVAL;
+
 	start = p.start >> SECTOR_SHIFT;
 	length = p.length >> SECTOR_SHIFT;
 
@@ -46,9 +52,6 @@ static int blkpg_do_ioctl(struct block_device *bdev,
 
 	switch (op) {
 	case BLKPG_ADD_PARTITION:
-		/* check if partition is aligned to blocksize */
-		if (p.start & (bdev_logical_block_size(bdev) - 1))
-			return -EINVAL;
 		return bdev_add_partition(bdev, p.pno, start, length);
 	case BLKPG_RESIZE_PARTITION:
 		return bdev_resize_partition(bdev, p.pno, start, length);
drivers/accessibility/speakup/synth.c +3 -1
index ac47dbac7207..82cfc5ec6bdf 100644
@@ -208,8 +208,10 @@ void spk_do_flush(void)
 	wake_up_process(speakup_task);
 }
 
-void synth_write(const char *buf, size_t count)
+void synth_write(const char *_buf, size_t count)
 {
+	const unsigned char *buf = (const unsigned char *) _buf;
+
 	while (count--)
 		synth_buffer_add(*buf++);
 	synth_start();
drivers/acpi/acpica/dbnames.c +6 -2
index b91155ea9c34..c9131259f717 100644
@@ -550,8 +550,12 @@ acpi_db_walk_for_fields(acpi_handle obj_handle,
 	ACPI_FREE(buffer.pointer);
 
 	buffer.length = ACPI_ALLOCATE_LOCAL_BUFFER;
-	acpi_evaluate_object(obj_handle, NULL, NULL, &buffer);
-
+	status = acpi_evaluate_object(obj_handle, NULL, NULL, &buffer);
+	if (ACPI_FAILURE(status)) {
+		acpi_os_printf("Could Not evaluate object %p\n",
+			       obj_handle);
+		return (AE_OK);
+	}
 	/*
 	 * Since this is a field unit, surround the output in braces
 	 */
drivers/acpi/sleep.c +0 -12
index 097a5b5f46ab..e79c004ca0b2 100644
@@ -385,18 +385,6 @@ static const struct dmi_system_id acpisleep_dmi_table[] __initconst = {
 		DMI_MATCH(DMI_PRODUCT_NAME, "20GGA00L00"),
 		},
 	},
-	/*
-	 * ASUS B1400CEAE hangs on resume from suspend (see
-	 * https://bugzilla.kernel.org/show_bug.cgi?id=215742).
-	 */
-	{
-	.callback = init_default_s3,
-	.ident = "ASUS B1400CEAE",
-	.matches = {
-		DMI_MATCH(DMI_SYS_VENDOR, "ASUSTeK COMPUTER INC."),
-		DMI_MATCH(DMI_PRODUCT_NAME, "ASUS EXPERTBOOK B1400CEAE"),
-		},
-	},
 	{},
 };
 
drivers/ata/ahci.c +0 -5
index 6f7f8e41404d..55a07dbe1d8a 100644
@@ -662,11 +662,6 @@ MODULE_PARM_DESC(mobile_lpm_policy, "Default LPM policy for mobile chipsets");
 static void ahci_pci_save_initial_config(struct pci_dev *pdev,
 					 struct ahci_host_priv *hpriv)
 {
-	if (pdev->vendor == PCI_VENDOR_ID_ASMEDIA && pdev->device == 0x1166) {
-		dev_info(&pdev->dev, "ASM1166 has only six ports\n");
-		hpriv->saved_port_map = 0x3f;
-	}
-
 	if (pdev->vendor == PCI_VENDOR_ID_JMICRON && pdev->device == 0x2361) {
 		dev_info(&pdev->dev, "JMB361 has only one port\n");
 		hpriv->force_port_map = 1;
drivers/ata/sata_mv.c +31 -32

87 lines not on this page · raw message

drivers/ata/sata_sx4.c +2 -4
index 4c01190a5e37..c95685f693a6 100644
@@ -1004,8 +1004,7 @@ static void pdc20621_get_from_dimm(struct ata_host *host, void *psource,
 
 	offset -= (idx * window_size);
 	idx++;
-	dist = ((long) (window_size - (offset + size))) >= 0 ? size :
-		(long) (window_size - offset);
+	dist = min(size, window_size - offset);
 	memcpy_fromio(psource, dimm_mmio + offset / 4, dist);
 
 	psource += dist;
@@ -1053,8 +1052,7 @@ static void pdc20621_put_to_dimm(struct ata_host *host, void *psource,
 	readl(mmio + PDC_DIMM_WINDOW_CTLR);
 	offset -= (idx * window_size);
 	idx++;
-	dist = ((long)(s32)(window_size - (offset + size))) >= 0 ? size :
-		(long) (window_size - offset);
+	dist = min(size, window_size - offset);
 	memcpy_toio(dimm_mmio + offset / 4, psource, dist);
 	writel(0x01, mmio + PDC_GENERAL_CTLR);
 	readl(mmio + PDC_GENERAL_CTLR);
drivers/base/core.c +23 -3
index d98cab88c38a..2c978941b488 100644
@@ -53,6 +53,7 @@ static unsigned int defer_sync_state_count = 1;
 static unsigned int defer_fw_devlink_count;
 static LIST_HEAD(deferred_fw_devlink);
 static DEFINE_MUTEX(defer_fw_devlink_lock);
+static struct workqueue_struct *device_link_wq;
 static bool fw_devlink_is_permissive(void);
 
 #ifdef CONFIG_SRCU
@@ -364,12 +365,26 @@ static void devlink_dev_release(struct device *dev)
 	/*
 	 * It may take a while to complete this work because of the SRCU
 	 * synchronization in device_link_release_fn() and if the consumer or
-	 * supplier devices get deleted when it runs, so put it into the "long"
-	 * workqueue.
+	 * supplier devices get deleted when it runs, so put it into the
+	 * dedicated workqueue.
 	 */
-	queue_work(system_long_wq, &link->rm_work);
+	queue_work(device_link_wq, &link->rm_work);
 }
 
+/**
+ * device_link_wait_removal - Wait for ongoing devlink removal jobs to terminate
+ */
+void device_link_wait_removal(void)
+{
+	/*
+	 * devlink removal jobs are queued in the dedicated work queue.
+	 * To be sure that all removal jobs are terminated, ensure that any
+	 * scheduled work has run to completion.
+	 */
+	flush_workqueue(device_link_wq);
+}
+EXPORT_SYMBOL_GPL(device_link_wait_removal);
+
 static struct class devlink_class = {
 	.name = "devlink",
 	.owner = THIS_MODULE,
@@ -3415,9 +3430,14 @@ int __init devices_init(void)
 	sysfs_dev_char_kobj = kobject_create_and_add("char", dev_kobj);
 	if (!sysfs_dev_char_kobj)
 		goto char_kobj_err;
+	device_link_wq = alloc_workqueue("device_link_wq", 0, 0);
+	if (!device_link_wq)
+		goto wq_err;
 
 	return 0;
 
+ wq_err:
+	kobject_put(sysfs_dev_char_kobj);
  char_kobj_err:
 	kobject_put(sysfs_dev_block_kobj);
  block_kobj_err:
drivers/base/cpu.c +8 -0
index 2db1e0e8c1a7..e3aed8333f09 100644
@@ -591,6 +591,12 @@ ssize_t __weak cpu_show_spec_rstack_overflow(struct device *dev,
 	return sysfs_emit(buf, "Not affected\n");
 }
 
+ssize_t __weak cpu_show_reg_file_data_sampling(struct device *dev,
+					       struct device_attribute *attr, char *buf)
+{
+	return sysfs_emit(buf, "Not affected\n");
+}
+
 static DEVICE_ATTR(meltdown, 0444, cpu_show_meltdown, NULL);
 static DEVICE_ATTR(spectre_v1, 0444, cpu_show_spectre_v1, NULL);
 static DEVICE_ATTR(spectre_v2, 0444, cpu_show_spectre_v2, NULL);
@@ -604,6 +610,7 @@ static DEVICE_ATTR(mmio_stale_data, 0444, cpu_show_mmio_stale_data, NULL);
 static DEVICE_ATTR(retbleed, 0444, cpu_show_retbleed, NULL);
 static DEVICE_ATTR(gather_data_sampling, 0444, cpu_show_gds, NULL);
 static DEVICE_ATTR(spec_rstack_overflow, 0444, cpu_show_spec_rstack_overflow, NULL);
+static DEVICE_ATTR(reg_file_data_sampling, 0444, cpu_show_reg_file_data_sampling, NULL);
 
 static struct attribute *cpu_root_vulnerabilities_attrs[] = {
 	&dev_attr_meltdown.attr,
@@ -619,6 +626,7 @@ static struct attribute *cpu_root_vulnerabilities_attrs[] = {
 	&dev_attr_retbleed.attr,
 	&dev_attr_gather_data_sampling.attr,
 	&dev_attr_spec_rstack_overflow.attr,
+	&dev_attr_reg_file_data_sampling.attr,
 	NULL
 };
 
drivers/base/power/wakeirq.c +3 -1
index aea690c64e39..4f4310724fee 100644
@@ -365,8 +365,10 @@ void dev_pm_enable_wake_irq_complete(struct device *dev)
 		return;
 
 	if (wirq->status & WAKE_IRQ_DEDICATED_MANAGED &&
-	    wirq->status & WAKE_IRQ_DEDICATED_REVERSE)
+	    wirq->status & WAKE_IRQ_DEDICATED_REVERSE) {
 		enable_irq(wirq->irq);
+		wirq->status |= WAKE_IRQ_DEDICATED_ENABLED;
+	}
 }
 
 /**
drivers/bluetooth/btintel.c +1 -1
index 88ce5f0ffc4b..2538bdee31d8 100644
@@ -350,7 +350,7 @@ int btintel_read_version(struct hci_dev *hdev, struct intel_version *ver)
 		return PTR_ERR(skb);
 	}
 
-	if (skb->len != sizeof(*ver)) {
+	if (!skb || skb->len != sizeof(*ver)) {
 		bt_dev_err(hdev, "Intel version event size mismatch");
 		kfree_skb(skb);
 		return -EILSEQ;
drivers/clk/qcom/gcc-ipq6018.c +2 -0
index 4c5c7a8f41d0..b9844e41cf99 100644
@@ -1557,6 +1557,7 @@ static struct clk_regmap_div nss_ubi0_div_clk_src = {
 
 static const struct freq_tbl ftbl_pcie_aux_clk_src[] = {
 	F(24000000, P_XO, 1, 0, 0),
+	{ }
 };
 
 static const struct clk_parent_data gcc_xo_gpll0_core_pi_sleep_clk[] = {
@@ -1737,6 +1738,7 @@ static const struct freq_tbl ftbl_sdcc_ice_core_clk_src[] = {
 	F(160000000, P_GPLL0, 5, 0, 0),
 	F(216000000, P_GPLL6, 5, 0, 0),
 	F(308570000, P_GPLL6, 3.5, 0, 0),
+	{ }
 };
 
 static const struct clk_parent_data gcc_xo_gpll0_gpll6_gpll0_div2[] = {
drivers/clk/qcom/gcc-ipq8074.c +2 -0
index 0393154fea2f..649e75a41f7a 100644
@@ -972,6 +972,7 @@ static struct clk_rcg2 pcie0_axi_clk_src = {
 
 static const struct freq_tbl ftbl_pcie_aux_clk_src[] = {
 	F(19200000, P_XO, 1, 0, 0),
+	{ }
 };
 
 static struct clk_rcg2 pcie0_aux_clk_src = {
@@ -1077,6 +1078,7 @@ static const struct freq_tbl ftbl_sdcc_ice_core_clk_src[] = {
 	F(19200000, P_XO, 1, 0, 0),
 	F(160000000, P_GPLL0, 5, 0, 0),
 	F(308570000, P_GPLL6, 3.5, 0, 0),
+	{ }
 };
 
 static struct clk_rcg2 sdcc1_ice_core_clk_src = {
drivers/clk/qcom/gcc-sdm845.c +1 -0
index 90f7febaf528..a6b07aa8eb65 100644
@@ -3646,3 +3646,4 @@ module_exit(gcc_sdm845_exit);
 MODULE_DESCRIPTION("QTI GCC SDM845 Driver");
 MODULE_LICENSE("GPL v2");
 MODULE_ALIAS("platform:gcc-sdm845");
+MODULE_SOFTDEP("pre: rpmhpd");
drivers/clk/qcom/mmcc-apq8084.c +2 -0
index fbfcf0006739..c2fd0e8f4bc0 100644
@@ -333,6 +333,7 @@ static struct freq_tbl ftbl_mmss_axi_clk[] = {
 	F(333430000, P_MMPLL1, 3.5, 0, 0),
 	F(400000000, P_MMPLL0, 2, 0, 0),
 	F(466800000, P_MMPLL1, 2.5, 0, 0),
+	{ }
 };
 
 static struct clk_rcg2 mmss_axi_clk_src = {
@@ -357,6 +358,7 @@ static struct freq_tbl ftbl_ocmemnoc_clk[] = {
 	F(150000000, P_GPLL0, 4, 0, 0),
 	F(228570000, P_MMPLL0, 3.5, 0, 0),
 	F(320000000, P_MMPLL0, 2.5, 0, 0),
+	{ }
 };
 
 static struct clk_rcg2 ocmemnoc_clk_src = {
drivers/clk/qcom/mmcc-msm8974.c +2 -0
index 015426262d08..dfc377463a7a 100644
@@ -283,6 +283,7 @@ static struct freq_tbl ftbl_mmss_axi_clk[] = {
 	F(291750000, P_MMPLL1, 4, 0, 0),
 	F(400000000, P_MMPLL0, 2, 0, 0),
 	F(466800000, P_MMPLL1, 2.5, 0, 0),
+	{ }
 };
 
 static struct clk_rcg2 mmss_axi_clk_src = {
@@ -307,6 +308,7 @@ static struct freq_tbl ftbl_ocmemnoc_clk[] = {
 	F(150000000, P_GPLL0, 4, 0, 0),
 	F(291750000, P_MMPLL1, 4, 0, 0),
 	F(400000000, P_MMPLL0, 2, 0, 0),
+	{ }
 };
 
 static struct clk_rcg2 ocmemnoc_clk_src = {
drivers/cpufreq/brcmstb-avs-cpufreq.c +3 -2
index 38ec0fedb247..552db816ed22 100644
@@ -481,10 +481,11 @@ static bool brcm_avs_is_firmware_loaded(struct private_data *priv)
 static unsigned int brcm_avs_cpufreq_get(unsigned int cpu)
 {
 	struct cpufreq_policy *policy = cpufreq_cpu_get(cpu);
+	struct private_data *priv;
+
 	if (!policy)
 		return 0;
-	struct private_data *priv = policy->driver_data;
-
+	priv = policy->driver_data;
 	cpufreq_cpu_put(policy);
 
 	return brcm_avs_get_frequency(priv->base);
drivers/cpufreq/cpufreq-dt.c +1 -1
index e363ae04aac6..44cc596ca0a5 100644
@@ -251,7 +251,7 @@ static int dt_cpufreq_early_init(struct device *dev, int cpu)
 	if (!priv)
 		return -ENOMEM;
 
-	if (!alloc_cpumask_var(&priv->cpus, GFP_KERNEL))
+	if (!zalloc_cpumask_var(&priv->cpus, GFP_KERNEL))
 		return -ENOMEM;
 
 	priv->cpu_dev = cpu_dev;
drivers/crypto/qat/qat_common/adf_aer.c +17 -6
index d2ae293d0df6..dc0feedf5270 100644
@@ -95,18 +95,28 @@ static void adf_device_reset_worker(struct work_struct *work)
 	if (adf_dev_init(accel_dev) || adf_dev_start(accel_dev)) {
 		/* The device hanged and we can't restart it so stop here */
 		dev_err(&GET_DEV(accel_dev), "Restart device failed\n");
-		kfree(reset_data);
+		if (reset_data->mode == ADF_DEV_RESET_ASYNC ||
+		    completion_done(&reset_data->compl))
+			kfree(reset_data);
 		WARN(1, "QAT: device restart failed. Device is unusable\n");
 		return;
 	}
 	adf_dev_restarted_notify(accel_dev);
 	clear_bit(ADF_STATUS_RESTARTING, &accel_dev->status);
 
-	/* The dev is back alive. Notify the caller if in sync mode */
-	if (reset_data->mode == ADF_DEV_RESET_SYNC)
-		complete(&reset_data->compl);
-	else
+	/*
+	 * The dev is back alive. Notify the caller if in sync mode
+	 *
+	 * If device restart will take a more time than expected,
+	 * the schedule_reset() function can timeout and exit. This can be
+	 * detected by calling the completion_done() function. In this case
+	 * the reset_data structure needs to be freed here.
+	 */
+	if (reset_data->mode == ADF_DEV_RESET_ASYNC ||
+	    completion_done(&reset_data->compl))
 		kfree(reset_data);
+	else
+		complete(&reset_data->compl);
 }
 
 static int adf_dev_aer_schedule_reset(struct adf_accel_dev *accel_dev,
@@ -139,8 +149,9 @@ static int adf_dev_aer_schedule_reset(struct adf_accel_dev *accel_dev,
 			dev_err(&GET_DEV(accel_dev),
 				"Reset device timeout expired\n");
 			ret = -EFAULT;
+		} else {
+			kfree(reset_data);
 		}
-		kfree(reset_data);
 		return ret;
 	}
 	return 0;
drivers/firmware/efi/vars.c +11 -6
index cae590bd08f2..eaed1ddcc803 100644
@@ -415,7 +415,7 @@ int efivar_init(int (*func)(efi_char16_t *, efi_guid_t, unsigned long, void *),
 		void *data, bool duplicates, struct list_head *head)
 {
 	const struct efivar_operations *ops;
-	unsigned long variable_name_size = 1024;
+	unsigned long variable_name_size = 512;
 	efi_char16_t *variable_name;
 	efi_status_t status;
 	efi_guid_t vendor_guid;
@@ -438,12 +438,13 @@ int efivar_init(int (*func)(efi_char16_t *, efi_guid_t, unsigned long, void *),
 	}
 
 	/*
-	 * Per EFI spec, the maximum storage allocated for both
-	 * the variable name and variable data is 1024 bytes.
+	 * A small set of old UEFI implementations reject sizes
+	 * above a certain threshold, the lowest seen in the wild
+	 * is 512.
 	 */
 
 	do {
-		variable_name_size = 1024;
+		variable_name_size = 512;
 
 		status = ops->get_next_variable(&variable_name_size,
 						variable_name,
@@ -491,9 +492,13 @@ int efivar_init(int (*func)(efi_char16_t *, efi_guid_t, unsigned long, void *),
 			break;
 		case EFI_NOT_FOUND:
 			break;
+		case EFI_BUFFER_TOO_SMALL:
+			pr_warn("efivars: Variable name size exceeds maximum (%lu > 512)\n",
+				variable_name_size);
+			status = EFI_NOT_FOUND;
+			break;
 		default:
-			printk(KERN_WARNING "efivars: get_next_variable: status=%lx\n",
-				status);
+			pr_warn("efivars: get_next_variable: status=%lx\n", status);
 			status = EFI_NOT_FOUND;
 			break;
 		}
drivers/gpu/drm/amd/amdkfd/kfd_chardev.c +2 -2
index 8cc51cec988a..799a91a064a1 100644
@@ -959,8 +959,8 @@ static int kfd_ioctl_get_process_apertures_new(struct file *filp,
 	 * nodes, but not more than args->num_of_nodes as that is
 	 * the amount of memory allocated by user
 	 */
-	pa = kzalloc((sizeof(struct kfd_process_device_apertures) *
-				args->num_of_nodes), GFP_KERNEL);
+	pa = kcalloc(args->num_of_nodes, sizeof(struct kfd_process_device_apertures),
+		     GFP_KERNEL);
 	if (!pa)
 		return -ENOMEM;
 
drivers/gpu/drm/amd/display/dc/dcn30/dcn30_hwseq.c +11 -1
index 22c77e96f6a5..02d22f62c003 100644
@@ -641,10 +641,20 @@ void dcn30_set_avmute(struct pipe_ctx *pipe_ctx, bool enable)
 	if (pipe_ctx == NULL)
 		return;
 
-	if (dc_is_hdmi_tmds_signal(pipe_ctx->stream->signal) && pipe_ctx->stream_res.stream_enc != NULL)
+	if (dc_is_hdmi_tmds_signal(pipe_ctx->stream->signal) && pipe_ctx->stream_res.stream_enc != NULL) {
 		pipe_ctx->stream_res.stream_enc->funcs->set_avmute(
 				pipe_ctx->stream_res.stream_enc,
 				enable);
+
+		/* Wait for two frame to make sure AV mute is sent out */
+		if (enable) {
+			pipe_ctx->stream_res.tg->funcs->wait_for_state(pipe_ctx->stream_res.tg, CRTC_STATE_VACTIVE);
+			pipe_ctx->stream_res.tg->funcs->wait_for_state(pipe_ctx->stream_res.tg, CRTC_STATE_VBLANK);
+			pipe_ctx->stream_res.tg->funcs->wait_for_state(pipe_ctx->stream_res.tg, CRTC_STATE_VACTIVE);
+			pipe_ctx->stream_res.tg->funcs->wait_for_state(pipe_ctx->stream_res.tg, CRTC_STATE_VBLANK);
+			pipe_ctx->stream_res.tg->funcs->wait_for_state(pipe_ctx->stream_res.tg, CRTC_STATE_VACTIVE);
+		}
+	}
 }
 
 void dcn30_update_info_frame(struct pipe_ctx *pipe_ctx)
drivers/gpu/drm/amd/display/modules/hdcp/hdcp_psp.c +3 -0
index 972f2600f967..05d96fa68135 100644
@@ -405,6 +405,9 @@ enum mod_hdcp_status mod_hdcp_hdcp2_create_session(struct mod_hdcp *hdcp)
 	hdcp_cmd = (struct ta_hdcp_shared_memory *)psp->hdcp_context.hdcp_shared_buf;
 	memset(hdcp_cmd, 0, sizeof(struct ta_hdcp_shared_memory));
 
+	if (!display)
+		return MOD_HDCP_STATUS_DISPLAY_NOT_FOUND;
+
 	hdcp_cmd->in_msg.hdcp2_create_session_v2.display_handle = display->index;
 
 	if (hdcp->connection.link.adjust.hdcp2.force_type == MOD_HDCP_FORCE_TYPE_0)
drivers/gpu/drm/amd/display/modules/inc/mod_stats.h +2 -2
index 4220fd8fdd60..54cd86060f4d 100644
@@ -57,10 +57,10 @@ void mod_stats_update_event(struct mod_stats *mod_stats,
 		unsigned int length);
 
 void mod_stats_update_flip(struct mod_stats *mod_stats,
-		unsigned long timestamp_in_ns);
+		unsigned long long timestamp_in_ns);
 
 void mod_stats_update_vupdate(struct mod_stats *mod_stats,
-		unsigned long timestamp_in_ns);
+		unsigned long long timestamp_in_ns);
 
 void mod_stats_update_freesync(struct mod_stats *mod_stats,
 		unsigned int v_total_min,
drivers/gpu/drm/drm_panel.c +11 -6
index f634371c717a..7fd3de89ed07 100644
@@ -207,19 +207,24 @@ EXPORT_SYMBOL(drm_panel_disable);
  * The modes probed from the panel are automatically added to the connector
  * that the panel is attached to.
  *
- * Return: The number of modes available from the panel on success or a
- * negative error code on failure.
+ * Return: The number of modes available from the panel on success, or 0 on
+ * failure (no modes).
  */
 int drm_panel_get_modes(struct drm_panel *panel,
 			struct drm_connector *connector)
 {
 	if (!panel)
-		return -EINVAL;
+		return 0;
 
-	if (panel->funcs && panel->funcs->get_modes)
-		return panel->funcs->get_modes(panel, connector);
+	if (panel->funcs && panel->funcs->get_modes) {
+		int num;
 
-	return -EOPNOTSUPP;
+		num = panel->funcs->get_modes(panel, connector);
+		if (num > 0)
+			return num;
+	}
+
+	return 0;
 }
 EXPORT_SYMBOL(drm_panel_get_modes);
 
drivers/gpu/drm/etnaviv/etnaviv_drv.c +1 -1
index a9a3afaef9a1..edf9387069cd 100644
@@ -511,7 +511,7 @@ static struct drm_driver etnaviv_drm_driver = {
 	.desc               = "etnaviv DRM",
 	.date               = "20151214",
 	.major              = 1,
-	.minor              = 3,
+	.minor              = 4,
 };
 
 /*
drivers/gpu/drm/etnaviv/etnaviv_hwdb.c +9 -0
index 167971a09be7..e9b777ab3be7 100644
@@ -73,6 +73,9 @@ static const struct etnaviv_chip_identity etnaviv_chip_identities[] = {
 bool etnaviv_fill_identity_from_hwdb(struct etnaviv_gpu *gpu)
 {
 	struct etnaviv_chip_identity *ident = &gpu->identity;
+	const u32 product_id = ident->product_id;
+	const u32 customer_id = ident->customer_id;
+	const u32 eco_id = ident->eco_id;
 	int i;
 
 	for (i = 0; i < ARRAY_SIZE(etnaviv_chip_identities); i++) {
@@ -86,6 +89,12 @@ bool etnaviv_fill_identity_from_hwdb(struct etnaviv_gpu *gpu)
 			 etnaviv_chip_identities[i].eco_id == ~0U)) {
 			memcpy(ident, &etnaviv_chip_identities[i],
 			       sizeof(*ident));
+
+			/* Restore some id values as ~0U aka 'don't care' might been used. */
+			ident->product_id = product_id;
+			ident->customer_id = customer_id;
+			ident->eco_id = eco_id;
+
 			return true;
 		}
 	}
drivers/gpu/drm/exynos/exynos_drm_vidi.c +2 -2
index e96436e11a36..e1ffe8a28b64 100644
@@ -315,14 +315,14 @@ static int vidi_get_modes(struct drm_connector *connector)
 	 */
 	if (!ctx->raw_edid) {
 		DRM_DEV_DEBUG_KMS(ctx->dev, "raw_edid is null.\n");
-		return -EFAULT;
+		return 0;
 	}
 
 	edid_len = (1 + ctx->raw_edid->extensions) * EDID_LENGTH;
 	edid = kmemdup(ctx->raw_edid, edid_len, GFP_KERNEL);
 	if (!edid) {
 		DRM_DEV_DEBUG_KMS(ctx->dev, "failed to allocate edid\n");
-		return -ENOMEM;
+		return 0;
 	}
 
 	drm_connector_update_edid_property(connector, edid);
drivers/gpu/drm/exynos/exynos_hdmi.c +2 -2
index 981bffacda24..576fcf180716 100644
@@ -878,11 +878,11 @@ static int hdmi_get_modes(struct drm_connector *connector)
 	int ret;
 
 	if (!hdata->ddc_adpt)
-		return -ENODEV;
+		return 0;
 
 	edid = drm_get_edid(connector, hdata->ddc_adpt);
 	if (!edid)
-		return -ENODEV;
+		return 0;
 
 	hdata->dvi_mode = !drm_detect_hdmi_monitor(edid);
 	DRM_DEV_DEBUG_KMS(hdata->dev, "%s : width[%d] x height[%d]\n",
drivers/gpu/drm/i915/gt/intel_engine_pm.c +0 -3
index f7b2e07e2229..f9fdbd79c0f3 100644
@@ -250,9 +250,6 @@ static int __engine_park(struct intel_wakeref *wf)
 	intel_engine_park_heartbeat(engine);
 	intel_breadcrumbs_park(engine->breadcrumbs);
 
-	/* Must be reset upon idling, or we may miss the busy wakeup. */
-	GEM_BUG_ON(engine->execlists.queue_priority_hint != INT_MIN);
-
 	if (engine->park)
 		engine->park(engine);
 
drivers/gpu/drm/i915/gt/intel_lrc.c +3 -0
index ee9b33c3aff8..5a414d989dca 100644
@@ -5032,6 +5032,9 @@ static void execlists_park(struct intel_engine_cs *engine)
 {
 	cancel_timer(&engine->execlists.timer);
 	cancel_timer(&engine->execlists.preempt);
+
+	/* Reset upon idling, or we may delay the busy wakeup. */
+	WRITE_ONCE(engine->execlists.queue_priority_hint, INT_MIN);
 }
 
 void intel_execlists_set_default_submission(struct intel_engine_cs *engine)
drivers/gpu/drm/imx/parallel-display.c +2 -2
index b61bfa84b6bb..bcd6b9ee8eea 100644
@@ -65,14 +65,14 @@ static int imx_pd_connector_get_modes(struct drm_connector *connector)
 		int ret;
 
 		if (!mode)
-			return -EINVAL;
+			return 0;
 
 		ret = of_get_drm_display_mode(np, &imxpd->mode,
 					      &imxpd->bus_flags,
 					      OF_USE_NATIVE_MODE);
 		if (ret) {
 			drm_mode_destroy(connector->dev, mode);
-			return ret;
+			return 0;
 		}
 
 		drm_mode_copy(mode, &imxpd->mode);
drivers/gpu/drm/ttm/ttm_memory.c +2 -0
index 89d50f38c0f2..5af52012fc5c 100644
@@ -431,8 +431,10 @@ int ttm_mem_global_init(struct ttm_mem_global *glob)
 
 	si_meminfo(&si);
[… more lines in the raw message]

Lines of this file are not shown. View the raw message.

drivers/gpu/drm/vc4/vc4_hdmi.c +1 -1
index 7e8620838de9..6d01258349fa 100644

Lines of this file are not shown. View the raw message.

drivers/gpu/drm/vmwgfx/vmwgfx_binding.c +8 -12
index f41550797970..4da4bf3b7f0b 100644

Lines of this file are not shown. View the raw message.

drivers/gpu/drm/vmwgfx/vmwgfx_blit.c +2 -2
index e8d66182cd7b..ea2f2f937eb3 100644

Lines of this file are not shown. View the raw message.

drivers/gpu/drm/vmwgfx/vmwgfx_bo.c +68 -24

92 lines not on this page · raw message

drivers/gpu/drm/vmwgfx/vmwgfx_cmdbuf.c +4 -4
index 3b41cf63110a..87a39721e5bc 100644

Lines of this file are not shown. View the raw message.

drivers/gpu/drm/vmwgfx/vmwgfx_cmdbuf_res.c +2 -2
index 44d858ce4ce7..f212368c0312 100644

Lines of this file are not shown. View the raw message.

drivers/gpu/drm/vmwgfx/vmwgfx_cotable.c +2 -2
index 65e8e7a97724..984d8884357d 100644

Lines of this file are not shown. View the raw message.

drivers/gpu/drm/vmwgfx/vmwgfx_drv.c +1 -1
index 31e3e5c9f362..bdb7a5e96560 100644

Lines of this file are not shown. View the raw message.

drivers/gpu/drm/vmwgfx/vmwgfx_drv.h +5 -6
index 0a79c57c7db6..fa285c20d6da 100644

Lines of this file are not shown. View the raw message.

drivers/gpu/drm/vmwgfx/vmwgfx_execbuf.c +11 -1
index 00082c679170..616f6cb62278 100644

Lines of this file are not shown. View the raw message.

drivers/gpu/drm/vmwgfx/vmwgfx_fb.c +1 -1
index 97d9d2557447..3923acc3ab1e 100644

Lines of this file are not shown. View the raw message.

drivers/gpu/drm/vmwgfx/vmwgfx_mob.c +3 -1
index 7f95ed6aa224..fb0797b380dd 100644

Lines of this file are not shown. View the raw message.

drivers/gpu/drm/vmwgfx/vmwgfx_msg.c +4 -2
index 15b5bde69324..751582f5ab0b 100644

Lines of this file are not shown. View the raw message.

drivers/gpu/drm/vmwgfx/vmwgfx_resource.c +8 -4
index c0f156078dda..26f88d64879f 100644

Lines of this file are not shown. View the raw message.

drivers/gpu/drm/vmwgfx/vmwgfx_scrn.c +2 -2
index 2b6590344468..9c8109efefbd 100644

Lines of this file are not shown. View the raw message.

drivers/gpu/drm/vmwgfx/vmwgfx_shader.c +2 -2
index e139fdfd1635..f328aa5839a2 100644

Lines of this file are not shown. View the raw message.

drivers/gpu/drm/vmwgfx/vmwgfx_so.c +2 -1
index 3f97b61dd5d8..9330f1a0f174 100644

Lines of this file are not shown. View the raw message.

drivers/gpu/drm/vmwgfx/vmwgfx_ttm_buffer.c +3 -47

50 lines not on this page · raw message

drivers/gpu/drm/vmwgfx/vmwgfx_validation.c +3 -3
index e69bc373ae2e..cc1cfc827bb9 100644

Lines of this file are not shown. View the raw message.

drivers/hwmon/amc6821.c +11 -0
index 6b1ce2242c61..60dfdb0f5523 100644

Lines of this file are not shown. View the raw message.

drivers/infiniband/core/cm.c +19 -1
index db1a25fbe2fa..2a30b25c5e7e 100644

Lines of this file are not shown. View the raw message.

drivers/input/rmi4/rmi_driver.c +5 -1
index 258d5fe3d395..aa32371f04af 100644

Lines of this file are not shown. View the raw message.

drivers/md/dm-integrity.c +1 -1
index 62cae34ca3b4..067be1d9f51c 100644

Lines of this file are not shown. View the raw message.

drivers/md/dm-raid.c +2 -0
index e523ecdf947f..99995b1804b3 100644

Lines of this file are not shown. View the raw message.

drivers/md/dm-snap.c +3 -1
index 41735a25d50a..de73fe79640f 100644

Lines of this file are not shown. View the raw message.

drivers/md/raid5.c +12 -0
index 00995e60d46b..9f114b9d8dc6 100644

Lines of this file are not shown. View the raw message.

drivers/media/pci/sta2x11/sta2x11_vip.c +4 -5
index 336df65c8af1..01ca940aecc2 100644

Lines of this file are not shown. View the raw message.

drivers/media/tuners/xc4000.c +2 -2
index ef9af052007c..849df4d1c573 100644

Lines of this file are not shown. View the raw message.

drivers/misc/mei/hw-me-regs.h +2 -0
index eabbdf17b0c6..28acedb10737 100644

Lines of this file are not shown. View the raw message.

drivers/misc/mei/pci-me.c +2 -0
index f2765d6b8c04..91586d8afcaa 100644

Lines of this file are not shown. View the raw message.

drivers/misc/vmw_vmci/vmci_datagram.c +4 -2
index f50d22882476..a0ad1f3a69f7 100644

Lines of this file are not shown. View the raw message.

drivers/mmc/core/block.c +8 -6
index 2058f31a1bce..71ecdb13477a 100644

Lines of this file are not shown. View the raw message.

drivers/mmc/host/tmio_mmc_core.c +2 -0
index abf36acb2641..0482920a7968 100644

Lines of this file are not shown. View the raw message.

drivers/mtd/nand/raw/meson_nand.c +1 -1
index 6bb0fca4a91d..9a64190f30e9 100644

Lines of this file are not shown. View the raw message.

drivers/mtd/ubi/fastmap.c +4 -3
index 6e95c4b1473e..8081fc760d34 100644

Lines of this file are not shown. View the raw message.

drivers/mtd/ubi/vtbl.c +6 -0
index f700f0e4f2ec..6e5489e233dd 100644

Lines of this file are not shown. View the raw message.

drivers/net/ethernet/hisilicon/hns3/hns3pf/hclge_trace.h +4 -4
index 5b0b71bd6120..e8e67321e963 100644

Lines of this file are not shown. View the raw message.

drivers/net/ethernet/hisilicon/hns3/hns3vf/hclgevf_trace.h +4 -4
index e4bfb6191fef..a208af567909 100644

Lines of this file are not shown. View the raw message.

drivers/net/ethernet/intel/i40e/i40e_main.c +5 -2
index 58c87d79c126..6ea2d94c3dde 100644

Lines of this file are not shown. View the raw message.

drivers/net/ethernet/intel/i40e/i40e_virtchnl_pf.c +16 -18
index f79795cc9152..4f23243bbfbb 100644

Lines of this file are not shown. View the raw message.

drivers/net/ethernet/intel/ixgbe/ixgbe_ipsec.c +8 -8
index 319620856cba..512da34e70a3 100644

Lines of this file are not shown. View the raw message.

drivers/net/ethernet/marvell/octeontx2/af/cgx.c +5 -0
index 55dfe1a20bc9..7f82baf8e740 100644

Lines of this file are not shown. View the raw message.

drivers/net/ethernet/marvell/octeontx2/nic/otx2_pf.c +1 -1
index d6f7a2a58aee..aada28868ac5 100644

Lines of this file are not shown. View the raw message.

drivers/net/ethernet/neterion/vxge/vxge-config.c +1 -1
index f5d48d7c4ce2..da48dd85770c 100644

Lines of this file are not shown. View the raw message.

drivers/net/ethernet/pensando/ionic/ionic_lif.c +4 -1
index 49c28134ac2c..a37ca4b1e566 100644

Lines of this file are not shown. View the raw message.

drivers/net/ethernet/realtek/r8169_main.c +9 -0
index c72ff0fd38c4..c29d43c5f450 100644

Lines of this file are not shown. View the raw message.

drivers/net/ethernet/renesas/ravb_main.c +5 -2
index 8a4dff0566f7..b08478aabc6e 100644

Lines of this file are not shown. View the raw message.

drivers/net/ethernet/stmicro/stmmac/dwmac4_core.c +31 -9
index cd11be005390..5c6073d95f02 100644

Lines of this file are not shown. View the raw message.

drivers/net/ethernet/stmicro/stmmac/dwxgmac2_core.c +31 -7
index 9a5dc5fde24a..86f70ea9a520 100644

Lines of this file are not shown. View the raw message.

drivers/net/ethernet/xilinx/ll_temac_main.c +1 -1
index da136abba152..e50b59efe188 100644

Lines of this file are not shown. View the raw message.

drivers/net/wireguard/netlink.c +5 -5
index f5bc279c9a8c..9dc02fa51ed0 100644

Lines of this file are not shown. View the raw message.

drivers/net/wireless/ath/ath9k/antenna.c +1 -1
index 988222cea9df..acc84e6711b0 100644

Lines of this file are not shown. View the raw message.

drivers/net/wireless/broadcom/brcm80211/brcmfmac/cfg80211.c +2 -2
index baf5f0afe802..fbb5e29530e3 100644

Lines of this file are not shown. View the raw message.

drivers/nvme/host/pci.c +3 -0
index 970a1b374a66..5242feda5471 100644

Lines of this file are not shown. View the raw message.

drivers/nvmem/meson-efuse.c +3 -22
index d6b533497ce1..ba2714bef8d0 100644

Lines of this file are not shown. View the raw message.

drivers/of/dynamic.c +12 -0
index b6a3ee65437b..4d80167d39d4 100644

Lines of this file are not shown. View the raw message.

drivers/pci/controller/dwc/pcie-designware-ep.c +6 -1
index 339318e790e2..8ed1df61f9c7 100644

Lines of this file are not shown. View the raw message.

drivers/pci/pci-driver.c +14 -9
index c22cc20db1a7..ae675c5a4715 100644

Lines of this file are not shown. View the raw message.

drivers/pci/pci.c +2 -4
index 1f8106ec7094..d1631109b142 100644

Lines of this file are not shown. View the raw message.

drivers/pci/pci.h +17 -0
index 32fa07bfc448..da40f29036d6 100644

Lines of this file are not shown. View the raw message.

drivers/pci/pcie/Makefile +1 -1
index 9a7085668466..b2980db88cc0 100644

Lines of this file are not shown. View the raw message.

drivers/pci/pcie/dpc.c +10 -5
index cf0d4ba2e157..ab83f78f3eb1 100644

Lines of this file are not shown. View the raw message.

drivers/pci/pcie/err.c +31 -2
index 984aa023c753..bb4febcf45ba 100644

Lines of this file are not shown. View the raw message.

drivers/pci/pcie/rcec.c new file +59 -0

59 lines not on this page · raw message

drivers/pci/probe.c +5 -2
index ece90a23936d..02a75f3b5920 100644

Lines of this file are not shown. View the raw message.

drivers/pci/quirks.c +100 -0

100 lines not on this page · raw message

drivers/pci/setup-res.c +6 -2
index 875d50c16f19..b492e67c3d87 100644

Lines of this file are not shown. View the raw message.

drivers/phy/tegra/xusb.c +13 -0
index 8f11b293c48d..856397def89a 100644

Lines of this file are not shown. View the raw message.

drivers/pinctrl/renesas/core.c +3 -1
index 54f1a7334027..c39085448368 100644

Lines of this file are not shown. View the raw message.

drivers/platform/x86/touchscreen_dmi.c +9 -0
index ebe959db1eeb..fbaa61859462 100644

Lines of this file are not shown. View the raw message.

drivers/s390/crypto/zcrypt_api.c +2 -0
index b518009715ee..dde10a5c7d50 100644

Lines of this file are not shown. View the raw message.

drivers/scsi/hosts.c +4 -3
index 59eb6c296986..297f2b412d07 100644

Lines of this file are not shown. View the raw message.

drivers/scsi/lpfc/lpfc_nportdisc.c +4 -2
index 1e22364a31fc..d6287c58d504 100644

Lines of this file are not shown. View the raw message.

drivers/scsi/lpfc/lpfc_nvmet.c +1 -1
index deab8931ab48..59dc37925122 100644

Lines of this file are not shown. View the raw message.

drivers/scsi/myrb.c +10 -10
index ad17c2beaaca..d4c3f00faf1b 100644

Lines of this file are not shown. View the raw message.

drivers/scsi/myrs.c +12 -12
index e6a6678967e5..857a73e856a1 100644

Lines of this file are not shown. View the raw message.

drivers/scsi/qla2xxx/qla_attr.c +12 -2
index f919da0bbf75..e23a93374eaf 100644

Lines of this file are not shown. View the raw message.

drivers/scsi/qla2xxx/qla_def.h +1 -1
index 6645b69fc2a0..b8628bceb3ae 100644

Lines of this file are not shown. View the raw message.

drivers/scsi/qla2xxx/qla_gs.c +1 -1
index 20bbd69e35e5..d9ac17dbad78 100644

Lines of this file are not shown. View the raw message.

drivers/scsi/qla2xxx/qla_init.c +41 -61

102 lines not on this page · raw message

drivers/scsi/qla2xxx/qla_target.c +10 -0
index fdb424501da5..d2433f162815 100644

Lines of this file are not shown. View the raw message.

drivers/scsi/sd.c +6 -1
index 58f66176bcb2..f2dfd9853d34 100644

Lines of this file are not shown. View the raw message.

drivers/slimbus/core.c +2 -2
index 1d2bc181da05..69f6178f294c 100644

Lines of this file are not shown. View the raw message.

drivers/soc/fsl/qbman/qman.c +79 -19

98 lines not on this page · raw message

drivers/staging/comedi/drivers/comedi_test.c +26 -4
index cbc225eb1991..bea9a3adf08c 100644

Lines of this file are not shown. View the raw message.

drivers/staging/media/ipu3/ipu3-v4l2.c +8 -8
index 103f84466f6f..371117b511e2 100644

Lines of this file are not shown. View the raw message.

drivers/staging/vc04_services/vchiq-mmal/mmal-vchiq.c +3 -2
index d697ea55a0da..3306ec5bb291 100644

Lines of this file are not shown. View the raw message.

drivers/tee/optee/device.c +2 -1
index 3cb39f02fae0..26683697ca30 100644

Lines of this file are not shown. View the raw message.

drivers/tty/n_gsm.c +3 -0
index fa49529682ce..c20f69a4c5e9 100644

Lines of this file are not shown. View the raw message.

drivers/tty/serial/8250/8250_port.c +0 -6
index 8b49ac4856d2..6098e87a3404 100644

Lines of this file are not shown. View the raw message.

drivers/tty/serial/fsl_lpuart.c +5 -2
index 227fb2d32046..b16ad6db1ef8 100644

Lines of this file are not shown. View the raw message.

drivers/tty/serial/max310x.c +5 -2
index 5570fd3b84e1..363b68555fe6 100644

Lines of this file are not shown. View the raw message.

drivers/tty/serial/sc16is7xx.c +9 -6
index 31e0c5c3ddea..29f05db0d49b 100644

Lines of this file are not shown. View the raw message.

drivers/tty/serial/serial_core.c +12 -0
index 40fff38588d4..10b8785b9982 100644

Lines of this file are not shown. View the raw message.

drivers/tty/vt/vt.c +1 -1
index df645d127e40..a070f2e7d960 100644

Lines of this file are not shown. View the raw message.

drivers/usb/class/cdc-wdm.c +5 -1
index 80332b6a1963..58423b16022b 100644

Lines of this file are not shown. View the raw message.

drivers/usb/core/hub.c +16 -7
index 91b974aa59bf..eef78141ffca 100644

Lines of this file are not shown. View the raw message.

drivers/usb/core/hub.h +2 -0
index db4c7e2c5960..dd049bc85f88 100644

Lines of this file are not shown. View the raw message.

drivers/usb/core/port.c +3 -2
index 235a7c645503..336ecf6e1967 100644

Lines of this file are not shown. View the raw message.

drivers/usb/core/sysfs.c +13 -3
index 35ce8b87e939..366c09521785 100644

Lines of this file are not shown. View the raw message.

drivers/usb/dwc2/core.h +14 -0
index 03d16a08261d..03cc331d3b93 100644

Lines of this file are not shown. View the raw message.

drivers/usb/dwc2/core_intr.c +42 -21

63 lines not on this page · raw message

drivers/usb/dwc2/gadget.c +4 -0
index da0df69cc234..d8b83665581f 100644

Lines of this file are not shown. View the raw message.

drivers/usb/dwc2/hcd.c +39 -8

47 lines not on this page · raw message

drivers/usb/dwc2/hcd_ddma.c +11 -6
index a858b5f9c1d6..6a4aa71da103 100644

Lines of this file are not shown. View the raw message.

drivers/usb/dwc2/hw.h +1 -1
index c3d6dde2aca4..6ad7ba054432 100644

Lines of this file are not shown. View the raw message.

drivers/usb/gadget/function/f_ncm.c +1 -1
index 8fac7a67db76..752951b56ad3 100644

Lines of this file are not shown. View the raw message.

drivers/usb/gadget/udc/core.c +3 -1
index 7b3c0787d5a4..e80aa717c8b5 100644

Lines of this file are not shown. View the raw message.

drivers/usb/gadget/udc/tegra-xudc.c +28 -25

53 lines not on this page · raw message

drivers/usb/host/sl811-hcd.c +2 -0
index 9465fce99c82..f803079a9f26 100644

Lines of this file are not shown. View the raw message.

drivers/usb/phy/phy-generic.c +0 -7
index 34b9f8140187..661a229c105d 100644

Lines of this file are not shown. View the raw message.

drivers/usb/serial/cp210x.c +4 -0
index d161b64416a4..294f7f01656a 100644

Lines of this file are not shown. View the raw message.

drivers/usb/serial/ftdi_sio.c +2 -0
index 4d7f4a4ab69f..66aa999efa6d 100644

Lines of this file are not shown. View the raw message.

drivers/usb/serial/ftdi_sio_ids.h +6 -0
index 9a0f9fc99124..b2aec1106678 100644

Lines of this file are not shown. View the raw message.

drivers/usb/serial/option.c +6 -0
index 43e8cb17b4c7..fb1eba835e50 100644

Lines of this file are not shown. View the raw message.

drivers/usb/storage/isd200.c +18 -5
index 3c76336e43bb..1d22db59f7bd 100644

Lines of this file are not shown. View the raw message.

drivers/usb/typec/tcpm/tcpci.c +1 -0
index e34e46df8024..33c67adf7c67 100644

Lines of this file are not shown. View the raw message.

drivers/usb/typec/ucsi/ucsi.c +40 -2

42 lines not on this page · raw message

drivers/usb/typec/ucsi/ucsi.h +2 -2
index fce23ad16c6d..41e1a64da82e 100644

Lines of this file are not shown. View the raw message.

drivers/vfio/fsl-mc/vfio_fsl_mc_intr.c +4 -3
index 0d9f3002df7f..86f770e6d0f8 100644

Lines of this file are not shown. View the raw message.

drivers/vfio/pci/vfio_pci_intrs.c +106 -70

176 lines not on this page · raw message

drivers/vfio/platform/vfio_platform_irq.c +72 -34

106 lines not on this page · raw message

drivers/vfio/virqfd.c +21 -0
index 997cb5d0a657..1cff533017ab 100644

Lines of this file are not shown. View the raw message.

drivers/video/fbdev/core/fbmon.c +4 -3
index 1bf82dbc9e3c..3c29a5eb4380 100644

Lines of this file are not shown. View the raw message.

drivers/video/fbdev/via/accel.c +2 -2
index 0a1bc7a4d785..1e04026f0809 100644

Lines of this file are not shown. View the raw message.

drivers/virtio/virtio.c +8 -2
index 441bc057896f..5df51095d8e1 100644

Lines of this file are not shown. View the raw message.

drivers/xen/events/events_base.c +2 -3
index 24e39984914f..f608663bdfd5 100644

Lines of this file are not shown. View the raw message.

fs/aio.c +6 -2
index 900ed5207540..93b6bbf01d71 100644

Lines of this file are not shown. View the raw message.

fs/btrfs/export.c +8 -1
index bfa2bf44529c..d908afa1f313 100644

Lines of this file are not shown. View the raw message.

fs/btrfs/ioctl.c +8 -17
index 049b837934e5..ab8ed187746e 100644

Lines of this file are not shown. View the raw message.

fs/btrfs/send.c +9 -1
index 0b04adfd4a4a..0519a3557697 100644

Lines of this file are not shown. View the raw message.

fs/btrfs/volumes.c +12 -2
index eaf5cd043dac..09c23626feba 100644

Lines of this file are not shown. View the raw message.

fs/exec.c +1 -0
index 2006e245b8f3..ebe9011955b9 100644

Lines of this file are not shown. View the raw message.

fs/ext4/mballoc.c +15 -7
index 61988b7b5be7..c1d632725c2c 100644

Lines of this file are not shown. View the raw message.

fs/ext4/resize.c +2 -1
index 06e0eaf2ea4e..5d45ec29e61a 100644

Lines of this file are not shown. View the raw message.

fs/ext4/super.c +12 -0
index e386d67cff9d..0149d3c2cfd7 100644

Lines of this file are not shown. View the raw message.

fs/fat/nfs.c +6 -0
index af191371c352..bab63eeaf9cb 100644

Lines of this file are not shown. View the raw message.

fs/fuse/dir.c +4 -0
index b0c701c007c6..d131f34cd3e1 100644

Lines of this file are not shown. View the raw message.

fs/fuse/fuse_i.h +0 -1
index ceaa6868386e..33eb5fefc06b 100644

Lines of this file are not shown. View the raw message.

fs/fuse/inode.c +5 -2
index 9ea175ff9c8e..4a7ebccd359e 100644

Lines of this file are not shown. View the raw message.

fs/isofs/inode.c +16 -2
index f62b5a501566..4c763f573faf 100644

Lines of this file are not shown. View the raw message.

fs/nfs/direct.c +9 -2
index 5d86ffa72cea..499519f0f6ec 100644

Lines of this file are not shown. View the raw message.

fs/nfs/write.c +1 -1
index d3cd099ffb6e..4cf060691979 100644

Lines of this file are not shown. View the raw message.

fs/nilfs2/btree.c +7 -2
index 65cd599cb2ab..4905b7cd7bf3 100644

Lines of this file are not shown. View the raw message.

fs/nilfs2/direct.c +7 -2
index f353101955e3..7faf8c285d6c 100644

Lines of this file are not shown. View the raw message.

fs/nilfs2/inode.c +1 -1
index d144e08a9003..06f4deb550c9 100644

Lines of this file are not shown. View the raw message.

fs/pstore/zone.c +2 -0
index b50fc33f2ab2..2426fb6794fd 100644

Lines of this file are not shown. View the raw message.

fs/sysv/itree.c +4 -6
index e3d1673b8ec9..ef9bcfeec21a 100644

Lines of this file are not shown. View the raw message.

fs/ubifs/file.c +4 -9
index 19fdcda04589..18df7a82517f 100644

Lines of this file are not shown. View the raw message.

fs/vboxsf/super.c +2 -1
index c578e772cbd5..f11bcbac7727 100644

Lines of this file are not shown. View the raw message.

include/linux/blkdev.h +15 -0
index 583824f11107..a47e1aebaff2 100644

Lines of this file are not shown. View the raw message.

include/linux/cpu.h +2 -0
index 6d7ab016127c..2099226d8623 100644

Lines of this file are not shown. View the raw message.

include/linux/device.h +1 -0
index 6394c4b70a09..9c9ce573c737 100644

Lines of this file are not shown. View the raw message.

include/linux/gfp.h +9 -0
index c603237e006c..973f4143f9f6 100644

Lines of this file are not shown. View the raw message.

include/linux/hyperv.h +21 -1
index 2aaf450c8d80..b606a203de88 100644

Lines of this file are not shown. View the raw message.

include/linux/nfs_fs.h +1 -0
index e39342945a80..7488864589a7 100644

Lines of this file are not shown. View the raw message.

include/linux/objtool.h +8 -0
index d17fa7f4001d..0f13875acc5e 100644

Lines of this file are not shown. View the raw message.

include/linux/pci.h +6 -0
index bf46453475e3..5b24a6fbfa0b 100644

Lines of this file are not shown. View the raw message.

include/linux/phy/tegra/xusb.h +2 -0
index 71d956935405..86ccd90e425c 100644

Lines of this file are not shown. View the raw message.

include/linux/sunrpc/sched.h +1 -1
index 256dff36cf72..0527a4bc9a36 100644

Lines of this file are not shown. View the raw message.

include/linux/timer.h +13 -5
index d10bc7e73b41..a3d04c4f1263 100644

Lines of this file are not shown. View the raw message.

include/linux/udp.h +28 -0
index ae58ff3b6b5b..a220880019d6 100644

Lines of this file are not shown. View the raw message.

include/linux/vfio.h +2 -0
index f479c5d7f2c3..56d18912c41a 100644

Lines of this file are not shown. View the raw message.

include/net/cfg802154.h +1 -0
index 6ed07844eb24..5290781abba3 100644

Lines of this file are not shown. View the raw message.

include/net/inet_connection_sock.h +1 -0
index 568121fa0965..f5967805c33f 100644

Lines of this file are not shown. View the raw message.

include/net/sock.h +7 -0
index 87ee284ea9cb..8bcc96bf291c 100644

Lines of this file are not shown. View the raw message.

include/soc/fsl/qman.h +9 -0
index 9f484113cfda..3cecbfdb0f8c 100644

Lines of this file are not shown. View the raw message.

include/uapi/linux/input-event-codes.h +1 -0
index 7989d9483ea7..bed20a89c14c 100644

Lines of this file are not shown. View the raw message.

init/initramfs.c +1 -1
index 55b74d7e5260..ff0946072723 100644

Lines of this file are not shown. View the raw message.

io_uring/io_uring.c +1 -1
index fc60396c9039..93f9ecedc59f 100644

Lines of this file are not shown. View the raw message.

kernel/bounds.c +1 -1
index 9795d75b09b2..a94e3769347e 100644

Lines of this file are not shown. View the raw message.

kernel/bpf/verifier.c +5 -0
index fce2345f600f..25f8a8716e88 100644

Lines of this file are not shown. View the raw message.

kernel/events/core.c +9 -0
index bd569cf23569..e0b47bed8675 100644

Lines of this file are not shown. View the raw message.

kernel/panic.c +8 -0
index bc39e2b27d31..30d8da0d43d8 100644

Lines of this file are not shown. View the raw message.

kernel/power/suspend.c +1 -0
index 4aa4d5d3947f..14e981c0588a 100644

Lines of this file are not shown. View the raw message.

kernel/printk/printk.c +46 -17

63 lines not on this page · raw message

kernel/time/timer.c +97 -67

164 lines not on this page · raw message

kernel/trace/ring_buffer.c +110 -83

193 lines not on this page · raw message

mm/compaction.c +1 -6
index b58021666e1a..77ca5e6f4980 100644

Lines of this file are not shown. View the raw message.

mm/memory-failure.c +1 -1
index f320ff02cc19..dba2936292cf 100644

Lines of this file are not shown. View the raw message.

mm/memory.c +4 -0
index 1d101aeae416..2183003687ce 100644

Lines of this file are not shown. View the raw message.

mm/memtest.c +2 -2
index f53ace709ccd..d407373f225b 100644

Lines of this file are not shown. View the raw message.

mm/migrate.c +5 -1
index fcb7eb6a6eca..c0a8f3c9e256 100644

Lines of this file are not shown. View the raw message.

mm/page_alloc.c +6 -4
index 124ab9324610..ed66601044be 100644

Lines of this file are not shown. View the raw message.

mm/swapfile.c +12 -1
index 86ade667a7af..4ca1d04d8732 100644

Lines of this file are not shown. View the raw message.

mm/vmscan.c +4 -1
index 51ccd80e70b6..e2b8cee1dbc3 100644

Lines of this file are not shown. View the raw message.

net/bluetooth/hci_debugfs.c +32 -16

48 lines not on this page · raw message

net/bluetooth/hci_event.c +25 -0
index a0d9bc99f4e1..58c029958759 100644

Lines of this file are not shown. View the raw message.

net/bridge/netfilter/ebtables.c +6 -0
index bab14186f9ad..14a06d8b1a2d 100644

Lines of this file are not shown. View the raw message.

net/core/sock_map.c +6 -0
index f375ef150149..52e395a189df 100644

Lines of this file are not shown. View the raw message.

net/ipv4/inet_connection_sock.c +14 -0
index b15c9ad0095a..6ebe43b4d28f 100644

Lines of this file are not shown. View the raw message.

net/ipv4/ip_gre.c +5 -0
index a6ad0fe1387c..0ac652fef06d 100644

Lines of this file are not shown. View the raw message.

net/ipv4/netfilter/arp_tables.c +4 -0
index d6d45d820d79..48c6aa3d91ae 100644

Lines of this file are not shown. View the raw message.

net/ipv4/netfilter/ip_tables.c +4 -0
index ec981618b7b2..b46d58b9f3fe 100644

Lines of this file are not shown. View the raw message.

net/ipv4/tcp.c +2 -0
index 2e874ec85971..ac6cb2dc6038 100644

Lines of this file are not shown. View the raw message.

net/ipv4/udp.c +7 -0
index b2541c7d7c87..0b7e76e6f202 100644

Lines of this file are not shown. View the raw message.

net/ipv4/udp_offload.c +6 -7
index f4b8e56068e0..445d8bc30fdd 100644

Lines of this file are not shown. View the raw message.

net/ipv6/ip6_fib.c +7 -7
index 608205c632c8..d70783283a41 100644

Lines of this file are not shown. View the raw message.

net/ipv6/ip6_gre.c +3 -0
index 2df1036330f8..13ac0ccdc8d7 100644

Lines of this file are not shown. View the raw message.

net/ipv6/netfilter/ip6_tables.c +4 -0
index 99bb11d16712..d013395be05f 100644

Lines of this file are not shown. View the raw message.

net/ipv6/udp.c +1 -1
index 5385037209a6..b5d879f2501d 100644

Lines of this file are not shown. View the raw message.

net/ipv6/udp_offload.c +1 -7
index ebee748f25b9..7752e1e921f8 100644

Lines of this file are not shown. View the raw message.

net/mac80211/cfg.c +2 -3
index 45bb6f275598..0c3da7771b48 100644

Lines of this file are not shown. View the raw message.

net/mac802154/llsec.c +13 -5
index 55550ead2ced..a4cc9d077c59 100644

Lines of this file are not shown. View the raw message.

net/mptcp/protocol.c +0 -3
index adbe6350f980..6be7e7592291 100644

Lines of this file are not shown. View the raw message.

net/mptcp/subflow.c +3 -0
index 607519246bf2..276fe9f44df7 100644

Lines of this file are not shown. View the raw message.

net/netfilter/nf_tables_api.c +62 -12

74 lines not on this page · raw message

net/nfc/nci/core.c +5 -0
index 5bfaf06f7be7..d8002065baae 100644

Lines of this file are not shown. View the raw message.

net/rds/rdma.c +1 -1
index c29c7a59f205..3df0affff6b0 100644

Lines of this file are not shown. View the raw message.

net/sched/act_skbmod.c +5 -5
index aa98dcac94b9..934765a2edeb 100644

Lines of this file are not shown. View the raw message.

net/smc/smc_pnet.c +10 -0
index 30bae60d626c..ed9cfa11b589 100644

Lines of this file are not shown. View the raw message.

net/xfrm/xfrm_user.c +3 -0
index 8fce2e93bb3b..070946d09381 100644

Lines of this file are not shown. View the raw message.

scripts/Makefile.extrawarn +2 -0
index fe327a4532dd..eb01e8d07e28 100644

Lines of this file are not shown. View the raw message.

scripts/dummy-tools/gcc +5 -1
index 485427f40dba..91df612bf937 100755

Lines of this file are not shown. View the raw message.

scripts/gcc-x86_32-has-stack-protector.sh +5 -1
index f5c119495254..825c75c5b715 100755

Lines of this file are not shown. View the raw message.

scripts/kernel-doc +1 -1
index 7a04d4c05326..8e3257f1ea2c 100755

Lines of this file are not shown. View the raw message.

security/smack/smack_lsm.c +11 -1
index 5388f143eecd..750f6007bbbb 100644

Lines of this file are not shown. View the raw message.

sound/pci/hda/patch_realtek.c +6 -3
index 038837481c27..84df5582cde2 100644

Lines of this file are not shown. View the raw message.

sound/sh/aica.c +14 -3
index 8fa68432d3c1..2d59e3907fcf 100644

Lines of this file are not shown. View the raw message.

sound/soc/soc-ops.c +1 -1
index daecd386d5ec..a83cd8d8a963 100644

Lines of this file are not shown. View the raw message.

tools/iio/iio_utils.c +1 -1
index 48360994c2a1..b8745873928c 100644

Lines of this file are not shown. View the raw message.

tools/include/linux/objtool.h +8 -0
index d17fa7f4001d..0f13875acc5e 100644

Lines of this file are not shown. View the raw message.

tools/lib/perf/evlist.c +12 -6
index f76b1a9d5a6e..53cff32b2cb8 100644

Lines of this file are not shown. View the raw message.

tools/lib/perf/include/internal/evlist.h +2 -2
index 2d0fa02b036f..8999f2cc8ee4 100644

Lines of this file are not shown. View the raw message.

tools/power/x86/x86_energy_perf_policy/x86_energy_perf_policy.c +1 -0
index ff6c6661f075..1c80aa498d54 100644

Lines of this file are not shown. View the raw message.

tools/testing/ktest/ktest.pl +1 -0
index ea26f2b0c1bc..f72da30795dd 100755

Lines of this file are not shown. View the raw message.

tools/testing/selftests/mqueue/setting new file +1 -0
new file mode 100644
index 000000000000..a953c96aa16e

Lines of this file are not shown. View the raw message.

tools/testing/selftests/net/reuseaddr_conflict.c +1 -1
index 7c5b12664b03..bfb07dc49518 100644

Lines of this file are not shown. View the raw message.

virt/kvm/async_pf.c +26 -5
index dd777688d14a..952afb1bc83b 100644

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.