Skip to contentSkip to conversation

Linux 4.14.154

DISCUSSION Greg KH 1 participant 2 messages Nov 12, 2019 Stable branch

lore
Share & tools
lore

Greg KH

author maintainer
#0 lore raw

I'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()

author maintainer
#1 lore raw
Documentation/ABI/testing/sysfs-devices-system-cpu +2 -0
index 645687b1870d..9ebca6a750f3 100644
@@ -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
index 49311f3da6f2..0795e3c2643f 100644
@@ -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
index 52fb41046b34..44e8bab159ad 100644
@@ -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
index 1bb8bcaf8497..635cd6eaf714 100644
@@ -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
index ef389dcf1b1d..0780d55c5aa8 100644
@@ -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
index 2819ed540ce2..4d2d55691548 100644
@@ -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
index 0bf354024ef5..09686d73f947 100644
@@ -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
index 4cf248185e6f..aa3b8dd8fc35 100644
@@ -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
index cab41bc2572f..ff62a4fe2159 100644
@@ -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
index 7a86fbc07ddc..f24e9adaa316 100644
@@ -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
index 14357354cd28..b4bef819d5d5 100644
@@ -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
index 00c12158a5dc..d0e17813a9b0 100644
@@ -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
index fda3bf75de6c..5761a86b88e0 100644
@@ -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
index f6b496d11097..b73a16a56e4f 100644
@@ -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
index d55a0adbcf27..6a87eda9691e 100644
@@ -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
index fe2ee61880a8..a14730ca9d1e 100644
@@ -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
index 570e8bb1f386..e13ddd19a76c 100644
@@ -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
index cca588407dca..db10a63687d3 100644
@@ -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
index 574dcdc092ab..3a5ea741701b 100644
@@ -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
index 5c82b4bc4a68..33f87b696487 100644
@@ -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
index efc857615d8e..068feab64acf 100644
@@ -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
index f6adc8db0e32..52edb8cf1c40 100644
@@ -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
index 02c0326dc259..cd5a8e888eb6 100644
@@ -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
index 32b52e6bd13b..0272f66db5ac 100644
@@ -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
index 4bf47de6101f..cadc324bedb4 100644
@@ -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
index 8722bcba489d..2db352308e5c 100644
@@ -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
index c55f338e380b..d2c042af36b8 100644
@@ -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_drv.c +3 -1
index c75f4ccbcdef..02a2af7c8166 100644

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

drivers/gpu/drm/i915/i915_drv.h +26 -4
index 41f51509c9e4..a5fb7404b29e 100644

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

drivers/gpu/drm/i915/i915_gem.c +25 -1
index 727018a16cca..9263b65720bc 100644

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

drivers/gpu/drm/i915/i915_gem_context.c +5 -0
index 8afd2ce59b8d..3925a63c1661 100644

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

drivers/gpu/drm/i915/i915_gem_context.h +6 -0
index 44688e22a5c2..b651c5f427b9 100644

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_gtt.h +6 -1
index 0dbbe840f5f0..4b63d6cbd81e 100644

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

drivers/gpu/drm/i915/i915_gem_object.h +12 -1
index c30d8f808185..39cfe04dcdb8 100644

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

drivers/gpu/drm/i915/i915_gem_request.c +4 -0
index 813a3b546d6e..1d556dcbd656 100644

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

drivers/gpu/drm/i915/i915_reg.h +10 -0
index 2e706f1abe64..1db70350af0b 100644

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

drivers/gpu/drm/i915/intel_drv.h +3 -0
index 3adb9c3b412e..cba10cdab2a9 100644

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
index cdf084ef5aae..63667a5c2c87 100644

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

drivers/gpu/drm/i915/intel_ringbuffer.h +15 -1
index 6b2067f10824..774e3772d0ed 100644

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

drivers/gpu/drm/radeon/si_dpm.c +1 -0
index 90d5b41007bf..9e5645e4cb55 100644

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

drivers/hid/intel-ish-hid/ishtp/client-buffers.c +1 -1
index b9b917d2d50d..c41dbb167c91 100644

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

