Linux 5.10.192
Greg Kroah-Hartman
maintainerI'm announcing the release of the 5.10.192 kernel.
All users of the 5.10 kernel series must upgrade.
The updated 5.10.y git tree can be found at:
git://git.kernel.org/pub/scm/linux/kernel/git/stable/linux-stable.git linux-5.10.y
and can be browsed at the normal kernel.org git web browser:
https://git.kernel.org/?p=linux/kernel/git/stable/linux-stable.git;a=summary
thanks,
greg k-h
------------
Documentation/admin-guide/hw-vuln/srso.rst | 4 Documentation/devicetree/bindings/iio/addac/adi,ad74413r.yaml | 158 Makefile | 2 arch/arm/boot/dts/imx6dl-prtrvt.dts | 4 arch/arm/boot/dts/imx6qdl-prti6q.dtsi | 11 arch/arm64/boot/dts/rockchip/rk3399-rock-pi-4.dtsi | 197 - arch/mips/include/asm/dec/prom.h | 2 arch/powerpc/kernel/rtas_flash.c | 6 arch/powerpc/mm/kasan/Makefile | 1 arch/x86/include/asm/entry-common.h | 1 arch/x86/include/asm/nospec-branch.h | 28 arch/x86/kernel/cpu/amd.c | 1 arch/x86/kernel/cpu/bugs.c | 28 arch/x86/kernel/static_call.c | 13 arch/x86/kernel/traps.c | 2 arch/x86/kernel/vmlinux.lds.S | 18 arch/x86/kvm/svm/svm.c | 1 arch/x86/lib/retpoline.S | 135 drivers/bluetooth/btusb.c | 3 drivers/bus/Makefile | 2 drivers/bus/mhi/Kconfig | 18 drivers/bus/mhi/Makefile | 4 drivers/bus/mhi/core/Makefile | 4 drivers/bus/mhi/core/boot.c | 525 --- drivers/bus/mhi/core/debugfs.c | 411 -- drivers/bus/mhi/core/init.c | 1375 -------- drivers/bus/mhi/core/internal.h | 722 ---- drivers/bus/mhi/core/main.c | 1630 ---------- drivers/bus/mhi/core/pm.c | 1157 ------- drivers/bus/mhi/host/Kconfig | 31 drivers/bus/mhi/host/Makefile | 6 drivers/bus/mhi/host/boot.c | 525 +++ drivers/bus/mhi/host/debugfs.c | 411 ++ drivers/bus/mhi/host/init.c | 1387 ++++++++ drivers/bus/mhi/host/internal.h | 722 ++++ drivers/bus/mhi/host/main.c | 1630 ++++++++++ drivers/bus/mhi/host/pci_generic.c | 345 ++ drivers/bus/mhi/host/pm.c | 1157 +++++++ drivers/bus/ti-sysc.c | 2 drivers/gpu/drm/amd/amdgpu/amdgpu_cs.c | 6 drivers/gpu/drm/amd/amdgpu/amdgpu_vm.c | 6 drivers/gpu/drm/panel/panel-simple.c | 24 drivers/gpu/drm/radeon/radeon_cs.c | 3 drivers/hid/hid-ids.h | 1 drivers/hid/hid-quirks.c | 1 drivers/i2c/busses/i2c-bcm-iproc.c | 11 drivers/i2c/busses/i2c-designware-master.c | 15 drivers/iio/Kconfig | 1 drivers/iio/Makefile | 1 drivers/iio/adc/stx104.c | 96 drivers/iio/addac/Kconfig | 8 drivers/iio/addac/Makefile | 6 drivers/infiniband/hw/mlx5/qpc.c | 10 drivers/irqchip/irq-mips-gic.c | 63 drivers/media/platform/mtk-vpu/mtk_vpu.c | 6 drivers/mmc/core/block.c | 7 drivers/mmc/core/host.c | 26 drivers/mmc/host/bcm2835.c | 4 drivers/mmc/host/meson-gx-mmc.c | 52 drivers/mmc/host/sdhci_f_sdh30.c | 66 drivers/mmc/host/sunxi-mmc.c | 4 drivers/mmc/host/wbsd.c | 2 drivers/net/dsa/mv88e6xxx/chip.c | 8 drivers/net/ethernet/intel/i40e/i40e_nvm.c | 16 drivers/net/ethernet/mellanox/mlx5/core/lib/clock.c | 168 - drivers/net/ethernet/mellanox/mlx5/core/lib/clock.h | 3 drivers/net/macsec.c | 70 drivers/net/phy/broadcom.c | 13 drivers/net/team/team.c | 4 drivers/net/virtio_net.c | 4 drivers/pci/controller/dwc/pcie-tegra194.c | 13 drivers/pcmcia/rsrc_nonstatic.c | 2 drivers/tty/n_gsm.c | 3 drivers/tty/serial/8250/8250_port.c | 1 drivers/tty/serial/fsl_lpuart.c | 4 drivers/usb/cdns3/gadget.c | 60 drivers/usb/cdns3/gadget.h | 9 drivers/usb/chipidea/ci_hdrc_imx.c | 5 drivers/usb/chipidea/usbmisc_imx.c | 2 drivers/usb/dwc3/dwc3-qcom.c | 11 drivers/usb/gadget/function/u_serial.c | 3 drivers/usb/gadget/udc/core.c | 19 drivers/video/fbdev/mmp/hw/mmp_ctrl.c | 4 drivers/virtio/virtio_mmio.c | 8 fs/btrfs/volumes.c | 3 fs/cifs/file.c | 2 fs/gfs2/super.c | 26 fs/jfs/jfs_dmap.c | 3 fs/jfs/jfs_txnmgr.c | 5 fs/jfs/namei.c | 5 fs/overlayfs/ovl_entry.h | 9 fs/quota/dquot.c | 5 fs/udf/unicode.c | 2 include/dt-bindings/iio/addac/adi,ad74413r.h | 21 include/linux/iopoll.h | 2 include/linux/mhi.h | 2 include/linux/mlx5/driver.h | 12 include/linux/mmc/host.h | 1 include/linux/objtool.h | 28 include/linux/usb/gadget.h | 4 include/linux/virtio_net.h | 4 include/media/v4l2-mem2mem.h | 18 include/net/sock.h | 6 kernel/dma/remap.c | 4 kernel/trace/ring_buffer.c | 14 kernel/trace/trace.c | 3 kernel/trace/trace_kprobe.c | 3 kernel/trace/trace_probe_tmpl.h | 18 kernel/trace/trace_uprobe.c | 3 net/bluetooth/l2cap_core.c | 5 net/core/sock.c | 2 net/ipv4/ip_vti.c | 4 net/ipv4/tcp_timer.c | 4 net/ipv6/ip6_vti.c | 4 net/key/af_key.c | 4 net/netfilter/ipvs/ip_vs_ctl.c | 4 net/netfilter/nf_conntrack_proto_sctp.c | 6 net/netfilter/nft_dynset.c | 3 net/unix/af_unix.c | 9 net/xfrm/xfrm_compat.c | 2 net/xfrm/xfrm_interface_core.c | 4 net/xfrm/xfrm_user.c | 14 security/integrity/ima/Kconfig | 2 sound/hda/hdac_regmap.c | 7 sound/pci/emu10k1/emufx.c | 112 sound/pci/hda/patch_realtek.c | 16 sound/soc/codecs/rt5665.c | 2 sound/soc/intel/boards/sof_sdw.c | 25 sound/soc/meson/axg-tdm-formatter.c | 42 sound/usb/quirks-table.h | 29 tools/include/linux/objtool.h | 28 tools/objtool/arch/x86/decode.c | 2 tools/objtool/check.c | 21 tools/testing/selftests/net/forwarding/mirror_gre_changes.sh | 3 134 files changed, 7627 insertions(+), 6458 deletions(-)
Abel Wu (1):
sock: Fix misuse of sk_under_memory_pressure()
Alex Bee (2):
arm64: dts: rockchip: add ES8316 codec for ROCK Pi 4
arm64: dts: rockchip: add SPDIF node for ROCK Pi 4
Alfred Lee (1):
net: dsa: mv88e6xxx: Wait for EEPROM done before HW reset
Andrii Staikov (1):
i40e: fix misleading debug logs
Armin Wolf (1):
pcmcia: rsrc_nonstatic: Fix memory leak in nonstatic_release_resource_db()
Bard Liao (1):
ASoC: Intel: sof_sdw: add quirk for MTL RVP
Benjamin Gray (1):
powerpc/kasan: Disable KCOV in KASAN code
Bhaumik Bhatt (1):
bus: mhi: Add MMIO region length to controller structure
Borislav Petkov (AMD) (4):
x86/srso: Explain the untraining sequences a bit more x86/CPU/AMD: Fix the DIV(0) initial fix attempt x86/srso: Disable the mitigation on unaffected configurations x86/srso: Correct the mitigation status when SMT is disabled
Chen Lin (1):
ring-buffer: Do not swap cpu_buffer during resize process
Chengfeng Ye (1):
i2c: bcm-iproc: Fix bcm_iproc_i2c_isr deadlock issue
Christian Brauner (1):
ovl: check type and offset of struct vfsmount in ovl_entry
Christopher Obbard (1):
arm64: dts: rockchip: Disable HS400 for eMMC on ROCK Pi 4
Clayton Yager (1):
macsec: Fix traffic counters/statistics
Cosmin Tanislav (2):
iio: add addac subdirectory
dt-bindings: iio: add AD74413R
Eran Ben Elisha (2):
net/mlx5: Refactor init clock function
net/mlx5: Move all internal timer metadata into a dedicated struct
Eric Dumazet (2):
macsec: use DEV_STATS_INC()
net: do not allow gso_size to be set to GSO_BY_FRAGS
FUKAUMI Naoki (2):
arm64: dts: rockchip: fix regulator name on rk3399-rock-4
arm64: dts: rockchip: sort nodes/properties on rk3399-rock-4
Frank Li (2):
usb: cdns3: allocate TX FIFO size according to composite EP number
usb: cdns3: fix NCM gadget RX speed 20x slow than expection at iMX8QM
Geert Uytterhoeven (1):
iopoll: Call cpu_relax() in busy loops
Greg Kroah-Hartman (1):
Linux 5.10.192
Gustavo A. R. Silva (1):
MIPS: dec: prom: Address -Warray-bounds warning
Hans Verkuil (1):
media: platform: mediatek: vpu: fix NULL ptr dereference
Heiner Kallweit (2):
mmc: core: add devm_mmc_alloc_host
mmc: meson-gx: use devm_mmc_alloc_host
Immad Mir (2):
FS: JFS: Fix null-ptr-deref Read in txBegin
FS: JFS: Check for read-only mounted filesystem in txBegin
Jan Kara (2):
quota: Properly disable quotas when add_dquot_ref() fails
udf: Fix uninitialized array access for some pathnames
Jason Wang (1):
virtio-net: set queues after driver_ok
Jason Xing (1):
net: fix the RTO timer retransmitting skb every 1ms if linear option is enabled
Jeffrey Hugo (1):
bus: mhi: host: Range check CHDBOFF and ERDBOFF
Jerome Brunet (1):
ASoC: meson: axg-tdm-formatter: fix channel slot allocation
Jiaxun Yang (1):
irqchip/mips-gic: Use raw spinlock for gic_lock
Johan Hovold (1):
USB: dwc3: qcom: fix NULL-deref on suspend
Josh Poimboeuf (1):
objtool: Add frame-pointer-specific function ignore
Justin Chen (1):
net: phy: broadcom: stub c45 read/write for 54810
Kailang Yang (1):
ALSA: hda/realtek - Remodified 3k pull low procedure
Kunihiko Hayashi (1):
mmc: sdhci-f-sdh30: Replace with sdhci_pltfm
Kuniyuki Iwashima (1):
af_unix: Fix null-ptr-deref in unix_stream_sendpage().
Lang Yu (1):
drm/amdgpu: install stub fence into potential unused fence pointers
Lin Ma (5):
net: xfrm: Fix xfrm_address_filter OOB read
net: af_key: fix sadb_x_filter validation
net: xfrm: Amend XFRMA_SEC_CTX nla_policy structure
xfrm: add NULL check in xfrm_update_ae_params
xfrm: add forgotten nla_policy for XFRMA_MTIMER_THRESH
Loic Poulain (1):
bus: mhi: Add MHI PCI support for WWAN modems
Luca Ceresoli (1):
drm/panel: simple: Fix AUO G121EAN01 panel timings according to the docs
Manivannan Sadhasivam (1):
bus: mhi: Move host MHI code to "host" directory
Marc Zyngier (1):
irqchip/mips-gic: Get rid of the reliance on irq_cpu_online()
Marco Morandini (1):
HID: add quirk for 03f0:464a HP Elite Presenter Mouse
Masami Hiramatsu (Google) (1):
tracing/probes: Fix to update dynamic data counter if fetcharg uses it
Matthew Anderson (1):
Bluetooth: btusb: Add MT7922 bluetooth ID for the Asus Ally
Moshe Shemesh (1):
net/mlx5: Skip clock update work when device is in error state
Nathan Lynch (1):
powerpc/rtas_flash: allow user copy to flash block cache objects
Oleksij Rempel (1):
ARM: dts: imx6dl: prtrvt, prtvt7, prti6q, prtwd2: fix USB related warnings
Oswald Buddenhagen (1):
ALSA: emu10k1: roll up loops in DSP setup code for Audigy
Pablo Neira Ayuso (1):
netfilter: nft_dynset: disallow object maps
Patrisious Haddad (1):
RDMA/mlx5: Return the firmware result upon destroying QP/RQ
Peter Ujfalusi (1):
ASoC: Intel: sof_sdw: add quirk for LNL RVP
Peter Zijlstra (10):
x86/cpu: Fix __x86_return_thunk symbol type x86/cpu: Fix up srso_safe_ret() and __x86_return_thunk() x86/alternative: Make custom return thunk unconditional x86/ibt: Add ANNOTATE_NOENDBR
x86/cpu: Clean up SRSO return thunk mess x86/cpu: Rename original retbleed methods x86/cpu: Rename srso_(.*)_alias to srso_alias_\1 x86/cpu: Cleanup the untrain mess x86/static_call: Fix __static_call_fixup() objtool/x86: Fixup frame-pointer vs rethunk
Petr Machata (1):
selftests: mirror_gre_changes: Tighten up the TTL test match
Petr Pavlu (1):
x86/retpoline,kprobes: Fix position of thunk sections with CONFIG_LTO_CLANG
Prashanth K (1):
usb: gadget: u_serial: Avoid spinlock recursion in __gs_console_push
Randy Dunlap (1):
IMA: allow/fix UML builds
Russell Harmon via samba-technical (1):
cifs: Release folio lock on fscache read hit.
Sean Christopherson (1):
x86/retpoline: Don't clobber RFLAGS during srso_safe_ret()
Sergey Shtylyov (3):
mmc: bcm2835: fix deferred probing
mmc: sunxi: fix deferred probing
mmc: meson-gx: fix deferred probing
Sherry Sun (1):
tty: serial: fsl_lpuart: Clear the error flags by writing 1 for lpuart32 platforms
Sishuai Gong (1):
ipvs: fix racy memcpy in proc_do_sync_threshold
Steven Rostedt (VMware) (1):
tracing/probes: Have process_fetch_insn() take a void * instead of pt_regs
Sumit Gupta (1):
PCI: tegra194: Fix possible array out of bounds access
Tam Nguyen (1):
i2c: designware: Handle invalid SMBus block data response length value
Tang Bin (1):
virtio-mmio: Use to_virtio_mmio_device() to simply code
Tony Lindgren (2):
bus: ti-sysc: Flush posted write on enable before reset
serial: 8250: Fix oops for port->pm on uart_change_pm()
Tuo Li (2):
gfs2: Fix possible data races in gfs2_show_options()
ALSA: hda: fix a possible null-pointer dereference due to data race in snd_hdac_regmap_sync()
Uday M Bhat (1):
ASoC: Intel: sof_sdw: Add support for Rex soundwire
Vicente Bergas (2):
arm64: dts: rockchip: fix supplies on rk3399-rock-pi-4
arm64: dts: rockchip: use USB host by default on rk3399-rock-pi-4
Wesley Cheng (1):
usb: gadget: udc: core: Introduce check_config to verify USB configuration
William Breathitt Gray (4):
iio: adc: stx104: Utilize iomap interface
iio: adc: stx104: Implement and utilize register structures
iio: addac: stx104: Fix race condition for stx104_write_raw()
iio: addac: stx104: Fix race condition when converting analog-to-digital
Wolfram Sang (1):
virtio-mmio: don't break lifecycle of vm_dev
Xin Long (1):
netfilter: set default timeout to 3 secs for sctp shutdown send and recv state
Xu Yang (2):
usb: chipidea: imx: don't request QoS for imx8ulp
usb: chipidea: imx: add missing USB PHY DPDM wakeup setting
Yang Yingliang (1):
mmc: wbsd: fix double mmc_free_host() in wbsd_init()
Yangtao Li (1):
mmc: f-sdh30: fix order of function calls in sdhci_f_sdh30_remove
Ye Bin (1):
quota: fix warning in dqgrab()
Yi Yang (1):
tty: n_gsm: fix the UAF caused by race condition in gsm_cleanup_mux
Yibin Ding (1):
mmc: block: Fix in_flight[issue_type] value error
Yogesh (1):
fs: jfs: Fix UBSAN: array-index-out-of-bounds in dbAllocDmapLev
Yuanjun Gong (1):
fbdev: mmp: fix value check in mmphw_probe()
Yunfei Dong (1):
media: v4l2-mem2mem: add lock to protect parameter num_rdy
Zhang Shurong (1):
ASoC: rt5665: add missed regulator_bulk_disable
Zhengchao Shao (3):
xfrm: fix slab-use-after-free in decode_session6
ip6_vti: fix slab-use-after-free in decode_session6
ip_vti: fix potential slab-use-after-free in decode_session6
Zhengping Jiang (1):
Bluetooth: L2CAP: Fix use-after-free
Ziyang Xuan (1):
team: Fix incorrect deletion of ETH_P_8021AD protocol vid from slaves
dengxiang (2):
ALSA: hda/realtek: Add quirks for Unis H3C Desktop B760 & Q760
ALSA: usb-audio: Add support for Mythware XA001AU capture and playback interfaces.
gaoxu (1):
dma-remap: use kvmalloc_array/kvfree for larger dma memory remap
hackyzh002 (1):
drm/radeon: Fix integer overflow in radeon_cs_parser_init
shanzhulig (1):
drm/amdgpu: Fix potential fence use-after-free v2
xiaoshoukui (1):
btrfs: fix BUG_ON condition in btrfs_cancel_balance
Greg Kroah-Hartman
maintainerDocumentation/admin-guide/hw-vuln/srso.rst +2 -2
@@ -124,8 +124,8 @@ 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_untrain_ret_alias() and the safe return -function srso_safe_ret_alias() which results in evicting a potentially +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
Documentation/devicetree/bindings/iio/addac/adi,ad74413r.yaml new file +158 -0
158 lines not on this page · raw message
Makefile +1 -1
@@ -1,7 +1,7 @@ # SPDX-License-Identifier: GPL-2.0 VERSION = 5 PATCHLEVEL = 10 -SUBLEVEL = 191 +SUBLEVEL = 192 EXTRAVERSION = NAME = Dare mighty things
arch/arm/boot/dts/imx6dl-prtrvt.dts +4 -0
@@ -126,6 +126,10 @@ &usbh1 { status = "disabled"; }; +&usbotg { + disable-over-current; +}; + &vpu { status = "disabled"; };
arch/arm/boot/dts/imx6qdl-prti6q.dtsi +10 -1
@@ -69,6 +69,7 @@ &usbh1 { vbus-supply = <®_usb_h1_vbus>; phy_type = "utmi"; dr_mode = "host"; + disable-over-current; status = "okay"; };
@@ -78,10 +79,18 @@ &usbotg { pinctrl-0 = <&pinctrl_usbotg>; phy_type = "utmi"; dr_mode = "host"; - disable-over-current; + over-current-active-low; status = "okay"; }; +&usbphynop1 { + status = "disabled"; +}; + +&usbphynop2 { + status = "disabled"; +}; + &usdhc1 { pinctrl-names = "default"; pinctrl-0 = <&pinctrl_usdhc1>;
arch/arm64/boot/dts/rockchip/rk3399-rock-pi-4.dtsi +121 -76
330 lines not on this page · raw message
arch/mips/include/asm/dec/prom.h +1 -1
@@ -70,7 +70,7 @@ static inline bool prom_is_rex(u32 magic)*/ typedef struct {int pagesize; -unsigned char bitmap[0 ]; +unsigned char bitmap[]; }memmap ;
arch/powerpc/kernel/rtas_flash.c +3 -3
@@ -710,9 +710,9 @@ static int __init rtas_flash_init(void)if (!rtas_validate_flash_data.buf)return -ENOMEM ; - flash_block_cache =kmem_cache_create ("rtas_flash_cache" , -RTAS_BLK_SIZE ,RTAS_BLK_SIZE ,0 , -NULL ); + flash_block_cache =kmem_cache_create_usercopy ("rtas_flash_cache" , +RTAS_BLK_SIZE ,RTAS_BLK_SIZE , +0 ,0 ,RTAS_BLK_SIZE ,NULL );if (!flash_block_cache) {printk (KERN_ERR "%s: failed to create block cache\n" , __func__);
arch/powerpc/mm/kasan/Makefile +1 -0
@@ -1,6 +1,7 @@ # SPDX-License-Identifier: GPL-2.0 KASAN_SANITIZE := n +KCOV_INSTRUMENT := n obj-$(CONFIG_PPC32) += kasan_init_32.o obj-$(CONFIG_PPC_8xx) += 8xx.o
arch/x86/include/asm/entry-common.h +1 -0
@@ -78,6 +78,7 @@ static inline void arch_exit_to_user_mode_prepare(struct pt_regs *regs, static __always_inline void arch_exit_to_user_mode(void) {mds_user_clear_cpu_buffers (); +amd_clear_divider (); }#define arch_exit_to_user_mode arch_exit_to_user_mode
arch/x86/include/asm/nospec-branch.h +17 -11
@@ -156,9 +156,9 @@ .endm#ifdef CONFIG_CPU_UNRET_ENTRY -#define CALL_ZEN_UNTRAIN_RET "call zen_untrain_ret" +#define CALL_UNTRAIN_RET "call entry_untrain_ret"#else -#define CALL_ZEN_UNTRAIN_RET "" +#define CALL_UNTRAIN_RET ""#endif /*
@@ -166,7 +166,7 @@* return thunk isn't mapped into the userspace tables (then again, AMD * typically has NO_MELTDOWN). * -* While zen_untrain_ret() doesn't clobber anything but requires stack, +* While retbleed_untrain_ret() doesn't clobber anything but requires stack, * entry_ibpb() will clobber AX, CX, DX. * * As such, this must be placed after every *SWITCH_TO_KERNEL_CR3 at a point
@@ -177,14 +177,9 @@defined (CONFIG_CPU_SRSO) ANNOTATE_UNRET_ENDALTERNATIVE_2 "" , \ -CALL_ZEN_UNTRAIN_RET ,X86_FEATURE_UNRET , \ +CALL_UNTRAIN_RET ,X86_FEATURE_UNRET , \"call entry_ibpb" ,X86_FEATURE_ENTRY_IBPB #endif - -#ifdef CONFIG_CPU_SRSO -ALTERNATIVE_2 "" ,"call srso_untrain_ret" ,X86_FEATURE_SRSO , \ -"call srso_untrain_ret_alias" ,X86_FEATURE_SRSO_ALIAS -#endif .endm#else /* __ASSEMBLY__ */
@@ -195,10 +190,21 @@ _ASM_PTR" 999b\n\t" \".popsection\n\t" +#ifdef CONFIG_RETHUNK extern void __x86_return_thunk(void); -extern void zen_untrain_ret (void ); +#else +static inline void __x86_return_thunk (void ) {} +#endif + +extern void retbleed_return_thunk (void ); +extern void srso_return_thunk (void ); +extern void srso_alias_return_thunk (void ); + +extern void retbleed_untrain_ret (void );extern void srso_untrain_ret (void ); -extern void srso_untrain_ret_alias (void ); +extern void srso_alias_untrain_ret (void ); + +extern void entry_untrain_ret (void );extern void entry_ibpb (void );#ifdef CONFIG_RETPOLINE
arch/x86/kernel/cpu/amd.c +1 -0
@@ -1332,3 +1332,4 @@ void noinstr amd_clear_divider(void) asm volatile(ALTERNATIVE("", "div %2\n\t", X86_BUG_DIV0) :: "a" (0), "d" (0), "r" (1)); } +EXPORT_SYMBOL_GPL (amd_clear_divider);
arch/x86/kernel/cpu/bugs.c +23 -5
@@ -61,6 +61,8 @@ EXPORT_SYMBOL_GPL(x86_pred_cmd);static DEFINE_MUTEX (spec_ctrl_mutex); +void (*x86_return_thunk)(void )__ro_after_init = &__x86_return_thunk; +/* Update SPEC_CTRL MSR and its cached copy unconditionally */ static void update_spec_ctrl (u64 val) {
@@ -155,8 +157,13 @@ void __init cpu_select_mitigations(void)l1tf_select_mitigation ();md_clear_select_mitigation ();srbds_select_mitigation (); -gds_select_mitigation (); + +/* +* srso_select_mitigation() depends and must run after +* retbleed_select_mitigation(). +*/ srso_select_mitigation (); +gds_select_mitigation (); }/*
@@ -976,6 +983,9 @@ static void __init retbleed_select_mitigation(void)setup_force_cpu_cap (X86_FEATURE_RETHUNK );setup_force_cpu_cap (X86_FEATURE_UNRET ); +if (IS_ENABLED (CONFIG_RETHUNK )) + x86_return_thunk = retbleed_return_thunk; +if (boot_cpu_data.x86_vendor !=X86_VENDOR_AMD && boot_cpu_data.x86_vendor !=X86_VENDOR_HYGON )pr_err (RETBLEED_UNTRAIN_MSG );
@@ -2318,9 +2328,10 @@ static void __init srso_select_mitigation(void)* Zen1/2 with SMT off aren't vulnerable after the right * IBPB microcode has been applied. */ -if ((boot_cpu_data.x86 <0x19 ) && - (!cpu_smt_possible () || (cpu_smt_control ==CPU_SMT_DISABLED ))) +if (boot_cpu_data.x86 <0x19 && !cpu_smt_possible ()) {setup_force_cpu_cap (X86_FEATURE_SRSO_NO ); +return ; + } }if (retbleed_mitigation ==RETBLEED_MITIGATION_IBPB ) {
@@ -2349,11 +2360,15 @@ static void __init srso_select_mitigation(void)* like ftrace, static_call, etc. */ setup_force_cpu_cap (X86_FEATURE_RETHUNK ); +setup_force_cpu_cap (X86_FEATURE_UNRET ); -if (boot_cpu_data.x86 ==0x19 ) +if (boot_cpu_data.x86 ==0x19 ) {setup_force_cpu_cap (X86_FEATURE_SRSO_ALIAS ); -else + x86_return_thunk = srso_alias_return_thunk; + }else {setup_force_cpu_cap (X86_FEATURE_SRSO ); + x86_return_thunk = srso_return_thunk; + } srso_mitigation =SRSO_MITIGATION_SAFE_RET ; }else {pr_err ("WARNING: kernel not compiled with CPU_SRSO.\n" );
@@ -2602,6 +2617,9 @@ static ssize_t gds_show_state(char *buf)static ssize_t srso_show_state (char *buf) { +if (boot_cpu_has (X86_FEATURE_SRSO_NO )) +return sysfs_emit (buf,"Mitigation: SMT disabled\n" ); +return sysfs_emit (buf,"%s%s\n" , srso_strings[srso_mitigation], (cpu_has_ibpb_brtype_microcode () ?"" :", no microcode" ));
arch/x86/kernel/static_call.c +13 -0
@@ -123,6 +123,19 @@ EXPORT_SYMBOL_GPL(arch_static_call_transform);*/ bool __static_call_fixup (void *tramp,u8 op,void *dest) { +unsigned long addr = (unsigned long )tramp; +/* +* Not all .return_sites are a static_call trampoline (most are not). +* Check if the 3 bytes after the return are still kernel text, if not, +* then this definitely is not a trampoline and we need not worry +* further. +* +* This avoids the memcmp() below tripping over pagefaults etc.. +*/ +if (((addr >>PAGE_SHIFT ) != ((addr +7 ) >>PAGE_SHIFT )) && + !kernel_text_address (addr +7 )) +return false; +if (memcmp (tramp+5 , tramp_ud,3 )) {/* Not a trampoline site, not our problem. */ return false;
arch/x86/kernel/traps.c +0 -2
@@ -198,8 +198,6 @@ DEFINE_IDTENTRY(exc_divide_error) {do_error_trap (regs,0 ,"divide error" ,X86_TRAP_DE ,SIGFPE ,FPE_INTDIV ,error_get_trap_addr (regs)); - -amd_clear_divider (); }DEFINE_IDTENTRY (exc_overflow)
arch/x86/kernel/vmlinux.lds.S +9 -9
@@ -134,18 +134,18 @@ SECTIONS KPROBES_TEXT ALIGN_ENTRY_TEXT_BEGIN #ifdef CONFIG_CPU_SRSO - *(.text.__x86.rethunk_untrain) + *(.text..__x86.rethunk_untrain) #endif ENTRY_TEXT #ifdef CONFIG_CPU_SRSO /* - * See the comment above srso_untrain_ret_alias()'s + * See the comment above srso_alias_untrain_ret()'s * definition. */ - . = srso_untrain_ret_alias | (1 << 2) | (1 << 8) | (1 << 14) | (1 << 20); - *(.text.__x86.rethunk_safe) + . = srso_alias_untrain_ret | (1 << 2) | (1 << 8) | (1 << 14) | (1 << 20); + *(.text..__x86.rethunk_safe) #endif ALIGN_ENTRY_TEXT_END SOFTIRQENTRY_TEXT
@@ -155,8 +155,8 @@ SECTIONS #ifdef CONFIG_RETPOLINE __indirect_thunk_start = .; - *(.text.__x86.indirect_thunk) - *(.text.__x86.return_thunk) + *(.text..__x86.indirect_thunk) + *(.text..__x86.return_thunk) __indirect_thunk_end = .; #endif } :text =0xcccc
@@ -518,7 +518,7 @@ INIT_PER_CPU(irq_stack_backing_store); #endif #ifdef CONFIG_RETHUNK -. = ASSERT((__ret & 0x3f) == 0, "__ret not cacheline-aligned"); +. = ASSERT((retbleed_return_thunk & 0x3f) == 0, "retbleed_return_thunk not cacheline-aligned"); . = ASSERT((srso_safe_ret & 0x3f) == 0, "srso_safe_ret not cacheline-aligned"); #endif
@@ -533,8 +533,8 @@ INIT_PER_CPU(irq_stack_backing_store); * Instead do: (A | B) - (A & B) in order to compute the XOR * of the two function addresses: */ -. = ASSERT(((ABSOLUTE(srso_untrain_ret_alias) | srso_safe_ret_alias) - - (ABSOLUTE(srso_untrain_ret_alias) & srso_safe_ret_alias)) == ((1 << 2) | (1 << 8) | (1 << 14) | (1 << 20)), +. = ASSERT(((ABSOLUTE(srso_alias_untrain_ret) | srso_alias_safe_ret) - + (ABSOLUTE(srso_alias_untrain_ret) & srso_alias_safe_ret)) == ((1 << 2) | (1 << 8) | (1 << 14) | (1 << 20)), "SRSO function pair won't alias"); #endif
arch/x86/kvm/svm/svm.c +1 -0
@@ -3376,6 +3376,7 @@ static void svm_flush_tlb_gva(struct kvm_vcpu *vcpu, gva_t gva)static void svm_prepare_guest_switch (struct kvm_vcpu *vcpu) { +amd_clear_divider (); }static inline void sync_cr8_to_lapic (struct kvm_vcpu *vcpu)
arch/x86/lib/retpoline.S +94 -41
226 lines not on this page · raw message
drivers/bluetooth/btusb.c +3 -0
@@ -432,6 +432,9 @@ static const struct usb_device_id blacklist_table[] = { { USB_DEVICE(0x0489, 0xe0d9), .driver_info = BTUSB_MEDIATEK |BTUSB_WIDEBAND_SPEECH | BTUSB_VALID_LE_STATES }, + { USB_DEVICE(0x0489, 0xe0f5), .driver_info = BTUSB_MEDIATEK | +BTUSB_WIDEBAND_SPEECH | + BTUSB_VALID_LE_STATES }, { USB_DEVICE(0x13d3, 0x3568), .driver_info = BTUSB_MEDIATEK |BTUSB_WIDEBAND_SPEECH | BTUSB_VALID_LE_STATES },
drivers/bus/Makefile +1 -1
@@ -38,4 +38,4 @@ obj-$(CONFIG_VEXPRESS_CONFIG) += vexpress-config.o obj-$(CONFIG_DA8XX_MSTPRI) += da8xx-mstpri.o # MHI -obj-$(CONFIG_MHI_BUS) += mhi/ +obj-y += mhi/
drivers/bus/mhi/Kconfig +2 -16
@@ -2,21 +2,7 @@ # # MHI bus # -# Copyright (c) 2018-2020, The Linux Foundation. All rights reserved. +# Copyright (c) 2021, Linaro Ltd. # -config MHI_BUS - tristate "Modem Host Interface (MHI) bus" - help - Bus driver for MHI protocol. Modem Host Interface (MHI) is a - communication protocol used by the host processors to control - and communicate with modem devices over a high speed peripheral - bus or shared memory. - -config MHI_BUS_DEBUG - bool "Debugfs support for the MHI bus" - depends on MHI_BUS && DEBUG_FS - help - Enable debugfs support for use with the MHI transport. Allows - reading and/or modifying some values within the MHI controller - for debug and test purposes. +source "drivers/bus/mhi/host/Kconfig"
drivers/bus/mhi/Makefile +2 -2
@@ -1,2 +1,2 @@ -# core layer -obj-y += core/ +# Host MHI stack +obj-y += host/
drivers/bus/mhi/core/Makefile deleted +0 -4
@@ -1,4 +0,0 @@ -obj-$(CONFIG_MHI_BUS) += mhi.o - -mhi-y := init.o main.o pm.o boot.o -mhi-$(CONFIG_MHI_BUS_DEBUG) += debugfs.o
drivers/bus/mhi/core/boot.c deleted +0 -525
525 lines not on this page · raw message
drivers/bus/mhi/core/debugfs.c deleted +0 -411
411 lines not on this page · raw message
drivers/bus/mhi/core/init.c deleted +0 -1375
1,003 lines not on this page · raw message
drivers/bus/mhi/core/internal.h deleted +0 -722
722 lines not on this page · raw message
drivers/bus/mhi/core/main.c deleted +0 -1630
1,630 lines not on this page · raw message
drivers/bus/mhi/core/pm.c deleted +0 -1157
1,157 lines not on this page · raw message
drivers/bus/mhi/host/boot.c new file +525 -0
525 lines not on this page · raw message
drivers/bus/mhi/host/debugfs.c new file +411 -0
411 lines not on this page · raw message
drivers/bus/mhi/host/init.c new file +1387 -0
1,387 lines not on this page · raw message
drivers/bus/mhi/host/internal.h new file +722 -0
722 lines not on this page · raw message
drivers/bus/mhi/host/main.c new file +1630 -0
1,630 lines not on this page · raw message
drivers/bus/mhi/host/pci_generic.c new file +345 -0
345 lines not on this page · raw message
drivers/bus/mhi/host/pm.c new file +1157 -0
1,157 lines not on this page · raw message
drivers/i2c/busses/i2c-designware-master.c +13 -2
Lines of this file are not shown. View the raw message.
drivers/iio/adc/stx104.c +68 -28
96 lines not on this page · raw message
drivers/irqchip/irq-mips-gic.c +39 -24
63 lines not on this page · raw message
drivers/media/platform/mtk-vpu/mtk_vpu.c +4 -2
Lines of this file are not shown. View the raw message.
drivers/mmc/host/meson-gx-mmc.c +17 -35
52 lines not on this page · raw message
drivers/mmc/host/sdhci_f_sdh30.c +31 -35
66 lines not on this page · raw message
drivers/net/ethernet/intel/i40e/i40e_nvm.c +8 -8
Lines of this file are not shown. View the raw message.
drivers/net/ethernet/mellanox/mlx5/core/lib/clock.c +109 -59
168 lines not on this page · raw message
drivers/net/ethernet/mellanox/mlx5/core/lib/clock.h +2 -1
Lines of this file are not shown. View the raw message.
drivers/net/macsec.c +55 -15
70 lines not on this page · raw message
drivers/pci/controller/dwc/pcie-tegra194.c +11 -2
Lines of this file are not shown. View the raw message.
drivers/usb/cdns3/gadget.c +56 -4
60 lines not on this page · raw message
include/dt-bindings/iio/addac/adi,ad74413r.h new file +21 -0
Lines of this file are not shown. View the raw message.
net/netfilter/nf_conntrack_proto_sctp.c +3 -3
Lines of this file are not shown. View the raw message.
sound/pci/emu10k1/emufx.c +9 -103
112 lines not on this page · raw message
sound/soc/meson/axg-tdm-formatter.c +26 -16
42 lines not on this page · raw message
tools/testing/selftests/net/forwarding/mirror_gre_changes.sh +2 -1
Lines of this file are not shown. View the raw message.
The rest of this diff is not shown. View the raw message.
Part of the diff is not shown here. View the raw message.