Linux 5.3.11
Greg KH
maintainerI'm announcing the release of the 5.3.11 kernel.
All users of the 5.3 kernel series must upgrade.
The updated 5.3.y git tree can be found at:
git://git.kernel.org/pub/scm/linux/kernel/git/stable/linux-stable.git linux-5.3.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 | 2 Documentation/admin-guide/hw-vuln/index.rst | 2 Documentation/admin-guide/hw-vuln/multihit.rst | 163 ++ Documentation/admin-guide/hw-vuln/tsx_async_abort.rst | 276 ++++ Documentation/admin-guide/kernel-parameters.txt | 92 + Documentation/arm64/silicon-errata.rst | 7 Documentation/x86/index.rst | 1 Documentation/x86/tsx_async_abort.rst | 117 + Makefile | 2 arch/arc/boot/dts/hsdk.dts | 8 arch/arc/configs/hsdk_defconfig | 2 arch/arm/boot/dts/imx6-logicpd-baseboard.dtsi | 4 arch/arm/boot/dts/stm32mp157c-ev1.dts | 1 arch/arm/mach-sunxi/mc_smp.c | 6 arch/arm64/include/asm/cputype.h | 2 arch/arm64/include/asm/pgtable.h | 17 arch/arm64/include/asm/vdso/vsyscall.h | 7 arch/arm64/kernel/cpu_errata.c | 62 arch/powerpc/include/asm/book3s/32/kup.h | 1 arch/powerpc/kvm/book3s.c | 8 arch/x86/Kconfig | 45 arch/x86/boot/compressed/eboot.c | 4 arch/x86/events/amd/ibs.c | 8 arch/x86/events/intel/uncore.c | 44 arch/x86/events/intel/uncore.h | 12 arch/x86/include/asm/cpufeatures.h | 2 arch/x86/include/asm/kvm_host.h | 6 arch/x86/include/asm/msr-index.h | 16 arch/x86/include/asm/nospec-branch.h | 4 arch/x86/include/asm/processor.h | 7 arch/x86/kernel/apic/apic.c | 28 arch/x86/kernel/cpu/Makefile | 2 arch/x86/kernel/cpu/bugs.c | 159 ++ arch/x86/kernel/cpu/common.c | 97 + arch/x86/kernel/cpu/cpu.h | 18 arch/x86/kernel/cpu/intel.c | 5 arch/x86/kernel/cpu/tsx.c | 140 ++ arch/x86/kernel/dumpstack_64.c | 7 arch/x86/kvm/mmu.c | 270 ++++ arch/x86/kvm/mmu.h | 4 arch/x86/kvm/paging_tmpl.h | 29 arch/x86/kvm/x86.c | 45 block/blk-cgroup.c | 13 drivers/base/cpu.c | 17 drivers/clk/imx/clk-imx8mm.c | 2 drivers/cpufreq/intel_pstate.c | 4 drivers/dma/sprd-dma.c | 27 drivers/dma/xilinx/xilinx_dma.c | 10 drivers/firmware/efi/libstub/Makefile | 1 drivers/firmware/efi/libstub/arm32-stub.c | 16 drivers/firmware/efi/libstub/efi-stub-helper.c | 24 drivers/firmware/efi/tpm.c | 1 drivers/gpu/drm/amd/amdgpu/amdgpu_job.c | 4 drivers/gpu/drm/amd/amdgpu/gmc_v10_0.c | 1 drivers/gpu/drm/amd/display/dc/core/dc.c | 4 drivers/gpu/drm/amd/display/dc/core/dc_link_ddc.c | 24 drivers/gpu/drm/amd/display/dc/core/dc_resource.c | 6 drivers/gpu/drm/amd/display/dc/dml/dcn20/display_mode_vba_20.c | 3 drivers/gpu/drm/i915/gem/i915_gem_context.c | 5 drivers/gpu/drm/i915/gem/i915_gem_context_types.h | 5 drivers/gpu/drm/i915/gem/i915_gem_execbuffer.c | 109 + drivers/gpu/drm/i915/gt/intel_engine_types.h | 13 drivers/gpu/drm/i915/gt/intel_gt_pm.c | 8 drivers/gpu/drm/i915/i915_cmd_parser.c | 435 ++++-- drivers/gpu/drm/i915/i915_drv.c | 6 drivers/gpu/drm/i915/i915_drv.h | 31 drivers/gpu/drm/i915/i915_gem.c | 16 drivers/gpu/drm/i915/i915_reg.h | 10 drivers/gpu/drm/i915/intel_pm.c | 115 + drivers/gpu/drm/i915/intel_pm.h | 3 drivers/gpu/drm/radeon/si_dpm.c | 1 drivers/gpu/drm/scheduler/sched_main.c | 19 drivers/gpu/drm/v3d/v3d_gem.c | 5 drivers/hid/hid-google-hammer.c | 4 drivers/hid/hid-ids.h | 2 drivers/hid/intel-ish-hid/ishtp/client-buffers.c | 2 drivers/hid/wacom.h | 15 drivers/hid/wacom_wac.c | 10 drivers/hwmon/ina3221.c | 2 drivers/hwtracing/intel_th/gth.c | 3 drivers/hwtracing/intel_th/pci.c | 10 drivers/iio/adc/stm32-adc.c | 4 drivers/iio/imu/adis16480.c | 5 drivers/iio/imu/inv_mpu6050/inv_mpu_core.c | 9 drivers/iio/imu/inv_mpu6050/inv_mpu_iio.h | 2 drivers/iio/imu/inv_mpu6050/inv_mpu_ring.c | 15 drivers/iio/proximity/srf04.c | 29 drivers/infiniband/core/nldev.c | 2 drivers/infiniband/core/uverbs.h | 2 drivers/infiniband/core/verbs.c | 9 drivers/infiniband/hw/cxgb4/cm.c | 30 drivers/infiniband/hw/hns/hns_roce_hw_v2.c | 6 drivers/infiniband/hw/mlx5/qp.c | 8 drivers/infiniband/hw/qedr/main.c | 2 drivers/infiniband/sw/siw/siw_qp.c | 2 drivers/infiniband/sw/siw/siw_verbs.c | 2 drivers/iommu/amd_iommu_quirks.c | 13 drivers/net/bonding/bond_main.c | 58 drivers/net/can/c_can/c_can.c | 25 drivers/net/can/c_can/c_can.h | 1 drivers/net/can/dev.c | 1 drivers/net/can/flexcan.c | 1 drivers/net/can/rx-offload.c | 6 drivers/net/can/usb/gs_usb.c | 1 drivers/net/can/usb/mcba_usb.c | 3 drivers/net/can/usb/peak_usb/pcan_usb.c | 17 drivers/net/can/usb/peak_usb/pcan_usb_core.c | 2 drivers/net/can/usb/usb_8dev.c | 3 drivers/net/ethernet/arc/emac_rockchip.c | 3 drivers/net/ethernet/cavium/octeon/octeon_mgmt.c | 2 drivers/net/ethernet/google/gve/gve_rx.c | 2 drivers/net/ethernet/google/gve/gve_tx.c | 24 drivers/net/ethernet/hisilicon/hip04_eth.c | 1 drivers/net/ethernet/hisilicon/hns/hnae.c | 1 drivers/net/ethernet/hisilicon/hns/hnae.h | 3 drivers/net/ethernet/hisilicon/hns/hns_enet.c | 22 drivers/net/ethernet/ibm/ibmvnic.c | 224 ++- drivers/net/ethernet/ibm/ibmvnic.h | 1 drivers/net/ethernet/intel/e1000/e1000_ethtool.c | 7 drivers/net/ethernet/intel/igb/igb_main.c | 3 drivers/net/ethernet/mellanox/mlx5/core/en_accel/ktls.h | 7 drivers/net/ethernet/mellanox/mlx5/core/en_accel/ktls_tx.c | 11 drivers/net/ethernet/mellanox/mlx5/core/en_main.c | 6 drivers/net/ethernet/mellanox/mlx5/core/en_tx.c | 35 drivers/net/ethernet/mellanox/mlx5/core/fpga/conn.c | 4 drivers/net/ethernet/mellanox/mlx5/core/health.c | 2 drivers/net/ethernet/mscc/ocelot.c | 20 drivers/net/ethernet/qlogic/qede/qede_main.c | 12 drivers/net/ethernet/qualcomm/rmnet/rmnet_config.c | 4 drivers/net/ethernet/realtek/r8169_main.c | 3 drivers/net/ethernet/stmicro/stmmac/stmmac_main.c | 1 drivers/net/fjes/fjes_main.c | 15 drivers/net/hyperv/netvsc_drv.c | 9 drivers/net/macsec.c | 4 drivers/net/phy/smsc.c | 1 drivers/net/usb/cdc_ncm.c | 6 drivers/net/usb/qmi_wwan.c | 1 drivers/net/wimax/i2400m/op-rfkill.c | 2 drivers/net/wireless/intel/iwlwifi/pcie/drv.c | 125 - drivers/net/wireless/mediatek/mt76/dma.c | 6 drivers/net/wireless/mediatek/mt76/mt76.h | 5 drivers/net/wireless/virt_wifi.c | 54 drivers/nfc/fdp/i2c.c | 2 drivers/nfc/st21nfca/core.c | 1 drivers/nvme/host/multipath.c | 2 drivers/pinctrl/intel/pinctrl-cherryview.c | 2 drivers/pinctrl/intel/pinctrl-intel.c | 21 drivers/scsi/lpfc/lpfc_nportdisc.c | 4 drivers/scsi/lpfc/lpfc_sli.c | 2 drivers/scsi/qla2xxx/qla_bsg.c | 6 drivers/scsi/qla2xxx/qla_mbx.c | 3 drivers/scsi/qla2xxx/qla_os.c | 4 drivers/scsi/sd.c | 3 drivers/scsi/ufs/ufs_bsg.c | 4 drivers/soundwire/Kconfig | 1 drivers/soundwire/bus.c | 2 drivers/usb/core/config.c | 5 drivers/usb/dwc3/Kconfig | 1 drivers/usb/dwc3/core.c | 3 drivers/usb/dwc3/dwc3-pci.c | 2 drivers/usb/dwc3/gadget.c | 6 drivers/usb/gadget/composite.c | 4 drivers/usb/gadget/configfs.c | 110 + drivers/usb/gadget/udc/atmel_usba_udc.c | 6 drivers/usb/gadget/udc/fsl_udc_core.c | 2 drivers/usb/misc/ldusb.c | 7 drivers/usb/usbip/stub.h | 7 drivers/usb/usbip/stub_main.c | 57 drivers/usb/usbip/stub_rx.c | 204 ++- drivers/usb/usbip/stub_tx.c | 99 + drivers/usb/usbip/usbip_common.c | 59 drivers/usb/usbip/vhci_hcd.c | 12 drivers/usb/usbip/vhci_rx.c | 3 drivers/usb/usbip/vhci_tx.c | 69 - fs/btrfs/inode.c | 15 fs/btrfs/tree-checker.c | 8 fs/btrfs/volumes.c | 1 fs/ceph/caps.c | 10 fs/ceph/dir.c | 15 fs/ceph/file.c | 15 fs/ceph/inode.c | 1 fs/cifs/smb2pdu.h | 1 fs/configfs/symlink.c | 33 fs/fs-writeback.c | 9 fs/nfs/delegation.c | 10 fs/nfs/delegation.h | 1 fs/nfs/nfs4proc.c | 7 fs/ocfs2/file.c | 134 +- include/asm-generic/vdso/vsyscall.h | 7 include/linux/cpu.h | 30 include/linux/efi.h | 18 include/linux/filter.h | 1 include/linux/kvm_host.h | 8 include/linux/mm.h | 5 include/linux/mm_types.h | 5 include/linux/page-flags.h | 20 include/linux/skmsg.h | 9 include/linux/sunrpc/bc_xprt.h | 5 include/net/bonding.h | 4 include/net/ip_vs.h | 1 include/net/neighbour.h | 4 include/net/netfilter/nf_tables.h | 3 include/net/sch_generic.h | 4 include/net/sock.h | 4 include/net/tls.h | 5 include/rdma/ib_verbs.h | 2 kernel/bpf/core.c | 2 kernel/bpf/syscall.c | 31 kernel/cgroup/cpuset.c | 3 kernel/cpu.c | 27 kernel/fork.c | 33 kernel/sched/topology.c | 11 kernel/time/vsyscall.c | 9 lib/dump_stack.c | 7 mm/filemap.c | 3 mm/khugepaged.c | 7 mm/memcontrol.c | 23 mm/page_alloc.c | 10 mm/slab.h | 4 mm/vmstat.c | 2 net/core/lwt_bpf.c | 7 net/core/skmsg.c | 20 net/ipv4/fib_semantics.c | 2 net/ipv6/route.c | 13 net/netfilter/ipset/ip_set_core.c | 8 net/netfilter/ipset/ip_set_hash_ipmac.c | 2 net/netfilter/ipvs/ip_vs_app.c | 12 net/netfilter/ipvs/ip_vs_ctl.c | 29 net/netfilter/ipvs/ip_vs_pe.c | 3 net/netfilter/ipvs/ip_vs_sched.c | 3 net/netfilter/ipvs/ip_vs_sync.c | 13 net/netfilter/nf_flow_table_core.c | 3 net/netfilter/nft_payload.c | 38 net/nfc/netlink.c | 2 net/openvswitch/vport-internal_dev.c | 11 net/sched/cls_api.c | 83 + net/smc/smc_pnet.c | 2 net/sunrpc/backchannel_rqst.c | 7 net/sunrpc/xprt.c | 5 net/sunrpc/xprtrdma/backchannel.c | 2 net/tls/tls_device.c | 10 net/tls/tls_main.c | 2 net/tls/tls_sw.c | 30 net/vmw_vsock/virtio_transport_common.c | 8 net/xdp/xdp_umem.c | 6 sound/core/timer.c | 6 sound/firewire/bebob/bebob_focusrite.c | 3 sound/pci/hda/patch_ca0132.c | 2 sound/soc/sh/rcar/dma.c | 4 sound/soc/sof/intel/hda-stream.c | 4 sound/usb/Makefile | 3 sound/usb/clock.c | 14 sound/usb/helper.h | 4 sound/usb/mixer.c | 633 ++++------ sound/usb/power.c | 2 sound/usb/quirks.c | 3 sound/usb/stream.c | 25 sound/usb/validate.c | 332 +++++ tools/gpio/Makefile | 6 tools/perf/util/hist.c | 2 tools/perf/util/map.c | 2 tools/testing/selftests/bpf/test_tc_edt.sh | 2 tools/testing/selftests/net/tls.c | 108 + tools/usb/usbip/libsrc/usbip_device_driver.c | 6 virt/kvm/kvm_main.c | 124 + 265 files changed, 5037 insertions(+), 1451 deletions(-)
Adam Ford (1):
ARM: dts: imx6-logicpd: Re-enable SNVS power key
Al Viro (3):
ceph: fix RCU case handling in ceph_d_revalidate()
ceph: add missing check in d_revalidate snapdir handling
configfs: fix a deadlock in configfs_symlink()
Alan Stern (1):
USB: Skip endpoints with 0 maxpacket length
Aleksander Morgado (1):
net: usb: qmi_wwan: add support for DW5821e with eSIM support
Alex Deucher (1):
drm/radeon: fix si_enable_smc_cac() failed issue
Alexander Shishkin (3):
intel_th: gth: Fix the window switching sequence
intel_th: pci: Add Comet Lake PCH support
intel_th: pci: Add Jasper Lake PCH support
Alexander Sverdlin (1):
net: ethernet: octeon_mgmt: Account for second possible VLAN header
Alexandru Ardelean (1):
iio: imu: adis16480: make sure provided frequency is positive
Amelie Delaunay (1):
ARM: dts: stm32: change joystick pinctrl definition on stm32mp157c-ev1
Andreas Klinger (1):
iio: srf04: fix wrong limitation in distance measuring
Andrey Grodzovsky (2):
drm/sched: Set error to s_fence if HW job submission failed. drm/amdgpu: If amdgpu_ib_schedule fails return back the error.
Andy Shevchenko (1):
pinctrl: intel: Avoid potential glitches if pin is in GPIO mode
Anton Eidelman (1):
nvme-multipath: fix possible io hang after ctrl reconnect
Ard Biesheuvel (1):
efi: libstub/arm: Account for firmware reserved memory at the base of RAM
Arnd Bergmann (1):
usb: dwc3: select CONFIG_REGMAP_MMIO
Avri Altman (1):
scsi: ufs-bsg: Wake the device before sending raw upiu commands
Baolin Wang (1):
dmaengine: sprd: Fix the possible memory leak issue
Bard Liao (1):
soundwire: bus: set initial value to port_status
Ben Hutchings (1):
drm/i915/cmdparser: Fix jump whitelist clearing
Bjorn Andersson (1):
arm64: cpufeature: Enable Qualcomm Falkor errata 1009 for Kryo
Catalin Marinas (1):
arm64: Do not mask out PTE_RDONLY in pte_same()
Chandana Kishori Chiluveru (1):
usb: gadget: composite: Fix possible double free memory bug
Christian Brauner (1):
clone3: validate stack arguments
Christophe Leroy (1):
powerpc/32s: fix allow/prevent_user_access() when crossing segment boundaries.
Chuhong Yuan (1):
net: ethernet: arc: add the missed clk_disable_unprepare
Claudiu Manoil (2):
net: mscc: ocelot: don't handle netdev events for other netdevs
net: mscc: ocelot: fix NULL pointer on LAG slave removal
Cristian Birsan (1):
usb: gadget: udc: atmel: Fix interrupt storm in FIFO mode.
Dan Carpenter (3):
netfilter: ipset: Fix an error code in ip_set_sockfn_get()
ALSA: usb-audio: remove some dead code RDMA/uverbs: Prevent potential underflow
Daniel Borkmann (2):
bpf: Fix use after free in subprog's jited symbol removal
bpf: Fix use after free in bpf_get_prog_name
Daniel Wagner (2):
scsi: lpfc: Check queue pointer before use
scsi: lpfc: Honor module parameter lpfc_use_adisc
David Ahern (1):
ipv4: Fix table id reference in fib_sync_down_addr
Davide Caratti (1):
ipvs: don't ignore errors in case refcounting ip_vs module fails
Doug Berger (1):
arm64: apply ARM64_ERRATUM_845719 workaround for Brahma-B53 core
Eric Dumazet (4):
net: fix data-race in neigh_event_send()
ipv6: fixes rt6_probe() and fib6_nh->last_probe init
net: prevent load/store tearing on sk->sk_stamp
ipvs: move old_secure_tcp into struct netns_ipvs
Eugeniy Paltsev (1):
ARC: [plat-hsdk]: Enable on-board SPI NOR flash IC
Fabrice Gasnier (1):
iio: adc: stm32-adc: fix stopping dma
Felipe Balbi (1):
usb: dwc3: gadget: fix race when disabling ep with cancelled xfers
Florian Fainelli (2):
arm64: Brahma-B53 is SSB and spectre v2 safe
arm64: apply ARM64_ERRATUM_843419 workaround for Brahma-B53 core
Gomez Iglesias, Antonio (1):
Documentation: Add ITLB_MULTIHIT documentation
Greg Kroah-Hartman (1):
Linux 5.3.11
GwanYeong Kim (1):
usbip: tools: Fix read_usb_vudc_device() error path handling
Haiyang Zhang (1):
hv_netvsc: Fix error handling in netvsc_attach()
Hannes Reinecke (1):
scsi: qla2xxx: fixup incorrect usage of host_byte
Hans de Goede (1):
pinctrl: cherryview: Fix irq_valid_mask calculation
Heiner Kallweit (1):
r8169: fix page read in r8168g_mdio_read
Hillf Danton (1):
net: openvswitch: free vport unless register_netdevice() succeeds
Himanshu Madhani (1):
scsi: qla2xxx: Initialized mailbox to prevent driver load failure
Huacai Chen (1):
timekeeping/vsyscall: Update VDSO data unconditionally
Imre Deak (1):
drm/i915/gen8+: Add RC6 CTX corruption WA
Jakub Kicinski (4):
net/tls: fix sk_msg trim on fallback to copy mode
net/tls: don't pay attention to sk_write_pending when pushing partial records net/tls: add a TX lock
selftests/tls: add test for concurrent recv and send
Jan Beulich (1):
x86/apic/32: Avoid bogus LDR warnings
Jason Gerecke (1):
HID: wacom: generic: Treat serial number and related fields as unsigned
Jay Vosburgh (1):
bonding: fix state transition issue in link monitoring
Jean-Baptiste Maneyrol (1):
iio: imu: inv_mpu6050: fix no data on MPU6050
Jeff Layton (1):
ceph: don't try to handle hashed dentries in non-O_CREAT atomic_open
Jerry Snitselaar (1):
efi/tpm: Return -EINVAL when determining tpm final events log size fails
Jiada Wang (1):
ASoC: rsnd: dma: fix SSI9 4/5/6/7 busif dma address
Jiangfeng Xiao (1):
net: hisilicon: Fix "Trying to free already-free IRQ"
Jiri Benc (2):
bpf: lwtunnel: Fix reroute supplying invalid dst selftests/bpf: More compatible nc options in test_tc_edt
Jiri Olsa (1):
perf tools: Fix time sorting
Joakim Zhang (1):
can: flexcan: disable completely the ECC mechanism
Johan Hovold (4):
can: usb_8dev: fix use-after-free on disconnect
can: mcba_usb: fix use-after-free on disconnect
can: peak_usb: fix slab info leak
USB: ldusb: use unsigned size format specifiers
Johannes Weiner (1):
mm: memcontrol: fix network errors from failing __GFP_ATOMIC charges
John Hurley (1):
net: sched: prevent duplicate flower rules from tcf_proto destroy race
John Keeping (1):
perf map: Use zalloc for map_groups
Jon Bloomfield (10):
drm/i915: Rename gen7 cmdparser tables
drm/i915: Disable Secure Batches for gen6+
drm/i915: Remove Master tables from cmdparser drm/i915: Add support for mandatory cmdparsing drm/i915: Support ro ppgtt mapped cmdparser shadow buffers drm/i915: Allow parsing of unsized batches
drm/i915: Add gen9 BCS cmdparsing
drm/i915/cmdparser: Use explicit goto for error paths drm/i915/cmdparser: Add support for backward jumps drm/i915/cmdparser: Ignore Length operands during command matching
Josef Bacik (1):
btrfs: save i_size to avoid double evaluation of i_size_read in compress_file_range
Josh Poimboeuf (1):
x86/speculation/taa: Fix printing of TAA_MSG_SMT on IBRS_ALL CPUs
Juliet Kim (1):
net/ibmvnic: unlock rtnl_lock in reset so linkwatch_event can run
Jun Lei (2):
drm/amd/display: do not synchronize "drr" displays drm/amd/display: add 50us buffer as WA for pstate switch in active
Junaid Shahid (2):
kvm: Add helper function for creating VM worker threads
kvm: x86: mmu: Recovery of shattered NX large pages
Kairui Song (1):
x86, efi: Never relocate kernel below lowest acceptable address
Kamal Heib (1):
RDMA/qedr: Fix reported firmware version
Kan Liang (1):
perf/x86/uncore: Fix event group support
Kevin Hao (1):
dump_stack: avoid the livelock of the dump_lock
Keyon Jie (1):
ASoC: SOF: Intel: hda-stream: fix the CONFIG_ prefix missing
Kim Phillips (2):
perf/x86/amd/ibs: Fix reading of the IBS OpData register and thus precise RIP validity perf/x86/amd/ibs: Handle erratum #420 only on the affected CPU family (10h)
Konstantin Khlebnikov (1):
mm/filemap.c: don't initiate writeback if mapping has no dirty pages
Krishnamraju Eraparaju (1):
RDMA/siw: free siw_base_qp in kref release routine
Kurt Van Dijck (1):
can: c_can: c_can_poll(): only read status register after status IRQ
Leonard Crestez (1):
clk: imx8m: Use SYS_PLL1_800M as intermediate parent of CLK_ARM
Lijun Ou (1):
RDMA/hns: Prevent memory leaks of eq->buf_list
Lorenzo Bianconi (1):
mt76: dma: fix buffer unmap with non-linear skbs
Luca Coelho (3):
iwlwifi: pcie: fix PCI ID 0x2720 configs that should be soc
iwlwifi: pcie: fix all 9460 entries for qnj
iwlwifi: pcie: 0x2720 is qu and 0x30DC is notLuis Henriques (2):
ceph: fix use-after-free in __ceph_remove_cap()
ceph: don't allow copy_file_range when stripe_count != 1
Lukas Wunner (1):
netfilter: nf_tables: Align nft_expr private data to 64-bit
Magnus Karlsson (1):
xsk: Fix registration of Rx-only sockets
Manfred Rudigier (1):
igb: Fix constant media auto sense switching when no cable is connected
Manish Chopra (1):
qede: fix NULL pointer deref in __qede_remove()
Marc Kleine-Budde (1):
can: rx-offload: can_rx_offload_queue_sorted(): fix error handling, avoid skb mem leak
Mark Zhang (1):
RDMA/nldev: Skip counter if port doesn't match
Martin Fuzzey (1):
net: phy: smsc: LAN8740: add PHY_RST_AFTER_CLK_EN flag
Mel Gorman (1):
mm, meminit: recalculate pcpu batch and high limits after init completes
Michael Strauss (1):
drm/amd/display: Passive DP->HDMI dongle detection fix
Michal Hocko (2):
mm, vmstat: hide /proc/pagetypeinfo from normal users x86/tsx: Add config options to set tsx=on|off|auto
Michal Suchanek (2):
soundwire: depend on ACPI
soundwire: depend on ACPI || OF
Navid Emamdoost (6):
can: gs_usb: gs_can_open(): prevent memory leak net/mlx5: prevent memory leak in mlx5_fpga_conn_create_cq net/mlx5: fix memory leak in mlx5_fw_fatal_reporter_dump drm/v3d: Fix memory leak in v3d_submit_cl_ioctl
usb: dwc3: pci: prevent memory leak in dwc3_pci_probe
wimax: i2400: Fix memory leak in i2400m_op_rfkill_sw_toggle
Nicholas Piggin (1):
scsi: qla2xxx: stop timer in shutdown path
Nicolas Boichat (1):
HID: google: add magnemite/masterball USB ids
Nicolin Chen (1):
hwmon: (ina3221) Fix read timeout issue
Nikhil Badola (1):
usb: fsl: Check memory resource before releasing it
Oliver Neukum (1):
CDC-NCM: handle incomplete transfer of MTU
Ondrej Jirman (1):
ARM: sunxi: Fix CPU powerdown on A83T
Pablo Neira Ayuso (1):
netfilter: nf_flow_table: set timeout before insertion into hashes
Pan Bian (3):
NFC: fdp: fix incorrect free object
nfc: netlink: fix double device reference drop
NFC: st21nfca: fix double free
Paolo Bonzini (2):
kvm: x86, powerpc: do not allow clearing largepages debugfs entry
kvm: mmu: ITLB_MULTIHIT mitigation
Parav Pandit (1):
IB/core: Use rdma_read_gid_l2_fields to compare GID L2 fields
Pavel Shilovsky (1):
SMB3: Fix persistent handles reconnect
Pawan Gupta (9):
x86/msr: Add the IA32_TSX_CTRL MSR
x86/cpu: Add a helper function x86_read_arch_cap_msr() x86/cpu: Add a "tsx=" cmdline option with TSX disabled by default x86/speculation/taa: Add mitigation for TSX Async Abort x86/speculation/taa: Add sysfs reporting for TSX Async Abort kvm/x86: Export MDS_NO=0 to guests when TSX is enabled x86/tsx: Add "auto" option to the tsx= cmdline parameter x86/speculation/taa: Add documentation for TSX Async Abort x86/cpu: Add Tremont to the cpu vulnerability whitelist
Peter Chen (1):
usb: gadget: configfs: fix concurrent issue between composite APIs
Pierre-Eric Pelloux-Prayer (1):
drm/amdgpu/sdma5: do not execute 0-sized IBs (v2)
Potnuri Bharat Teja (2):
iw_cxgb4: fix ECN check on the passive accept RDMA/iw_cxgb4: Avoid freeing skb twice in arp failure case
Qu Wenruo (2):
btrfs: Consider system chunk array size for new SYSTEM chunks
btrfs: tree-checker: Fix wrong check on max devid
Radhey Shyam Pandey (2):
dmaengine: xilinx_dma: Fix 64-bit simple AXIDMA transfer
dmaengine: xilinx_dma: Fix control reg update in vdma_channel_set_config
Rafi Wiener (1):
RDMA/mlx5: Clear old rate limit when closing QP
Roman Gushchin (1):
mm: slab: make page_cgroup_ino() to recognize non-compound slab pages properly
Salil Mehta (1):
net: hns: Fix the stray netpoll locks causing deadlock in NAPI path
Sean Tranchetti (1):
net: qualcomm: rmnet: Fix potential UAF when unregistering
Shakeel Butt (1):
mm: memcontrol: fix NULL-ptr deref in percpu stats flush
Shuah Khan (1):
tools: gpio: Use !building_out_of_srctree to determine srctree
Shuning Zhang (1):
ocfs2: protect extent tree in ocfs2_prepare_inode_for_write()
Srinivas Pandruvada (1):
cpufreq: intel_pstate: Fix invalid EPB setting
Stefano Brivio (1):
netfilter: ipset: Copy the right MAC address in hash:ip,mac IPv6 sets
Stefano Garzarella (1):
vsock/virtio: fix sock refcnt holding during the shutdown
Stephane Grosjean (1):
can: peak_usb: fix a potential out-of-sync while decoding packets
Suwan Kim (2):
usbip: Implement SG support to vhci-hcd and stub driver
usbip: Fix free of unallocated memory in vhci tx
Taehee Yoo (5):
bonding: fix unexpected IFF_BONDING bit unset
bonding: use dynamic lockdep key instead of subclass
macsec: fix refcnt leak in module exit routine
virt_wifi: fix refcnt leak in module exit routine
bonding: fix using uninitialized mode_lock
Takashi Iwai (10):
ALSA: timer: Fix incorrectly assigned timer instance
ALSA: hda/ca0132 - Fix possible workqueue stall
ALSA: usb-audio: More validations of descriptor units
ALSA: usb-audio: Simplify parse_audio_unit()
ALSA: usb-audio: Unify the release of usb_mixer_elem_info objects
ALSA: usb-audio: Remove superfluous bLength checks
ALSA: usb-audio: Clean up check_input_term()
ALSA: usb-audio: Fix possible NULL dereference at create_yamaha_midi_quirk()
ALSA: usb-audio: Fix copy&paste error in the validator iommu/amd: Apply the same IVRS IOAPIC workaround to Acer Aspire A315-41
Takashi Sakamoto (1):
ALSA: bebob: fix to detect configured source of sampling clock for Focusrite Saffire Pro i/o series
Tariq Toukan (3):
net/mlx5e: Tx, Fix assumption of single WQEBB of NOP in cleanup flow net/mlx5e: kTLS, Release reference on DUMPed fragments in shutdown flow net/mlx5e: TX, Fix consumer index of error cqe dump
Tejun Heo (2):
blkcg: make blkcg_print_stat() print stats only for online blkgs cgroup,writeback: don't switch wbs immediately on dead wbs if the memcg is dead
Thierry Reding (1):
arm64: errata: Update stale comment
Thomas Gleixner (1):
x86/dumpstack/64: Don't evaluate exception stacks before setup
Trond Myklebust (4):
SUNRPC: The TCP back channel mustn't disappear while requests are outstanding
SUNRPC: The RDMA back channel mustn't disappear while requests are outstanding
SUNRPC: Destroy the back channel when we destroy the host transport
NFSv4: Don't allow a cached open with a revoked delegation
Tyler Hicks (1):
cpu/speculation: Uninline and export CPU mitigations helpers
Uma Shankar (1):
drm/i915: Lower RM timeout to avoid DSI hard hangs
Ursula Braun (1):
net/smc: fix ethernet interface refcounting
Valentin Schneider (2):
sched/topology: Don't try to build empty sched domains sched/topology: Allow sched_asym_cpucapacity to be disabled
Ville Syrjälä (1):
mm/khugepaged: fix might_sleep() warn with CONFIG_HIGHPTE=y
Vineela Tummalapalli (1):
x86/bugs: Add ITLB_MULTIHIT bug infrastructure
Vladimir Oltean (2):
net: mscc: ocelot: fix vlan_filtering when enslaving to bridge before link is up
net: mscc: ocelot: refuse to overwrite the port's native vlan
Wen Yang (1):
can: dev: add missing of_node_put() after calling of_get_child_by_name()
Wenwen Wang (1):
e1000: fix memory leaks
Will Deacon (1):
fjes: Handle workqueue allocation failure
Xiang Chen (1):
scsi: sd: define variable dif as unsigned int instead of bool
Yang Shi (1):
mm: thp: handle page cache THP correctly in PageTransCompoundMap
Yangchun Fu (1):
gve: Fixes DMA synchronization.
Yinbo Zhu (1):
usb: dwc3: remove the call trace of USBx_GFLADJ
Zhang Lixu (1):
HID: intel-ish-hid: fix wrong error handling in ishtp_cl_alloc_tx_ring()
Zhenfang Wang (1):
dmaengine: sprd: Fix the link-list pointer register configuration issue
wenxu (1):
netfilter: nft_payload: fix missing check for matching length in offloads
yuqi jin (1):
net: stmmac: Fix the problem of tso_xmit
zhongshiqi (1):
dc.c:use kzalloc without test
Greg KH
maintainerDocumentation/ABI/testing/sysfs-devices-system-cpu +2 -0
@@ -486,6 +486,8 @@ What: /sys/devices/system/cpu/vulnerabilities /sys/devices/system/cpu/vulnerabilities/spec_store_bypass /sys/devices/system/cpu/vulnerabilities/l1tf /sys/devices/system/cpu/vulnerabilities/mds + /sys/devices/system/cpu/vulnerabilities/tsx_async_abort + /sys/devices/system/cpu/vulnerabilities/itlb_multihit Date: January 2018 Contact: Linux kernel mailing list <[email protected]> Description: Information about CPU vulnerabilities
Documentation/admin-guide/hw-vuln/index.rst +2 -0
@@ -12,3 +12,5 @@ are configurable at compile, boot or run time. spectre l1tf mds + tsx_async_abort + multihit.rst
Documentation/admin-guide/hw-vuln/multihit.rst new file +163 -0
163 lines not on this page · raw message
Documentation/admin-guide/hw-vuln/tsx_async_abort.rst new file +276 -0
276 lines not on this page · raw message
Documentation/admin-guide/kernel-parameters.txt +92 -0
116 lines not on this page · raw message
Documentation/arm64/silicon-errata.rst +6 -1
@@ -91,6 +91,11 @@ stable kernels. | ARM | MMU-500 | #841119,826419 | N/A | +----------------+-----------------+-----------------+-----------------------------+ +----------------+-----------------+-----------------+-----------------------------+ +| Broadcom | Brahma-B53 | N/A | ARM64_ERRATUM_845719 | ++----------------+-----------------+-----------------+-----------------------------+ +| Broadcom | Brahma-B53 | N/A | ARM64_ERRATUM_843419 | ++----------------+-----------------+-----------------+-----------------------------+ ++----------------+-----------------+-----------------+-----------------------------+ | Cavium | ThunderX ITS | #22375,24313 | CAVIUM_ERRATUM_22375 | +----------------+-----------------+-----------------+-----------------------------+ | Cavium | ThunderX ITS | #23144 | CAVIUM_ERRATUM_23144 |
@@ -124,7 +129,7 @@ stable kernels. +----------------+-----------------+-----------------+-----------------------------+ | Qualcomm Tech. | Kryo/Falkor v1 | E1003 | QCOM_FALKOR_ERRATUM_1003 | +----------------+-----------------+-----------------+-----------------------------+ -| Qualcomm Tech. | Falkor v1 | E1009 | QCOM_FALKOR_ERRATUM_1009 | +| Qualcomm Tech. | Kryo/Falkor v1 | E1009 | QCOM_FALKOR_ERRATUM_1009 | +----------------+-----------------+-----------------+-----------------------------+ | Qualcomm Tech. | QDF2400 ITS | E0065 | QCOM_QDF2400_ERRATUM_0065 | +----------------+-----------------+-----------------+-----------------------------+
Documentation/x86/index.rst +1 -0
@@ -27,6 +27,7 @@ x86-specific Documentation mds microcode resctrl_ui + tsx_async_abort usb-legacy-support i386/index x86_64/index
Documentation/x86/tsx_async_abort.rst new file +117 -0
117 lines not on this page · raw message
Makefile +1 -1
@@ -1,7 +1,7 @@ # SPDX-License-Identifier: GPL-2.0 VERSION = 5 PATCHLEVEL = 3 -SUBLEVEL = 10 +SUBLEVEL = 11 EXTRAVERSION = NAME = Bobtail Squid
arch/arc/boot/dts/hsdk.dts +8 -0
@@ -264,6 +264,14 @@ clocks = <&input_clk>; cs-gpios = <&creg_gpio 0 GPIO_ACTIVE_LOW>, <&creg_gpio 1 GPIO_ACTIVE_LOW>; + + spi-flash@0 { + compatible = "sst26wf016b", "jedec,spi-nor"; + reg = <0>; + #address-cells = <1>; + #size-cells = <1>; + spi-max-frequency = <4000000>; + }; }; creg_gpio: gpio@14b0 {
arch/arc/configs/hsdk_defconfig +2 -0
@@ -31,6 +31,8 @@ CONFIG_INET=y CONFIG_DEVTMPFS=y # CONFIG_STANDALONE is not set # CONFIG_PREVENT_FIRMWARE_BUILD is not set +CONFIG_MTD=y +CONFIG_MTD_SPI_NOR=y CONFIG_SCSI=y CONFIG_BLK_DEV_SD=y CONFIG_NETDEVICES=y
arch/arm/boot/dts/imx6-logicpd-baseboard.dtsi +4 -0
@@ -328,6 +328,10 @@ pinctrl-0 = <&pinctrl_pwm3>; }; +&snvs_pwrkey { + status = "okay"; +}; + &ssi2 { status = "okay"; };
arch/arm/boot/dts/stm32mp157c-ev1.dts +0 -1
@@ -206,7 +206,6 @@ joystick_pins: joystick { pins = "gpio0", "gpio1", "gpio2", "gpio3", "gpio4"; - drive-push-pull; bias-pull-down; };
arch/arm/mach-sunxi/mc_smp.c +5 -1
@@ -481,14 +481,18 @@ static void sunxi_mc_smp_cpu_die(unsigned int l_cpu)static int sunxi_cpu_powerdown (unsigned int cpu,unsigned int cluster) {u32 reg; +int gating_bit = cpu;pr_debug ("%s: cluster %u cpu %u\n" , __func__, cluster, cpu);if (cpu >=SUNXI_CPUS_PER_CLUSTER || cluster >=SUNXI_NR_CLUSTERS )return -EINVAL ; +if (is_a83t && cpu ==0 ) + gating_bit =4 ; +/* gate processor power */ reg =readl (prcm_base +PRCM_PWROFF_GATING_REG (cluster)); - reg |=PRCM_PWROFF_GATING_REG_CORE (cpu); + reg |=PRCM_PWROFF_GATING_REG_CORE (gating_bit);writel (reg, prcm_base +PRCM_PWROFF_GATING_REG (cluster));udelay (20 );
arch/arm64/include/asm/cputype.h +2 -0
@@ -79,6 +79,7 @@#define CAVIUM_CPU_PART_THUNDERX_83XX 0x0A3#define CAVIUM_CPU_PART_THUNDERX2 0x0AF +#define BRCM_CPU_PART_BRAHMA_B53 0x100#define BRCM_CPU_PART_VULCAN 0x516#define QCOM_CPU_PART_FALKOR_V1 0x800
@@ -105,6 +106,7 @@#define MIDR_THUNDERX_81XX MIDR_CPU_MODEL(ARM_CPU_IMP_CAVIUM, CAVIUM_CPU_PART_THUNDERX_81XX)#define MIDR_THUNDERX_83XX MIDR_CPU_MODEL(ARM_CPU_IMP_CAVIUM, CAVIUM_CPU_PART_THUNDERX_83XX)#define MIDR_CAVIUM_THUNDERX2 MIDR_CPU_MODEL(ARM_CPU_IMP_CAVIUM, CAVIUM_CPU_PART_THUNDERX2) +#define MIDR_BRAHMA_B53 MIDR_CPU_MODEL(ARM_CPU_IMP_BRCM, BRCM_CPU_PART_BRAHMA_B53)#define MIDR_BRCM_VULCAN MIDR_CPU_MODEL(ARM_CPU_IMP_BRCM, BRCM_CPU_PART_VULCAN)#define MIDR_QCOM_FALKOR_V1 MIDR_CPU_MODEL(ARM_CPU_IMP_QCOM, QCOM_CPU_PART_FALKOR_V1)#define MIDR_QCOM_FALKOR MIDR_CPU_MODEL(ARM_CPU_IMP_QCOM, QCOM_CPU_PART_FALKOR)
arch/arm64/include/asm/pgtable.h +0 -17
@@ -283,23 +283,6 @@ static inline void set_pte_at(struct mm_struct *mm, unsigned long addr,set_pte (ptep, pte); } -#define __HAVE_ARCH_PTE_SAME -static inline int pte_same (pte_t pte_a,pte_t pte_b) -{ -pteval_t lhs, rhs; - - lhs =pte_val (pte_a); - rhs =pte_val (pte_b); - -if (pte_present (pte_a)) - lhs &= ~PTE_RDONLY ; - -if (pte_present (pte_b)) - rhs &= ~PTE_RDONLY ; - -return (lhs == rhs); -} -/* * Huge pte definitions. */
arch/arm64/include/asm/vdso/vsyscall.h +0 -7
@@ -30,13 +30,6 @@ int __arm64_get_clock_mode(struct timekeeper *tk) }#define __arch_get_clock_mode __arm64_get_clock_mode -static __always_inline -int __arm64_use_vsyscall(struct vdso_data *vdata) -{ -return !vdata[CS_HRES_COARSE ].clock_mode; -} -#define __arch_use_vsyscall __arm64_use_vsyscall -static __always_inline void __arm64_update_vsyscall(struct vdso_data *vdata, struct timekeeper *tk) {
arch/arm64/kernel/cpu_errata.c +49 -13
118 lines not on this page · raw message
arch/powerpc/include/asm/book3s/32/kup.h +1 -0
@@ -91,6 +91,7 @@static inline void kuap_update_sr (u32 sr,u32 addr,u32 end) { + addr &=0xf0000000 ;/* align addr to start of segment */ barrier ();/* make sure thread.kuap is updated before playing with SRs */ while (addr < end) {mtsrin (sr, addr);
arch/powerpc/kvm/book3s.c +4 -4
@@ -36,8 +36,8 @@#include "book3s.h" #include "trace.h" -#define VM_STAT (x) offsetof(struct kvm, stat.x), KVM_STAT_VM -#define VCPU_STAT (x) offsetof(struct kvm_vcpu, stat.x), KVM_STAT_VCPU +#define VM_STAT (x, ...) offsetof(struct kvm, stat.x), KVM_STAT_VM, ## __VA_ARGS__ +#define VCPU_STAT (x, ...) offsetof(struct kvm_vcpu, stat.x), KVM_STAT_VCPU, ## __VA_ARGS__/* #define EXIT_DEBUG */
@@ -69,8 +69,8 @@ struct kvm_stats_debugfs_item debugfs_entries[] = { { "pthru_all", VCPU_STAT(pthru_all) }, { "pthru_host", VCPU_STAT(pthru_host) }, { "pthru_bad_aff", VCPU_STAT(pthru_bad_aff) }, - { "largepages_2M", VM_STAT(num_2M_pages) }, - { "largepages_1G", VM_STAT(num_1G_pages) }, + { "largepages_2M", VM_STAT(num_2M_pages, .mode = 0444) }, + { "largepages_1G", VM_STAT(num_1G_pages, .mode = 0444) }, { NULL } };
arch/x86/Kconfig +45 -0
51 lines not on this page · raw message
arch/x86/boot/compressed/eboot.c +3 -1
@@ -13,6 +13,7 @@#include <asm/e820/types.h> #include <asm/setup.h> #include <asm/desc.h> +#include <asm/boot.h> #include "../string.h" #include "eboot.h"
@@ -813,7 +814,8 @@ efi_main(struct efi_config *c, struct boot_params *boot_params) status =efi_relocate_kernel (sys_table, &bzimage_addr, hdr->init_size, hdr->init_size, hdr->pref_address, - hdr->kernel_alignment); + hdr->kernel_alignment, +LOAD_PHYSICAL_ADDR );if (status !=EFI_SUCCESS ) {efi_printk (sys_table,"efi_relocate_kernel() failed!\n" ); goto fail;
arch/x86/events/amd/ibs.c +5 -3
@@ -377,7 +377,8 @@ static inline void perf_ibs_disable_event(struct perf_ibs *perf_ibs, struct hw_perf_event *hwc, u64 config) { config &= ~perf_ibs->cnt_mask; -wrmsrl (hwc->config_base, config); +if (boot_cpu_data.x86 ==0x10 ) +wrmsrl (hwc->config_base, config); config &= ~perf_ibs->enable_mask;wrmsrl (hwc->config_base, config); }
@@ -553,7 +554,8 @@ static struct perf_ibs perf_ibs_op = { }, .msr = MSR_AMD64_IBSOPCTL, .config_mask = IBS_OP_CONFIG_MASK, - .cnt_mask = IBS_OP_MAX_CNT, + .cnt_mask =IBS_OP_MAX_CNT |IBS_OP_CUR_CNT | + IBS_OP_CUR_CNT_RAND, .enable_mask = IBS_OP_ENABLE, .valid_mask = IBS_OP_VAL, .max_period = IBS_OP_MAX_CNT << 4,
@@ -614,7 +616,7 @@ static int perf_ibs_handle_irq(struct perf_ibs *perf_ibs, struct pt_regs *iregs)if (event->attr.sample_type &PERF_SAMPLE_RAW ) offset_max = perf_ibs->offset_max;else if (check_rip) - offset_max =2 ; + offset_max =3 ;else offset_max =1 ; do {
arch/x86/events/intel/uncore.c +38 -6
70 lines not on this page · raw message
arch/x86/events/intel/uncore.h +0 -12
@@ -441,18 +441,6 @@ static inline int uncore_freerunning_hw_config(struct intel_uncore_box *box,return -EINVAL ; } -static inline void uncore_disable_box (struct intel_uncore_box *box) -{ -if (box->pmu->type->ops->disable_box) - box->pmu->type->ops->disable_box (box); -} - -static inline void uncore_enable_box (struct intel_uncore_box *box) -{ -if (box->pmu->type->ops->enable_box) - box->pmu->type->ops->enable_box (box); -} -static inline void uncore_disable_event (struct intel_uncore_box *box,struct perf_event *event) {
arch/x86/include/asm/cpufeatures.h +2 -0
@@ -397,5 +397,7 @@#define X86_BUG_MDS X86_BUG(19)/* CPU is affected by Microarchitectural data sampling */ #define X86_BUG_MSBDS_ONLY X86_BUG(20)/* CPU is only affected by the MSDBS variant of BUG_MDS */ #define X86_BUG_SWAPGS X86_BUG(21)/* CPU is affected by speculation through SWAPGS */ +#define X86_BUG_TAA X86_BUG(22)/* CPU is affected by TSX Async Abort(TAA) */ +#define X86_BUG_ITLB_MULTIHIT X86_BUG(23)/* CPU may incur MCE during certain page attribute changes */ #endif /* _ASM_X86_CPUFEATURES_H */
arch/x86/include/asm/kvm_host.h +6 -0
@@ -319,8 +319,11 @@ struct kvm_rmap_head {struct kvm_mmu_page {struct list_head link;struct hlist_node hash_link; +struct list_head lpage_disallowed_link; +bool unsync;bool mmio_cached; +bool lpage_disallowed;/* Can't be replaced by an equiv large page */ /* * The following two entries are used to key the shadow page in the
@@ -863,6 +866,7 @@ struct kvm_arch {* Hash table of struct kvm_mmu_page. */ struct list_head active_mmu_pages; +struct list_head lpage_disallowed_mmu_pages;struct kvm_page_track_notifier_node mmu_sp_tracker;struct kvm_page_track_notifier_head track_notifier_head;
@@ -937,6 +941,7 @@ struct kvm_arch {bool exception_payload_enabled;struct kvm_pmu_event_filter *pmu_event_filter; +struct task_struct *nx_lpage_recovery_thread; };struct kvm_vm_stat {
@@ -950,6 +955,7 @@ struct kvm_vm_stat {ulong mmu_unsync;ulong remote_tlb_flush;ulong lpages; +ulong nx_lpage_splits;ulong max_mmu_page_hash_collisions; };
arch/x86/include/asm/msr-index.h +16 -0
@@ -93,6 +93,18 @@* Microarchitectural Data * Sampling (MDS) vulnerabilities. */ +#define ARCH_CAP_PSCHANGE_MC_NO BIT(6)/* +* The processor is not susceptible to a +* machine check error due to modifying the +* code page size along with either the +* physical address or cache type +* without TLB invalidation. +*/ +#define ARCH_CAP_TSX_CTRL_MSR BIT(7)/* MSR for TSX control is available. */ +#define ARCH_CAP_TAA_NO BIT(8)/* +* Not susceptible to +* TSX Async Abort (TAA) vulnerabilities. +*/ #define MSR_IA32_FLUSH_CMD 0x0000010b#define L1D_FLUSH BIT(0)/*
@@ -103,6 +115,10 @@#define MSR_IA32_BBL_CR_CTL 0x00000119#define MSR_IA32_BBL_CR_CTL3 0x0000011e +#define MSR_IA32_TSX_CTRL 0x00000122 +#define TSX_CTRL_RTM_DISABLE BIT(0)/* Disable RTM feature */ +#define TSX_CTRL_CPUID_CLEAR BIT(1)/* Disable TSX enumeration */ +#define MSR_IA32_SYSENTER_CS 0x00000174#define MSR_IA32_SYSENTER_ESP 0x00000175#define MSR_IA32_SYSENTER_EIP 0x00000176
arch/x86/include/asm/nospec-branch.h +2 -2
@@ -314,7 +314,7 @@ DECLARE_STATIC_KEY_FALSE(mds_idle_clear);#include <asm/segment.h> /** -* mds_clear_cpu_buffers - Mitigation for MDS vulnerability +* mds_clear_cpu_buffers - Mitigation for MDS and TAA vulnerability * * This uses the otherwise unused and obsolete VERW instruction in * combination with microcode which triggers a CPU buffer flush when the
@@ -337,7 +337,7 @@ static inline void mds_clear_cpu_buffers(void) }/** -* mds_user_clear_cpu_buffers - Mitigation for MDS vulnerability +* mds_user_clear_cpu_buffers - Mitigation for MDS and TAA vulnerability * * Clear CPU buffers if the corresponding static key is enabled */
arch/x86/include/asm/processor.h +7 -0
@@ -988,4 +988,11 @@ enum mds_mitigations { MDS_MITIGATION_VMWERV, }; +enum taa_mitigations { +TAA_MITIGATION_OFF , +TAA_MITIGATION_UCODE_NEEDED , +TAA_MITIGATION_VERW , +TAA_MITIGATION_TSX_DISABLED , +}; +#endif /* _ASM_X86_PROCESSOR_H */
arch/x86/kernel/apic/apic.c +15 -13
@@ -1573,9 +1573,6 @@ static void setup_local_APIC(void) {int cpu =smp_processor_id ();unsigned int value; -#ifdef CONFIG_X86_32 -int logical_apicid, ldr_apicid; -#endif if (disable_apic) {
@@ -1616,16 +1613,21 @@ static void setup_local_APIC(void) apic->init_apic_ldr ();#ifdef CONFIG_X86_32 -/* -* APIC LDR is initialized. If logical_apicid mapping was -* initialized during get_smp_config(), make sure it matches the -* actual value. -*/ - logical_apicid =early_per_cpu (x86_cpu_to_logical_apicid, cpu); - ldr_apicid =GET_APIC_LOGICAL_ID (apic_read (APIC_LDR )); -WARN_ON (logical_apicid !=BAD_APICID && logical_apicid != ldr_apicid); -/* always use the value from LDR */ -early_per_cpu (x86_cpu_to_logical_apicid, cpu) = ldr_apicid; +if (apic->dest_logical) { +int logical_apicid, ldr_apicid; + +/* +* APIC LDR is initialized. If logical_apicid mapping was +* initialized during get_smp_config(), make sure it matches +* the actual value. +*/ + logical_apicid =early_per_cpu (x86_cpu_to_logical_apicid, cpu); + ldr_apicid =GET_APIC_LOGICAL_ID (apic_read (APIC_LDR )); +if (logical_apicid !=BAD_APICID ) +WARN_ON (logical_apicid != ldr_apicid); +/* Always use the value from LDR. */ +early_per_cpu (x86_cpu_to_logical_apicid, cpu) = ldr_apicid; + }#endif /*
arch/x86/kernel/cpu/Makefile +1 -1
@@ -30,7 +30,7 @@ obj-$(CONFIG_PROC_FS) += proc.o obj-$(CONFIG_X86_FEATURE_NAMES) += capflags.o powerflags.o ifdef CONFIG_CPU_SUP_INTEL -obj-y += intel.o intel_pconfig.o +obj-y += intel.o intel_pconfig.o tsx.o obj-$(CONFIG_PM) += intel_epb.o endif obj-$(CONFIG_CPU_SUP_AMD) += amd.o
arch/x86/kernel/cpu/bugs.c +155 -4
225 lines not on this page · raw message
arch/x86/kernel/cpu/common.c +64 -33
149 lines not on this page · raw message
arch/x86/kernel/cpu/cpu.h +18 -0
@@ -44,6 +44,22 @@ struct _tlb_table {extern const struct cpu_dev *const __x86_cpu_dev_start[], *const __x86_cpu_dev_end[]; +#ifdef CONFIG_CPU_SUP_INTEL +enum tsx_ctrl_states { +TSX_CTRL_ENABLE , +TSX_CTRL_DISABLE , +TSX_CTRL_NOT_SUPPORTED , +}; + +extern __ro_after_init enum tsx_ctrl_states tsx_ctrl_state; + +extern void __init tsx_init (void ); +extern void tsx_enable (void ); +extern void tsx_disable (void ); +#else +static inline void tsx_init (void ) { } +#endif /* CONFIG_CPU_SUP_INTEL */ +extern void get_cpu_cap (struct cpuinfo_x86 *c);extern void get_cpu_address_sizes (struct cpuinfo_x86 *c);extern void cpu_detect_cache_sizes (struct cpuinfo_x86 *c);
@@ -62,4 +78,6 @@ unsigned int aperfmperf_get_khz(int cpu);extern void x86_spec_ctrl_setup_ap (void ); +extern u64 x86_read_arch_cap_msr (void ); +#endif /* ARCH_X86_CPU_H */
arch/x86/kernel/cpu/intel.c +5 -0
@@ -761,6 +761,11 @@ static void init_intel(struct cpuinfo_x86 *c)detect_tme (c);init_intel_misc_features (c); + +if (tsx_ctrl_state ==TSX_CTRL_ENABLE ) +tsx_enable (); +if (tsx_ctrl_state ==TSX_CTRL_DISABLE ) +tsx_disable (); }#ifdef CONFIG_X86_32
arch/x86/kernel/cpu/tsx.c new file +140 -0
140 lines not on this page · raw message
arch/x86/kernel/dumpstack_64.c +7 -0
@@ -94,6 +94,13 @@ static bool in_exception_stack(unsigned long *stack, struct stack_info *info)BUILD_BUG_ON (N_EXCEPTION_STACKS !=6 ); begin = (unsigned long )__this_cpu_read (cea_exception_stacks); +/* +* Handle the case where stack trace is collected _before_ +* cea_exception_stacks had been initialized. +*/ +if (!begin) +return false; + end = begin +sizeof (struct cea_exception_stacks );/* Bail if @stack is outside the exception stack area. */ if (stk < begin || stk >= end)
arch/x86/kvm/mmu.c +264 -6
379 lines not on this page · raw message
arch/x86/kvm/mmu.h +4 -0
@@ -210,4 +210,8 @@ void kvm_mmu_gfn_allow_lpage(struct kvm_memory_slot *slot, gfn_t gfn);bool kvm_mmu_slot_gfn_write_protect (struct kvm *kvm,struct kvm_memory_slot *slot,u64 gfn);int kvm_arch_write_log_dirty (struct kvm_vcpu *vcpu); + +int kvm_mmu_post_init_vm (struct kvm *kvm); +void kvm_mmu_pre_destroy_vm (struct kvm *kvm); +#endif
arch/x86/kvm/paging_tmpl.h +23 -6
@@ -614,13 +614,14 @@ static void FNAME(pte_prefetch)(struct kvm_vcpu *vcpu, struct guest_walker *gw,static int FNAME (fetch )(struct kvm_vcpu *vcpu,gva_t addr,struct guest_walker *gw,int write_fault,int hlevel, -kvm_pfn_t pfn,bool map_writable,bool prefault) +kvm_pfn_t pfn,bool map_writable,bool prefault, +bool lpage_disallowed) {struct kvm_mmu_page *sp =NULL ;struct kvm_shadow_walk_iterator it;unsigned direct_access, access = gw->pt_access;int top_level, ret; -gfn_t base_gfn; +gfn_t gfn, base_gfn; direct_access = gw->pte_access;
@@ -665,13 +666,25 @@ static int FNAME(fetch)(struct kvm_vcpu *vcpu, gva_t addr,link_shadow_page (vcpu, it.sptep, sp); } - base_gfn = gw->gfn; +/* +* FNAME(page_fault) might have clobbered the bottom bits of +* gw->gfn, restore them from the virtual address. +*/ + gfn = gw->gfn | ((addr &PT_LVL_OFFSET_MASK (gw->level)) >>PAGE_SHIFT ); + base_gfn = gfn;trace_kvm_mmu_spte_requested (addr, gw->level, pfn);for (;shadow_walk_okay (&it);shadow_walk_next (&it)) {clear_sp_write_flooding_count (it.sptep); - base_gfn = gw->gfn & ~(KVM_PAGES_PER_HPAGE (it.level) -1 ); + +/* +* We cannot overwrite existing page tables with an NX +* large page, as the leaf could be executable. +*/ +disallowed_hugepage_adjust (it, gfn, &pfn, &hlevel); + + base_gfn = gfn & ~(KVM_PAGES_PER_HPAGE (it.level) -1 );if (it.level == hlevel)break ;
@@ -683,6 +696,8 @@ static int FNAME(fetch)(struct kvm_vcpu *vcpu, gva_t addr, sp =kvm_mmu_get_page (vcpu, base_gfn, addr, it.level -1 , true, direct_access);link_shadow_page (vcpu, it.sptep, sp); +if (lpage_disallowed) +account_huge_nx_page (vcpu->kvm, sp); } }
@@ -759,9 +774,11 @@ static int FNAME(page_fault)(struct kvm_vcpu *vcpu, gva_t addr, u32 error_code,int r;kvm_pfn_t pfn;int level =PT_PAGE_TABLE_LEVEL ; -bool force_pt_level = false;unsigned long mmu_seq;bool map_writable, is_self_change_mapping; +bool lpage_disallowed = (error_code &PFERR_FETCH_MASK ) && +is_nx_huge_page_enabled (); +bool force_pt_level = lpage_disallowed;pgprintk ("%s: addr %lx err %x\n" , __func__, addr, error_code);
@@ -851,7 +868,7 @@ static int FNAME(page_fault)(struct kvm_vcpu *vcpu, gva_t addr, u32 error_code,if (!force_pt_level)transparent_hugepage_adjust (vcpu, walker.gfn, &pfn, &level); r =FNAME (fetch)(vcpu, addr, &walker, write_fault, - level, pfn, map_writable, prefault); + level, pfn, map_writable, prefault, lpage_disallowed);kvm_mmu_audit (vcpu,AUDIT_POST_PAGE_FAULT ); out_unlock:
arch/x86/kvm/x86.c +42 -3
87 lines not on this page · raw message
block/blk-cgroup.c +8 -5
@@ -908,9 +908,14 @@ static int blkcg_print_stat(struct seq_file *sf, void *v)int i;bool has_stats = false; +spin_lock_irq (&blkg->q->queue_lock); + +if (!blkg->online) + goto skip; + dname =blkg_dev_name (blkg);if (!dname) -continue ; + goto skip;/* * Hooray string manipulation, count is the size written NOT
@@ -920,8 +925,6 @@ static int blkcg_print_stat(struct seq_file *sf, void *v)*/ off +=scnprintf (buf+off, size-off,"%s " , dname); -spin_lock_irq (&blkg->q->queue_lock); -blkg_rwstat_recursive_sum (blkg,NULL , offsetof(struct blkcg_gq , stat_bytes), &rwstat); rbytes = rwstat.cnt[BLKG_RWSTAT_READ ];
@@ -934,8 +937,6 @@ static int blkcg_print_stat(struct seq_file *sf, void *v) wios = rwstat.cnt[BLKG_RWSTAT_WRITE ]; dios = rwstat.cnt[BLKG_RWSTAT_DISCARD ]; -spin_unlock_irq (&blkg->q->queue_lock); -if (rbytes || wbytes || rios || wios) { has_stats = true; off += scnprintf(buf+off, size-off,
@@ -973,6 +974,8 @@ static int blkcg_print_stat(struct seq_file *sf, void *v)seq_commit (sf,-1 ); } } + skip: +spin_unlock_irq (&blkg->q->queue_lock); }rcu_read_unlock ();
drivers/base/cpu.c +17 -0
@@ -554,12 +554,27 @@ ssize_t __weak cpu_show_mds(struct device *dev,return sprintf (buf,"Not affected\n" ); } +ssize_t __weak cpu_show_tsx_async_abort (struct device *dev, +struct device_attribute *attr, +char *buf) +{ +return sprintf (buf,"Not affected\n" ); +} + +ssize_t __weak cpu_show_itlb_multihit (struct device *dev, +struct device_attribute *attr,char *buf) +{ +return sprintf (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); static DEVICE_ATTR(spec_store_bypass, 0444, cpu_show_spec_store_bypass, NULL); static DEVICE_ATTR(l1tf, 0444, cpu_show_l1tf, NULL); static DEVICE_ATTR(mds, 0444, cpu_show_mds, NULL); +static DEVICE_ATTR(tsx_async_abort, 0444, cpu_show_tsx_async_abort, NULL); +static DEVICE_ATTR(itlb_multihit, 0444, cpu_show_itlb_multihit, NULL);static struct attribute *cpu_root_vulnerabilities_attrs[] = { &dev_attr_meltdown.attr,
@@ -568,6 +583,8 @@ static struct attribute *cpu_root_vulnerabilities_attrs[] = { &dev_attr_spec_store_bypass.attr, &dev_attr_l1tf.attr, &dev_attr_mds.attr, + &dev_attr_tsx_async_abort.attr, + &dev_attr_itlb_multihit.attr, NULL };
drivers/clk/imx/clk-imx8mm.c +1 -1
@@ -666,7 +666,7 @@ static int __init imx8mm_clocks_init(struct device_node *ccm_node) clks[IMX8MM_CLK_A53_DIV ], clks[IMX8MM_CLK_A53_SRC ], clks[IMX8MM_ARM_PLL_OUT ], - clks[IMX8MM_CLK_24M]); + clks[IMX8MM_SYS_PLL1_800M]);imx_check_clocks (clks,ARRAY_SIZE (clks));
drivers/cpufreq/intel_pstate.c +1 -3
@@ -846,11 +846,9 @@ static void intel_pstate_hwp_force_min_perf(int cpu) value |=HWP_MAX_PERF (min_perf); value |=HWP_MIN_PERF (min_perf); -/* Set EPP/EPB to min */ +/* Set EPP to min */ if (boot_cpu_has (X86_FEATURE_HWP_EPP )) value |=HWP_ENERGY_PERF_PREFERENCE (HWP_EPP_POWERSAVE ); -else -intel_pstate_set_epb (cpu,HWP_EPP_BALANCE_POWERSAVE );wrmsrl_on_cpu (cpu,MSR_HWP_REQUEST , value); }
drivers/dma/sprd-dma.c +25 -2
@@ -134,6 +134,10 @@#define SPRD_DMA_SRC_TRSF_STEP_OFFSET 0#define SPRD_DMA_TRSF_STEP_MASK GENMASK(15, 0) +/* SPRD DMA_SRC_BLK_STEP register definition */ +#define SPRD_DMA_LLIST_HIGH_MASK GENMASK(31, 28) +#define SPRD_DMA_LLIST_HIGH_SHIFT 28 +/* define DMA channel mode & trigger mode mask */ #define SPRD_DMA_CHN_MODE_MASK GENMASK(7, 0)#define SPRD_DMA_TRG_MODE_MASK GENMASK(7, 0)
@@ -208,6 +212,7 @@ struct sprd_dma_dev {struct sprd_dma_chn channels[0 ]; }; +static void sprd_dma_free_desc (struct virt_dma_desc *vd);static bool sprd_dma_filter_fn (struct dma_chan *chan,void *param);static struct of_dma_filter_info sprd_dma_info = { .filter_fn = sprd_dma_filter_fn,
@@ -609,12 +614,19 @@ static int sprd_dma_alloc_chan_resources(struct dma_chan *chan)static void sprd_dma_free_chan_resources (struct dma_chan *chan) {struct sprd_dma_chn *schan =to_sprd_dma_chan (chan); +struct virt_dma_desc *cur_vd =NULL ;unsigned long flags;spin_lock_irqsave (&schan->vc.lock, flags); +if (schan->cur_desc) + cur_vd = &schan->cur_desc->vd; +sprd_dma_stop (schan);spin_unlock_irqrestore (&schan->vc.lock, flags); +if (cur_vd) +sprd_dma_free_desc (cur_vd); +vchan_free_chan_resources (&schan->vc);pm_runtime_put (chan->device->dev); }
@@ -717,6 +729,7 @@ static int sprd_dma_fill_desc(struct dma_chan *chan,u32 int_mode = flags &SPRD_DMA_INT_MASK ;int src_datawidth, dst_datawidth, src_step, dst_step;u32 temp, fix_mode =0 , fix_en =0 ; +phys_addr_t llist_ptr;if (dir ==DMA_MEM_TO_DEV ) { src_step =sprd_dma_get_step (slave_cfg->src_addr_width);
@@ -814,13 +827,16 @@ static int sprd_dma_fill_desc(struct dma_chan *chan,* Set the link-list pointer point to next link-list * configuration's physical address. */ - hw->llist_ptr = schan->linklist.phy_addr + temp; + llist_ptr = schan->linklist.phy_addr + temp; + hw->llist_ptr =lower_32_bits (llist_ptr); + hw->src_blk_step = (upper_32_bits (llist_ptr) <<SPRD_DMA_LLIST_HIGH_SHIFT ) & +SPRD_DMA_LLIST_HIGH_MASK ; }else { hw->llist_ptr =0 ; + hw->src_blk_step =0 ; } hw->frg_step =0 ; - hw->src_blk_step =0 ; hw->des_blk_step =0 ;return 0 ; }
@@ -1023,15 +1039,22 @@ static int sprd_dma_resume(struct dma_chan *chan)static int sprd_dma_terminate_all (struct dma_chan *chan) {struct sprd_dma_chn *schan =to_sprd_dma_chan (chan); +struct virt_dma_desc *cur_vd =NULL ;unsigned long flags;LIST_HEAD (head);spin_lock_irqsave (&schan->vc.lock, flags); +if (schan->cur_desc) + cur_vd = &schan->cur_desc->vd; +sprd_dma_stop (schan);vchan_get_all_descriptors (&schan->vc, &head);spin_unlock_irqrestore (&schan->vc.lock, flags); +if (cur_vd) +sprd_dma_free_desc (cur_vd); +vchan_dma_desc_free_list (&schan->vc, &head);return 0 ; }
drivers/dma/xilinx/xilinx_dma.c +9 -1
@@ -68,6 +68,9 @@#define XILINX_DMA_DMACR_CIRC_EN BIT(1)#define XILINX_DMA_DMACR_RUNSTOP BIT(0)#define XILINX_DMA_DMACR_FSYNCSRC_MASK GENMASK(6, 5) +#define XILINX_DMA_DMACR_DELAY_MASK GENMASK(31, 24) +#define XILINX_DMA_DMACR_FRAME_COUNT_MASK GENMASK(23, 16) +#define XILINX_DMA_DMACR_MASTER_MASK GENMASK(11, 8)#define XILINX_DMA_REG_DMASR 0x0004#define XILINX_DMA_DMASR_EOL_LATE_ERR BIT(15)
@@ -1354,7 +1357,8 @@ static void xilinx_dma_start_transfer(struct xilinx_dma_chan *chan) node); hw = &segment->hw; -xilinx_write (chan,XILINX_DMA_REG_SRCDSTADDR , hw->buf_addr); +xilinx_write (chan,XILINX_DMA_REG_SRCDSTADDR , +xilinx_prep_dma_addr_t (hw->buf_addr));/* Start the transfer */ dma_ctrl_write(chan, XILINX_DMA_REG_BTT,
@@ -2117,8 +2121,10 @@ int xilinx_vdma_channel_set_config(struct dma_chan *dchan, chan->config.gen_lock = cfg->gen_lock; chan->config.master = cfg->master; + dmacr &= ~XILINX_DMA_DMACR_GENLOCK_EN ;if (cfg->gen_lock && chan->genlock) { dmacr |=XILINX_DMA_DMACR_GENLOCK_EN ; + dmacr &= ~XILINX_DMA_DMACR_MASTER_MASK ; dmacr |= cfg->master <<XILINX_DMA_DMACR_MASTER_SHIFT ; }
@@ -2134,11 +2140,13 @@ int xilinx_vdma_channel_set_config(struct dma_chan *dchan, chan->config.delay = cfg->delay;if (cfg->coalesc <=XILINX_DMA_DMACR_FRAME_COUNT_MAX ) { + dmacr &= ~XILINX_DMA_DMACR_FRAME_COUNT_MASK ; dmacr |= cfg->coalesc <<XILINX_DMA_DMACR_FRAME_COUNT_SHIFT ; chan->config.coalesc = cfg->coalesc; }if (cfg->delay <=XILINX_DMA_DMACR_DELAY_MAX ) { + dmacr &= ~XILINX_DMA_DMACR_DELAY_MASK ; dmacr |= cfg->delay <<XILINX_DMA_DMACR_DELAY_SHIFT ; chan->config.delay = cfg->delay; }
drivers/firmware/efi/libstub/Makefile +1 -0
@@ -52,6 +52,7 @@ lib-$(CONFIG_EFI_ARMSTUB) += arm-stub.o fdt.o string.o random.o \ lib-$(CONFIG_ARM) += arm32-stub.o lib-$(CONFIG_ARM64) += arm64-stub.o +CFLAGS_arm32-stub.o := -DTEXT_OFFSET=$(TEXT_OFFSET) CFLAGS_arm64-stub.o := -DTEXT_OFFSET=$(TEXT_OFFSET) #
drivers/firmware/efi/libstub/arm32-stub.c +13 -3
@@ -195,6 +195,7 @@ efi_status_t handle_kernel_image(efi_system_table_t *sys_table,unsigned long dram_base, efi_loaded_image_t *image) { + unsigned long kernel_base;efi_status_t status;/*
@@ -204,9 +205,18 @@ efi_status_t handle_kernel_image(efi_system_table_t *sys_table,* loaded. These assumptions are made by the decompressor, * before any memory map is available. */ - dram_base =round_up (dram_base,SZ_128M ); + kernel_base =round_up (dram_base,SZ_128M ); - status =reserve_kernel_base (sys_table, dram_base, reserve_addr, +/* +* Note that some platforms (notably, the Raspberry Pi 2) put +* spin-tables and other pieces of firmware at the base of RAM, +* abusing the fact that the window of TEXT_OFFSET bytes at the +* base of the kernel image is only partially used at the moment. +* (Up to 5 pages are used for the swapper page tables) +*/ + kernel_base +=TEXT_OFFSET -5 *PAGE_SIZE ; + + status =reserve_kernel_base (sys_table, kernel_base, reserve_addr, reserve_size);if (status !=EFI_SUCCESS ) {pr_efi_err (sys_table,"Unable to allocate memory for uncompressed kernel.\n" );
@@ -220,7 +230,7 @@ efi_status_t handle_kernel_image(efi_system_table_t *sys_table, *image_size = image->image_size; status =efi_relocate_kernel (sys_table, image_addr, *image_size, *image_size, - dram_base +MAX_UNCOMP_KERNEL_SIZE ,0 ); + kernel_base +MAX_UNCOMP_KERNEL_SIZE ,0 ,0 );if (status !=EFI_SUCCESS ) {pr_efi_err (sys_table,"Failed to relocate kernel.\n" );efi_free (sys_table, *reserve_size, *reserve_addr);
drivers/firmware/efi/libstub/efi-stub-helper.c +10 -14
@@ -260,11 +260,11 @@ efi_status_t efi_high_alloc(efi_system_table_t *sys_table_arg, }/* -* Allocate at the lowest possible address. +* Allocate at the lowest possible address that is not below 'min'. */ -efi_status_t efi_low_alloc (efi_system_table_t *sys_table_arg, -unsigned long size,unsigned long align, -unsigned long *addr) +efi_status_t efi_low_alloc_above (efi_system_table_t *sys_table_arg, +unsigned long size,unsigned long align, +unsigned long *addr,unsigned long min) {unsigned long map_size, desc_size, buff_size;efi_memory_desc_t *map;
@@ -311,13 +311,8 @@ efi_status_t efi_low_alloc(efi_system_table_t *sys_table_arg, start = desc->phys_addr; end = start + desc->num_pages *EFI_PAGE_SIZE ; -/* -* Don't allocate at 0x0. It will confuse code that -* checks pointers against NULL. Skip the first 8 -* bytes so we start at a nice even number. -*/ -if (start ==0x0 ) - start +=8 ; +if (start < min) + start = min; start =round_up (start, align);if ((start + size) > end)
@@ -698,7 +693,8 @@ efi_status_t efi_relocate_kernel(efi_system_table_t *sys_table_arg,unsigned long image_size, unsigned long alloc_size, unsigned long preferred_addr, - unsigned long alignment) + unsigned long alignment, + unsigned long min_addr) { unsigned long cur_image_addr;unsigned long new_addr =0 ;
@@ -731,8 +727,8 @@ efi_status_t efi_relocate_kernel(efi_system_table_t *sys_table_arg,* possible. */ if (status !=EFI_SUCCESS ) { - status =efi_low_alloc (sys_table_arg, alloc_size, alignment, - &new_addr); + status =efi_low_alloc_above (sys_table_arg, alloc_size, + alignment, &new_addr, min_addr); }if (status !=EFI_SUCCESS ) {pr_efi_err (sys_table_arg,"Failed to allocate usable memory for kernel.\n" );
drivers/firmware/efi/tpm.c +1 -0
@@ -88,6 +88,7 @@ int __init efi_tpm_eventlog_init(void)if (tbl_size <0 ) {pr_err (FW_BUG "Failed to parse event in TPM Final Events Log\n" ); + ret = -EINVAL ; goto out_calc; }
drivers/gpu/drm/amd/amdgpu/amdgpu_job.c +3 -1
@@ -218,7 +218,7 @@ static struct dma_fence *amdgpu_job_run(struct drm_sched_job *sched_job)struct amdgpu_ring *ring =to_amdgpu_ring (sched_job->sched);struct dma_fence *fence =NULL , *finished;struct amdgpu_job *job; -int r; +int r =0 ; job =to_amdgpu_job (sched_job); finished = &job->base.s_fence->finished;
@@ -243,6 +243,8 @@ static struct dma_fence *amdgpu_job_run(struct drm_sched_job *sched_job) job->fence =dma_fence_get (fence);amdgpu_job_free_resources (job); + + fence = r ?ERR_PTR (r) : fence;return fence; }
drivers/gpu/drm/amd/amdgpu/gmc_v10_0.c +1 -0
@@ -264,6 +264,7 @@ static void gmc_v10_0_flush_gpu_tlb(struct amdgpu_device *adev, job->vm_pd_addr =amdgpu_gmc_pd_addr (adev->gart.bo); job->vm_needs_flush = true; + job->ibs->ptr[job->ibs->length_dw++] = ring->funcs->nop;amdgpu_ring_pad_ib (ring, &job->ibs[0 ]); r =amdgpu_job_submit (job, &adev->mman.entity,AMDGPU_FENCE_OWNER_UNDEFINED , &fence);
drivers/gpu/drm/amd/display/dc/core/dc.c +4 -0
@@ -566,6 +566,10 @@ static bool construct(struct dc *dc,#ifdef CONFIG_DRM_AMD_DC_DCN2_0 // Allocate memory for the vm_helper dc->vm_helper =kzalloc (sizeof (struct vm_helper ),GFP_KERNEL ); +if (!dc->vm_helper) { +dm_error ("%s: failed to create dc->vm_helper\n" , __func__); + goto fail; + }#endif memcpy (&dc->bb_overrides, &init_params->bb_overrides,sizeof (dc->bb_overrides));
drivers/gpu/drm/amd/display/dc/core/dc_link_ddc.c +18 -6
@@ -374,6 +374,7 @@ void dal_ddc_service_i2c_query_dp_dual_mode_adaptor(enum display_dongle_type *dongle = &sink_cap->dongle_type;uint8_t type2_dongle_buf[DP_ADAPTOR_TYPE2_SIZE ];bool is_type2_dongle = false; +int retry_count =2 ;struct dp_hdmi_dongle_signature_data *dongle_signature;/* Assume we have no valid DP passive dongle connected */
@@ -386,13 +387,24 @@ void dal_ddc_service_i2c_query_dp_dual_mode_adaptor( DP_HDMI_DONGLE_ADDRESS, type2_dongle_buf, sizeof(type2_dongle_buf))) { - *dongle =DISPLAY_DONGLE_DP_DVI_DONGLE ; - sink_cap->max_hdmi_pixel_clock =DP_ADAPTOR_DVI_MAX_TMDS_CLK ; +/* Passive HDMI dongles can sometimes fail here without retrying*/ +while (retry_count >0 ) { +if (i2c_read (ddc, +DP_HDMI_DONGLE_ADDRESS , + type2_dongle_buf, +sizeof (type2_dongle_buf))) +break ; + retry_count--; + } +if (retry_count ==0 ) { + *dongle =DISPLAY_DONGLE_DP_DVI_DONGLE ; + sink_cap->max_hdmi_pixel_clock =DP_ADAPTOR_DVI_MAX_TMDS_CLK ; -CONN_DATA_DETECT (ddc->link, type2_dongle_buf,sizeof (type2_dongle_buf), -"DP-DVI passive dongle %dMhz: " , -DP_ADAPTOR_DVI_MAX_TMDS_CLK /1000 ); -return ; +CONN_DATA_DETECT (ddc->link, type2_dongle_buf,sizeof (type2_dongle_buf), +"DP-DVI passive dongle %dMhz: " , +DP_ADAPTOR_DVI_MAX_TMDS_CLK /1000 ); +return ; + } }/* Check if Type 2 dongle.*/
drivers/gpu/drm/amd/display/dc/core/dc_resource.c +6 -0
@@ -394,6 +394,9 @@ bool resource_are_streams_timing_synchronizable(if (stream1->view_format != stream2->view_format)return false; +if (stream1->ignore_msa_timing_param || stream2->ignore_msa_timing_param) +return false; +return true; } static bool is_dp_and_hdmi_sharable(
@@ -1566,6 +1569,9 @@ bool dc_is_stream_unchanged(if (!are_stream_backends_same (old_stream, stream))return false; +if (old_stream->ignore_msa_timing_param != stream->ignore_msa_timing_param) +return false; +return true; }
drivers/gpu/drm/amd/display/dc/dml/dcn20/display_mode_vba_20.c +2 -1
@@ -2577,7 +2577,8 @@ static void dml20_DISPCLKDPPCLKDCFCLKDeepSleepPrefetchParametersWatermarksAndPer mode_lib->vba.MinActiveDRAMClockChangeMargin + mode_lib->vba.DRAMClockChangeLatency; -if (mode_lib->vba.MinActiveDRAMClockChangeMargin >0 ) { +if (mode_lib->vba.MinActiveDRAMClockChangeMargin >50 ) { + mode_lib->vba.DRAMClockChangeWatermark +=25 ; mode_lib->vba.DRAMClockChangeSupport[0 ][0 ] = dm_dram_clock_change_vactive; }else {if (mode_lib->vba.SynchronizedVBlank || mode_lib->vba.NumberOfActivePlanes ==1 ) {
drivers/gpu/drm/i915/gem/i915_gem_context.c +5 -0
@@ -315,6 +315,8 @@ static void i915_gem_context_free(struct i915_gem_context *ctx)free_engines (rcu_access_pointer (ctx->engines));mutex_destroy (&ctx->engines_mutex); +kfree (ctx->jump_whitelist); +if (ctx->timeline)i915_timeline_put (ctx->timeline);
@@ -465,6 +467,9 @@ __create_context(struct drm_i915_private *i915)for (i =0 ; i <ARRAY_SIZE (ctx->hang_timestamp); i++) ctx->hang_timestamp[i] = jiffies -CONTEXT_FAST_HANG_JIFFIES ; + ctx->jump_whitelist =NULL ; + ctx->jump_whitelist_cmds =0 ; +return ctx; err_free:
drivers/gpu/drm/i915/gem/i915_gem_context_types.h +5 -0
@@ -197,6 +197,11 @@ struct i915_gem_context {* per vm, which may be one per context or shared with the global GTT) */ struct radix_tree_root handles_vma; + +/** jump_whitelist: Bit array for tracking cmds during cmdparsing */ +unsigned long *jump_whitelist; +/** jump_whitelist_cmds: No of cmd slots available */ + u32 jump_whitelist_cmds; };#endif /* __I915_GEM_CONTEXT_TYPES_H__ */
drivers/gpu/drm/i915/gem/i915_gem_execbuffer.c +78 -31
153 lines not on this page · raw message
drivers/gpu/drm/i915/gt/intel_engine_types.h +10 -3
Lines of this file are not shown. View the raw message.
drivers/gpu/drm/i915/i915_cmd_parser.c +306 -129
435 lines not on this page · raw message
drivers/gpu/drm/i915/intel_pm.c +113 -2
115 lines not on this page · raw message
drivers/gpu/drm/scheduler/sched_main.c +16 -3
Lines of this file are not shown. View the raw message.
drivers/hid/intel-ish-hid/ishtp/client-buffers.c +1 -1
Lines of this file are not shown. View the raw message.
drivers/iio/imu/inv_mpu6050/inv_mpu_core.c +9 -0
Lines of this file are not shown. View the raw message.
drivers/iio/imu/inv_mpu6050/inv_mpu_iio.h +2 -0
Lines of this file are not shown. View the raw message.
drivers/iio/imu/inv_mpu6050/inv_mpu_ring.c +12 -3
Lines of this file are not shown. View the raw message.
drivers/infiniband/hw/hns/hns_roce_hw_v2.c +3 -3
Lines of this file are not shown. View the raw message.
drivers/net/bonding/bond_main.c +32 -26
58 lines not on this page · raw message
drivers/net/can/usb/peak_usb/pcan_usb.c +12 -5
Lines of this file are not shown. View the raw message.
drivers/net/can/usb/peak_usb/pcan_usb_core.c +1 -1
Lines of this file are not shown. View the raw message.
drivers/net/ethernet/arc/emac_rockchip.c +3 -0
Lines of this file are not shown. View the raw message.
drivers/net/ethernet/cavium/octeon/octeon_mgmt.c +1 -1
Lines of this file are not shown. View the raw message.
drivers/net/ethernet/google/gve/gve_rx.c +2 -0
Lines of this file are not shown. View the raw message.
drivers/net/ethernet/google/gve/gve_tx.c +22 -2
Lines of this file are not shown. View the raw message.
drivers/net/ethernet/hisilicon/hip04_eth.c +0 -1
Lines of this file are not shown. View the raw message.
drivers/net/ethernet/hisilicon/hns/hnae.c +0 -1
Lines of this file are not shown. View the raw message.
drivers/net/ethernet/hisilicon/hns/hnae.h +0 -3
Lines of this file are not shown. View the raw message.
drivers/net/ethernet/hisilicon/hns/hns_enet.c +1 -21
Lines of this file are not shown. View the raw message.
drivers/net/ethernet/ibm/ibmvnic.c +156 -68
224 lines not on this page · raw message
drivers/net/ethernet/intel/e1000/e1000_ethtool.c +3 -4
Lines of this file are not shown. View the raw message.
drivers/net/ethernet/intel/igb/igb_main.c +2 -1
Lines of this file are not shown. View the raw message.
drivers/net/ethernet/mellanox/mlx5/core/en_accel/ktls.h +6 -1
Lines of this file are not shown. View the raw message.
drivers/net/ethernet/mellanox/mlx5/core/en_accel/ktls_tx.c +9 -2
Lines of this file are not shown. View the raw message.
drivers/net/ethernet/mellanox/mlx5/core/en_main.c +5 -1
Lines of this file are not shown. View the raw message.
drivers/net/ethernet/mellanox/mlx5/core/en_tx.c +20 -15
Lines of this file are not shown. View the raw message.
drivers/net/ethernet/mellanox/mlx5/core/fpga/conn.c +3 -1
Lines of this file are not shown. View the raw message.
drivers/net/ethernet/mellanox/mlx5/core/health.c +1 -1
Lines of this file are not shown. View the raw message.
drivers/net/ethernet/qlogic/qede/qede_main.c +10 -2
Lines of this file are not shown. View the raw message.
drivers/net/ethernet/qualcomm/rmnet/rmnet_config.c +2 -2
Lines of this file are not shown. View the raw message.
drivers/net/ethernet/realtek/r8169_main.c +3 -0
Lines of this file are not shown. View the raw message.
drivers/net/ethernet/stmicro/stmmac/stmmac_main.c +1 -0
Lines of this file are not shown. View the raw message.
drivers/net/wireless/intel/iwlwifi/pcie/drv.c +63 -62
125 lines not on this page · raw message
drivers/net/wireless/mediatek/mt76/dma.c +4 -2
Lines of this file are not shown. View the raw message.
drivers/net/wireless/mediatek/mt76/mt76.h +3 -2
Lines of this file are not shown. View the raw message.
drivers/net/wireless/virt_wifi.c +52 -2
54 lines not on this page · raw message
drivers/pinctrl/intel/pinctrl-cherryview.c +1 -1
Lines of this file are not shown. View the raw message.
drivers/usb/gadget/configfs.c +105 -5
110 lines not on this page · raw message
drivers/usb/gadget/udc/atmel_usba_udc.c +4 -2
Lines of this file are not shown. View the raw message.
drivers/usb/usbip/stub_main.c +42 -15
57 lines not on this page · raw message
drivers/usb/usbip/stub_rx.c +146 -58
204 lines not on this page · raw message
drivers/usb/usbip/stub_tx.c +77 -22
99 lines not on this page · raw message
drivers/usb/usbip/usbip_common.c +41 -18
59 lines not on this page · raw message
drivers/usb/usbip/vhci_tx.c +57 -12
69 lines not on this page · raw message
fs/ocfs2/file.c +90 -44
134 lines not on this page · raw message
net/netfilter/ipset/ip_set_hash_ipmac.c +1 -1
Lines of this file are not shown. View the raw message.
net/sched/cls_api.c +79 -4
83 lines not on this page · raw message
net/vmw_vsock/virtio_transport_common.c +5 -3
Lines of this file are not shown. View the raw message.
sound/usb/mixer.c +283 -350
633 lines not on this page · raw message
sound/usb/validate.c new file +332 -0
332 lines not on this page · raw message
tools/testing/selftests/bpf/test_tc_edt.sh +1 -1
Lines of this file are not shown. View the raw message.
tools/testing/selftests/net/tls.c +108 -0
108 lines not on this page · raw message
tools/usb/usbip/libsrc/usbip_device_driver.c +4 -2
Lines of this file are not shown. View the raw message.
virt/kvm/kvm_main.c +120 -4
124 lines not on this page · 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.