drivers/hid/wacom.h +15 -0
index 3c37c3cbf6f1..9c0900c35b23 100644

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

drivers/hid/wacom_wac.c +6 -4
index 2e0c4df6ad08..1eb868403664 100644

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

drivers/hwtracing/intel_th/pci.c +10 -0
index 140b18d858e8..7486d5d67186 100644

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

drivers/i2c/busses/i2c-omap.c +23 -2
index 12ba183693d6..a03564f41ad0 100644

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

drivers/iio/adc/stm32-adc.c +2 -2
index e59cbc9ad4f6..258a4712167a 100644

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

drivers/iio/imu/adis16480.c +4 -1
index 12898424d838..6f975538996c 100644

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

drivers/iio/proximity/srf04.c +15 -14
index e37667f933b3..8a6ab9691832 100644

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

drivers/infiniband/core/uverbs.h +1 -1
index 37c8903e7fd0..8d79a48ccd38 100644

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

drivers/infiniband/hw/cxgb4/cm.c +0 -2
index d87f08cd78ad..bb36cdf82a8d 100644

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

drivers/infiniband/hw/qedr/main.c +1 -1
index ddb05b42e5e6..3e48ed64760b 100644

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

drivers/mailbox/mailbox.c +2 -2
index 44b49a2676f0..055c90b8253c 100644

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

drivers/mailbox/pcc.c +2 -2
index 9b7005e1345e..27c2294be51a 100644

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

drivers/mfd/palmas.c +9 -1
index 3922a93f9f92..663a2398b6b1 100644

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

drivers/misc/pci_endpoint_test.c +17 -0
index 9849bf183299..230f1e8538dc 100644

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

drivers/mtd/spi-nor/cadence-quadspi.c +26 -1
index f22dd34f4f83..ff4edf4bb23c 100644

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

drivers/mtd/spi-nor/spi-nor.c +1 -1
index 34ecc12ee3d9..6c013341ef09 100644

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/c_can/c_can.c +20 -5
index 606b7d8ffe13..9b61bfbea6cd 100644

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

drivers/net/can/c_can/c_can.h +1 -0
index 8acdc7fa4792..d5567a7c1c6d 100644

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

drivers/net/can/flexcan.c +1 -0
index 7280f3a8aa04..84dd79041285 100644

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

drivers/net/can/rx-offload.c +4 -2
index d227db45fec9..1a7c183e6678 100644

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

drivers/net/can/usb/gs_usb.c +1 -0
index 8bf80ad9dc44..bfbf80949600 100644

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

drivers/net/can/usb/mcba_usb.c +1 -2
index e0c24abce16c..070e1ba79736 100644

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

drivers/net/can/usb/peak_usb/pcan_usb.c +12 -5
index 838545ce468d..e626c2afbbb1 100644

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

drivers/net/can/usb/peak_usb/pcan_usb_core.c +1 -1
index 059282a6065c..85d92f129af2 100644

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

drivers/net/can/usb/usb_8dev.c +1 -2
index 27861c417c94..3e4416473607 100644

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

drivers/net/ethernet/arc/emac_rockchip.c +3 -0
index c770ca37c9b2..a7d30731d376 100644

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

drivers/net/ethernet/cavium/octeon/octeon_mgmt.c +1 -1
index 45c51277e0cf..61701ba2ac72 100644

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

drivers/net/ethernet/hisilicon/hip04_eth.c +0 -1
index 17cbe8145dcd..ebc056b9a0fd 100644

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

drivers/net/ethernet/intel/e1000/e1000_ethtool.c +3 -4
index 10df2d60c181..88b34f722337 100644

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

drivers/net/ethernet/intel/igb/igb_main.c +2 -1
index 71b235f935d9..9c7e75b3b6c7 100644

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

drivers/net/ethernet/mellanox/mlx5/core/fpga/conn.c +3 -1
index c4392f741c5f..5212428031a4 100644

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

drivers/net/ethernet/qlogic/qede/qede_main.c +10 -2
index 6eab2c632c75..dab202f343c6 100644

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

drivers/net/ethernet/qualcomm/rmnet/rmnet_config.c +2 -2
index 1e33aea59f50..7d8303e45f09 100644

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

