Linux 4.14.154
Greg KH
maintainerI'm announcing the release of the 4.14.154 kernel.
All users of the 4.14 kernel series must upgrade.
The updated 4.14.y git tree can be found at:
git://git.kernel.org/pub/scm/linux/kernel/git/stable/linux-stable.git linux-4.14.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/devicetree/bindings/usb/dwc3.txt | 2 Documentation/scheduler/sched-bwc.txt | 45 + Documentation/virtual/kvm/locking.txt | 4 Documentation/x86/index.rst | 1 Documentation/x86/tsx_async_abort.rst | 117 ++++ Makefile | 2 arch/arm/boot/dts/dra7.dtsi | 1 arch/arm64/include/asm/pgtable.h | 17 arch/s390/kvm/kvm-s390.c | 4 arch/x86/Kconfig | 45 + arch/x86/events/amd/ibs.c | 8 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/include/asm/smp.h | 10 arch/x86/kernel/apic/apic.c | 122 ++-- arch/x86/kernel/cpu/Makefile | 2 arch/x86/kernel/cpu/bugs.c | 161 ++++++ arch/x86/kernel/cpu/common.c | 94 ++- arch/x86/kernel/cpu/cpu.h | 18 arch/x86/kernel/cpu/intel.c | 5 arch/x86/kernel/cpu/tsx.c | 140 +++++ arch/x86/kvm/cpuid.c | 8 arch/x86/kvm/mmu.c | 374 ++++++++++++-- arch/x86/kvm/mmu.h | 4 arch/x86/kvm/mmutrace.h | 59 ++ arch/x86/kvm/paging_tmpl.h | 65 +- arch/x86/kvm/svm.c | 10 arch/x86/kvm/vmx.c | 14 arch/x86/kvm/x86.c | 63 ++ drivers/base/cpu.c | 17 drivers/cpufreq/ti-cpufreq.c | 1 drivers/dma/xilinx/xilinx_dma.c | 7 drivers/gpu/drm/drm_gem.c | 9 drivers/gpu/drm/i915/i915_cmd_parser.c | 455 ++++++++++++------ drivers/gpu/drm/i915/i915_drv.c | 4 drivers/gpu/drm/i915/i915_drv.h | 30 + drivers/gpu/drm/i915/i915_gem.c | 26 - drivers/gpu/drm/i915/i915_gem_context.c | 5 drivers/gpu/drm/i915/i915_gem_context.h | 6 drivers/gpu/drm/i915/i915_gem_execbuffer.c | 118 +++- drivers/gpu/drm/i915/i915_gem_gtt.c | 73 +- drivers/gpu/drm/i915/i915_gem_gtt.h | 7 drivers/gpu/drm/i915/i915_gem_object.h | 13 drivers/gpu/drm/i915/i915_gem_request.c | 4 drivers/gpu/drm/i915/i915_reg.h | 10 drivers/gpu/drm/i915/intel_drv.h | 3 drivers/gpu/drm/i915/intel_pm.c | 161 +++++- drivers/gpu/drm/i915/intel_ringbuffer.c | 11 drivers/gpu/drm/i915/intel_ringbuffer.h | 16 drivers/gpu/drm/radeon/si_dpm.c | 1 drivers/hid/intel-ish-hid/ishtp/client-buffers.c | 2 drivers/hid/wacom.h | 15 drivers/hid/wacom_wac.c | 10 drivers/hwtracing/intel_th/pci.c | 10 drivers/i2c/busses/i2c-omap.c | 25 drivers/iio/adc/stm32-adc.c | 4 drivers/iio/imu/adis16480.c | 5 drivers/iio/proximity/srf04.c | 29 - drivers/infiniband/core/uverbs.h | 2 drivers/infiniband/hw/cxgb4/cm.c | 2 drivers/infiniband/hw/qedr/main.c | 2 drivers/mailbox/mailbox.c | 4 drivers/mailbox/pcc.c | 4 drivers/mfd/palmas.c | 10 drivers/misc/pci_endpoint_test.c | 17 drivers/mtd/spi-nor/cadence-quadspi.c | 27 + drivers/mtd/spi-nor/spi-nor.c | 2 drivers/net/bonding/bond_main.c | 47 - drivers/net/can/c_can/c_can.c | 25 drivers/net/can/c_can/c_can.h | 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/hisilicon/hip04_eth.c | 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/fpga/conn.c | 4 drivers/net/ethernet/qlogic/qede/qede_main.c | 12 drivers/net/ethernet/qualcomm/rmnet/rmnet_config.c | 4 drivers/net/fjes/fjes_main.c | 15 drivers/net/hyperv/netvsc_drv.c | 9 drivers/net/macsec.c | 4 drivers/net/usb/cdc_ncm.c | 6 drivers/net/usb/qmi_wwan.c | 1 drivers/nfc/fdp/i2c.c | 2 drivers/nfc/st21nfca/core.c | 1 drivers/pci/dwc/pci-dra7xx.c | 17 drivers/pci/host/pci-tegra.c | 7 drivers/scsi/lpfc/lpfc_nportdisc.c | 4 drivers/scsi/qla2xxx/qla_bsg.c | 6 drivers/scsi/qla2xxx/qla_mbx.c | 3 drivers/scsi/qla2xxx/qla_os.c | 4 drivers/usb/core/config.c | 5 drivers/usb/dwc3/core.c | 6 drivers/usb/dwc3/core.h | 3 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/Kconfig | 1 drivers/usb/usbip/stub.h | 7 drivers/usb/usbip/stub_main.c | 57 +- drivers/usb/usbip/stub_rx.c | 213 +++++--- drivers/usb/usbip/stub_tx.c | 99 +++ drivers/usb/usbip/usbip_common.c | 59 +- drivers/usb/usbip/vhci_hcd.c | 16 drivers/usb/usbip/vhci_rx.c | 3 drivers/usb/usbip/vhci_tx.c | 69 ++ fs/ceph/caps.c | 10 fs/ceph/inode.c | 1 fs/configfs/configfs_internal.h | 15 fs/configfs/dir.c | 137 ++++- fs/configfs/file.c | 294 +++++------ 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 include/drm/drm_vma_manager.h | 1 include/linux/cpu.h | 30 - include/linux/kvm_host.h | 10 include/linux/mfd/palmas.h | 3 include/linux/mm.h | 5 include/linux/mm_types.h | 5 include/linux/page-flags.h | 20 include/linux/scatterlist.h | 10 include/net/bonding.h | 3 include/net/ip_vs.h | 1 include/net/neighbour.h | 4 include/net/netfilter/nf_tables.h | 3 include/net/sock.h | 4 include/rdma/ib_verbs.h | 2 kernel/cpu.c | 27 + kernel/sched/fair.c | 85 --- kernel/sched/sched.h | 4 lib/Kconfig | 4 lib/dump_stack.c | 7 lib/scatterlist.c | 105 ++++ mm/filemap.c | 3 mm/vmstat.c | 2 net/ipv4/fib_semantics.c | 2 net/netfilter/ipset/ip_set_core.c | 8 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/nfc/netlink.c | 2 net/openvswitch/vport-internal_dev.c | 11 sound/core/timer.c | 6 sound/firewire/bebob/bebob_focusrite.c | 3 sound/pci/hda/patch_ca0132.c | 2 sound/soc/codecs/tlv320aic31xx.c | 30 - sound/soc/davinci/davinci-mcasp.c | 21 tools/gpio/Makefile | 6 tools/perf/util/hist.c | 2 virt/kvm/kvm_main.c | 154 +++++- 173 files changed, 4057 insertions(+), 1111 deletions(-)
Al Viro (6):
ceph: add missing check in d_revalidate snapdir handling
configfs: stash the data we need into configfs_buffer at open time configfs_register_group() shouldn't be (and isn't) called in rmdirable parts
configfs: new object reprsenting tree fragments
configfs: provide exclusion between IO and removals
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 (2):
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
Andreas Klinger (1):
iio: srf04: fix wrong limitation in distance measuring
Andrew F. Davis (1):
ASoC: tlv320aic31xx: Handle inverted BCLK in non-DSP modes
Arvind Yadav (1):
ASoC: davinci-mcasp: Handle return value of devm_kasprintf
Bart Van Assche (1):
lib/scatterlist: Introduce sgl_alloc() and sgl_free()
Ben Hutchings (1):
drm/i915/cmdparser: Fix jump whitelist clearing
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
Chris Wilson (4):
drm/i915/gtt: Disable read-only support under GVT drm/i915: Prevent writing into a read-only object via a GGTT mmap drm/i915: Silence smatch for cmdparser
drm/i915: Don't use GPU relocations prior to cmdparser stalls
Christophe Jaillet (1):
ASoC: davinci-mcasp: Fix an error handling path in 'davinci_mcasp_probe()'
Chuhong Yuan (1):
net: ethernet: arc: add the missed clk_disable_unprepare
Claudio Foellmi (1):
i2c: omap: Trigger bus recovery in lockup case
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()
misc: pci_endpoint_test: Prevent some integer overflows RDMA/uverbs: Prevent potential underflow
Daniel Wagner (1):
scsi: lpfc: Honor module parameter lpfc_use_adisc
Dave Chiluk (1):
sched/fair: Fix low cpu usage with high throttling by removing expiration of cpu-local slices
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
Dou Liyang (2):
x86/apic: Move pending interrupt check code into it's own function x86/apic: Drop logical_smp_processor_id() inline
Eric Dumazet (3):
net: fix data-race in neigh_event_send()
ipvs: move old_secure_tcp into struct netns_ipvs
net: prevent load/store tearing on sk->sk_stamp
Fabrice Gasnier (1):
iio: adc: stm32-adc: fix stopping dma
Gomez Iglesias, Antonio (1):
Documentation: Add ITLB_MULTIHIT documentation
Greg Kroah-Hartman (1):
Linux 4.14.154
Gustavo A. R. Silva (1):
ASoC: tlv320dac31xx: mark expected switch fall-through
Haiyang Zhang (1):
hv_netvsc: Fix error handling in netvsc_attach()
Hannes Reinecke (1):
scsi: qla2xxx: fixup incorrect usage of host_byte
Hillf Danton (1):
net: openvswitch: free vport unless register_netdevice() succeeds
Himanshu Madhani (1):
scsi: qla2xxx: Initialized mailbox to prevent driver load failure
Imre Deak (1):
drm/i915/gen8+: Add RC6 CTX corruption WA
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
Jiangfeng Xiao (1):
net: hisilicon: Fix "Trying to free already-free IRQ"
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
Jon Bloomfield (11):
drm/i915/gtt: Add read only pages to gen8_pte_encode 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
Josh Poimboeuf (1):
x86/speculation/taa: Fix printing of TAA_MSG_SMT on IBRS_ALL CPUs
Junaid Shahid (4):
kvm: Convert kvm_lock to a mutex
kvm: mmu: Do not release the page inside mmu_set_spte()
kvm: Add helper function for creating VM worker threads
kvm: x86: mmu: Recovery of shattered NX large pages
Kamal Heib (1):
RDMA/qedr: Fix reported firmware version
Keerthy (2):
mfd: palmas: Assign the right powerhold mask for tps65917
PCI: dra7xx: Add shutdown handler to cleanly turn off clocks
Kevin Hao (1):
dump_stack: avoid the livelock of the dump_lock
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)
Kishon Vijay Abraham I (1):
misc: pci_endpoint_test: Fix BUG_ON error during pci_disable_msi()
Konstantin Khlebnikov (1):
mm/filemap.c: don't initiate writeback if mapping has no dirty pages
Kurt Van Dijck (1):
can: c_can: c_can_poll(): only read status register after status IRQ
Luis Henriques (1):
ceph: fix use-after-free in __ceph_remove_cap()
Lukas Wunner (1):
netfilter: nf_tables: Align nft_expr private data to 64-bit
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
Michal Hocko (2):
mm, vmstat: hide /proc/pagetypeinfo from normal users x86/tsx: Add config options to set tsx=on|off|auto
Michal Srb (2):
drm/i915/cmdparser: Check reg_table_count before derefencing. drm/i915/cmdparser: Do not check past the cmd length.
Navid Emamdoost (2):
can: gs_usb: gs_can_open(): prevent memory leak net/mlx5: prevent memory leak in mlx5_fpga_conn_create_cq
Nicholas Piggin (1):
scsi: qla2xxx: stop timer in shutdown path
Nikhil Badola (1):
usb: fsl: Check memory resource before releasing it
Oliver Neukum (1):
CDC-NCM: handle incomplete transfer of MTU
Pan Bian (3):
NFC: fdp: fix incorrect free object
nfc: netlink: fix double device reference drop
NFC: st21nfca: fix double free
Paolo Bonzini (8):
KVM: x86: use Intel speculation bugs and features as derived in generic x86 code
kvm: x86, powerpc: do not allow clearing largepages debugfs entry
KVM: x86: make FNAME(fetch) and __direct_map more similar
KVM: x86: remove now unneeded hugepage gfn adjustment
KVM: x86: change kvm_mmu_page_get_gfn BUG_ON to WARN_ON
KVM: x86: add tracepoints around __direct_map and FNAME(fetch)
KVM: vmx, svm: always run with EFER.NXE=1 when shadow paging is active
kvm: mmu: ITLB_MULTIHIT mitigation
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
Potnuri Bharat Teja (1):
RDMA/iw_cxgb4: Avoid freeing skb twice in arp failure case
Qian Cai (1):
sched/fair: Fix -Wunused-but-set-variable warnings
Radhey Shyam Pandey (1):
dmaengine: xilinx_dma: Fix control reg update in vdma_channel_set_config
Roger Quadros (2):
usb: dwc3: Allow disabling of metastability workaround
ARM: dts: dra7: Disable USB metastability workaround for USB2
Roman Yeryomin (1):
mtd: spi-nor: enable 4B opcodes for mx66l51235l
Sean Tranchetti (1):
net: qualcomm: rmnet: Fix potential UAF when unregistering
Shuah Khan (3):
tools: gpio: Use !building_out_of_srctree to determine srctree
usbip: Fix vhci_urb_enqueue() URB null transfer buffer error path
usbip: stub_rx: fix static checker warning on unnecessary checks
Stephane Grosjean (1):
can: peak_usb: fix a potential out-of-sync while decoding packets
Sudeep Holla (1):
mailbox: reset txdone_method TXDONE_BY_POLL if client knows_txdone
Suwan Kim (2):
usbip: Implement SG support to vhci-hcd and stub driver
usbip: Fix free of unallocated memory in vhci tx
Taehee Yoo (2):
bonding: fix unexpected IFF_BONDING bit unset
macsec: fix refcnt leak in module exit routine
Takashi Iwai (3):
ALSA: timer: Fix incorrectly assigned timer instance
ALSA: hda/ca0132 - Fix possible workqueue stall
ASoC: davinci: Kill BUG_ON() usage
Takashi Sakamoto (1):
ALSA: bebob: fix to detect configured source of sampling clock for Focusrite Saffire Pro i/o series
Tejun Heo (1):
cgroup,writeback: don't switch wbs immediately on dead wbs if the memcg is dead
Thomas Meyer (1):
configfs: Fix bool initialization/comparison
Trond Myklebust (1):
NFSv4: Don't allow a cached open with a revoked delegation
Tvrtko Ursulin (1):
drm/i915: Move engine->needs_cmd_parser to engine->flags
Tyler Hicks (1):
cpu/speculation: Uninline and export CPU mitigations helpers
Uma Shankar (1):
drm/i915: Lower RM timeout to avoid DSI hard hangs
Vidya Sagar (1):
PCI: tegra: Enable Relaxed Ordering only for Tegra20 & Tegra30
Vignesh R (1):
mtd: spi-nor: cadence-quadspi: add a delay in write sequence
Vineela Tummalapalli (1):
x86/bugs: Add ITLB_MULTIHIT bug infrastructure
Vivi, Rodrigo (1):
drm/i915/gtt: Read-only pages for insert_entries on bdw+
Wenwen Wang (1):
e1000: fix memory leaks
Will Deacon (1):
fjes: Handle workqueue allocation failure
Yang Shi (1):
mm: thp: handle page cache THP correctly in PageTransCompoundMap
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()
Zumeng Chen (1):
cpufreq: ti-cpufreq: add missing of_node_put()
Greg KH
maintainerDocumentation/ABI/testing/sysfs-devices-system-cpu +2 -0
@@ -381,6 +381,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/devicetree/bindings/usb/dwc3.txt +2 -0
@@ -47,6 +47,8 @@ Optional properties: from P0 to P1/P2/P3 without delay. - snps,dis-tx-ipgap-linecheck-quirk: when set, disable u2mac linestate check during HS transmit. + - snps,dis_metastability_quirk: when set, disable metastability workaround. + CAUTION: use only if you are absolutely sure of it. - snps,is-utmi-l1-suspend: true when DWC3 asserts output signal utmi_l1_suspend_n, false when asserts utmi_sleep_n - snps,hird-threshold: HIRD threshold
Documentation/scheduler/sched-bwc.txt +45 -0
51 lines not on this page · raw message
Documentation/virtual/kvm/locking.txt +1 -3
@@ -15,8 +15,6 @@ The acquisition orders for mutexes are as follows: On x86, vcpu->mutex is taken outside kvm->arch.hyperv.hv_lock. -For spinlocks, kvm_lock is taken outside kvm->mmu_lock. - Everything else is a leaf: no other lock is taken inside the critical sections.
@@ -169,7 +167,7 @@ which time it will be set using the Dirty tracking mechanism described above. ------------ Name: kvm_lock -Type: spinlock_t +Type: mutex Arch: any Protects: - vm_list
Documentation/x86/index.rst +1 -0
@@ -6,3 +6,4 @@ x86 architecture specifics :maxdepth: 1 mds + tsx_async_abort
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 = 4 PATCHLEVEL = 14 -SUBLEVEL = 153 +SUBLEVEL = 154 EXTRAVERSION = NAME = Petit Gorille
arch/arm/boot/dts/dra7.dtsi +1 -0
@@ -1540,6 +1540,7 @@ dr_mode = "otg"; snps,dis_u3_susphy_quirk; snps,dis_u2_susphy_quirk; + snps,dis_metastability_quirk; }; };
arch/arm64/include/asm/pgtable.h +0 -17
@@ -258,23 +258,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/s390/kvm/kvm-s390.c +2 -2
@@ -1926,13 +1926,13 @@ int kvm_arch_init_vm(struct kvm *kvm, unsigned long type) kvm->arch.sca = (struct bsca_block *)get_zeroed_page (alloc_flags);if (!kvm->arch.sca) goto out_err; -spin_lock (&kvm_lock); +mutex_lock (&kvm_lock); sca_offset +=16 ;if (sca_offset +sizeof (struct bsca_block ) >PAGE_SIZE ) sca_offset =0 ; kvm->arch.sca = (struct bsca_block *) ((char *) kvm->arch.sca + sca_offset); -spin_unlock (&kvm_lock); +mutex_unlock (&kvm_lock);sprintf (debug_name,"kvm-%u" , current->pid);
arch/x86/Kconfig +45 -0
51 lines not on this page · raw message
arch/x86/events/amd/ibs.c +5 -3
@@ -389,7 +389,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); }
@@ -564,7 +565,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,
@@ -625,7 +627,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/include/asm/cpufeatures.h +2 -0
@@ -388,5 +388,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
@@ -277,6 +277,7 @@ struct kvm_rmap_head {struct kvm_mmu_page {struct list_head link;struct hlist_node hash_link; +struct list_head lpage_disallowed_link;/* * The following two entries are used to key the shadow page in the
@@ -289,6 +290,7 @@ struct kvm_mmu_page {/* hold the gfn of each spte inside spt */ gfn_t *gfns;bool unsync; +bool lpage_disallowed;/* Can't be replaced by an equiv large page */ int root_count;/* Currently serving as active root */ unsigned int unsync_children;struct kvm_rmap_head parent_ptes;/* rmap pointers to parent sptes */
@@ -779,6 +781,7 @@ struct kvm_arch {*/ struct list_head active_mmu_pages;struct list_head zapped_obsolete_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;
@@ -854,6 +857,8 @@ struct kvm_arch {bool x2apic_format;bool x2apic_broadcast_quirk_disabled; + +struct task_struct *nx_lpage_recovery_thread; };struct kvm_vm_stat {
@@ -867,6 +872,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
@@ -84,6 +84,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)/*
@@ -94,6 +106,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
@@ -323,7 +323,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
@@ -346,7 +346,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
@@ -994,4 +994,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/include/asm/smp.h +0 -10
@@ -175,16 +175,6 @@ static inline int wbinvd_on_all_cpus(void)extern unsigned disabled_cpus;#ifdef CONFIG_X86_LOCAL_APIC - -#ifndef CONFIG_X86_64 -static inline int logical_smp_processor_id (void ) -{ -/* we don't want to mark this access volatile - bad code generation */ -return GET_APIC_LOGICAL_ID (apic_read (APIC_LDR )); -} - -#endif -extern int hard_smp_processor_id (void );#else /* CONFIG_X86_LOCAL_APIC */
arch/x86/kernel/apic/apic.c +67 -55
147 lines not on this page · raw message
arch/x86/kernel/cpu/Makefile +1 -1
@@ -28,7 +28,7 @@ obj-y += cpuid-deps.o obj-$(CONFIG_PROC_FS) += proc.o obj-$(CONFIG_X86_FEATURE_NAMES) += capflags.o powerflags.o -obj-$(CONFIG_CPU_SUP_INTEL) += intel.o +obj-$(CONFIG_CPU_SUP_INTEL) += intel.o tsx.o obj-$(CONFIG_CPU_SUP_AMD) += amd.o obj-$(CONFIG_CPU_SUP_CYRIX_32) += cyrix.o obj-$(CONFIG_CPU_SUP_CENTAUR) += centaur.o
arch/x86/kernel/cpu/bugs.c +157 -4
232 lines not on this page · raw message
arch/x86/kernel/cpu/common.c +62 -32
146 lines not on this page · raw message
arch/x86/kernel/cpu/cpu.h +18 -0
@@ -45,6 +45,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 cpu_detect_cache_sizes (struct cpuinfo_x86 *c);extern int detect_extended_topology_early (struct cpuinfo_x86 *c);
@@ -54,4 +70,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
@@ -695,6 +695,11 @@ static void init_intel(struct cpuinfo_x86 *c)init_intel_energy_perf (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/kvm/cpuid.c +8 -0
@@ -481,8 +481,16 @@ static inline int __do_cpuid_ent(struct kvm_cpuid_entry2 *entry, u32 function,/* PKU is not yet implemented for shadow paging. */ if (!tdp_enabled || !boot_cpu_has (X86_FEATURE_OSPKE )) entry->ecx &= ~F (PKU ); + entry->edx &= kvm_cpuid_7_0_edx_x86_features;cpuid_mask (&entry->edx,CPUID_7_EDX ); +if (boot_cpu_has (X86_FEATURE_IBPB ) && +boot_cpu_has (X86_FEATURE_IBRS )) + entry->edx |=F (SPEC_CTRL ); +if (boot_cpu_has (X86_FEATURE_STIBP )) + entry->edx |=F (INTEL_STIBP ); +if (boot_cpu_has (X86_FEATURE_SSBD )) + entry->edx |=F (SPEC_CTRL_SSBD );/* * We emulate ARCH_CAPABILITIES in software even * if the host doesn't support it.
arch/x86/kvm/mmu.c +314 -60
561 lines not on this page · raw message
arch/x86/kvm/mmu.h +4 -0
@@ -195,4 +195,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/mmutrace.h +59 -0
65 lines not on this page · raw message
arch/x86/kvm/paging_tmpl.h +40 -25
127 lines not on this page · raw message
arch/x86/kvm/svm.c +8 -2
@@ -608,8 +608,14 @@ static int get_npt_level(struct kvm_vcpu *vcpu)static void svm_set_efer (struct kvm_vcpu *vcpu,u64 efer) { vcpu->arch.efer = efer; -if (!npt_enabled && !(efer &EFER_LMA )) - efer &= ~EFER_LME ; + +if (!npt_enabled) { +/* Shadow paging assumes NX to be available. */ + efer |=EFER_NX ; + +if (!(efer &EFER_LMA )) + efer &= ~EFER_LME ; + }to_svm (vcpu)->vmcb->save.efer = efer |EFER_SVME ;mark_dirty (to_svm (vcpu)->vmcb,VMCB_CR );
arch/x86/kvm/vmx.c +3 -11
@@ -2259,17 +2259,9 @@ static bool update_transition_efer(struct vcpu_vmx *vmx, int efer_offset)u64 guest_efer = vmx->vcpu.arch.efer;u64 ignore_bits =0 ; -if (!enable_ept) { -/* -* NX is needed to handle CR0.WP=1, CR4.SMEP=1. Testing -* host CPUID is more efficient than testing guest CPUID -* or CR4. Host SMEP is anyway a requirement for guest SMEP. -*/ -if (boot_cpu_has (X86_FEATURE_SMEP )) - guest_efer |=EFER_NX ; -else if (!(guest_efer &EFER_NX )) - ignore_bits |=EFER_NX ; - } +/* Shadow paging assumes NX to be available. */ +if (!enable_ept) + guest_efer |=EFER_NX ;/* * LMA and LME handled by hardware; SCE meaningless outside long mode.
arch/x86/kvm/x86.c +55 -8
131 lines not on this page · raw message
drivers/base/cpu.c +17 -0
@@ -539,12 +539,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,
@@ -553,6 +568,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/cpufreq/ti-cpufreq.c +1 -0
@@ -205,6 +205,7 @@ static int ti_cpufreq_init(void) np =of_find_node_by_path ("/" ); match =of_match_node (ti_cpufreq_of_match, np); +of_node_put (np);if (!match)return -ENODEV ;
drivers/dma/xilinx/xilinx_dma.c +7 -0
@@ -72,6 +72,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)
@@ -2057,8 +2060,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 ; }
@@ -2072,11 +2077,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/gpu/drm/drm_gem.c +9 -0
@@ -1035,6 +1035,15 @@ int drm_gem_mmap(struct file *filp, struct vm_area_struct *vma)return -EACCES ; } +if (node->readonly) { +if (vma->vm_flags &VM_WRITE ) { +drm_gem_object_put_unlocked (obj); +return -EINVAL ; + } + + vma->vm_flags &= ~VM_MAYWRITE ; + } + ret =drm_gem_mmap_obj (obj,drm_vma_node_size (node) <<PAGE_SHIFT , vma);
drivers/gpu/drm/i915/i915_cmd_parser.c +316 -139
247 lines not on this page · raw message
drivers/gpu/drm/i915/i915_gem_context.c +5 -0
Lines of this file are not shown. View the raw message.
drivers/gpu/drm/i915/i915_gem_context.h +6 -0
Lines of this file are not shown. View the raw message.
drivers/gpu/drm/i915/i915_gem_execbuffer.c +87 -31
118 lines not on this page · raw message
drivers/gpu/drm/i915/i915_gem_gtt.c +47 -26
73 lines not on this page · raw message
drivers/gpu/drm/i915/i915_gem_object.h +12 -1
Lines of this file are not shown. View the raw message.
drivers/gpu/drm/i915/i915_gem_request.c +4 -0
Lines of this file are not shown. View the raw message.
drivers/gpu/drm/i915/intel_pm.c +144 -17
161 lines not on this page · raw message
drivers/gpu/drm/i915/intel_ringbuffer.c +8 -3
Lines of this file are not shown. View the raw message.
drivers/gpu/drm/i915/intel_ringbuffer.h +15 -1
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/net/bonding/bond_main.c +24 -23
47 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/hisilicon/hip04_eth.c +0 -1
Lines of this file are not shown. View the 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/fpga/conn.c +3 -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/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 -67
213 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/configfs/dir.c +104 -33
137 lines not on this page · raw message
fs/configfs/file.c +147 -147
294 lines not on this page · raw message
kernel/sched/fair.c +12 -73
85 lines not on this page · raw message
lib/scatterlist.c +105 -0
105 lines not on this page · raw message
virt/kvm/kvm_main.c +135 -19
154 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.