Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
1808 commits
Select commit Hold shift + click to select a range
b757ef9
netfilter: nf_tables: report use refcount overflow
Aug 12, 2023
0f52d7b
scsi: core: Fix legacy /proc parsing buffer overflow
Jul 24, 2023
7a792b3
scsi: storvsc: Fix handling of virtual Fibre Channel timeouts
Jul 29, 2023
171e117
scsi: 53c700: Check that command slot is not NULL
Jul 28, 2023
461f8ac
scsi: snic: Fix possible memory leak if device_add() fails
Aug 1, 2023
6bc7f4c
scsi: core: Fix possible memory leak if device_add() fails
Aug 3, 2023
e70469c
scsi: fnic: Replace return codes in fnic_clean_pending_aborts()
Jul 27, 2023
85db1cd
scsi: qedi: Fix firmware halt over suspend and resume
Aug 7, 2023
f8d6d25
scsi: qedf: Fix firmware halt over suspend and resume
Aug 7, 2023
5d094d4
alpha: remove __init annotation from exported page_is_ram()
Jul 29, 2023
af99918
sch_netem: fix issues in netem_change() vs get_dist_table()
Jun 22, 2023
c3b954a
tick: Detect and fix jiffies update stall
Aug 13, 2023
b4d36e6
timers/nohz: Switch to ONESHOT_STOPPED in the low-res handler when th…
Aug 13, 2023
c597d8c
timers/nohz: Last resort update jiffies on nohz_full IRQ entry
Aug 13, 2023
f6f7927
Linux 5.15.127
Aug 16, 2023
a798977
mmc: sdhci-f-sdh30: Replace with sdhci_pltfm
Jun 30, 2023
d61a088
selftests: forwarding: tc_actions: cleanup temporary files when test …
Feb 14, 2023
396a192
selftests: forwarding: tc_actions: Use ncat instead of nc
Aug 8, 2023
3d64a23
macsec: Fix traffic counters/statistics
Aug 8, 2022
51222e1
macsec: use DEV_STATS_INC()
Aug 4, 2023
2d93157
net/tls: Perform immediate device ctx cleanup when possible
Jul 27, 2022
9a15ca8
net/tls: Multi-threaded calls to TX tls_dev_del
Jul 27, 2022
e2d10f1
net: tls: avoid discarding data on record close
Aug 4, 2023
cc15908
PCI: tegra194: Fix possible array out of bounds access
May 11, 2023
ca66e9d
ARM: dts: imx6dl: prtrvt, prtvt7, prti6q, prtwd2: fix USB related war…
May 30, 2023
7d53d1e
iopoll: Call cpu_relax() in busy loops
Jun 2, 2023
e9ce774
ASoC: SOF: Intel: fix SoundWire/HDaudio mutual exclusion
Jun 6, 2023
ff10cd3
dma-remap: use kvmalloc_array/kvfree for larger dma memory remap
Jun 6, 2023
fd41646
HID: logitech-hidpp: Add USB and Bluetooth IDs for the Logitech G915 …
May 30, 2023
4921792
drm/amdgpu: install stub fence into potential unused fence pointers
May 5, 2023
9631d88
HID: add quirk for 03f0:464a HP Elite Presenter Mouse
May 30, 2023
1a650d3
RDMA/mlx5: Return the firmware result upon destroying QP/RQ
Jun 5, 2023
a3f2524
ovl: check type and offset of struct vfsmount in ovl_entry
Jun 13, 2023
9850867
smb: client: fix warning in cifs_smb3_do_mount()
Jun 19, 2023
1676748
media: v4l2-mem2mem: add lock to protect parameter num_rdy
Apr 17, 2023
cb17434
usb: gadget: u_serial: Avoid spinlock recursion in __gs_console_push
May 9, 2023
776b346
media: platform: mediatek: vpu: fix NULL ptr dereference
May 24, 2023
25decbb
thunderbolt: Read retimer NVM authentication status prior tb_retimer_…
May 26, 2023
7bdb4c9
usb: chipidea: imx: don't request QoS for imx8ulp
May 30, 2023
eafb79d
usb: chipidea: imx: add missing USB PHY DPDM wakeup setting
May 17, 2023
85e8881
gfs2: Fix possible data races in gfs2_show_options()
Jun 13, 2023
97fd1c8
pcmcia: rsrc_nonstatic: Fix memory leak in nonstatic_release_resource…
May 12, 2023
2ea7037
firewire: net: fix use after free in fwnet_finish_incoming_packet()
Jun 23, 2023
302d045
watchdog: sp5100_tco: support Hygon FCH/SCH (Server Controller Hub)
Jun 12, 2023
548a6b6
Bluetooth: L2CAP: Fix use-after-free
May 25, 2023
5720c7e
Bluetooth: btusb: Add MT7922 bluetooth ID for the Asus Ally
Jun 24, 2023
ef568da
drm/amdgpu: Fix potential fence use-after-free v2
Jun 28, 2023
e7799bb
fs/ntfs3: Enhance sanity check while generating attr_list
Mar 16, 2023
3a00ec5
fs: ntfs3: Fix possible null-pointer dereferences in mi_read()
Mar 21, 2023
c7d8b5f
fs/ntfs3: Mark ntfs dirty when on-disk struct is corrupted
May 8, 2023
5ed4dbc
ALSA: hda/realtek: Add quirks for Unis H3C Desktop B760 & Q760
Jul 3, 2023
8703b26
ALSA: hda: fix a possible null-pointer dereference due to data race i…
Jul 3, 2023
6657ecb
powerpc/kasan: Disable KCOV in KASAN code
Jul 10, 2023
49b830d
ring-buffer: Do not swap cpu_buffer during resize process
Jul 19, 2023
565b96d
iio: add addac subdirectory
Dec 5, 2021
6089d35
iio: adc: stx104: Utilize iomap interface
May 10, 2022
cadf8f2
iio: adc: stx104: Implement and utilize register structures
Jul 7, 2022
89a007f
iio: stx104: Move to addac subdirectory
Aug 15, 2022
d31d04e
iio: addac: stx104: Fix race condition for stx104_write_raw()
Apr 6, 2023
9fa82f0
iio: addac: stx104: Fix race condition when converting analog-to-digital
Apr 6, 2023
f84c2ca
igc: read before write to SRRCTL register
May 2, 2023
4f1beb7
ARM: dts: aspeed: asrock: Correct firmware flash SPI clocks
Feb 24, 2023
99c444d
drm/amd/display: save restore hdcp state when display is unplugged fr…
Nov 15, 2022
0ba6c7b
drm/amd/display: phase3 mst hdcp for multiple displays
Nov 15, 2022
d3c82f2
drm/amd/display: fix access hdcp_workqueue assert
Mar 28, 2023
7dfb384
usb: dwc3: gadget: Synchronize IRQ between soft connect/disconnect
Aug 17, 2022
2fa487a
usb: dwc3: Remove DWC3 locking during gadget suspend/resume
Sep 1, 2022
d9e0041
usb: dwc3: Fix typos in gadget.c
Sep 13, 2022
31a0e60
USB: dwc3: gadget: drop dead hibernation code
Apr 4, 2023
20351dd
usb: dwc3: gadget: Improve dwc3_gadget_suspend() and dwc3_gadget_resu…
May 3, 2023
fa254ab
tty: serial: fsl_lpuart: Add i.MXRT1050 support
Dec 15, 2021
701bb5f
tty: serial: fsl_lpuart: make rx_watermark configurable for different…
Jan 30, 2023
8a6b753
tty: serial: fsl_lpuart: reduce RX watermark to 0 on LS1028A
Jun 9, 2023
a78fe5c
USB: dwc3: qcom: fix NULL-deref on suspend
Jun 7, 2023
4eeba5d
USB: dwc3: fix use-after-free on core driver unbind
Jun 7, 2023
f93e8c5
mmc: bcm2835: fix deferred probing
Jun 17, 2023
e2ff5cf
mmc: sunxi: fix deferred probing
Jun 17, 2023
4ffbfe1
ARM: dts: imx6sll: fixup of operating points
Sep 24, 2021
1707735
ARM: dts: nxp/imx6sll: fix wrong property name in usbphy node
Jul 17, 2023
edf3b5a
btrfs: move out now unused BG from the reclaim list
Jun 6, 2023
5b7d5c2
virtio-mmio: don't break lifecycle of vm_dev
Jun 29, 2023
a5ae5a8
vduse: Use proper spinlock for IRQ injection
Jul 5, 2023
b99f490
cifs: fix potential oops in cifs_oplock_break
Aug 10, 2023
c4e671d
i2c: bcm-iproc: Fix bcm_iproc_i2c_isr deadlock issue
Jul 7, 2023
184f1b6
i2c: hisi: Only handle the interrupt of the driver's transfer
Aug 1, 2023
bb70e2b
fbdev: mmp: fix value check in mmphw_probe()
Jul 27, 2023
8ef25fb
powerpc/rtas_flash: allow user copy to flash block cache objects
Aug 11, 2023
2a52344
tty: n_gsm: fix the UAF caused by race condition in gsm_cleanup_mux
Aug 11, 2023
77698e6
tty: serial: fsl_lpuart: Clear the error flags by writing 1 for lpuar…
Aug 1, 2023
b966e9e
btrfs: fix BUG_ON condition in btrfs_cancel_balance
Aug 15, 2023
416c538
i2c: designware: Correct length byte validation logic
Jul 26, 2023
080dedb
i2c: designware: Handle invalid SMBus block data response length value
Jul 26, 2023
1960f46
net: xfrm: Fix xfrm_address_filter OOB read
Jun 27, 2023
fed1cd2
net: af_key: fix sadb_x_filter validation
Jun 27, 2023
a465ace
net: xfrm: Amend XFRMA_SEC_CTX nla_policy structure
Jun 30, 2023
44b3d40
xfrm: fix slab-use-after-free in decode_session6
Jul 10, 2023
a1639a8
ip6_vti: fix slab-use-after-free in decode_session6
Jul 10, 2023
e1e04cc
ip_vti: fix potential slab-use-after-free in decode_session6
Jul 10, 2023
075448a
xfrm: add NULL check in xfrm_update_ae_params
Jul 21, 2023
8e5e967
xfrm: add forgotten nla_policy for XFRMA_MTIMER_THRESH
Jul 23, 2023
c2a6ffe
net: phy: fix IRQ-based wake-on-lan over hibernate / power off
Aug 11, 2023
7207ee3
selftests: mirror_gre_changes: Tighten up the TTL test match
Aug 11, 2023
b2f6d73
drm/panel: simple: Fix AUO G121EAN01 panel timings according to the docs
Aug 4, 2023
8210974
netfilter: nf_tables: fix false-positive lockdep splat
Aug 8, 2023
1adaec4
netfilter: nf_tables: deactivate catchall elements in next generation
Aug 12, 2023
9177869
ipvs: fix racy memcpy in proc_do_sync_threshold
Aug 10, 2023
bf221e5
netfilter: nft_dynset: disallow object maps
Aug 15, 2023
0ffbc34
net: phy: broadcom: stub c45 read/write for 54810
Aug 13, 2023
ae68346
team: Fix incorrect deletion of ETH_P_8021AD protocol vid from slaves
Aug 14, 2023
5ba2b93
iavf: fix FDIR rule fields masks validation
Aug 7, 2023
f11c280
i40e: fix misleading debug logs
Aug 2, 2023
fc3d82d
net: dsa: mv88e6xxx: Wait for EEPROM done before HW reset
Aug 15, 2023
5fc4fd3
sock: Fix misuse of sk_under_memory_pressure()
Aug 16, 2023
578371c
net: do not allow gso_size to be set to GSO_BY_FRAGS
Aug 16, 2023
03522d7
bus: ti-sysc: Flush posted write on enable before reset
Jun 14, 2023
430c29a
arm64: dts: qcom: qrb5165-rb5: fix thermal zone conflict
Jun 13, 2023
e878458
ARM: dts: imx: Set default tuning step for imx6sx usdhc
Jul 26, 2023
fd346ef
ASoC: rt5665: add missed regulator_bulk_disable
Aug 1, 2023
c5ac752
ASoC: meson: axg-tdm-formatter: fix channel slot allocation
Aug 9, 2023
dfb9676
soc: aspeed: socinfo: Add kfree for kstrdup
Aug 10, 2023
b2a331a
ALSA: hda/realtek - Remodified 3k pull low procedure
Aug 15, 2023
e9b8ee7
riscv: uaccess: Return the number of bytes effectively not copied
Aug 11, 2023
18e27df
serial: 8250: Fix oops for port->pm on uart_change_pm()
Aug 4, 2023
cc3f194
ALSA: usb-audio: Add support for Mythware XA001AU capture and playbac…
Aug 3, 2023
961f7ce
cifs: Release folio lock on fscache read hit.
Aug 10, 2023
b803fed
mmc: wbsd: fix double mmc_free_host() in wbsd_init()
Aug 7, 2023
ff09f9e
mmc: block: Fix in_flight[issue_type] value error
Aug 2, 2023
d578c91
drm/qxl: fix UAF on handle creation
Aug 14, 2023
a00c5d2
drm/amd: flush any delayed gfxoff on suspend entry
May 18, 2023
6065b30
netfilter: set default timeout to 3 secs for sctp shutdown send and r…
Aug 15, 2023
6b64974
exfat: check if filename entries exceeds max filename length
Jul 13, 2023
9a4d8dc
arm64: dts: rockchip: Disable HS400 for eMMC on ROCK Pi 4
Jul 5, 2023
d39fc9b
af_unix: Fix null-ptr-deref in unix_stream_sendpage().
Aug 21, 2023
431db3f
virtio-net: set queues after driver_ok
Aug 10, 2023
e8c5081
net: fix the RTO timer retransmitting skb every 1ms if linear option …
Aug 11, 2023
5b28fda
mmc: f-sdh30: fix order of function calls in sdhci_f_sdh30_remove
Jul 27, 2023
8089aae
x86/cpu: Fix __x86_return_thunk symbol type
Aug 14, 2023
0d810ef
x86/cpu: Fix up srso_safe_ret() and __x86_return_thunk()
Aug 14, 2023
08f7cfd
x86/alternative: Make custom return thunk unconditional
Aug 14, 2023
f1171d4
objtool: Add frame-pointer-specific function ignore
Sep 14, 2021
f624ce6
x86/ibt: Add ANNOTATE_NOENDBR
Mar 8, 2022
f77dbb9
x86/cpu: Clean up SRSO return thunk mess
Aug 14, 2023
19c1c04
x86/cpu: Rename original retbleed methods
Aug 14, 2023
035e906
x86/cpu: Rename srso_(.*)_alias to srso_alias_\1
Aug 14, 2023
4354859
x86/cpu: Cleanup the untrain mess
Aug 14, 2023
df6495f
x86/srso: Explain the untraining sequences a bit more
Aug 14, 2023
19f23d1
x86/static_call: Fix __static_call_fixup()
Aug 16, 2023
bbe5852
x86/retpoline: Don't clobber RFLAGS during srso_safe_ret()
Aug 11, 2023
aa0777c
x86/CPU/AMD: Fix the DIV(0) initial fix attempt
Aug 11, 2023
fa24cd0
x86/srso: Disable the mitigation on unaffected configurations
Aug 13, 2023
55f1cbe
x86/retpoline,kprobes: Fix position of thunk sections with CONFIG_LTO…
Jul 11, 2023
484eefc
objtool/x86: Fixup frame-pointer vs rethunk
Aug 16, 2023
9080f4f
x86/srso: Correct the mitigation status when SMT is disabled
Aug 15, 2023
5ddfe5c
Linux 5.15.128
Aug 26, 2023
5de0a32
objtool/x86: Fix SRSO mess
Aug 14, 2023
323b830
NFSv4.2: fix error handling in nfs42_proc_getxattr
Jul 25, 2023
91a7075
NFSv4: fix out path in __nfs4_get_acl_uncached
Jul 25, 2023
8cc8645
xprtrdma: Remap Receive buffers after a reconnect
Jul 3, 2023
d9ce077
PCI: acpiphp: Reassign resources on bridge if necessary
Apr 24, 2023
33e9c61
dlm: improve plock logging if interrupted
Apr 4, 2022
df9c842
dlm: replace usage of found with dedicated list iterator variable
Apr 6, 2022
7ac0888
fs: dlm: add pid to debug log
Jun 22, 2022
f9a33cc
fs: dlm: change plock interrupted message to debug again
Jun 22, 2022
77d334c
fs: dlm: use dlm_plock_info for do_unlock_close
Jun 22, 2022
d1d0b23
fs: dlm: fix mismatch of plock results from userspace
May 24, 2023
8f106e9
MIPS: cpu-features: Enable octeon_cache by cpu_type
Apr 4, 2023
166f0bf
MIPS: cpu-features: Use boot_cpu_type for CPU type based features
Jun 7, 2023
5b60bd9
fbdev: Improve performance of sys_imageblit()
Feb 23, 2022
14163f4
fbdev: Fix sys_imageblit() for arbitrary image widths
Mar 13, 2022
2e56d38
fbdev: fix potential OOB read in fast_imageblit()
Jun 24, 2023
a0ab49e
ALSA: pcm: Fix potential data race at PCM memory allocation helpers
Jul 3, 2023
d91783e
jbd2: remove t_checkpoint_io_list
Jun 6, 2023
9c31bb2
jbd2: remove journal_clean_one_cp_list()
Jun 6, 2023
b832174
jbd2: fix a race when checking checkpoint buffer busy
Jun 6, 2023
e0bd4f0
can: raw: fix receiver memory leak
Jul 11, 2023
a955e6a
drm/amd/display: do not wait for mpc idle if tg is disabled
Mar 24, 2022
278fccf
drm/amd/display: check TG is non-null before checking if enabled
Jun 20, 2023
fdf5804
can: raw: fix lockdep issue in raw_release()
Jul 20, 2023
ef74836
tracing: Fix cpu buffers unavailable due to 'record_disabled' missed
Aug 5, 2023
ce6e2b1
tracing: Fix memleak due to race between current_tracer and trace
Aug 17, 2023
c52c6c0
octeontx2-af: SDP: fix receive link config
Aug 17, 2023
9b01536
sock: annotate data-races around prot->memory_pressure
Aug 18, 2023
2bad37b
dccp: annotate data-races in dccp_poll()
Aug 18, 2023
5b52c9b
ipvlan: Fix a reference count leak warning in ipvlan_ns_exit()
Aug 17, 2023
60a5034
net: bgmac: Fix return value check for fixed_phy_register()
Aug 18, 2023
335be58
net: bcmgenet: Fix return value check for fixed_phy_register()
Aug 18, 2023
ace1b0a
net: validate veth and vxcan peer ifindexes
Aug 19, 2023
d7823d7
ice: fix receive buffer size miscalculation
Aug 10, 2023
f697c3e
igb: Avoid starting unnecessary workqueues
Aug 21, 2023
30624ea
igc: Fix the typo in the PTM Control macro
Aug 21, 2023
ff34403
net/sched: fix a qdisc modification with ambiguous command request
Aug 22, 2023
f22954f
netfilter: nf_tables: flush pending destroy work before netlink notifier
Aug 17, 2023
75cfb7d
netfilter: nf_tables: fix out of memory error handling
Aug 22, 2023
00247cf
rtnetlink: return ENODEV when ifname does not exist and group is given
Apr 15, 2022
f0ec97f
rtnetlink: Reject negative ifindexes in RTM_NEWLINK
Aug 23, 2023
0fa8046
net: remove bond_slave_has_mac_rcu()
Jan 26, 2022
f683f4b
bonding: fix macvlan over alb bond support
Aug 23, 2023
4451457
net/ncsi: make one oem_gma function for all mfr id
Jun 7, 2023
67af12f
net/ncsi: change from ndo_set_mac_address to dev_set_mac_address
Jun 7, 2023
7e546bd
Revert "KVM: x86: enable TDP MMU by default"
Aug 24, 2023
9c02542
ibmveth: Use dcbf rather than dcbfl
Aug 23, 2023
0f72859
NFSv4: Fix dropped lock for racing OPEN and delegation return
Jun 30, 2023
5cc7d81
clk: Fix slab-out-of-bounds error in devm_clk_release()
Aug 5, 2023
440c100
ALSA: ymfpci: Fix the missing snd_card_free() call at probe error
Aug 23, 2023
5f64261
mm: add a call to flush_cache_vmap() in vmap_pfn()
Aug 9, 2023
bd1697e
NFS: Fix a use after free in nfs_direct_join_group()
Aug 9, 2023
711595b
nfsd: Fix race to FREE_STATEID and cl_revoked
Aug 4, 2023
22426e1
selinux: set next pointer before attaching to list
Aug 18, 2023
cde5a24
batman-adv: Trigger events for auto adjusted MTU
Jul 19, 2023
3f9312d
batman-adv: Don't increase MTU when set by user
Jul 19, 2023
f7667b4
batman-adv: Do not get eth header before batadv_check_management_packet
Jul 28, 2023
7f3f72e
batman-adv: Fix TT global entry leak when client roamed back
Aug 4, 2023
ea38c0d
batman-adv: Fix batadv_v_ogm_aggr_send memory leak
Aug 9, 2023
ff90a4c
batman-adv: Hold rtnl lock during MTU update via netlink
Aug 21, 2023
898c8c5
lib/clz_ctz.c: Fix __clzdi2() and __ctzdi2() for 32-bit kernels
Aug 25, 2023
ce66cd4
radix tree: remove unused variable
Aug 11, 2023
f1d4a58
of: unittest: Fix EXPECT for parse_phandle_with_args_map() test
Aug 18, 2023
544cd10
of: dynamic: Refactor action prints to not use "%pOF" inside devtree_…
Aug 18, 2023
60ba1bf
media: vcodec: Fix potential array out-of-bounds in encoder queue_setup
Aug 10, 2023
b53ed41
PCI: acpiphp: Use pci_assign_unassigned_bridge_resources() only for n…
Jul 26, 2023
c8aab33
drm/vmwgfx: Fix shader stage validation
Jun 16, 2023
b190cf1
drm/display/dp: Fix the DP DSC Receiver cap size
Aug 18, 2023
ad79f94
x86/fpu: Invalidate FPU state correctly on exec()
Aug 18, 2023
a7a1849
x86/fpu: Set X86_FEATURE_OSXSAVE feature after enabling OSXSAVE in CR4
Aug 23, 2023
0196651
nfs: use vfs setgid helper
Mar 14, 2023
c8fb97d
nfsd: use vfs setgid helper
May 2, 2023
78efab7
torture: Fix hang during kthread shutdown phase
Jan 1, 2023
918879d
cgroup/cpuset: Rename functions dealing with DEADLINE accounting
Aug 20, 2023
d0eb491
sched/cpuset: Bring back cpuset_mutex
Aug 20, 2023
43d8cbf
sched/cpuset: Keep track of SCHED_DEADLINE task in cpusets
Aug 20, 2023
86aa907
cgroup/cpuset: Iterate only if DEADLINE tasks are present
Aug 20, 2023
ffff4fc
sched/deadline: Create DL BW alloc, free & check overflow interface
Aug 20, 2023
3cb86cc
cgroup/cpuset: Free DL BW in case can_attach() fails
Aug 20, 2023
930f3f1
drm/i915: Fix premature release of request's reusable memory
Jul 20, 2023
ef56cc8
can: raw: add missing refcount for memory leak fix
Aug 21, 2023
d3d57cd
scsi: snic: Fix double free in snic_tgt_create()
Aug 19, 2023
10bc3ed
scsi: core: raid_class: Remove raid_component_add()
Aug 22, 2023
f1c0402
clk: Fix undefined reference to `clk_rate_exclusive_{get,put}'
Jul 25, 2023
8dbf913
pinctrl: renesas: rza2: Add lock around pinctrl_generic{{add,remove}_…
Aug 15, 2023
efd02b5
dma-buf/sw_sync: Avoid recursive lock during fence signal
Aug 18, 2023
0712721
mm: memory-failure: kill soft_offline_free_page()
Aug 19, 2022
1c41cd3
mm: memory-failure: fix unexpected return value in soft_offline_page()
Jun 27, 2023
d48016d
mm,ima,kexec,of: use memblock_free_late from ima_free_kexec_buffer
Aug 17, 2023
9e43368
Linux 5.15.129
Aug 30, 2023
df5fadb
Merge tag 'v5.15.129' into v5.15-rt
Sep 1, 2023
9157353
Linux 5.15.129-rt67
Sep 1, 2023
91e6377
Revert "Revert "usb: dwc3: pci: Add GPIO lookup table on platforms wi…
Sep 12, 2023
6ff731b
Merge tag 'v5.15.129-rt67' into nilrt/master/5.15
Sep 12, 2023
b19c19e
include/uapi pps.h: increase PPS_MAX_SOURCES value
Sep 5, 2023
e49d91d
Revert "usb: dwc3: gadget: Add 1ms delay after end transfer command w…
Sep 8, 2023
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
The table of contents is too big for display.
Diff view
Diff view
  •  
  •  
  •  
13 changes: 7 additions & 6 deletions Documentation/ABI/testing/sysfs-devices-system-cpu
Original file line number Diff line number Diff line change
Expand Up @@ -511,17 +511,18 @@ Description: information about CPUs heterogeneity.
cpu_capacity: capacity of cpu#.

What: /sys/devices/system/cpu/vulnerabilities
/sys/devices/system/cpu/vulnerabilities/gather_data_sampling
/sys/devices/system/cpu/vulnerabilities/itlb_multihit
/sys/devices/system/cpu/vulnerabilities/l1tf
/sys/devices/system/cpu/vulnerabilities/mds
/sys/devices/system/cpu/vulnerabilities/meltdown
/sys/devices/system/cpu/vulnerabilities/mmio_stale_data
/sys/devices/system/cpu/vulnerabilities/retbleed
/sys/devices/system/cpu/vulnerabilities/spec_store_bypass
/sys/devices/system/cpu/vulnerabilities/spectre_v1
/sys/devices/system/cpu/vulnerabilities/spectre_v2
/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/srbds
/sys/devices/system/cpu/vulnerabilities/tsx_async_abort
/sys/devices/system/cpu/vulnerabilities/itlb_multihit
/sys/devices/system/cpu/vulnerabilities/mmio_stale_data
/sys/devices/system/cpu/vulnerabilities/retbleed
Date: January 2018
Contact: Linux kernel mailing list <linux-kernel@vger.kernel.org>
Description: Information about CPU vulnerabilities
Expand Down
8 changes: 8 additions & 0 deletions Documentation/admin-guide/device-mapper/dm-init.rst
Original file line number Diff line number Diff line change
Expand Up @@ -123,3 +123,11 @@ Other examples (per target):
0 1638400 verity 1 8:1 8:2 4096 4096 204800 1 sha256
fb1a5a0f00deb908d8b53cb270858975e76cf64105d412ce764225d53b8f3cfd
51934789604d1b92399c52e7cb149d1b3a1b74bbbcb103b2a0aaacbed5c08584

For setups using device-mapper on top of asynchronously probed block
devices (MMC, USB, ..), it may be necessary to tell dm-init to
explicitly wait for them to become available before setting up the
device-mapper tables. This can be done with the "dm-mod.waitfor="
module parameter, which takes a list of devices to wait for::

dm-mod.waitfor=<device1>[,..,<deviceN>]
109 changes: 109 additions & 0 deletions Documentation/admin-guide/hw-vuln/gather_data_sampling.rst
Original file line number Diff line number Diff line change
@@ -0,0 +1,109 @@
.. SPDX-License-Identifier: GPL-2.0

GDS - Gather Data Sampling
==========================

Gather Data Sampling is a hardware vulnerability which allows unprivileged
speculative access to data which was previously stored in vector registers.

Problem
-------
When a gather instruction performs loads from memory, different data elements
are merged into the destination vector register. However, when a gather
instruction that is transiently executed encounters a fault, stale data from
architectural or internal vector registers may get transiently forwarded to the
destination vector register instead. This will allow a malicious attacker to
infer stale data using typical side channel techniques like cache timing
attacks. GDS is a purely sampling-based attack.

The attacker uses gather instructions to infer the stale vector register data.
The victim does not need to do anything special other than use the vector
registers. The victim does not need to use gather instructions to be
vulnerable.

Because the buffers are shared between Hyper-Threads cross Hyper-Thread attacks
are possible.

Attack scenarios
----------------
Without mitigation, GDS can infer stale data across virtually all
permission boundaries:

Non-enclaves can infer SGX enclave data
Userspace can infer kernel data
Guests can infer data from hosts
Guest can infer guest from other guests
Users can infer data from other users

Because of this, it is important to ensure that the mitigation stays enabled in
lower-privilege contexts like guests and when running outside SGX enclaves.

The hardware enforces the mitigation for SGX. Likewise, VMMs should ensure
that guests are not allowed to disable the GDS mitigation. If a host erred and
allowed this, a guest could theoretically disable GDS mitigation, mount an
attack, and re-enable it.

Mitigation mechanism
--------------------
This issue is mitigated in microcode. The microcode defines the following new
bits:

================================ === ============================
IA32_ARCH_CAPABILITIES[GDS_CTRL] R/O Enumerates GDS vulnerability
and mitigation support.
IA32_ARCH_CAPABILITIES[GDS_NO] R/O Processor is not vulnerable.
IA32_MCU_OPT_CTRL[GDS_MITG_DIS] R/W Disables the mitigation
0 by default.
IA32_MCU_OPT_CTRL[GDS_MITG_LOCK] R/W Locks GDS_MITG_DIS=0. Writes
to GDS_MITG_DIS are ignored
Can't be cleared once set.
================================ === ============================

GDS can also be mitigated on systems that don't have updated microcode by
disabling AVX. This can be done by setting gather_data_sampling="force" or
"clearcpuid=avx" on the kernel command-line.

If used, these options will disable AVX use by turning off XSAVE YMM support.
However, the processor will still enumerate AVX support. Userspace that
does not follow proper AVX enumeration to check both AVX *and* XSAVE YMM
support will break.

Mitigation control on the kernel command line
---------------------------------------------
The mitigation can be disabled by setting "gather_data_sampling=off" or
"mitigations=off" on the kernel command line. Not specifying either will default
to the mitigation being enabled. Specifying "gather_data_sampling=force" will
use the microcode mitigation when available or disable AVX on affected systems
where the microcode hasn't been updated to include the mitigation.

GDS System Information
------------------------
The kernel provides vulnerability status information through sysfs. For
GDS this can be accessed by the following sysfs file:

/sys/devices/system/cpu/vulnerabilities/gather_data_sampling

The possible values contained in this file are:

============================== =============================================
Not affected Processor not vulnerable.
Vulnerable Processor vulnerable and mitigation disabled.
Vulnerable: No microcode Processor vulnerable and microcode is missing
mitigation.
Mitigation: AVX disabled,
no microcode Processor is vulnerable and microcode is missing
mitigation. AVX disabled as mitigation.
Mitigation: Microcode Processor is vulnerable and mitigation is in
effect.
Mitigation: Microcode (locked) Processor is vulnerable and mitigation is in
effect and cannot be disabled.
Unknown: Dependent on
hypervisor status Running on a virtual guest processor that is
affected but with no way to know if host
processor is mitigated or vulnerable.
============================== =============================================

GDS Default mitigation
----------------------
The updated microcode will enable the mitigation by default. The kernel's
default action is to leave the mitigation enabled.
2 changes: 2 additions & 0 deletions Documentation/admin-guide/hw-vuln/index.rst
Original file line number Diff line number Diff line change
Expand Up @@ -19,3 +19,5 @@ are configurable at compile, boot or run time.
l1d_flush.rst
processor_mmio_stale_data.rst
cross-thread-rsb.rst
gather_data_sampling.rst
srso
133 changes: 133 additions & 0 deletions Documentation/admin-guide/hw-vuln/srso.rst
Original file line number Diff line number Diff line change
@@ -0,0 +1,133 @@
.. SPDX-License-Identifier: GPL-2.0

Speculative Return Stack Overflow (SRSO)
========================================

This is a mitigation for the speculative return stack overflow (SRSO)
vulnerability found on AMD processors. The mechanism is by now the well
known scenario of poisoning CPU functional units - the Branch Target
Buffer (BTB) and Return Address Predictor (RAP) in this case - and then
tricking the elevated privilege domain (the kernel) into leaking
sensitive data.

AMD CPUs predict RET instructions using a Return Address Predictor (aka
Return Address Stack/Return Stack Buffer). In some cases, a non-architectural
CALL instruction (i.e., an instruction predicted to be a CALL but is
not actually a CALL) can create an entry in the RAP which may be used
to predict the target of a subsequent RET instruction.

The specific circumstances that lead to this varies by microarchitecture
but the concern is that an attacker can mis-train the CPU BTB to predict
non-architectural CALL instructions in kernel space and use this to
control the speculative target of a subsequent kernel RET, potentially
leading to information disclosure via a speculative side-channel.

The issue is tracked under CVE-2023-20569.

Affected processors
-------------------

AMD Zen, generations 1-4. That is, all families 0x17 and 0x19. Older
processors have not been investigated.

System information and options
------------------------------

First of all, it is required that the latest microcode be loaded for
mitigations to be effective.

The sysfs file showing SRSO mitigation status is:

/sys/devices/system/cpu/vulnerabilities/spec_rstack_overflow

The possible values in this file are:

- 'Not affected' The processor is not vulnerable

- 'Vulnerable: no microcode' The processor is vulnerable, no
microcode extending IBPB functionality
to address the vulnerability has been
applied.

- 'Mitigation: microcode' Extended IBPB functionality microcode
patch has been applied. It does not
address User->Kernel and Guest->Host
transitions protection but it does
address User->User and VM->VM attack
vectors.

(spec_rstack_overflow=microcode)

- 'Mitigation: safe RET' Software-only mitigation. It complements
the extended IBPB microcode patch
functionality by addressing User->Kernel
and Guest->Host transitions protection.

Selected by default or by
spec_rstack_overflow=safe-ret

- 'Mitigation: IBPB' Similar protection as "safe RET" above
but employs an IBPB barrier on privilege
domain crossings (User->Kernel,
Guest->Host).

(spec_rstack_overflow=ibpb)

- 'Mitigation: IBPB on VMEXIT' Mitigation addressing the cloud provider
scenario - the Guest->Host transitions
only.

(spec_rstack_overflow=ibpb-vmexit)

In order to exploit vulnerability, an attacker needs to:

- gain local access on the machine

- break kASLR

- find gadgets in the running kernel in order to use them in the exploit

- potentially create and pin an additional workload on the sibling
thread, depending on the microarchitecture (not necessary on fam 0x19)

- run the exploit

Considering the performance implications of each mitigation type, the
default one is 'Mitigation: safe RET' which should take care of most
attack vectors, including the local User->Kernel one.

As always, the user is advised to keep her/his system up-to-date by
applying software updates regularly.

The default setting will be reevaluated when needed and especially when
new attack vectors appear.

As one can surmise, 'Mitigation: safe RET' does come at the cost of some
performance depending on the workload. If one trusts her/his userspace
and does not want to suffer the performance impact, one can always
disable the mitigation with spec_rstack_overflow=off.

Similarly, 'Mitigation: IBPB' is another full mitigation type employing
an indrect branch prediction barrier after having applied the required
microcode patch for one's system. This mitigation comes also at
a performance cost.

Mitigation: safe RET
--------------------

The mitigation works by ensuring all RET instructions speculate to
a controlled location, similar to how speculation is controlled in the
retpoline sequence. To accomplish this, the __x86_return_thunk forces
the CPU to mispredict every function return using a 'safe return'
sequence.

To ensure the safety of this mitigation, the kernel must ensure that the
safe return sequence is itself free from attacker interference. In Zen3
and Zen4, this is accomplished by creating a BTB alias between the
untraining function srso_alias_untrain_ret() and the safe return
function srso_alias_safe_ret() which results in evicting a potentially
poisoned BTB entry and using that safe one for all function returns.

In older Zen1 and Zen2, this is accomplished using a reinterpretation
technique similar to Retbleed one: srso_untrain_ret() and
srso_safe_ret().
56 changes: 42 additions & 14 deletions Documentation/admin-guide/kernel-parameters.txt
Original file line number Diff line number Diff line change
Expand Up @@ -916,10 +916,6 @@

debugpat [X86] Enable PAT debugging

decnet.addr= [HW,NET]
Format: <area>[,<node>]
See also Documentation/networking/decnet.rst.

default_hugepagesz=
[HW] The size of the default HugeTLB page. This is
the size represented by the legacy /proc/ hugepages
Expand Down Expand Up @@ -1505,6 +1501,26 @@
Format: off | on
default: on

gather_data_sampling=
[X86,INTEL] Control the Gather Data Sampling (GDS)
mitigation.

Gather Data Sampling is a hardware vulnerability which
allows unprivileged speculative access to data which was
previously stored in vector registers.

This issue is mitigated by default in updated microcode.
The mitigation may have a performance impact but can be
disabled. On systems without the microcode mitigation
disabling AVX serves as a mitigation.

force: Disable AVX to mitigate systems without
microcode mitigation. No effect if the microcode
mitigation is present. Known to cause crashes in
userspace with buggy AVX enumeration.

off: Disable GDS mitigation.

gcov_persist= [GCOV] When non-zero (default), profiling data for
kernel modules is saved and remains accessible via
debugfs, even when the module is unloaded/reloaded.
Expand Down Expand Up @@ -3038,22 +3054,23 @@
Disable all optional CPU mitigations. This
improves system performance, but it may also
expose users to several CPU vulnerabilities.
Equivalent to: nopti [X86,PPC]
Equivalent to: gather_data_sampling=off [X86]
kpti=0 [ARM64]
nospectre_v1 [X86,PPC]
nobp=0 [S390]
nospectre_v2 [X86,PPC,S390,ARM64]
spectre_v2_user=off [X86]
spec_store_bypass_disable=off [X86,PPC]
ssbd=force-off [ARM64]
kvm.nx_huge_pages=off [X86]
l1tf=off [X86]
mds=off [X86]
tsx_async_abort=off [X86]
kvm.nx_huge_pages=off [X86]
mmio_stale_data=off [X86]
no_entry_flush [PPC]
no_uaccess_flush [PPC]
mmio_stale_data=off [X86]
nobp=0 [S390]
nopti [X86,PPC]
nospectre_v1 [X86,PPC]
nospectre_v2 [X86,PPC,S390,ARM64]
retbleed=off [X86]
spec_store_bypass_disable=off [X86,PPC]
spectre_v2_user=off [X86]
ssbd=force-off [ARM64]
tsx_async_abort=off [X86]

Exceptions:
This does not have any effect on
Expand Down Expand Up @@ -5433,6 +5450,17 @@
Not specifying this option is equivalent to
spectre_v2_user=auto.

spec_rstack_overflow=
[X86] Control RAS overflow mitigation on AMD Zen CPUs

off - Disable mitigation
microcode - Enable microcode mitigation only
safe-ret - Enable sw-only safe RET mitigation (default)
ibpb - Enable mitigation by issuing IBPB on
kernel entry
ibpb-vmexit - Issue IBPB only on VMEXIT
(cloud-specific mitigation)

spec_store_bypass_disable=
[HW] Control Speculative Store Bypass (SSB) Disable mitigation
(Speculative Store Bypass vulnerability)
Expand Down
Loading