drivers/net/fjes/fjes_main.c +14 -1
index 750954be5a74..14d6579b292a 100644

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

drivers/net/hyperv/netvsc_drv.c +8 -1
index 33c1f6548fb7..5a44b9795266 100644

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

drivers/net/macsec.c +0 -4
index aa204c98af79..9bcb7c3e879f 100644

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

drivers/net/usb/cdc_ncm.c +3 -3
index ab28487e6048..d53b4a41c583 100644

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

drivers/net/usb/qmi_wwan.c +1 -0
index e406a05e79dc..8ed538295d09 100644

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

drivers/nfc/fdp/i2c.c +1 -1
index c4da50e07bbc..4020c11a9415 100644

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

drivers/nfc/st21nfca/core.c +1 -0
index e803fdfa9189..f37069b53b20 100644

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

drivers/pci/dwc/pci-dra7xx.c +17 -0
index 7f5dfa169d0f..2e0d0b29cdcb 100644

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

drivers/pci/host/pci-tegra.c +5 -2
index 8efd086c57c9..5bf874f30466 100644

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

drivers/scsi/lpfc/lpfc_nportdisc.c +2 -2
index 36fb549eb4e8..a0658d158228 100644

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

drivers/scsi/qla2xxx/qla_bsg.c +3 -3
index 2ea0ef93f5cb..7472d3882ad4 100644

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

drivers/scsi/qla2xxx/qla_mbx.c +2 -1
index 929ec087b8eb..459481ce5872 100644

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

drivers/scsi/qla2xxx/qla_os.c +4 -0
index 7d7fb5bbb600..343fbaa6d2a2 100644

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

drivers/usb/core/config.c +5 -0
index d03d0e46b121..cfb8f1126cf8 100644

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

drivers/usb/dwc3/core.c +4 -2
index 945330ea8d5c..48755c501201 100644

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

drivers/usb/dwc3/core.h +3 -0
index abd1142c9e4d..40bf0e0768d9 100644

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

drivers/usb/dwc3/gadget.c +4 -2
index 1b99d44e52b9..5916340c4162 100644

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

drivers/usb/gadget/composite.c +4 -0
index 75c42393b64b..b29cd3979391 100644

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
index cb66f982c313..39676824a2c6 100644

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

drivers/usb/gadget/udc/fsl_udc_core.c +1 -1
index 7874c112f3fd..ee48c7938d61 100644

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

drivers/usb/misc/ldusb.c +4 -3
index 6387545b17ea..e16af177d467 100644

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

drivers/usb/usbip/Kconfig +1 -0
index a20b65cb6678..8276a20ecea7 100644

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

drivers/usb/usbip/stub.h +6 -1
index 84c0599b45b7..d9d14d875949 100644

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_hcd.c +14 -2
index 84e2d7edaa5c..253e0affd396 100644

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

drivers/usb/usbip/vhci_rx.c +3 -0
index 1343037d00f9..3f998b605f03 100644

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

drivers/usb/usbip/vhci_tx.c +57 -12

69 lines not on this page · raw message

fs/ceph/caps.c +5 -5
index df95e39ccd45..c3a3ee74e2d8 100644

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

fs/ceph/inode.c +1 -0
index 879bc0825093..3818027c12f5 100644

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

fs/configfs/configfs_internal.h +13 -2
index ccc31fa6f1a7..16eb59adf5aa 100644

Lines of this file are not shown. View the 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

fs/configfs/symlink.c +32 -1
index 9993cdb81e7d..147a6b779ab9 100644

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

fs/fs-writeback.c +6 -3
index 9e8fde348d61..6398bd8a066e 100644

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

fs/nfs/delegation.c +10 -0
index 606dd3871f66..61bc0a6ba08b 100644

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

fs/nfs/delegation.h +1 -0
index ddaf2644cf13..df41d16dc6ab 100644

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

fs/nfs/nfs4proc.c +2 -5
index af062e9f4580..f1526f65cc58 100644

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

include/drm/drm_vma_manager.h +1 -0
index d84d52f6d2b1..b54c98f05460 100644

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

include/linux/cpu.h +7 -23
index efc48efb0ec6..67e8ba81c35f 100644

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

include/linux/kvm_host.h +9 -1
index c8b9d3519c8e..bb4758ffd403 100644

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

include/linux/mfd/palmas.h +3 -0
index 6dec43826303..cffb23b8bd70 100644

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

include/linux/mm.h +0 -5
index ee0eae215210..858ce84ac7c5 100644

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

include/linux/mm_types.h +5 -0
index e41ef532c4ce..be5d445bac98 100644

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

include/linux/page-flags.h +18 -2
index 584b14c774c1..5f966c94732b 100644

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

include/linux/scatterlist.h +10 -0
index d87dfa41142d..8b7bce207229 100644

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

include/net/bonding.h +1 -2
index 04008209506a..b0f20bc0fd4a 100644

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

include/net/ip_vs.h +1 -0
index 82bc9f0e8a76..f4e5ac8aa366 100644

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

include/net/neighbour.h +2 -2
index 393099b1901a..1d6b98119a1d 100644

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

include/net/netfilter/nf_tables.h +2 -1
index 59a4f50ffe8d..a9704c57430d 100644

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

include/net/sock.h +2 -2
index 7ec4d0bd8d12..780c6c0a86f0 100644

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

include/rdma/ib_verbs.h +1 -1
index b8a5118b6a42..4a4319331989 100644

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

kernel/cpu.c +26 -1
index d768e15bef83..96f970d77339 100644

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

kernel/sched/fair.c +12 -73

85 lines not on this page · raw message

kernel/sched/sched.h +0 -4
index 452b56923c6d..268f560ec998 100644

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

lib/Kconfig +4 -0
index b1445b22a6de..8396c4cfa1ab 100644

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

lib/dump_stack.c +6 -1
index c5edbedd364d..287ea178f0fa 100644

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

lib/scatterlist.c +105 -0

105 lines not on this page · raw message

mm/filemap.c +2 -1
index 938365ad7e99..a30dbf93de99 100644

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

mm/vmstat.c +1 -1
index 28c45c26f901..ba9168326413 100644

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

net/ipv4/fib_semantics.c +1 -1
index e76b8a7bb891..eff703cb13b6 100644

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

net/netfilter/ipset/ip_set_core.c +5 -3
index dbf17d3596a6..94d74ec61f42 100644

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

net/netfilter/ipvs/ip_vs_app.c +10 -2
index 299edc6add5a..363475b246f6 100644

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

net/netfilter/ipvs/ip_vs_ctl.c +11 -18
index 4648dccebf59..5ec80818ace2 100644

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

net/netfilter/ipvs/ip_vs_pe.c +2 -1
index 0df17caa8af6..714e7e05c102 100644

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

net/netfilter/ipvs/ip_vs_sched.c +2 -1
index a2ff7d746ebf..3bd0ff36dc41 100644

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

net/netfilter/ipvs/ip_vs_sync.c +10 -3
index b578ebb3d7ef..b373e053ff9a 100644

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

net/nfc/netlink.c +0 -2
index 5f2acd029da5..7b8d4d235a3a 100644

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

net/openvswitch/vport-internal_dev.c +4 -7
index b9377afeaba4..1c09ad457d2a 100644

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

sound/core/timer.c +3 -3
index 161ab19cb722..c60dfd52e8a6 100644

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

sound/firewire/bebob/bebob_focusrite.c +3 -0
index 52b8b61ecddd..62d989edd129 100644

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

sound/pci/hda/patch_ca0132.c +1 -1
index 119f3b504765..9876d8dc2ede 100644

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

sound/soc/codecs/tlv320aic31xx.c +19 -11
index 54a87a905eb6..cc95c15ceceb 100644

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

sound/soc/davinci/davinci-mcasp.c +18 -3
index 0480ec4c8035..07bac9ea65c4 100644

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

tools/gpio/Makefile +5 -1
index 240eda014b37..f8bc8656a544 100644

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

tools/perf/util/hist.c +1 -1
index 5b8bc1fd943d..c1f9615b02f7 100644

Lines of this file are not shown. View the 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.