Linux 6.6.60
Greg Kroah-Hartman
maintainerI'm announcing the release of the 6.6.60 kernel.
All users of the 6.6 kernel series must upgrade.
The updated 6.6.y git tree can be found at:
git://git.kernel.org/pub/scm/linux/kernel/git/stable/linux-stable.git linux-6.6.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
------------
Makefile | 2 arch/arm64/boot/dts/freescale/imx8ulp.dtsi | 2 arch/riscv/kernel/acpi.c | 4 arch/riscv/kernel/asm-offsets.c | 2 arch/riscv/kernel/cpu-hotplug.c | 2 arch/riscv/kernel/efi-header.S | 2 arch/riscv/kernel/traps_misaligned.c | 2 arch/riscv/kernel/vdso/Makefile | 1 arch/x86/include/asm/bug.h | 12 arch/x86/kernel/traps.c | 71 ++ block/blk-map.c | 4 drivers/acpi/cppc_acpi.c | 9 drivers/base/core.c | 48 +- drivers/base/module.c | 4 drivers/cxl/acpi.c | 7 drivers/cxl/core/hdm.c | 50 +- drivers/cxl/core/port.c | 13 drivers/cxl/core/region.c | 48 -- drivers/cxl/core/trace.h | 17 drivers/cxl/cxl.h | 3 drivers/firmware/arm_sdei.c | 2 drivers/gpu/drm/amd/display/dc/dcn30/dcn30_hwseq.c | 3 drivers/iio/adc/ad7124.c | 2 drivers/iio/industrialio-gts-helper.c | 4 drivers/iio/light/veml6030.c | 2 drivers/infiniband/hw/bnxt_re/qplib_fp.c | 4 drivers/infiniband/hw/bnxt_re/qplib_rcfw.c | 38 - drivers/infiniband/hw/bnxt_re/qplib_rcfw.h | 2 drivers/infiniband/hw/cxgb4/provider.c | 1 drivers/infiniband/hw/mlx5/qp.c | 4 drivers/input/joystick/xpad.c | 12 drivers/input/touchscreen/edt-ft5x06.c | 19 drivers/misc/mei/client.c | 4 drivers/misc/sgi-gru/grukservices.c | 2 drivers/misc/sgi-gru/grumain.c | 4 drivers/misc/sgi-gru/grutlbpurge.c | 2 drivers/mmc/host/sdhci-pci-gli.c | 38 + drivers/mtd/spi-nor/winbond.c | 7 drivers/net/ethernet/amd/mvme147.c | 7 drivers/net/ethernet/mellanox/mlxsw/spectrum_ipip.c | 26 + drivers/net/ethernet/mellanox/mlxsw/spectrum_ptp.c | 7 drivers/net/ethernet/stmicro/stmmac/dwmac4_dma.c | 8 drivers/net/ethernet/stmicro/stmmac/dwmac4_dma.h | 2 drivers/net/ethernet/stmicro/stmmac/stmmac_main.c | 22 drivers/net/gtp.c | 22 drivers/net/macsec.c | 3 drivers/net/mctp/mctp-i2c.c | 3 drivers/net/netdevsim/fib.c | 4 drivers/net/wireless/ath/ath10k/wmi-tlv.c | 7 drivers/net/wireless/ath/ath10k/wmi.c | 2 drivers/net/wireless/ath/ath11k/dp_rx.c | 7 drivers/net/wireless/broadcom/brcm80211/Kconfig | 1 drivers/net/wireless/intel/iwlegacy/common.c | 15 drivers/net/wireless/intel/iwlegacy/common.h | 12 drivers/net/wireless/intel/iwlwifi/mvm/fw.c | 22 drivers/net/wireless/intel/iwlwifi/mvm/mld-mac80211.c | 24 - drivers/net/wireless/intel/iwlwifi/mvm/scan.c | 3 drivers/nvme/target/auth.c | 1 drivers/phy/freescale/phy-fsl-imx8m-pcie.c | 10 drivers/phy/qualcomm/phy-qcom-qmp-usb-legacy.c | 1 drivers/phy/qualcomm/phy-qcom-qmp-usb.c | 1 drivers/scsi/scsi_transport_fc.c | 4 drivers/spi/spi-fsl-dspi.c | 6 drivers/spi/spi-geni-qcom.c | 8 drivers/staging/iio/frequency/ad9832.c | 7 drivers/thermal/intel/int340x_thermal/processor_thermal_rapl.c | 70 +- drivers/thermal/thermal_core.c | 25 - drivers/thunderbolt/tb.c | 48 +- drivers/usb/gadget/udc/dummy_hcd.c | 57 +- drivers/usb/host/xhci-pci.c | 6 drivers/usb/host/xhci-ring.c | 16 drivers/usb/phy/phy.c | 2 drivers/usb/typec/class.c | 1 drivers/usb/typec/tcpm/qcom/qcom_pmic_typec.c | 4 fs/afs/dir.c | 25 + fs/afs/dir_edit.c | 91 +++ fs/afs/internal.h | 2 fs/dax.c | 45 + fs/iomap/buffered-io.c | 7 fs/nfs/delegation.c | 5 fs/nilfs2/namei.c | 3 fs/nilfs2/page.c | 1 fs/ntfs3/file.c | 9 fs/ntfs3/frecord.c | 4 fs/ntfs3/inode.c | 15 fs/ntfs3/lznt.c | 3 fs/ntfs3/namei.c | 2 fs/ntfs3/ntfs_fs.h | 2 fs/ntfs3/record.c | 31 - fs/ocfs2/file.c | 8 fs/smb/client/cifs_unicode.c | 17 fs/smb/client/reparse.c | 174 ++++++- fs/smb/client/reparse.h | 9 fs/smb/client/smb2inode.c | 3 fs/smb/client/smb2proto.h | 1 fs/xfs/xfs_filestream.c | 23 fs/xfs/xfs_trace.h | 15 include/acpi/cppc_acpi.h | 2 include/linux/compiler-gcc.h | 4 include/linux/device.h | 3 include/linux/huge_mm.h | 18 include/linux/iomap.h | 19 include/linux/sched.h | 2 include/linux/thermal.h | 2 include/linux/ubsan.h | 5 include/net/ip_tunnels.h | 2 include/trace/events/afs.h | 240 +--------- init/init_task.c | 1 io_uring/io_uring.c | 13 io_uring/rw.c | 23 kernel/bpf/cgroup.c | 19 kernel/bpf/lpm_trie.c | 2 kernel/bpf/verifier.c | 9 kernel/cgroup/cgroup.c | 4 kernel/fork.c | 1 kernel/rcu/tasks.h | 90 ++- kernel/sched/fair.c | 4 lib/Kconfig.ubsan | 4 lib/iov_iter.c | 6 mm/huge_memory.c | 13 mm/kasan/kasan_test.c | 27 - mm/memory.c | 9 mm/migrate.c | 2 mm/page_alloc.c | 10 mm/shmem.c | 2 net/bluetooth/hci_sync.c | 18 net/bpf/test_run.c | 1 net/core/dev.c | 4 net/core/rtnetlink.c | 4 net/ipv6/netfilter/nf_reject_ipv6.c | 15 net/mac80211/Kconfig | 2 net/mac80211/agg-tx.c | 4 net/mac80211/cfg.c | 3 net/mac80211/key.c | 42 + net/mptcp/protocol.c | 2 net/netfilter/nft_payload.c | 3 net/netfilter/x_tables.c | 2 net/sched/sch_api.c | 2 net/sunrpc/svc.c | 9 net/wireless/core.c | 1 sound/pci/hda/patch_realtek.c | 23 sound/soc/codecs/cs42l51.c | 7 sound/soc/sof/ipc4-control.c | 175 +++++++ sound/soc/sof/ipc4-topology.c | 49 +- sound/soc/sof/ipc4-topology.h | 19 sound/usb/mixer_quirks.c | 3 tools/mm/page-types.c | 9 tools/mm/slabinfo.c | 4 tools/testing/cxl/test/cxl.c | 14 tools/testing/selftests/bpf/bpf_experimental.h | 31 + tools/testing/selftests/mm/uffd-common.c | 5 tools/testing/selftests/mm/uffd-common.h | 3 tools/testing/selftests/mm/uffd-unit-tests.c | 21 tools/usb/usbip/src/usbip_detach.c | 1 154 files changed, 1653 insertions(+), 771 deletions(-)
Alan Stern (1):
USB: gadget: dummy-hcd: Fix "task hung" problem
Alexander Usyskin (1):
mei: use kvmalloc for read buffer
Alexandre Ghiti (1):
riscv: vdso: Prevent the compiler from inserting calls to memset()
Amit Cohen (1):
mlxsw: spectrum_ptp: Add missing verification before pushing Tx header
Andrew Ballance (1):
fs/ntfs3: Check if more than chunk-size bytes are written
Andrey Konovalov (2):
usb: gadget: dummy_hcd: execute hrtimer callback in softirq context
kasan: remove vmalloc_percpu test
Basavaraj Natikar (1):
xhci: Use pm_runtime_get to prevent RPM on unsupported systems
Ben Chuang (2):
mmc: sdhci-pci-gli: GL9767: Fix low power mode on the set clock function
mmc: sdhci-pci-gli: GL9767: Fix low power mode in the SD Express process
Ben Hutchings (1):
wifi: iwlegacy: Fix "field-spanning write" warning in il_enqueue_hcmd()
Benjamin Marzinski (1):
scsi: scsi_transport_fc: Allow setting rport state to current state
Benoît Monin (1):
net: skip offload for NETIF_F_IPV6_CSUM if ipv6 header contains extension
Brenton Simpson (1):
Input: xpad - sort xpad_device by vendor and product ID
Byeonguk Jeong (1):
bpf: Fix out-of-bounds write in trie_get_next_key()
Chen Ridong (1):
cgroup/bpf: use a dedicated workqueue for cgroup bpf destruction
Christoffer Sandberg (2):
ALSA: hda/realtek: Fix headset mic on TUXEDO Gemini 17 Gen3
ALSA: hda/realtek: Fix headset mic on TUXEDO Stellaris 16 Gen6 mb1
Christoph Hellwig (3):
iomap: improve shared block detection in iomap_unshare_iter
iomap: turn iomap_want_unshare_iter into an inline function
xfs: fix finding a last resort AG in xfs_filestream_pick_ag
Christophe JAILLET (1):
ASoC: cs42l51: Fix some error handling paths in cs42l51_probe()
Chuck Lever (1):
SUNRPC: Remove BUG_ON call sites
Chunyan Zhang (2):
riscv: Remove unused GENERATING_ASM_OFFSETS
riscv: Remove duplicated GET_RM
Dai Ngo (1):
NFS: remove revoked delegation from server's delegation list
Dan Williams (3):
cxl/port: Fix use-after-free, permit out-of-order decoder shutdown cxl/port: Fix cxl_bus_rescan() vs bus_rescan_devices() cxl/acpi: Ensure ports ready at cxl_acpi_probe() return
Daniel Gabay (1):
wifi: iwlwifi: mvm: Fix response handling in iwl_mvm_send_recovery_cmd()
Daniel Palmer (1):
net: amd: mvme147: Fix probe banner message
Darrick J. Wong (4):
iomap: don't bother unsharing delalloc extents
iomap: share iomap_unshare_iter predicate code with fsdax
fsdax: remove zeroing code from dax_unshare_iter
fsdax: dax_unshare_iter needs to copy entire blocks
David Hildenbrand (1):
mm: don't install PMD mappings when THPs are disabled by the hw/process/vma
David Howells (2):
afs: Automatically generate trace tag enums
afs: Fix missing subdir edit when renamed between parent dirs
Dimitri Sivanich (1):
misc: sgi-gru: Don't disable preemption in GRU driver
Dmitry Torokhov (1):
Input: edt-ft5x06 - fix regmap leak when probe fails
Dong Chenchen (1):
netfilter: Fix use-after-free in get_info()
Eduard Zingerman (1):
bpf: Force checkpoint when jmp history is too long
Edward Adam Davis (1):
ocfs2: pass u64 to ocfs2_truncate_inline maybe overflow
Edward Liaw (2):
Revert "selftests/mm: fix deadlock for fork after pthread_create on ARM" Revert "selftests/mm: replace atomic_bool with pthread_barrier_t"
Emmanuel Grumbach (2):
wifi: iwlwifi: mvm: disconnect station vifs if recovery failed
wifi: iwlwifi: mvm: don't add default link in fw restart flow
Eric Dumazet (1):
netfilter: nf_reject_ipv6: fix potential crash in nf_send_reset6()
Faisal Hassan (1):
xhci: Fix Link TRB DMA in command ring stopped completion event
Felix Fietkau (2):
wifi: mac80211: skip non-uploaded keys in ieee80211_iter_keys
wifi: mac80211: do not pass a stopped vif to the driver in .get_txpower
Frank Li (1):
spi: spi-fsl-dspi: Fix crash when not using GPIO chip select
Furong Xu (1):
net: stmmac: TSO: Fix unbalanced DMA map/unmap for non-paged SKB data
Gatlin Newhouse (1):
x86/traps: Enable UBSAN traps on x86
Geert Uytterhoeven (2):
mac80211: MAC80211_MESSAGE_TRACING should depend on TRACING
wifi: brcm80211: BRCM_TRACING should depend on TRACING
Georgi Djakov (1):
spi: geni-qcom: Fix boot warning related to pm_runtime and devres
Gil Fine (1):
thunderbolt: Honor TMU requirements in the domain when setting TMU mode
Greg Kroah-Hartman (2):
Revert "driver core: Fix uevent_show() vs driver detach race" Linux 6.6.60
Gregory Price (1):
vmscan,migrate: fix page count imbalance on node stats when demoting pages
Haibo Chen (1):
arm64: dts: imx8ulp: correct the flexspi compatible string
Heinrich Schuchardt (1):
riscv: efi: Set NX compat flag in PE/COFF header
Hugh Dickins (1):
iov_iter: fix copy_page_from_iter_atomic() if KMAP_LOCAL_FORCE_MAP
Ido Schimmel (2):
ipv4: ip_tunnel: Fix suspicious RCU usage warning in ip_tunnel_init_flow()
mlxsw: spectrum_ipip: Fix memory leak when changing remote IPv6 address
Jan Schär (1):
ALSA: usb-audio: Add quirks for Dell WD19 dock
Javier Carrasco (3):
usb: typec: fix unreleased fwnode_handle in typec_port_register_altmodes()
usb: typec: qcom-pmic-typec: use fwnode_handle_put() to release fwnodes
iio: light: veml6030: fix microlux value calculation
Jens Axboe (1):
io_uring/rw: fix missing NOWAIT check for O_DIRECT start write
Jeongjun Park (1):
mm: shmem: fix data-race in shmem_getattr()
Jianbo Liu (1):
macsec: Fix use-after-free while sending the offloading packet
Jinjie Ruan (2):
iio: gts-helper: Fix memory leaks for the error path of iio_gts_build_avail_scale_table()
iio: gts-helper: Fix memory leaks in iio_gts_build_avail_scale_table()
Johan Hovold (2):
phy: qcom: qmp-usb: fix NULL-deref on runtime suspend
phy: qcom: qmp-usb-legacy: fix NULL-deref on runtime suspend
Johannes Berg (2):
wifi: cfg80211: clear wdev->cqm_config pointer on free
wifi: iwlwifi: mvm: fix 6 GHz scan construction
Kailang Yang (1):
ALSA: hda/realtek: Limit internal Mic boost on Dell platform
Kefeng Wang (1):
mm: huge_memory: add vma_thp_disabled() and thp_disabled_by_hw()
Konstantin Komarov (8):
fs/ntfs3: Fix warning possible deadlock in ntfs_set_state fs/ntfs3: Stale inode instead of bad
fs/ntfs3: Add rough attr alloc_size check
fs/ntfs3: Fix possible deadlock in mi_read
fs/ntfs3: Additional check in ni_clear()
fs/ntfs3: Fix general protection fault in run_is_mapped_full fs/ntfs3: Additional check in ntfs_file_release fs/ntfs3: Sequential field availability check in mi_enum_attr()
Leon Romanovsky (1):
RDMA/cxgb4: Dump vendor specific QP details
Ley Foon Tan (1):
net: stmmac: dwmac4: Fix high address display by updating reg_space[] from register values
Manikanta Pubbisetty (1):
wifi: ath10k: Fix memory leak in management tx
Marcello Sylvester Bauer (2):
usb: gadget: dummy_hcd: Switch to hrtimer transfer scheduler
usb: gadget: dummy_hcd: Set transfer interval to 1 microframe
Marco Elver (1):
kasan: Fix Software Tag-Based KASAN with GCC
Matt Fleming (1):
mm/page_alloc: let GFP_ATOMIC order-0 allocs access highatomic reserves
Matt Johnston (1):
mctp i2c: handle NULL header address
Matthieu Baerts (NGI0) (1):
mptcp: init: protect sched with rcu_read_lock
Michael Walle (1):
mtd: spi-nor: winbond: fix w25q128 regression
Pablo Neira Ayuso (2):
gtp: allow -1 to be specified as file description from userspace
netfilter: nft_payload: sanitize offset and length before calling skb_checksum()
Pali Rohár (2):
cifs: Improve creating native symlinks pointing to directory
cifs: Fix creating native symlinks pointing to current or parent directory
Patrisious Haddad (1):
RDMA/mlx5: Round max_rd_atomic/max_dest_rd_atomic up instead of down
Paul E. McKenney (3):
rcu-tasks: Pull sampling of ->percpu_dequeue_lim out of loop
rcu-tasks: Add data to eliminate RCU-tasks/do_exit() deadlocks
rcu-tasks: Initialize data to eliminate RCU-tasks/do_exit() deadlocks
Paulo Alcantara (2):
smb: client: fix parsing of device numbers
smb: client: set correct device number on nfs reparse points
Pavel Begunkov (1):
io_uring: always lock __io_cqring_overflow_flush
Pedro Tammela (1):
net/sched: stop qdisc_tree_reduce_backlog on TC_H_ROOT
Peter Ujfalusi (3):
ASoC: SOF: ipc4-topology: Add definition for generic switch/enum control
ASoC: SOF: ipc4-control: Add support for ALSA switch control
ASoC: SOF: ipc4-control: Add support for ALSA enum control
Pierre Gondois (1):
ACPI: CPPC: Make rmw_lock a raw_spin_lock
Rafael J. Wysocki (3):
thermal: core: Make thermal_zone_device_unregister() return after freeing the zone
thermal: core: Rework thermal zone availability check
thermal: core: Free tzp copy along with the thermal zone
Remi Pommarel (1):
wifi: ath11k: Fix invalid ring usage in full monitor mode
Richard Zhu (1):
phy: freescale: imx8m-pcie: Do CMN_RST just before PHY PLL lock check
Ryusuke Konishi (2):
nilfs2: fix potential deadlock with newly created symlinks
nilfs2: fix kernel bug due to missing clearing of checked flag
Sabyrzhan Tasbolatov (1):
x86/traps: move kmsan check after instrumentation_begin
Selvin Xavier (2):
RDMA/bnxt_re: Fix the usage of control path spin locks RDMA/bnxt_re: synchronize the qp-handle table array
Shawn Wang (1):
sched/numa: Fix the potential null pointer dereference in task_numa_work()
Shiju Jose (1):
cxl/events: Fix Trace DRAM Event Record
Srinivasan Shanmugam (1):
drm/amd/display: Add null checks for 'stream' and 'plane' before dereferencing
Stefan Kerkmann (1):
Input: xpad - add support for 8BitDo Ultimate 2C Wireless Controller
Sungwoo Kim (1):
Bluetooth: hci: fix null-ptr-deref in hci_read_supported_codecs
Toke Høiland-Jørgensen (1):
bpf, test_run: Fix LIVE_FRAME frame update after a page has been recycled
Ville Syrjälä (1):
wifi: iwlegacy: Clear stale interrupts before resuming device
Vitaliy Shevtsov (1):
nvmet-auth: assign dh_key to NULL after kfree_sensitive
Wang Liang (1):
net: fix crash when config small gso_max_size/gso_ipv4_max_size
WangYuli (1):
riscv: Use '%u' to format the output of 'cpu'
Wladislav Wiebe (1):
tools/mm: -Werror fixes in page-types/slabinfo
Xinyu Zhang (1):
block: fix sanity checks in blk_rq_map_user_bvec
Xiongfeng Wang (1):
firmware: arm_sdei: Fix the input parameter of cpuhp_remove_state()
Xiu Jianfeng (1):
cgroup: Fix potential overflow issue when checking max_depth
Yonghong Song (1):
selftests/bpf: Add bpf_percpu_obj_{new,drop}() macro in bpf_experimental.h
Yunhui Cui (1):
RISC-V: ACPI: fix early_ioremap to early_memremap
Zhang Rui (2):
thermal: intel: int340x: processor: Remove MMIO RAPL CPU hotplug support
thermal: intel: int340x: processor: Add MMIO RAPL PL4 supportZichen Xie (1):
netdevsim: Add trailing zero to terminate the string in nsim_nexthop_bucket_activity_write()
Zicheng Qu (2):
staging: iio: frequency: ad9832: fix division by zero in ad9832_calc_freqreg()
iio: adc: ad7124: fix division by zero in ad7124_set_channel_odr()
Zijun Hu (1):
usb: phy: Fix API devm_usb_put_phy() can not release the phy
Zong-Zhe Yang (1):
wifi: mac80211: fix NULL dereference at band check in starting tx ba session
Zongmin Zhou (1):
usbip: tools: Fix detach_port() invalid port error path
Zqiang (1):
rcu-tasks: Fix access non-existent percpu rtpcp variable in rcu_tasks_need_gpcb()
lei lu (1):
ntfs3: Add bounds checking to mi_enum_attr()
Greg Kroah-Hartman
maintainerMakefile +1 -1
@@ -1,7 +1,7 @@ # SPDX-License-Identifier: GPL-2.0 VERSION = 6 PATCHLEVEL = 6 -SUBLEVEL = 59 +SUBLEVEL = 60 EXTRAVERSION = NAME = Pinguïn Aangedreven
arch/arm64/boot/dts/freescale/imx8ulp.dtsi +1 -1
@@ -352,7 +352,7 @@ pcc4: clock-controller@29800000 { }; flexspi2: spi@29810000 { - compatible = "nxp,imx8mm-fspi"; + compatible = "nxp,imx8ulp-fspi"; reg = <0x29810000 0x10000>, <0x60000000 0x10000000>; reg-names = "fspi_base", "fspi_mmap"; #address-cells = <1>;
arch/riscv/kernel/acpi.c +2 -2
@@ -204,7 +204,7 @@ void __init __iomem *__acpi_map_table(unsigned long phys, unsigned long size)if (!size)return NULL ; -return early_ioremap (phys, size); +return early_memremap (phys, size); }void __init __acpi_unmap_table (void __iomem *map,unsigned long size)
@@ -212,7 +212,7 @@ void __init __acpi_unmap_table(void __iomem *map, unsigned long size)if (!map || !size)return ; -early_iounmap (map, size); +early_memunmap (map, size); }void __iomem *acpi_os_ioremap (acpi_physical_address phys,acpi_size size)
arch/riscv/kernel/asm-offsets.c +0 -2
@@ -4,8 +4,6 @@* Copyright (C) 2017 SiFive */ -#define GENERATING_ASM_OFFSETS -#include <linux/kbuild.h> #include <linux/mm.h> #include <linux/sched.h>
arch/riscv/kernel/cpu-hotplug.c +1 -1
@@ -65,7 +65,7 @@ void arch_cpuhp_cleanup_dead_cpu(unsigned int cpu)if (cpu_ops[cpu]->cpu_is_stopped) ret = cpu_ops[cpu]->cpu_is_stopped (cpu);if (ret) -pr_warn ("CPU%d may not have stopped: %d\n" , cpu, ret); +pr_warn ("CPU%u may not have stopped: %d\n" , cpu, ret); }/*
arch/riscv/kernel/efi-header.S +1 -1
@@ -64,7 +64,7 @@ extra_header_fields: .long efi_header_end - _start // SizeOfHeaders .long 0 // CheckSum .short IMAGE_SUBSYSTEM_EFI_APPLICATION // Subsystem - .short 0 // DllCharacteristics + .short IMAGE_DLL_CHARACTERISTICS_NX_COMPAT // DllCharacteristics .quad 0 // SizeOfStackReserve .quad 0 // SizeOfStackCommit .quad 0 // SizeOfHeapReserve
arch/riscv/kernel/traps_misaligned.c +0 -2
@@ -132,8 +132,6 @@#define REG_PTR (insn, pos, regs) \ (ulong *)((ulong)(regs) + REG_OFFSET(insn, pos)) -#define GET_RM (insn) (((insn) >> 12) & 7) -#define GET_RS1 (insn, regs) (*REG_PTR(insn, SH_RS1, regs))#define GET_RS2 (insn, regs) (*REG_PTR(insn, SH_RS2, regs))#define GET_RS1S (insn, regs) (*REG_PTR(RVC_RS1S(insn), 0, regs))
arch/riscv/kernel/vdso/Makefile +1 -0
@@ -18,6 +18,7 @@ obj-vdso = $(patsubst %, %.o, $(vdso-syms)) note.o ccflags-y := -fno-stack-protector ccflags-y += -DDISABLE_BRANCH_PROFILING +ccflags-y += -fno-builtin ifneq ($(c-gettimeofday-y),) CFLAGS_vgettimeofday.o += -fPIC -include $(c-gettimeofday-y)
arch/x86/include/asm/bug.h +12 -0
@@ -13,6 +13,18 @@#define INSN_UD2 0x0b0f#define LEN_UD2 2 +/* +* In clang we have UD1s reporting UBSAN failures on X86, 64 and 32bit. +*/ +#define INSN_ASOP 0x67 +#define OPCODE_ESCAPE 0x0f +#define SECOND_BYTE_OPCODE_UD1 0xb9 +#define SECOND_BYTE_OPCODE_UD2 0x0b + +#define BUG_NONE 0xffff +#define BUG_UD1 0xfffe +#define BUG_UD2 0xfffd +#ifdef CONFIG_GENERIC_BUG #ifdef CONFIG_X86_32
arch/x86/kernel/traps.c +60 -11
102 lines not on this page · raw message
block/blk-map.c +1 -3
@@ -600,9 +600,7 @@ static int blk_rq_map_user_bvec(struct request *rq, const struct iov_iter *iter)if (nsegs >= nr_segs || bytes >UINT_MAX - bv->bv_len) goto put_bio;if (bytes + bv->bv_len > nr_iter) - goto put_bio; -if (bv->bv_offset + bv->bv_len >PAGE_SIZE ) - goto put_bio; +break ; nsegs++; bytes += bv->bv_len;
drivers/acpi/cppc_acpi.c +5 -4
@@ -863,7 +863,7 @@ int acpi_cppc_processor_probe(struct acpi_processor *pr)/* Store CPU Logical ID */ cpc_ptr->cpu_id = pr->id; -spin_lock_init (&cpc_ptr->rmw_lock); +raw_spin_lock_init (&cpc_ptr->rmw_lock);/* Parse PSD data for this CPU */ ret =acpi_get_psd (cpc_ptr, handle);
@@ -1083,6 +1083,7 @@ static int cpc_write(int cpu, struct cpc_register_resource *reg_res, u64 val)int pcc_ss_id =per_cpu (cpu_pcc_subspace_idx, cpu);struct cpc_reg *reg = ®_res->cpc_entry.reg;struct cpc_desc *cpc_desc; +unsigned long flags; size =GET_BIT_WIDTH (reg);
@@ -1122,7 +1123,7 @@ static int cpc_write(int cpu, struct cpc_register_resource *reg_res, u64 val)return -ENODEV ; } -spin_lock (&cpc_desc->rmw_lock); +raw_spin_lock_irqsave (&cpc_desc->rmw_lock, flags);switch (size) {case 8 : prev_val =readb_relaxed (vaddr);
@@ -1137,7 +1138,7 @@ static int cpc_write(int cpu, struct cpc_register_resource *reg_res, u64 val) prev_val =readq_relaxed (vaddr);break ;default : -spin_unlock (&cpc_desc->rmw_lock); +raw_spin_unlock_irqrestore (&cpc_desc->rmw_lock, flags);return -EFAULT ; } val =MASK_VAL_WRITE (reg, prev_val, val);
@@ -1170,7 +1171,7 @@ static int cpc_write(int cpu, struct cpc_register_resource *reg_res, u64 val) }if (reg->space_id ==ACPI_ADR_SPACE_SYSTEM_MEMORY ) -spin_unlock (&cpc_desc->rmw_lock); +raw_spin_unlock_irqrestore (&cpc_desc->rmw_lock, flags);return ret_val; }
drivers/base/core.c +40 -8
80 lines not on this page · raw message
drivers/base/module.c +0 -4
@@ -7,7 +7,6 @@#include <linux/errno.h> #include <linux/slab.h> #include <linux/string.h> -#include <linux/rcupdate.h> #include "base.h" static char *make_driver_name (struct device_driver *drv)
@@ -102,9 +101,6 @@ void module_remove_driver(struct device_driver *drv)if (!drv)return ; -/* Synchronize with dev_uevent() */ -synchronize_rcu (); -sysfs_remove_link (&drv->p->kobj,"module" );if (drv->owner)
drivers/cxl/acpi.c +7 -0
@@ -768,6 +768,13 @@ static void __exit cxl_acpi_exit(void)/* load before dax_hmem sees 'Soft Reserved' CXL ranges */ subsys_initcall (cxl_acpi_init); + +/* +* Arrange for host-bridge ports to be active synchronous with +* cxl_acpi_probe() exit. +*/ +MODULE_SOFTDEP ("pre: cxl_port" ); +module_exit (cxl_acpi_exit);MODULE_LICENSE ("GPL v2" );MODULE_IMPORT_NS (CXL );
drivers/cxl/core/hdm.c +42 -8
78 lines not on this page · raw message
drivers/cxl/core/port.c +10 -3
@@ -1969,11 +1969,18 @@ static void cxl_bus_remove(struct device *dev)static struct workqueue_struct *cxl_bus_wq; -static void cxl_bus_rescan_queue (struct work_struct *w) +static int cxl_rescan_attach (struct device *dev,void *data) { -int rc =bus_rescan_devices (&cxl_bus_type); +int rc =device_attach (dev); + +dev_vdbg (dev,"rescan: %s\n" , rc ?"attach" :"detached" ); -pr_debug ("CXL bus rescan result: %d\n" , rc); +return 0 ; +} + +static void cxl_bus_rescan_queue (struct work_struct *w) +{ +bus_for_each_dev (&cxl_bus_type,NULL ,NULL , cxl_rescan_attach); }void cxl_bus_rescan (void )
drivers/cxl/core/region.c +13 -35
92 lines not on this page · raw message
drivers/cxl/core/trace.h +14 -3
@@ -278,7 +278,7 @@ TRACE_EVENT(cxl_generic_event,#define CXL_GMER_MEM_EVT_TYPE_ECC_ERROR 0x00#define CXL_GMER_MEM_EVT_TYPE_INV_ADDR 0x01#define CXL_GMER_MEM_EVT_TYPE_DATA_PATH_ERROR 0x02 -#define show_mem_event_type (type) __print_symbolic(type, \ +#define show_gmer_mem_event_type (type) __print_symbolic(type, \ { CXL_GMER_MEM_EVT_TYPE_ECC_ERROR, "ECC Error" }, \ { CXL_GMER_MEM_EVT_TYPE_INV_ADDR, "Invalid Address" }, \ { CXL_GMER_MEM_EVT_TYPE_DATA_PATH_ERROR, "Data Path Error" } \
@@ -359,7 +359,7 @@ TRACE_EVENT(cxl_general_media,"device=%x comp_id=%s validity_flags='%s'" , __entry->dpa,show_dpa_flags (__entry->dpa_flags),show_event_desc_flags (__entry->descriptor), -show_mem_event_type (__entry->type), +show_gmer_mem_event_type (__entry->type),show_trans_type (__entry->transaction_type), __entry->channel, __entry->rank, __entry->device, __print_hex(__entry->comp_id, CXL_EVENT_GEN_MED_COMP_ID_SIZE),
@@ -376,6 +376,17 @@ TRACE_EVENT(cxl_general_media,* DRAM Event Record defines many fields the same as the General Media Event * Record. Reuse those definitions as appropriate. */ +#define CXL_DER_MEM_EVT_TYPE_ECC_ERROR 0x00 +#define CXL_DER_MEM_EVT_TYPE_SCRUB_MEDIA_ECC_ERROR 0x01 +#define CXL_DER_MEM_EVT_TYPE_INV_ADDR 0x02 +#define CXL_DER_MEM_EVT_TYPE_DATA_PATH_ERROR 0x03 +#define show_dram_mem_event_type (type) __print_symbolic(type, \ + { CXL_DER_MEM_EVT_TYPE_ECC_ERROR, "ECC Error" }, \ + { CXL_DER_MEM_EVT_TYPE_SCRUB_MEDIA_ECC_ERROR, "Scrub Media ECC Error" }, \ + { CXL_DER_MEM_EVT_TYPE_INV_ADDR, "Invalid Address" }, \ + { CXL_DER_MEM_EVT_TYPE_DATA_PATH_ERROR, "Data Path Error" } \ +) +#define CXL_DER_VALID_CHANNEL BIT(0)#define CXL_DER_VALID_RANK BIT(1)#define CXL_DER_VALID_NIBBLE BIT(2)
@@ -449,7 +460,7 @@ TRACE_EVENT(cxl_dram,"validity_flags='%s'" , __entry->dpa,show_dpa_flags (__entry->dpa_flags),show_event_desc_flags (__entry->descriptor), -show_mem_event_type (__entry->type), +show_dram_mem_event_type (__entry->type),show_trans_type (__entry->transaction_type), __entry->channel, __entry->rank, __entry->nibble_mask, __entry->bank_group, __entry->bank,
drivers/cxl/cxl.h +2 -1
@@ -347,7 +347,7 @@ struct cxl_decoder {struct cxl_region *region;unsigned long flags;int (*commit)(struct cxl_decoder *cxld); -int (*reset)(struct cxl_decoder *cxld); +void (*reset)(struct cxl_decoder *cxld); };/*
@@ -682,6 +682,7 @@ static inline bool is_cxl_root(struct cxl_port *port)int cxl_num_decoders_committed (struct cxl_port *port);bool is_cxl_port (const struct device *dev);struct cxl_port *to_cxl_port (const struct device *dev); +void cxl_port_commit_reap (struct cxl_decoder *cxld);struct pci_bus ;int devm_cxl_register_pci_bus (struct device *host,struct device *uport_dev,struct pci_bus *bus);
drivers/firmware/arm_sdei.c +1 -1
@@ -763,7 +763,7 @@ static int sdei_device_freeze(struct device *dev)int err;/* unregister private events */ -cpuhp_remove_state (sdei_entry_point); +cpuhp_remove_state (sdei_hp_state); err =sdei_unregister_shared ();if (err)
drivers/gpu/drm/amd/display/dc/dcn30/dcn30_hwseq.c +3 -0
@@ -735,6 +735,9 @@ bool dcn30_apply_idle_power_optimizations(struct dc *dc, bool enable) stream = dc->current_state->streams[0 ]; plane = (stream ? dc->current_state->stream_status[0 ].plane_states[0 ] :NULL ); +if (!stream || !plane) +return false; +if (stream && plane) { cursor_cache_enable = stream->cursor_position.enable && plane->address.grph.cursor_cache_addr.quad_part;
drivers/iio/adc/ad7124.c +1 -1
@@ -643,7 +643,7 @@ static int ad7124_write_raw(struct iio_dev *indio_dev,switch (info) {case IIO_CHAN_INFO_SAMP_FREQ : -if (val2 !=0 ) { +if (val2 !=0 || val ==0 ) { ret = -EINVAL ;break ; }
drivers/iio/industrialio-gts-helper.c +3 -1
@@ -307,13 +307,15 @@ static int iio_gts_build_avail_scale_table(struct iio_gts *gts)if (ret) goto err_free_out; +for (i =0 ; i < gts->num_itime; i++) +kfree (per_time_gains[i]);kfree (per_time_gains); gts->per_time_avail_scale_tables = per_time_scales;return 0 ; err_free_out: -for (i--; i; i--) { +for (i--; i >=0 ; i--) {kfree (per_time_scales[i]);kfree (per_time_gains[i]); }
drivers/iio/light/veml6030.c +1 -1
@@ -522,7 +522,7 @@ static int veml6030_read_raw(struct iio_dev *indio_dev, }if (mask ==IIO_CHAN_INFO_PROCESSED ) { *val = (reg * data->cur_resolution) /10000 ; - *val2 = (reg * data->cur_resolution) %10000 ; + *val2 = (reg * data->cur_resolution) %10000 *100 ;return IIO_VAL_INT_PLUS_MICRO ; } *val = reg;
drivers/infiniband/hw/bnxt_re/qplib_fp.c +4 -0
@@ -1513,9 +1513,11 @@ int bnxt_qplib_destroy_qp(struct bnxt_qplib_res *res,u32 tbl_indx;int rc; +spin_lock_bh (&rcfw->tbl_lock); tbl_indx =map_qp_id_to_tbl_indx (qp->id, rcfw); rcfw->qp_tbl[tbl_indx].qp_id =BNXT_QPLIB_QP_ID_INVALID ; rcfw->qp_tbl[tbl_indx].qp_handle =NULL ; +spin_unlock_bh (&rcfw->tbl_lock); bnxt_qplib_rcfw_cmd_prep((struct cmdq_base *)&req, CMDQ_BASE_OPCODE_DESTROY_QP,
@@ -1526,8 +1528,10 @@ int bnxt_qplib_destroy_qp(struct bnxt_qplib_res *res, sizeof(resp), 0); rc =bnxt_qplib_rcfw_send_message (rcfw, &msg);if (rc) { +spin_lock_bh (&rcfw->tbl_lock); rcfw->qp_tbl[tbl_indx].qp_id = qp->id; rcfw->qp_tbl[tbl_indx].qp_handle = qp; +spin_unlock_bh (&rcfw->tbl_lock);return rc; }
drivers/infiniband/hw/bnxt_re/qplib_rcfw.c +19 -19
@@ -290,7 +290,6 @@ static int __send_message(struct bnxt_qplib_rcfw *rcfw,struct bnxt_qplib_hwq *hwq;u32 sw_prod, cmdq_prod;struct pci_dev *pdev; -unsigned long flags;u16 cookie;u8 *preq;
@@ -301,7 +300,7 @@ static int __send_message(struct bnxt_qplib_rcfw *rcfw,/* Cmdq are in 16-byte units, each request can consume 1 or more * cmdqe */ -spin_lock_irqsave (&hwq->lock, flags); +spin_lock_bh (&hwq->lock); required_slots =bnxt_qplib_get_cmd_slots (msg->req); free_slots =HWQ_FREE_SLOTS (hwq); cookie = cmdq->seq_num &RCFW_MAX_COOKIE_VALUE ;
@@ -311,7 +310,7 @@ static int __send_message(struct bnxt_qplib_rcfw *rcfw,dev_info_ratelimited (&pdev->dev,"CMDQ is full req/free %d/%d!" , required_slots, free_slots); -spin_unlock_irqrestore (&hwq->lock, flags); +spin_unlock_bh (&hwq->lock);return -EAGAIN ; }if (msg->block)
@@ -367,7 +366,7 @@ static int __send_message(struct bnxt_qplib_rcfw *rcfw,wmb ();writel (cmdq_prod, cmdq->cmdq_mbox.prod);writel (RCFW_CMDQ_TRIG_VAL , cmdq->cmdq_mbox.db); -spin_unlock_irqrestore (&hwq->lock, flags); +spin_unlock_bh (&hwq->lock);/* Return the CREQ response pointer */ return 0 ; }
@@ -486,7 +485,6 @@ static int __bnxt_qplib_rcfw_send_message(struct bnxt_qplib_rcfw *rcfw, {struct creq_qp_event *evnt = (struct creq_qp_event *)msg->resp;struct bnxt_qplib_crsqe *crsqe; -unsigned long flags;u16 cookie;int rc;u8 opcode;
@@ -512,12 +510,12 @@ static int __bnxt_qplib_rcfw_send_message(struct bnxt_qplib_rcfw *rcfw, rc =__poll_for_resp (rcfw, cookie);if (rc) { -spin_lock_irqsave (&rcfw->cmdq.hwq.lock, flags); +spin_lock_bh (&rcfw->cmdq.hwq.lock); crsqe = &rcfw->crsqe_tbl[cookie]; crsqe->is_waiter_alive = false;if (rc == -ENODEV )set_bit (FIRMWARE_STALL_DETECTED , &rcfw->cmdq.flags); -spin_unlock_irqrestore (&rcfw->cmdq.hwq.lock, flags); +spin_unlock_bh (&rcfw->cmdq.hwq.lock);return -ETIMEDOUT ; }
@@ -628,7 +626,6 @@ static int bnxt_qplib_process_qp_event(struct bnxt_qplib_rcfw *rcfw,u16 cookie, blocked =0 ;bool is_waiter_alive;struct pci_dev *pdev; -unsigned long flags;u32 wait_cmds =0 ;int rc =0 ;
@@ -637,17 +634,21 @@ static int bnxt_qplib_process_qp_event(struct bnxt_qplib_rcfw *rcfw,case CREQ_QP_EVENT_EVENT_QP_ERROR_NOTIFICATION : err_event = (struct creq_qp_error_notification *)qp_event; qp_id =le32_to_cpu (err_event->xid); +spin_lock (&rcfw->tbl_lock); tbl_indx =map_qp_id_to_tbl_indx (qp_id, rcfw); qp = rcfw->qp_tbl[tbl_indx].qp_handle; +if (!qp) { +spin_unlock (&rcfw->tbl_lock); +break ; + } +bnxt_qplib_mark_qp_error (qp); + rc = rcfw->creq.aeq_handler (rcfw, qp_event, qp); +spin_unlock (&rcfw->tbl_lock);dev_dbg (&pdev->dev,"Received QP error notification\n" );dev_dbg (&pdev->dev,"qpid 0x%x, req_err=0x%x, resp_err=0x%x\n" , qp_id, err_event->req_err_state_reason, err_event->res_err_state_reason); -if (!qp) -break ; -bnxt_qplib_mark_qp_error (qp); - rc = rcfw->creq.aeq_handler (rcfw, qp_event, qp);break ;default :/*
@@ -659,8 +660,7 @@ static int bnxt_qplib_process_qp_event(struct bnxt_qplib_rcfw *rcfw,* */ -spin_lock_irqsave_nested (&hwq->lock, flags, -SINGLE_DEPTH_NESTING ); +spin_lock_nested (&hwq->lock,SINGLE_DEPTH_NESTING ); cookie =le16_to_cpu (qp_event->cookie); blocked = cookie &RCFW_CMD_IS_BLOCKING ; cookie &=RCFW_MAX_COOKIE_VALUE ;
@@ -672,7 +672,7 @@ static int bnxt_qplib_process_qp_event(struct bnxt_qplib_rcfw *rcfw,dev_info (&pdev->dev,"rcfw timedout: cookie = %#x, free_slots = %d" , cookie, crsqe->free_slots); -spin_unlock_irqrestore (&hwq->lock, flags); +spin_unlock (&hwq->lock);return rc; }
@@ -720,7 +720,7 @@ static int bnxt_qplib_process_qp_event(struct bnxt_qplib_rcfw *rcfw,__destroy_timedout_ah (rcfw, (struct creq_create_ah_resp *) qp_event); -spin_unlock_irqrestore (&hwq->lock, flags); +spin_unlock (&hwq->lock); } *num_wait += wait_cmds;return rc;
@@ -734,12 +734,11 @@ static void bnxt_qplib_service_creq(struct tasklet_struct *t)u32 type, budget =CREQ_ENTRY_POLL_BUDGET ;struct bnxt_qplib_hwq *hwq = &creq->hwq;struct creq_base *creqe; -unsigned long flags;u32 num_wakeup =0 ;u32 hw_polled =0 ;/* Service the CREQ until budget is over */ -spin_lock_irqsave (&hwq->lock, flags); +spin_lock_bh (&hwq->lock);while (budget >0 ) { creqe =bnxt_qplib_get_qe (hwq, hwq->cons,NULL );if (!CREQ_CMP_VALID (creqe, creq->creq_db.dbinfo.flags))
@@ -782,7 +781,7 @@ static void bnxt_qplib_service_creq(struct tasklet_struct *t)if (hw_polled)bnxt_qplib_ring_nq_db (&creq->creq_db.dbinfo, rcfw->res->cctx, true); -spin_unlock_irqrestore (&hwq->lock, flags); +spin_unlock_bh (&hwq->lock);if (num_wakeup)wake_up_nr (&rcfw->cmdq.waitq, num_wakeup); }
@@ -978,6 +977,7 @@ int bnxt_qplib_alloc_rcfw_channel(struct bnxt_qplib_res *res, GFP_KERNEL);if (!rcfw->qp_tbl) goto fail; +spin_lock_init (&rcfw->tbl_lock); rcfw->max_timeout = res->cctx->hwrm_cmd_max_timeout;
drivers/infiniband/hw/bnxt_re/qplib_rcfw.h +2 -0
@@ -224,6 +224,8 @@ struct bnxt_qplib_rcfw {struct bnxt_qplib_crsqe *crsqe_tbl;int qp_tbl_size;struct bnxt_qplib_qp_node *qp_tbl; +/* To synchronize the qp-handle hash table */ +spinlock_t tbl_lock;u64 oos_prev;u32 init_oos_stats;u32 cmdq_depth;
drivers/infiniband/hw/cxgb4/provider.c +1 -0
@@ -474,6 +474,7 @@ static const struct ib_device_ops c4iw_dev_ops = { .fill_res_cq_entry = c4iw_fill_res_cq_entry, .fill_res_cm_id_entry = c4iw_fill_res_cm_id_entry, .fill_res_mr_entry = c4iw_fill_res_mr_entry, + .fill_res_qp_entry = c4iw_fill_res_qp_entry, .get_dev_fw_str = get_dev_fw_str, .get_dma_mr = c4iw_get_dma_mr, .get_hw_stats = c4iw_get_mib,
drivers/infiniband/hw/mlx5/qp.c +2 -2
@@ -4272,14 +4272,14 @@ static int __mlx5_ib_modify_qp(struct ib_qp *ibqp,MLX5_SET (qpc, qpc, retry_count, attr->retry_cnt);if (attr_mask &IB_QP_MAX_QP_RD_ATOMIC && attr->max_rd_atomic) -MLX5_SET (qpc, qpc, log_sra_max,ilog2 (attr->max_rd_atomic)); +MLX5_SET (qpc, qpc, log_sra_max,fls (attr->max_rd_atomic -1 ));if (attr_mask &IB_QP_SQ_PSN )MLX5_SET (qpc, qpc, next_send_psn, attr->sq_psn);if (attr_mask &IB_QP_MAX_DEST_RD_ATOMIC && attr->max_dest_rd_atomic)MLX5_SET (qpc, qpc, log_rra_max, -ilog2 (attr->max_dest_rd_atomic)); +fls (attr->max_dest_rd_atomic -1 ));if (attr_mask & (IB_QP_ACCESS_FLAGS |IB_QP_MAX_DEST_RD_ATOMIC )) { err =set_qpc_atomic_flags (qp, attr, attr_mask, qpc);
drivers/input/joystick/xpad.c +9 -3
@@ -127,6 +127,7 @@ static const struct xpad_device {u8 mapping;u8 xtype; } xpad_device[] = { +/* Please keep this list sorted by vendor and product ID. */ { 0x0079, 0x18d4, "GPD Win 2 X-Box Controller", 0, XTYPE_XBOX360 }, { 0x03eb, 0xff01, "Wooting One (Legacy)", 0, XTYPE_XBOX360 }, { 0x03eb, 0xff02, "Wooting Two (Legacy)", 0, XTYPE_XBOX360 },
@@ -152,9 +153,9 @@ static const struct xpad_device { { 0x045e, 0x02d1, "Microsoft X-Box One pad", 0, XTYPE_XBOXONE }, { 0x045e, 0x02dd, "Microsoft X-Box One pad (Firmware 2015)", 0, XTYPE_XBOXONE }, { 0x045e, 0x02e3, "Microsoft X-Box One Elite pad", MAP_PADDLES, XTYPE_XBOXONE }, - { 0x045e, 0x0b00, "Microsoft X-Box One Elite 2 pad", MAP_PADDLES, XTYPE_XBOXONE }, { 0x045e, 0x02ea, "Microsoft X-Box One S pad", 0, XTYPE_XBOXONE }, { 0x045e, 0x0719, "Xbox 360 Wireless Receiver", MAP_DPAD_TO_BUTTONS, XTYPE_XBOX360W }, + { 0x045e, 0x0b00, "Microsoft X-Box One Elite 2 pad", MAP_PADDLES, XTYPE_XBOXONE }, { 0x045e, 0x0b0a, "Microsoft X-Box Adaptive Controller", MAP_PROFILE_BUTTON, XTYPE_XBOXONE }, { 0x045e, 0x0b12, "Microsoft Xbox Series S|X Controller", MAP_SELECT_BUTTON, XTYPE_XBOXONE }, { 0x046d, 0xc21d, "Logitech Gamepad F310", 0, XTYPE_XBOX360 },
@@ -343,7 +344,6 @@ static const struct xpad_device { { 0x20d6, 0x2001, "BDA Xbox Series X Wired Controller", 0, XTYPE_XBOXONE }, { 0x20d6, 0x2009, "PowerA Enhanced Wired Controller for Xbox Series X|S", 0, XTYPE_XBOXONE }, { 0x20d6, 0x281f, "PowerA Wired Controller For Xbox 360", 0, XTYPE_XBOX360 }, - { 0x2e24, 0x0652, "Hyperkin Duke X-Box One pad", 0, XTYPE_XBOXONE }, { 0x24c6, 0x5000, "Razer Atrox Arcade Stick", MAP_TRIGGERS_TO_BUTTONS, XTYPE_XBOX360 }, { 0x24c6, 0x5300, "PowerA MINI PROEX Controller", 0, XTYPE_XBOX360 }, { 0x24c6, 0x5303, "Xbox Airflo wired controller", 0, XTYPE_XBOX360 },
@@ -358,9 +358,9 @@ static const struct xpad_device { { 0x24c6, 0x5502, "Hori Fighting Stick VX Alt", MAP_TRIGGERS_TO_BUTTONS, XTYPE_XBOX360 }, { 0x24c6, 0x5503, "Hori Fighting Edge", MAP_TRIGGERS_TO_BUTTONS, XTYPE_XBOX360 }, { 0x24c6, 0x5506, "Hori SOULCALIBUR V Stick", 0, XTYPE_XBOX360 }, - { 0x24c6, 0x5510, "Hori Fighting Commander ONE (Xbox 360/PC Mode)", MAP_TRIGGERS_TO_BUTTONS, XTYPE_XBOX360 }, { 0x24c6, 0x550d, "Hori GEM Xbox controller", 0, XTYPE_XBOX360 }, { 0x24c6, 0x550e, "Hori Real Arcade Pro V Kai 360", MAP_TRIGGERS_TO_BUTTONS, XTYPE_XBOX360 }, + { 0x24c6, 0x5510, "Hori Fighting Commander ONE (Xbox 360/PC Mode)", MAP_TRIGGERS_TO_BUTTONS, XTYPE_XBOX360 }, { 0x24c6, 0x551a, "PowerA FUSION Pro Controller", 0, XTYPE_XBOXONE }, { 0x24c6, 0x561a, "PowerA FUSION Controller", 0, XTYPE_XBOXONE }, { 0x24c6, 0x5b00, "ThrustMaster Ferrari 458 Racing Wheel", 0, XTYPE_XBOX360 },
@@ -373,6 +373,8 @@ static const struct xpad_device { { 0x294b, 0x3404, "Snakebyte GAMEPAD RGB X", 0, XTYPE_XBOXONE }, { 0x2dc8, 0x2000, "8BitDo Pro 2 Wired Controller fox Xbox", 0, XTYPE_XBOXONE }, { 0x2dc8, 0x3106, "8BitDo Pro 2 Wired Controller", 0, XTYPE_XBOX360 }, + { 0x2dc8, 0x310a, "8BitDo Ultimate 2C Wireless Controller", 0, XTYPE_XBOX360 }, + { 0x2e24, 0x0652, "Hyperkin Duke X-Box One pad", 0, XTYPE_XBOXONE }, { 0x31e3, 0x1100, "Wooting One", 0, XTYPE_XBOX360 }, { 0x31e3, 0x1200, "Wooting Two", 0, XTYPE_XBOX360 }, { 0x31e3, 0x1210, "Wooting Lekker", 0, XTYPE_XBOX360 },
@@ -470,6 +472,10 @@ static const signed short xpad_btn_paddles[] = { { XPAD_XBOXONE_VENDOR_PROTOCOL((vend), 208) }static const struct usb_device_id xpad_table[] = { +/* +* Please keep this list sorted by vendor ID. Note that there are 2 +* macros - XPAD_XBOX360_VENDOR and XPAD_XBOXONE_VENDOR. +*/ {USB_INTERFACE_INFO ('X' ,'B' ,0 ) },/* Xbox USB-IF not-approved class */ XPAD_XBOX360_VENDOR (0x0079 ),/* GPD Win 2 controller */ XPAD_XBOX360_VENDOR (0x03eb ),/* Wooting Keyboards (Legacy) */
drivers/input/touchscreen/edt-ft5x06.c +18 -1
@@ -1124,6 +1124,14 @@ static void edt_ft5x06_ts_set_regs(struct edt_ft5x06_ts_data *tsdata) } } +static void edt_ft5x06_exit_regmap (void *arg) +{ +struct edt_ft5x06_ts_data *data = arg; + +if (!IS_ERR_OR_NULL (data->regmap)) +regmap_exit (data->regmap); +} +static void edt_ft5x06_disable_regulators (void *arg) {struct edt_ft5x06_ts_data *data = arg;
@@ -1157,6 +1165,16 @@ static int edt_ft5x06_ts_probe(struct i2c_client *client)return PTR_ERR (tsdata->regmap); } +/* +* We are not using devm_regmap_init_i2c() and instead install a +* custom action because we may replace regmap with M06-specific one +* and we need to make sure that it will not be released too early. +*/ + error =devm_add_action_or_reset (&client->dev, edt_ft5x06_exit_regmap, + tsdata); +if (error) +return error; + chip_data =device_get_match_data (&client->dev);if (!chip_data) chip_data = (const struct edt_i2c_chip_data *)id->driver_data;
@@ -1354,7 +1372,6 @@ static void edt_ft5x06_ts_remove(struct i2c_client *client)struct edt_ft5x06_ts_data *tsdata =i2c_get_clientdata (client);edt_ft5x06_ts_teardown_debugfs (tsdata); -regmap_exit (tsdata->regmap); }static int edt_ft5x06_ts_suspend (struct device *dev)
drivers/misc/mei/client.c +2 -2
@@ -321,7 +321,7 @@ void mei_io_cb_free(struct mei_cl_cb *cb)return ;list_del (&cb->list); -kfree (cb->buf.data); +kvfree (cb->buf.data);kfree (cb->ext_hdr);kfree (cb); }
@@ -497,7 +497,7 @@ struct mei_cl_cb *mei_cl_alloc_cb(struct mei_cl *cl, size_t length,if (length ==0 )return cb; - cb->buf.data =kmalloc (roundup (length,MEI_SLOT_SIZE ),GFP_KERNEL ); + cb->buf.data =kvmalloc (roundup (length,MEI_SLOT_SIZE ),GFP_KERNEL );if (!cb->buf.data) {mei_io_cb_free (cb);return NULL ;
drivers/misc/sgi-gru/grukservices.c +0 -2
@@ -258,7 +258,6 @@ static int gru_get_cpu_resources(int dsr_bytes, void **cb, void **dsr)int lcpu;BUG_ON (dsr_bytes >GRU_NUM_KERNEL_DSR_BYTES ); -preempt_disable (); bs =gru_lock_kernel_context (-1 ); lcpu =uv_blade_processor_id (); *cb = bs->kernel_cb + lcpu *GRU_HANDLE_STRIDE ;
@@ -272,7 +271,6 @@ static int gru_get_cpu_resources(int dsr_bytes, void **cb, void **dsr)static void gru_free_cpu_resources (void *cb,void *dsr) {gru_unlock_kernel_context (uv_numa_blade_id ()); -preempt_enable (); }/*
drivers/misc/sgi-gru/grumain.c +0 -4
@@ -941,10 +941,8 @@ vm_fault_t gru_fault(struct vm_fault *vmf) again:mutex_lock (>s->ts_ctxlock); -preempt_disable ();if (gru_check_context_placement (gts)) { -preempt_enable ();mutex_unlock (>s->ts_ctxlock);gru_unload_context (gts,1 );return VM_FAULT_NOPAGE ;
@@ -953,7 +951,6 @@ vm_fault_t gru_fault(struct vm_fault *vmf)if (!gts->ts_gru) {STAT (load_user_context);if (!gru_assign_gru_context (gts)) { -preempt_enable ();mutex_unlock (>s->ts_ctxlock);set_current_state (TASK_INTERRUPTIBLE );schedule_timeout (GRU_ASSIGN_DELAY );/* true hack ZZZ */
@@ -969,7 +966,6 @@ vm_fault_t gru_fault(struct vm_fault *vmf) vma->vm_page_prot); } -preempt_enable ();mutex_unlock (>s->ts_ctxlock);return VM_FAULT_NOPAGE ;
drivers/misc/sgi-gru/grutlbpurge.c +0 -2
@@ -65,7 +65,6 @@ static struct gru_tlb_global_handle *get_lock_tgh_handle(struct gru_statestruct gru_tlb_global_handle *tgh;int n; -preempt_disable ();if (uv_numa_blade_id () == gru->gs_blade_id) n =get_on_blade_tgh (gru);else
@@ -79,7 +78,6 @@ static struct gru_tlb_global_handle *get_lock_tgh_handle(struct gru_statestatic void get_unlock_tgh_handle (struct gru_tlb_global_handle *tgh) {unlock_tgh_handle (tgh); -preempt_enable (); }/*
drivers/mmc/host/sdhci-pci-gli.c +24 -14
@@ -902,28 +902,40 @@ static void gl9767_disable_ssc_pll(struct pci_dev *pdev)gl9767_vhs_read (pdev); } +static void gl9767_set_low_power_negotiation (struct pci_dev *pdev,bool enable) +{ +u32 value; + +gl9767_vhs_write (pdev); + +pci_read_config_dword (pdev,PCIE_GLI_9767_CFG , &value); +if (enable) + value &= ~PCIE_GLI_9767_CFG_LOW_PWR_OFF ; +else + value |=PCIE_GLI_9767_CFG_LOW_PWR_OFF ; +pci_write_config_dword (pdev,PCIE_GLI_9767_CFG , value); + +gl9767_vhs_read (pdev); +} +static void sdhci_gl9767_set_clock (struct sdhci_host *host,unsigned int clock) {struct sdhci_pci_slot *slot =sdhci_priv (host);struct mmc_ios *ios = &host->mmc->ios;struct pci_dev *pdev; -u32 value;u16 clk; pdev = slot->chip->pdev; host->mmc->actual_clock =0 ; -gl9767_vhs_write (pdev); - -pci_read_config_dword (pdev,PCIE_GLI_9767_CFG , &value); - value |=PCIE_GLI_9767_CFG_LOW_PWR_OFF ; -pci_write_config_dword (pdev,PCIE_GLI_9767_CFG , value); - +gl9767_set_low_power_negotiation (pdev, false);gl9767_disable_ssc_pll (pdev);sdhci_writew (host,0 ,SDHCI_CLOCK_CONTROL ); -if (clock ==0 ) +if (clock ==0 ) { +gl9767_set_low_power_negotiation (pdev, true);return ; + } clk =sdhci_calc_clk (host, clock, &host->mmc->actual_clock);if (clock ==200000000 && ios->timing ==MMC_TIMING_UHS_SDR104 ) {
@@ -932,12 +944,7 @@ static void sdhci_gl9767_set_clock(struct sdhci_host *host, unsigned int clock) }sdhci_enable_clk (host, clk); - -pci_read_config_dword (pdev,PCIE_GLI_9767_CFG , &value); - value &= ~PCIE_GLI_9767_CFG_LOW_PWR_OFF ; -pci_write_config_dword (pdev,PCIE_GLI_9767_CFG , value); - -gl9767_vhs_read (pdev); +gl9767_set_low_power_negotiation (pdev, true); }static void gli_set_9767 (struct sdhci_host *host)
@@ -1071,6 +1078,9 @@ static int gl9767_init_sd_express(struct mmc_host *mmc, struct mmc_ios *ios)sdhci_writew (host, value,SDHCI_CLOCK_CONTROL ); } +pci_read_config_dword (pdev,PCIE_GLI_9767_CFG , &value); + value &= ~PCIE_GLI_9767_CFG_LOW_PWR_OFF ; +pci_write_config_dword (pdev,PCIE_GLI_9767_CFG , value);gl9767_vhs_read (pdev);return 0 ;
drivers/mtd/spi-nor/winbond.c +4 -3
@@ -120,9 +120,10 @@ static const struct flash_info winbond_nor_parts[] = { NO_SFDP_FLAGS(SECT_4K) }, { "w25q80bl", INFO(0xef4014, 0, 64 * 1024, 16) NO_SFDP_FLAGS(SECT_4K) }, - { "w25q128", INFO(0xef4018, 0, 0, 0) - PARSE_SFDP - FLAGS(SPI_NOR_HAS_LOCK | SPI_NOR_HAS_TB) }, + { "w25q128", INFO(0xef4018, 0, 64 * 1024, 256) + FLAGS(SPI_NOR_HAS_LOCK | SPI_NOR_HAS_TB) + NO_SFDP_FLAGS(SECT_4K | SPI_NOR_DUAL_READ | + SPI_NOR_QUAD_READ) }, { "w25q256", INFO(0xef4019, 0, 64 * 1024, 512) NO_SFDP_FLAGS(SECT_4K | SPI_NOR_DUAL_READ | SPI_NOR_QUAD_READ) .fixups = &w25q256_fixups },
drivers/net/ethernet/amd/mvme147.c +3 -4
@@ -105,10 +105,6 @@ static struct net_device * __init mvme147lance_probe(void) macaddr[3 ] = address&0xff ;eth_hw_addr_set (dev, macaddr); -printk ("%s: MVME147 at 0x%08lx, irq %d, Hardware Address %pM\n" , - dev->name, dev->base_addr,MVME147_LANCE_IRQ , - dev->dev_addr); - lp =netdev_priv (dev); lp->ram =__get_dma_pages (GFP_ATOMIC ,3 );/* 32K */ if (!lp->ram) {
@@ -138,6 +134,9 @@ static struct net_device * __init mvme147lance_probe(void)return ERR_PTR (err); } +netdev_info (dev,"MVME147 at 0x%08lx, irq %d, Hardware Address %pM\n" , + dev->base_addr,MVME147_LANCE_IRQ , dev->dev_addr); +return dev; }
drivers/net/ethernet/mellanox/mlxsw/spectrum_ipip.c +24 -2
@@ -471,11 +471,33 @@ mlxsw_sp_ipip_ol_netdev_change_gre6(struct mlxsw_sp *mlxsw_sp,struct mlxsw_sp_ipip_entry *ipip_entry, struct netlink_ext_ack *extack) { + u32 new_kvdl_index, old_kvdl_index = ipip_entry->dip_kvdl_index; +struct in6_addr old_addr6 = ipip_entry->parms.daddr.addr6;struct mlxsw_sp_ipip_parms new_parms; +int err; new_parms =mlxsw_sp_ipip_netdev_parms_init_gre6 (ipip_entry->ol_dev); -return mlxsw_sp_ipip_ol_netdev_change_gre (mlxsw_sp, ipip_entry, - &new_parms, extack); + + err =mlxsw_sp_ipv6_addr_kvdl_index_get (mlxsw_sp, + &new_parms.daddr.addr6, + &new_kvdl_index); +if (err) +return err; + ipip_entry->dip_kvdl_index = new_kvdl_index; + + err =mlxsw_sp_ipip_ol_netdev_change_gre (mlxsw_sp, ipip_entry, + &new_parms, extack); +if (err) + goto err_change_gre; + +mlxsw_sp_ipv6_addr_put (mlxsw_sp, &old_addr6); + +return 0 ; + +err_change_gre: + ipip_entry->dip_kvdl_index = old_kvdl_index; +mlxsw_sp_ipv6_addr_put (mlxsw_sp, &new_parms.daddr.addr6); +return err; } static int
drivers/net/ethernet/mellanox/mlxsw/spectrum_ptp.c +7 -0
@@ -16,6 +16,7 @@#include "spectrum.h" #include "spectrum_ptp.h" #include "core.h" +#include "txheader.h" #define MLXSW_SP1_PTP_CLOCK_CYCLES_SHIFT 29#define MLXSW_SP1_PTP_CLOCK_FREQ_KHZ 156257/* 6.4nSec */
@@ -1684,6 +1685,12 @@ int mlxsw_sp_ptp_txhdr_construct(struct mlxsw_core *mlxsw_core,struct sk_buff *skb, const struct mlxsw_tx_info *tx_info) { + if (skb_cow_head(skb, MLXSW_TXHDR_LEN)) { + this_cpu_inc(mlxsw_sp_port->pcpu_stats->tx_dropped); +dev_kfree_skb_any (skb); +return -ENOMEM ; + } +mlxsw_sp_txhdr_construct (skb, tx_info);return 0 ; }
drivers/net/ethernet/stmicro/stmmac/dwmac4_dma.c +8 -0
@@ -203,8 +203,12 @@ static void _dwmac4_dump_dma_regs(struct stmmac_priv *priv,readl (ioaddr +DMA_CHAN_TX_CONTROL (dwmac4_addrs, channel)); reg_space[DMA_CHAN_RX_CONTROL (default_addrs, channel) /4 ] =readl (ioaddr +DMA_CHAN_RX_CONTROL (dwmac4_addrs, channel)); + reg_space[DMA_CHAN_TX_BASE_ADDR_HI (default_addrs, channel) /4 ] = +readl (ioaddr +DMA_CHAN_TX_BASE_ADDR_HI (dwmac4_addrs, channel)); reg_space[DMA_CHAN_TX_BASE_ADDR (default_addrs, channel) /4 ] =readl (ioaddr +DMA_CHAN_TX_BASE_ADDR (dwmac4_addrs, channel)); + reg_space[DMA_CHAN_RX_BASE_ADDR_HI (default_addrs, channel) /4 ] = +readl (ioaddr +DMA_CHAN_RX_BASE_ADDR_HI (dwmac4_addrs, channel)); reg_space[DMA_CHAN_RX_BASE_ADDR (default_addrs, channel) /4 ] =readl (ioaddr +DMA_CHAN_RX_BASE_ADDR (dwmac4_addrs, channel)); reg_space[DMA_CHAN_TX_END_ADDR(default_addrs, channel) / 4] =
@@ -225,8 +229,12 @@ static void _dwmac4_dump_dma_regs(struct stmmac_priv *priv,readl (ioaddr +DMA_CHAN_CUR_TX_DESC (dwmac4_addrs, channel)); reg_space[DMA_CHAN_CUR_RX_DESC (default_addrs, channel) /4 ] =readl (ioaddr +DMA_CHAN_CUR_RX_DESC (dwmac4_addrs, channel)); + reg_space[DMA_CHAN_CUR_TX_BUF_ADDR_HI (default_addrs, channel) /4 ] = +readl (ioaddr +DMA_CHAN_CUR_TX_BUF_ADDR_HI (dwmac4_addrs, channel)); reg_space[DMA_CHAN_CUR_TX_BUF_ADDR (default_addrs, channel) /4 ] =readl (ioaddr +DMA_CHAN_CUR_TX_BUF_ADDR (dwmac4_addrs, channel)); + reg_space[DMA_CHAN_CUR_RX_BUF_ADDR_HI (default_addrs, channel) /4 ] = +readl (ioaddr +DMA_CHAN_CUR_RX_BUF_ADDR_HI (dwmac4_addrs, channel)); reg_space[DMA_CHAN_CUR_RX_BUF_ADDR (default_addrs, channel) /4 ] =readl (ioaddr +DMA_CHAN_CUR_RX_BUF_ADDR (dwmac4_addrs, channel)); reg_space[DMA_CHAN_STATUS(default_addrs, channel) / 4] =
drivers/net/ethernet/stmicro/stmmac/dwmac4_dma.h +2 -0
@@ -127,7 +127,9 @@ static inline u32 dma_chanx_base_addr(const struct dwmac4_addrs *addrs,#define DMA_CHAN_SLOT_CTRL_STATUS (addrs, x) (dma_chanx_base_addr(addrs, x) + 0x3c)#define DMA_CHAN_CUR_TX_DESC (addrs, x) (dma_chanx_base_addr(addrs, x) + 0x44)#define DMA_CHAN_CUR_RX_DESC (addrs, x) (dma_chanx_base_addr(addrs, x) + 0x4c) +#define DMA_CHAN_CUR_TX_BUF_ADDR_HI (addrs, x) (dma_chanx_base_addr(addrs, x) + 0x50)#define DMA_CHAN_CUR_TX_BUF_ADDR (addrs, x) (dma_chanx_base_addr(addrs, x) + 0x54) +#define DMA_CHAN_CUR_RX_BUF_ADDR_HI (addrs, x) (dma_chanx_base_addr(addrs, x) + 0x58)#define DMA_CHAN_CUR_RX_BUF_ADDR (addrs, x) (dma_chanx_base_addr(addrs, x) + 0x5c)#define DMA_CHAN_STATUS (addrs, x) (dma_chanx_base_addr(addrs, x) + 0x60)
drivers/net/ethernet/stmicro/stmmac/stmmac_main.c +17 -5
@@ -4196,11 +4196,6 @@ static netdev_tx_t stmmac_tso_xmit(struct sk_buff *skb, struct net_device *dev)if (dma_mapping_error (priv->device, des)) goto dma_map_err; - tx_q->tx_skbuff_dma[first_entry].buf = des; - tx_q->tx_skbuff_dma[first_entry].len =skb_headlen (skb); - tx_q->tx_skbuff_dma[first_entry].map_as_page = false; - tx_q->tx_skbuff_dma[first_entry].buf_type =STMMAC_TXBUF_T_SKB ; -if (priv->dma_cap.addr64 <=32 ) { first->des0 =cpu_to_le32 (des);
@@ -4219,6 +4214,23 @@ static netdev_tx_t stmmac_tso_xmit(struct sk_buff *skb, struct net_device *dev)stmmac_tso_allocator (priv, des, tmp_pay_len, (nfrags ==0 ), queue); +/* In case two or more DMA transmit descriptors are allocated for this +* non-paged SKB data, the DMA buffer address should be saved to +* tx_q->tx_skbuff_dma[].buf corresponding to the last descriptor, +* and leave the other tx_q->tx_skbuff_dma[].buf as NULL to guarantee +* that stmmac_tx_clean() does not unmap the entire DMA buffer too early +* since the tail areas of the DMA buffer can be accessed by DMA engine +* sooner or later. +* By saving the DMA buffer address to tx_q->tx_skbuff_dma[].buf +* corresponding to the last descriptor, stmmac_tx_clean() will unmap +* this DMA buffer right after the DMA engine completely finishes the +* full buffer transmission. +*/ + tx_q->tx_skbuff_dma[tx_q->cur_tx].buf = des; + tx_q->tx_skbuff_dma[tx_q->cur_tx].len =skb_headlen (skb); + tx_q->tx_skbuff_dma[tx_q->cur_tx].map_as_page = false; + tx_q->tx_skbuff_dma[tx_q->cur_tx].buf_type =STMMAC_TXBUF_T_SKB ; +/* Prepare fragments */ for (i =0 ; i < nfrags; i++) {const skb_frag_t *frag = &skb_shinfo (skb)->frags[i];
drivers/net/gtp.c +13 -9
@@ -1263,20 +1263,24 @@ static int gtp_encap_enable(struct gtp_dev *gtp, struct nlattr *data[])return -EINVAL ;if (data[IFLA_GTP_FD0 ]) { -u32 fd0 =nla_get_u32 (data[IFLA_GTP_FD0 ]); +int fd0 =nla_get_u32 (data[IFLA_GTP_FD0 ]); - sk0 =gtp_encap_enable_socket (fd0,UDP_ENCAP_GTP0 , gtp); -if (IS_ERR (sk0)) -return PTR_ERR (sk0); +if (fd0 >=0 ) { + sk0 =gtp_encap_enable_socket (fd0,UDP_ENCAP_GTP0 , gtp); +if (IS_ERR (sk0)) +return PTR_ERR (sk0); + } }if (data[IFLA_GTP_FD1 ]) { -u32 fd1 =nla_get_u32 (data[IFLA_GTP_FD1 ]); +int fd1 =nla_get_u32 (data[IFLA_GTP_FD1 ]); - sk1u =gtp_encap_enable_socket (fd1,UDP_ENCAP_GTP1U , gtp); -if (IS_ERR (sk1u)) { -gtp_encap_disable_sock (sk0); -return PTR_ERR (sk1u); +if (fd1 >=0 ) { + sk1u =gtp_encap_enable_socket (fd1,UDP_ENCAP_GTP1U , gtp); +if (IS_ERR (sk1u)) { +gtp_encap_disable_sock (sk0); +return PTR_ERR (sk1u); + } } }
drivers/net/macsec.c +1 -2
@@ -3715,8 +3715,7 @@ static void macsec_free_netdev(struct net_device *dev) {struct macsec_dev *macsec =macsec_priv (dev); -if (macsec->secy.tx_sc.md_dst) -metadata_dst_free (macsec->secy.tx_sc.md_dst); +dst_release (&macsec->secy.tx_sc.md_dst->dst);free_percpu (macsec->stats);free_percpu (macsec->secy.tx_sc.stats);
drivers/net/mctp/mctp-i2c.c +3 -0
@@ -547,6 +547,9 @@ static int mctp_i2c_header_create(struct sk_buff *skb, struct net_device *dev,if (len >MCTP_I2C_MAXMTU )return -EMSGSIZE ; +if (!daddr || !saddr) +return -EINVAL ; + lldst = *((u8 *)daddr); llsrc = *((u8 *)saddr);
drivers/net/netdevsim/fib.c +3 -1
@@ -1377,10 +1377,12 @@ static ssize_t nsim_nexthop_bucket_activity_write(struct file *file,if (pos !=0 )return -EINVAL ; -if (size >sizeof (buf)) +if (size >sizeof (buf) -1 )return -EINVAL ;if (copy_from_user (buf, user_buf, size))return -EFAULT ; + buf[size] =0 ; +if (sscanf (buf,"%u %hu" , &nhid, &bucket_index) !=2 )return -EINVAL ;
drivers/net/wireless/ath/ath10k/wmi-tlv.c +6 -1
@@ -3042,9 +3042,14 @@ ath10k_wmi_tlv_op_cleanup_mgmt_tx_send(struct ath10k *ar, struct sk_buff *msdu) {struct ath10k_skb_cb *cb =ATH10K_SKB_CB (msdu); +struct ath10k_mgmt_tx_pkt_addr *pkt_addr;struct ath10k_wmi *wmi = &ar->wmi; -idr_remove (&wmi->mgmt_pending_tx, cb->msdu_id); +spin_lock_bh (&ar->data_lock); + pkt_addr =idr_remove (&wmi->mgmt_pending_tx, cb->msdu_id); +spin_unlock_bh (&ar->data_lock); + +kfree (pkt_addr);return 0 ; }
drivers/net/wireless/ath/ath10k/wmi.c +2 -0
@@ -2440,6 +2440,7 @@ wmi_process_mgmt_tx_comp(struct ath10k *ar, struct mgmt_tx_compl_params *param)dma_unmap_single (ar->dev, pkt_addr->paddr, msdu->len,DMA_TO_DEVICE ); info =IEEE80211_SKB_CB (msdu); +kfree (pkt_addr);if (param->status) { info->flags &= ~IEEE80211_TX_STAT_ACK ;
@@ -9559,6 +9560,7 @@ static int ath10k_wmi_mgmt_tx_clean_up_pending(int msdu_id, void *ptr,dma_unmap_single (ar->dev, pkt_addr->paddr, msdu->len,DMA_TO_DEVICE );ieee80211_free_txskb (ar->hw, msdu); +kfree (pkt_addr);return 0 ; }
drivers/net/wireless/ath/ath11k/dp_rx.c +5 -2
@@ -5240,8 +5240,11 @@ int ath11k_dp_rx_process_mon_status(struct ath11k_base *ab, int mac_id, hal_status == HAL_TLV_STATUS_PPDU_DONE) { rx_mon_stats->status_ppdu_done++; pmon->mon_ppdu_status =DP_PPDU_STATUS_DONE ; -ath11k_dp_rx_mon_dest_process (ar, mac_id, budget, napi); - pmon->mon_ppdu_status =DP_PPDU_STATUS_START ; +if (!ab->hw_params.full_monitor_mode) { +ath11k_dp_rx_mon_dest_process (ar, mac_id, + budget, napi); + pmon->mon_ppdu_status =DP_PPDU_STATUS_START ; + } } if (ppdu_info->peer_id == HAL_INVALID_PEERID ||
drivers/net/wireless/broadcom/brcm80211/Kconfig +1 -0
@@ -27,6 +27,7 @@ source "drivers/net/wireless/broadcom/brcm80211/brcmfmac/Kconfig" config BRCM_TRACING bool "Broadcom device tracing" depends on BRCMSMAC || BRCMFMAC + depends on TRACING help If you say Y here, the Broadcom wireless drivers will register with ftrace to dump event information into the trace ringbuffer.
drivers/net/wireless/intel/iwlegacy/common.c +14 -1
@@ -3119,6 +3119,7 @@ il_enqueue_hcmd(struct il_priv *il, struct il_host_cmd *cmd)struct il_cmd_meta *out_meta;dma_addr_t phys_addr;unsigned long flags; +u8 *out_payload;u32 idx;u16 fix_size;
@@ -3154,6 +3155,16 @@ il_enqueue_hcmd(struct il_priv *il, struct il_host_cmd *cmd) out_cmd = txq->cmd[idx]; out_meta = &txq->meta[idx]; +/* The payload is in the same place in regular and huge +* command buffers, but we need to let the compiler know when +* we're using a larger payload buffer to avoid "field- +* spanning write" warnings at run-time for huge commands. +*/ +if (cmd->flags &CMD_SIZE_HUGE ) + out_payload = ((struct il_device_cmd_huge *)out_cmd)->cmd.payload; +else + out_payload = out_cmd->cmd.payload; +if (WARN_ON (out_meta->flags &CMD_MAPPED )) {spin_unlock_irqrestore (&il->hcmd_lock, flags);return -ENOSPC ;
@@ -3167,7 +3178,7 @@ il_enqueue_hcmd(struct il_priv *il, struct il_host_cmd *cmd) out_meta->callback = cmd->callback; out_cmd->hdr.cmd = cmd->id; -memcpy (&out_cmd->cmd.payload, cmd->data, cmd->len); +memcpy (out_payload, cmd->data, cmd->len);/* At this point, the out_cmd now has all of the incoming cmd * information */
@@ -4961,6 +4972,8 @@ il_pci_resume(struct device *device)*/ pci_write_config_byte (pdev,PCI_CFG_RETRY_TIMEOUT ,0x00 ); +_il_wr (il,CSR_INT ,0xffffffff ); +_il_wr (il,CSR_FH_INT_STATUS ,0xffffffff );il_enable_interrupts (il);if (!(_il_rd (il,CSR_GP_CNTRL ) &CSR_GP_CNTRL_REG_FLAG_HW_RF_KILL_SW ))
drivers/net/wireless/intel/iwlegacy/common.h +12 -0
@@ -560,6 +560,18 @@ struct il_device_cmd {#define TFD_MAX_PAYLOAD_SIZE (sizeof(struct il_device_cmd)) +/** +* struct il_device_cmd_huge +* +* For use when sending huge commands. +*/ +struct il_device_cmd_huge { +struct il_cmd_header hdr;/* uCode API */ +union { +u8 payload[IL_MAX_CMD_SIZE -sizeof (struct il_cmd_header )]; + } __packed cmd; +} __packed; +struct il_host_cmd {const void *data; unsigned long reply_page;
drivers/net/wireless/intel/iwlwifi/mvm/fw.c +16 -6
@@ -1394,11 +1394,18 @@ void iwl_mvm_get_acpi_tables(struct iwl_mvm *mvm)#endif /* CONFIG_ACPI */ +static void iwl_mvm_disconnect_iterator (void *data,u8 *mac, +struct ieee80211_vif *vif) +{ +if (vif->type ==NL80211_IFTYPE_STATION ) +ieee80211_hw_restart_disconnect (vif); +} +void iwl_mvm_send_recovery_cmd (struct iwl_mvm *mvm,u32 flags) {u32 error_log_size = mvm->fw->ucode_capa.error_log_size; +u32 status =0 ;int ret; -u32 resp;struct iwl_fw_error_recovery_cmd recovery_cmd = { .flags =cpu_to_le32 (flags),
@@ -1406,7 +1413,6 @@ void iwl_mvm_send_recovery_cmd(struct iwl_mvm *mvm, u32 flags) };struct iwl_host_cmd host_cmd = { .id =WIDE_ID (SYSTEM_GROUP ,FW_ERROR_RECOVERY_CMD ), - .flags =CMD_WANT_SKB , .data = {&recovery_cmd, }, .len = {sizeof (recovery_cmd), }, };
@@ -1426,7 +1432,7 @@ void iwl_mvm_send_recovery_cmd(struct iwl_mvm *mvm, u32 flags) recovery_cmd.buf_size =cpu_to_le32 (error_log_size); } - ret =iwl_mvm_send_cmd (mvm, &host_cmd); + ret =iwl_mvm_send_cmd_status (mvm, &host_cmd, &status);kfree (mvm->error_recovery_buf); mvm->error_recovery_buf =NULL ;
@@ -1437,11 +1443,15 @@ void iwl_mvm_send_recovery_cmd(struct iwl_mvm *mvm, u32 flags)/* skb respond is only relevant in ERROR_RECOVERY_UPDATE_DB */ if (flags &ERROR_RECOVERY_UPDATE_DB ) { - resp =le32_to_cpu (*(__le32 *)host_cmd.resp_pkt->data); -if (resp) +if (status) {IWL_ERR (mvm,"Failed to send recovery cmd blob was invalid %d\n" , - resp); + status); + +ieee80211_iterate_interfaces (mvm->hw,0 , + iwl_mvm_disconnect_iterator, + mvm); + } } }
drivers/net/wireless/intel/iwlwifi/mvm/mld-mac80211.c +18 -6
@@ -39,8 +39,6 @@ static int iwl_mvm_mld_mac_add_interface(struct ieee80211_hw *hw,/* reset deflink MLO parameters */ mvmvif->deflink.fw_link_id =IWL_MVM_FW_LINK_ID_INVALID ; mvmvif->deflink.active =0 ; -/* the first link always points to the default one */ - mvmvif->link[0 ] = &mvmvif->deflink; ret =iwl_mvm_mld_mac_ctxt_add (mvm, vif);if (ret)
@@ -58,9 +56,19 @@ static int iwl_mvm_mld_mac_add_interface(struct ieee80211_hw *hw,IEEE80211_VIF_SUPPORTS_CQM_RSSI ; } - ret =iwl_mvm_add_link (mvm, vif, &vif->bss_conf); -if (ret) - goto out_free_bf; +/* We want link[0] to point to the default link, unless we have MLO and +* in this case this will be modified later by .change_vif_links() +* If we are in the restart flow with an MLD connection, we will wait +* to .change_vif_links() to setup the links. +*/ +if (!test_bit (IWL_MVM_STATUS_IN_HW_RESTART , &mvm->status) || + !ieee80211_vif_is_mld (vif)) { + mvmvif->link[0 ] = &mvmvif->deflink; + + ret =iwl_mvm_add_link (mvm, vif, &vif->bss_conf); +if (ret) + goto out_free_bf; + }/* Save a pointer to p2p device vif, so it can later be used to * update the p2p device MAC when a GO is started/stopped
@@ -1015,7 +1023,11 @@ iwl_mvm_mld_change_vif_links(struct ieee80211_hw *hw,mutex_lock (&mvm->mutex); -if (old_links ==0 ) { +/* If we're in RESTART flow, the default link wasn't added in +* drv_add_interface(), and link[0] doesn't point to it. +*/ +if (old_links ==0 && !test_bit (IWL_MVM_STATUS_IN_HW_RESTART , + &mvm->status)) { err =iwl_mvm_disable_link (mvm, vif, &vif->bss_conf);if (err) goto out_err;
drivers/net/wireless/intel/iwlwifi/mvm/scan.c +2 -1
@@ -1751,7 +1751,8 @@ iwl_mvm_umac_scan_cfg_channels_v7_6g(struct iwl_mvm *mvm, &cp->channel_config[ch_cnt];u32 s_ssid_bitmap =0 , bssid_bitmap =0 , flags =0 ; -u8 j, k, s_max =0 , b_max =0 , n_used_bssid_entries; +u8 k, s_max =0 , b_max =0 , n_used_bssid_entries; +u32 j;bool force_passive, found = false, allow_passive = true, unsolicited_probe_on_chan = false, psc_no_listen = false;s8 psd_20 =IEEE80211_RNR_TBTT_PARAMS_PSD_RESERVED ;
drivers/nvme/target/auth.c +1 -0
@@ -101,6 +101,7 @@ int nvmet_setup_dhgroup(struct nvmet_ctrl *ctrl, u8 dhgroup_id)pr_debug ("%s: ctrl %d failed to generate private key, err %d\n" , __func__, ctrl->cntlid, ret);kfree_sensitive (ctrl->dh_key); + ctrl->dh_key =NULL ;return ret; } ctrl->dh_keysize =crypto_kpp_maxsize (ctrl->dh_tfm);
drivers/phy/freescale/phy-fsl-imx8m-pcie.c +5 -5
@@ -141,11 +141,6 @@ static int imx8_pcie_phy_power_on(struct phy *phy) IMX8MM_GPR_PCIE_REF_CLK_PLL);usleep_range (100 ,200 ); -/* Do the PHY common block reset */ -regmap_update_bits (imx8_phy->iomuxc_gpr,IOMUXC_GPR14 , -IMX8MM_GPR_PCIE_CMN_RST , -IMX8MM_GPR_PCIE_CMN_RST ); -switch (imx8_phy->drvdata->variant) {case IMX8MP :reset_control_deassert (imx8_phy->perst);
@@ -156,6 +151,11 @@ static int imx8_pcie_phy_power_on(struct phy *phy)break ; } +/* Do the PHY common block reset */ +regmap_update_bits (imx8_phy->iomuxc_gpr,IOMUXC_GPR14 , +IMX8MM_GPR_PCIE_CMN_RST , +IMX8MM_GPR_PCIE_CMN_RST ); +/* Polling to check the phy is ready or not. */ ret =readl_poll_timeout (imx8_phy->base +IMX8MM_PCIE_PHY_CMN_REG075 , val, val ==ANA_PLL_DONE ,10 ,20000 );
drivers/phy/qualcomm/phy-qcom-qmp-usb-legacy.c +1 -0
@@ -1302,6 +1302,7 @@ static int qmp_usb_legacy_probe(struct platform_device *pdev)return -ENOMEM ; qmp->dev = dev; +dev_set_drvdata (dev, qmp); qmp->cfg =of_device_get_match_data (dev);if (!qmp->cfg)
drivers/phy/qualcomm/phy-qcom-qmp-usb.c +1 -0
@@ -2173,6 +2173,7 @@ static int qmp_usb_probe(struct platform_device *pdev)return -ENOMEM ; qmp->dev = dev; +dev_set_drvdata (dev, qmp); qmp->cfg =of_device_get_match_data (dev);if (!qmp->cfg)
drivers/scsi/scsi_transport_fc.c +2 -2
@@ -1255,7 +1255,7 @@ static ssize_t fc_rport_set_marginal_state(struct device *dev,*/ if (rport->port_state ==FC_PORTSTATE_ONLINE ) rport->port_state = port_state; -else +else if (port_state != rport->port_state)return -EINVAL ; }else if (port_state ==FC_PORTSTATE_ONLINE ) {/*
@@ -1265,7 +1265,7 @@ static ssize_t fc_rport_set_marginal_state(struct device *dev,*/ if (rport->port_state ==FC_PORTSTATE_MARGINAL ) rport->port_state = port_state; -else +else if (port_state != rport->port_state)return -EINVAL ; }else return -EINVAL ;
drivers/spi/spi-fsl-dspi.c +5 -1
@@ -1008,6 +1008,7 @@ static int dspi_setup(struct spi_device *spi)u32 cs_sck_delay =0 , sck_cs_delay =0 ;struct fsl_dspi_platform_data *pdata;unsigned char pasc =0 , asc =0 ; +struct gpio_desc *gpio_cs;struct chip_data *chip;unsigned long clkrate;bool cs = true;
@@ -1073,7 +1074,10 @@ static int dspi_setup(struct spi_device *spi) chip->ctar_val |=SPI_CTAR_LSBFE ; } -gpiod_direction_output (spi_get_csgpiod (spi,0 ), false); + gpio_cs =spi_get_csgpiod (spi,0 ); +if (gpio_cs) +gpiod_direction_output (gpio_cs, false); +dspi_deassert_cs (spi, &cs);spi_set_ctldata (spi, chip);
drivers/spi/spi-geni-qcom.c +5 -3
@@ -1108,6 +1108,11 @@ static int spi_geni_probe(struct platform_device *pdev)init_completion (&mas->tx_reset_done);init_completion (&mas->rx_reset_done);spin_lock_init (&mas->lock); + + ret =geni_icc_get (&mas->se,NULL ); +if (ret) +return ret; +pm_runtime_use_autosuspend (&pdev->dev);pm_runtime_set_autosuspend_delay (&pdev->dev,250 ); ret =devm_pm_runtime_enable (dev);
@@ -1117,9 +1122,6 @@ static int spi_geni_probe(struct platform_device *pdev)if (device_property_read_bool (&pdev->dev,"spi-slave" )) spi->slave = true; - ret =geni_icc_get (&mas->se,NULL ); -if (ret) -return ret;/* Set the bus quota to a reasonable value for register access */ mas->se.icc_paths[GENI_TO_CORE ].avg_bw =Bps_to_icc (CORE_2X_50_MHZ ); mas->se.icc_paths[CPU_TO_GENI ].avg_bw =GENI_DEFAULT_BW ;
drivers/staging/iio/frequency/ad9832.c +5 -2
@@ -129,12 +129,15 @@ static unsigned long ad9832_calc_freqreg(unsigned long mclk, unsigned long fout)static int ad9832_write_frequency (struct ad9832_state *st,unsigned int addr,unsigned long fout) { +unsigned long clk_freq;unsigned long regval; -if (fout > (clk_get_rate (st->mclk) /2 )) + clk_freq =clk_get_rate (st->mclk); + +if (!clk_freq || fout > (clk_freq /2 ))return -EINVAL ; - regval =ad9832_calc_freqreg (clk_get_rate (st->mclk), fout); + regval =ad9832_calc_freqreg (clk_freq, fout); st->freq_data[0] = cpu_to_be16((AD9832_CMD_FRE8BITSW << CMD_SHIFT) | (addr << ADD_SHIFT) |
drivers/thermal/intel/int340x_thermal/processor_thermal_rapl.c +24 -46
103 lines not on this page · raw message
drivers/thermal/thermal_core.c +18 -7
@@ -487,11 +487,16 @@ int thermal_zone_device_is_enabled(struct thermal_zone_device *tz)return tz->mode ==THERMAL_DEVICE_ENABLED ; } +static bool thermal_zone_is_present (struct thermal_zone_device *tz) +{ +return !list_empty (&tz->node); +} +void thermal_zone_device_update (struct thermal_zone_device *tz,enum thermal_notify_event event) {mutex_lock (&tz->lock); -if (device_is_registered (&tz->device)) +if (thermal_zone_is_present (tz))__thermal_zone_device_update (tz, event);mutex_unlock (&tz->lock); }
@@ -800,7 +805,7 @@ static void thermal_release(struct device *dev) tz =to_thermal_zone (dev);thermal_zone_destroy_device_groups (tz);mutex_destroy (&tz->lock); -kfree (tz); +complete (&tz->removal); }else if (!strncmp (dev_name (dev),"cooling_device" ,sizeof ("cooling_device" ) -1 )) { cdev =to_cooling_device (dev);
@@ -1292,8 +1297,10 @@ thermal_zone_device_register_with_trips(const char *type, struct thermal_trip *t }INIT_LIST_HEAD (&tz->thermal_instances); +INIT_LIST_HEAD (&tz->node);ida_init (&tz->ida);mutex_init (&tz->lock); +init_completion (&tz->removal); id =ida_alloc (&thermal_tz_ida,GFP_KERNEL );if (id <0 ) { result = id;
@@ -1364,7 +1371,9 @@ thermal_zone_device_register_with_trips(const char *type, struct thermal_trip *t }mutex_lock (&thermal_list_lock); +mutex_lock (&tz->lock);list_add_tail (&tz->node, &thermal_tz_list); +mutex_unlock (&tz->lock);mutex_unlock (&thermal_list_lock);/* Bind cooling devices for this zone */
@@ -1454,7 +1463,10 @@ void thermal_zone_device_unregister(struct thermal_zone_device *tz)mutex_unlock (&thermal_list_lock);return ; } + +mutex_lock (&tz->lock);list_del (&tz->node); +mutex_unlock (&tz->lock);/* Unbind all cdevs associated with 'this' thermal zone */ list_for_each_entry (cdev, &thermal_cdev_list, node)
@@ -1471,15 +1483,14 @@ void thermal_zone_device_unregister(struct thermal_zone_device *tz)ida_free (&thermal_tz_ida, tz->id);ida_destroy (&tz->ida); -mutex_lock (&tz->lock);device_del (&tz->device); -mutex_unlock (&tz->lock); - -kfree (tz->tzp); -put_device (&tz->device);thermal_notify_tz_delete (tz_id); + +wait_for_completion (&tz->removal); +kfree (tz->tzp); +kfree (tz); }EXPORT_SYMBOL_GPL (thermal_zone_device_unregister);
drivers/thunderbolt/tb.c +42 -6
60 lines not on this page · raw message
drivers/usb/gadget/udc/dummy_hcd.c +38 -19
146 lines not on this page · raw message
drivers/usb/host/xhci-pci.c +4 -2
@@ -713,7 +713,7 @@ static int xhci_pci_probe(struct pci_dev *dev, const struct pci_device_id *id)pm_runtime_put_noidle (&dev->dev);if (pci_choose_state (dev,PMSG_SUSPEND ) ==PCI_D0 ) -pm_runtime_forbid (&dev->dev); +pm_runtime_get (&dev->dev);else if (xhci->quirks &XHCI_DEFAULT_PM_RUNTIME_ALLOW )pm_runtime_allow (&dev->dev);
@@ -740,7 +740,9 @@ static void xhci_pci_remove(struct pci_dev *dev) xhci->xhc_state |=XHCI_STATE_REMOVING ; -if (xhci->quirks &XHCI_DEFAULT_PM_RUNTIME_ALLOW ) +if (pci_choose_state (dev,PMSG_SUSPEND ) ==PCI_D0 ) +pm_runtime_put (&dev->dev); +else if (xhci->quirks &XHCI_DEFAULT_PM_RUNTIME_ALLOW )pm_runtime_forbid (&dev->dev);if (xhci->shared_hcd) {
drivers/usb/host/xhci-ring.c +8 -8
@@ -1734,6 +1734,14 @@ static void handle_cmd_completion(struct xhci_hcd *xhci,trace_xhci_handle_command (xhci->cmd_ring, &cmd_trb->generic); + cmd_comp_code =GET_COMP_CODE (le32_to_cpu (event->status)); + +/* If CMD ring stopped we own the trbs between enqueue and dequeue */ +if (cmd_comp_code ==COMP_COMMAND_RING_STOPPED ) { +complete_all (&xhci->cmd_ring_stop_completion); +return ; + } + cmd_dequeue_dma =xhci_trb_virt_to_dma (xhci->cmd_ring->deq_seg, cmd_trb);/*
@@ -1750,14 +1758,6 @@ static void handle_cmd_completion(struct xhci_hcd *xhci,cancel_delayed_work (&xhci->cmd_timer); - cmd_comp_code =GET_COMP_CODE (le32_to_cpu (event->status)); - -/* If CMD ring stopped we own the trbs between enqueue and dequeue */ -if (cmd_comp_code ==COMP_COMMAND_RING_STOPPED ) { -complete_all (&xhci->cmd_ring_stop_completion); -return ; - } -if (cmd->command_trb != xhci->cmd_ring->dequeue) {xhci_err (xhci,"Command completion event does not match command\n" );
drivers/usb/phy/phy.c +1 -1
@@ -628,7 +628,7 @@ void devm_usb_put_phy(struct device *dev, struct usb_phy *phy) {int r; - r =devres_destroy (dev, devm_usb_phy_release, devm_usb_phy_match, phy); + r =devres_release (dev, devm_usb_phy_release, devm_usb_phy_match, phy);dev_WARN_ONCE (dev, r,"couldn't find PHY resource\n" ); }EXPORT_SYMBOL_GPL (devm_usb_put_phy);
drivers/usb/typec/class.c +1 -0
@@ -2194,6 +2194,7 @@ void typec_port_register_altmodes(struct typec_port *port, altmodes[index] = alt; index++; } +fwnode_handle_put (altmodes_node); }EXPORT_SYMBOL_GPL (typec_port_register_altmodes);
drivers/usb/typec/tcpm/qcom/qcom_pmic_typec.c +2 -2
@@ -268,7 +268,7 @@ static int qcom_pmic_typec_probe(struct platform_device *pdev)return 0 ; fwnode_remove: -fwnode_remove_software_node (tcpm->tcpc.fwnode); +fwnode_handle_put (tcpm->tcpc.fwnode);return ret; }
@@ -280,7 +280,7 @@ static void qcom_pmic_typec_remove(struct platform_device *pdev)qcom_pmic_typec_pdphy_stop (tcpm->pmic_typec_pdphy);qcom_pmic_typec_port_stop (tcpm->pmic_typec_port);tcpm_unregister_port (tcpm->tcpm_port); -fwnode_remove_software_node (tcpm->tcpc.fwnode); +fwnode_handle_put (tcpm->tcpc.fwnode); }static struct pmic_typec_pdphy_resources pm8150b_pdphy_res = {
fs/afs/dir.c +25 -0
@@ -12,6 +12,7 @@#include <linux/swap.h> #include <linux/ctype.h> #include <linux/sched.h> +#include <linux/iversion.h> #include <linux/task_io_accounting_ops.h> #include "internal.h" #include "afs_fs.h"
@@ -1809,6 +1810,8 @@ static int afs_symlink(struct mnt_idmap *idmap, struct inode *dir,static void afs_rename_success (struct afs_operation *op) { +struct afs_vnode *vnode =AFS_FS_I (d_inode (op->dentry)); +_enter ("op=%08x" , op->debug_id); op->ctime = op->file[0 ].scb.status.mtime_client;
@@ -1818,6 +1821,22 @@ static void afs_rename_success(struct afs_operation *op) op->ctime = op->file[1 ].scb.status.mtime_client;afs_vnode_commit_status (op, &op->file[1 ]); } + +/* If we're moving a subdir between dirs, we need to update +* its DV counter too as the ".." will be altered. +*/ +if (S_ISDIR (vnode->netfs.inode.i_mode) && + op->file[0 ].vnode != op->file[1 ].vnode) { +u64 new_dv; + +write_seqlock (&vnode->cb_lock); + + new_dv = vnode->status.data_version +1 ; + vnode->status.data_version = new_dv; +inode_set_iversion_raw (&vnode->netfs.inode, new_dv); + +write_sequnlock (&vnode->cb_lock); + } }static void afs_rename_edit_dir (struct afs_operation *op)
@@ -1859,6 +1878,12 @@ static void afs_rename_edit_dir(struct afs_operation *op) &vnode->fid, afs_edit_dir_for_rename_2); } +if (S_ISDIR (vnode->netfs.inode.i_mode) && + new_dvnode != orig_dvnode && +test_bit (AFS_VNODE_DIR_VALID , &vnode->flags)) +afs_edit_dir_update_dotdot (vnode, new_dvnode, + afs_edit_dir_for_rename_sub); + new_inode =d_inode (new_dentry);if (new_inode) {spin_lock (&new_inode->i_lock);
fs/afs/dir_edit.c +89 -2
102 lines not on this page · raw message
fs/afs/internal.h +2 -0
@@ -1037,6 +1037,8 @@ extern void afs_check_for_remote_deletion(struct afs_operation *);extern void afs_edit_dir_add (struct afs_vnode *,struct qstr *,struct afs_fid *,enum afs_edit_dir_reason );extern void afs_edit_dir_remove (struct afs_vnode *,struct qstr *,enum afs_edit_dir_reason ); +void afs_edit_dir_update_dotdot (struct afs_vnode *vnode,struct afs_vnode *new_dvnode, +enum afs_edit_dir_reason why);/* * dir_silly.c
fs/dax.c +28 -17
63 lines not on this page · raw message
fs/iomap/buffered-io.c +1 -6
@@ -1273,16 +1273,11 @@ EXPORT_SYMBOL_GPL(iomap_file_buffered_write_punch_delalloc);static loff_t iomap_unshare_iter (struct iomap_iter *iter) {struct iomap *iomap = &iter->iomap; -const struct iomap *srcmap =iomap_iter_srcmap (iter);loff_t pos = iter->pos;loff_t length =iomap_length (iter);loff_t written =0 ; -/* don't bother with blocks that are not shared to start with */ -if (!(iomap->flags &IOMAP_F_SHARED )) -return length; -/* don't bother with holes or unwritten extents */ -if (srcmap->type ==IOMAP_HOLE || srcmap->type ==IOMAP_UNWRITTEN ) +if (!iomap_want_unshare_iter (iter))return length; do {
fs/nfs/delegation.c +5 -0
@@ -981,6 +981,11 @@ void nfs_delegation_mark_returned(struct inode *inode, }nfs_mark_delegation_revoked (delegation); +clear_bit (NFS_DELEGATION_RETURNING , &delegation->flags); +spin_unlock (&delegation->lock); +if (nfs_detach_delegation (NFS_I (inode), delegation,NFS_SERVER (inode))) +nfs_put_delegation (delegation); + goto out_rcu_unlock; out_clear_returning:clear_bit (NFS_DELEGATION_RETURNING , &delegation->flags);
fs/nilfs2/namei.c +3 -0
@@ -157,6 +157,9 @@ static int nilfs_symlink(struct mnt_idmap *idmap, struct inode *dir,/* slow symlink */ inode->i_op = &nilfs_symlink_inode_operations;inode_nohighmem (inode); +mapping_set_gfp_mask (inode->i_mapping, +mapping_gfp_constraint (inode->i_mapping, + ~__GFP_FS)); inode->i_mapping->a_ops = &nilfs_aops; err =page_symlink (inode, symname, l);if (err)
fs/nilfs2/page.c +1 -0
@@ -405,6 +405,7 @@ void nilfs_clear_dirty_page(struct page *page, bool silent)ClearPageUptodate (page);ClearPageMappedToDisk (page); +ClearPageChecked (page);if (page_has_buffers (page)) {struct buffer_head *bh, *head;
fs/ntfs3/file.c +8 -1
@@ -1173,7 +1173,14 @@ static int ntfs_file_release(struct inode *inode, struct file *file)/* If we are last writer on the inode, drop the block reservation. */ if (sbi->options->prealloc && ((file->f_mode &FMODE_WRITE ) && -atomic_read (&inode->i_writecount) ==1 )) { +atomic_read (&inode->i_writecount) ==1 ) +/* +* The only file when inode->i_fop = &ntfs_file_operations and +* init_rwsem(&ni->file.run_lock) is not called explicitly is MFT. +* +* Add additional check here. +*/ + && inode->i_ino !=MFT_REC_MFT ) {ni_lock (ni);down_write (&ni->file.run_lock);
fs/ntfs3/frecord.c +3 -1
@@ -102,7 +102,9 @@ void ni_clear(struct ntfs_inode *ni) {struct rb_node *node; -if (!ni->vfs_inode.i_nlink && ni->mi.mrec &&is_rec_inuse (ni->mi.mrec)) +if (!ni->vfs_inode.i_nlink && ni->mi.mrec && +is_rec_inuse (ni->mi.mrec) && + !(ni->mi.sbi->flags &NTFS_FLAGS_LOG_REPLAYING ))ni_delete_all (ni);al_destroy (ni);
fs/ntfs3/inode.c +11 -4
@@ -532,11 +532,15 @@ struct inode *ntfs_iget5(struct super_block *sb, const struct MFT_REF *ref,if (inode->i_state &I_NEW ) inode =ntfs_read_mft (inode, name, ref);else if (ref->seq !=ntfs_i (inode)->mi.mrec->seq) { -/* Inode overlaps? */ -_ntfs_bad_inode (inode); +/* +* Sequence number is not expected. +* Looks like inode was reused but caller uses the old reference +*/ +iput (inode); + inode =ERR_PTR (-ESTALE ); } -if (IS_ERR (inode) && name) +if (IS_ERR (inode))ntfs_set_state (sb->s_fs_info,NTFS_DIRTY_ERROR );return inode;
@@ -1699,7 +1703,10 @@ struct inode *ntfs_create_inode(struct mnt_idmap *idmap, struct inode *dir, attr =ni_find_attr (ni,NULL ,NULL ,ATTR_EA ,NULL ,0 ,NULL ,NULL );if (attr && attr->non_res) {/* Delete ATTR_EA, if non-resident. */ -attr_set_size (ni,ATTR_EA ,NULL ,0 ,NULL ,0 ,NULL , false,NULL ); +struct runs_tree run; +run_init (&run); +attr_set_size (ni,ATTR_EA ,NULL ,0 , &run,0 ,NULL , false,NULL ); +run_close (&run); }if (rp_inserted)
fs/ntfs3/lznt.c +3 -0
@@ -236,6 +236,9 @@ static inline ssize_t decompress_chunk(u8 *unc, u8 *unc_end, const u8 *cmpr,/* Do decompression until pointers are inside range. */ while (up < unc_end && cmpr < cmpr_end) { +// return err if more than LZNT_CHUNK_SIZE bytes are written +if (up - unc >LZNT_CHUNK_SIZE ) +return -EINVAL ;/* Correct index */ while (unc + s_max_off[index] < up) index +=1 ;
fs/ntfs3/namei.c +1 -1
@@ -81,7 +81,7 @@ static struct dentry *ntfs_lookup(struct inode *dir, struct dentry *dentry,if (err <0 ) inode =ERR_PTR (err);else { -ni_lock (ni); +ni_lock_dir (ni); inode =dir_search_u (dir, uni,NULL );ni_unlock (ni); }
fs/ntfs3/ntfs_fs.h +1 -1
@@ -334,7 +334,7 @@ struct mft_inode {/* Nested class for ntfs_inode::ni_lock. */ enum ntfs_inode_mutex_lock_class { -NTFS_INODE_MUTEX_DIRTY , +NTFS_INODE_MUTEX_DIRTY =1 ,NTFS_INODE_MUTEX_SECURITY ,NTFS_INODE_MUTEX_OBJID ,NTFS_INODE_MUTEX_REPARSE ,
fs/ntfs3/record.c +15 -16
@@ -223,29 +223,21 @@ struct ATTRIB *mi_enum_attr(struct mft_inode *mi, struct ATTRIB *attr) prev_type =0 ; attr =Add2Ptr (rec, off); }else { -/* Check if input attr inside record. */ +/* +* We don't need to check previous attr here. There is +* a bounds checking in the previous round. +*/ off =PtrOffset (rec, attr); -if (off >= used) -return NULL ; asize =le32_to_cpu (attr->size); -if (asize <SIZEOF_RESIDENT ) { -/* Impossible 'cause we should not return such attribute. */ -return NULL ; - } - -/* Overflow check. */ -if (off + asize < off) -return NULL ; prev_type =le32_to_cpu (attr->type); attr =Add2Ptr (attr, asize); off += asize; } - asize =le32_to_cpu (attr->size); -/* Can we use the first field (attr->type). */ +/* NOTE: this code also checks attr->size availability. */ if (off +8 > used) {static_assert (ALIGN (sizeof (enum ATTR_TYPE ),8 ) ==8 );return NULL ;
@@ -265,6 +257,8 @@ struct ATTRIB *mi_enum_attr(struct mft_inode *mi, struct ATTRIB *attr)if (t32 < prev_type)return NULL ; + asize =le32_to_cpu (attr->size); +/* Check overflow and boundary. */ if (off + asize < off || off + asize > used)return NULL ;
@@ -293,6 +287,10 @@ struct ATTRIB *mi_enum_attr(struct mft_inode *mi, struct ATTRIB *attr)if (attr->non_res !=1 )return NULL ; +/* Can we use memory including attr->nres.valid_size? */ +if (asize <SIZEOF_NONRESIDENT ) +return NULL ; + t16 =le16_to_cpu (attr->nres.run_off);if (t16 > asize)return NULL ;
@@ -319,7 +317,8 @@ struct ATTRIB *mi_enum_attr(struct mft_inode *mi, struct ATTRIB *attr)if (!attr->nres.svcn &&is_attr_ext (attr)) {/* First segment of sparse/compressed attribute */ -if (asize +8 <SIZEOF_NONRESIDENT_EX ) +/* Can we use memory including attr->nres.total_size? */ +if (asize <SIZEOF_NONRESIDENT_EX )return NULL ; tot_size =le64_to_cpu (attr->nres.total_size);
@@ -329,10 +328,10 @@ struct ATTRIB *mi_enum_attr(struct mft_inode *mi, struct ATTRIB *attr)if (tot_size > alloc_size)return NULL ; }else { -if (asize +8 <SIZEOF_NONRESIDENT ) +if (attr->nres.c_unit)return NULL ; -if (attr->nres.c_unit) +if (alloc_size > mi->sbi->volume.size)return NULL ; }
fs/ocfs2/file.c +8 -0
@@ -1783,6 +1783,14 @@ int ocfs2_remove_inode_range(struct inode *inode,return 0 ;if (OCFS2_I (inode)->ip_dyn_features &OCFS2_INLINE_DATA_FL ) { +int id_count =ocfs2_max_inline_data_with_xattr (inode->i_sb, di); + +if (byte_start > id_count || byte_start + byte_len > id_count) { + ret = -EINVAL ; +mlog_errno (ret); + goto out; + } + ret =ocfs2_truncate_inline (inode, di_bh, byte_start, byte_start + byte_len,0 );if (ret) {
fs/smb/client/cifs_unicode.c +14 -3
@@ -484,10 +484,21 @@ cifsConvertToUTF16(__le16 *target, const char *source, int srclen,/** * Remap spaces and periods found at the end of every * component of the path. The special cases of '.' and -* '..' do not need to be dealt with explicitly because -* they are addressed in namei.c:link_path_walk(). +* '..' are need to be handled because of symlinks. +* They are treated as non-end-of-string to avoid +* remapping and breaking symlinks pointing to . or .. **/ -if ((i == srclen -1 ) || (source[i+1 ] =='\\' )) +if ((i ==0 || source[i-1 ] =='\\' ) && + source[i] =='.' && + (i == srclen-1 || source[i+1 ] =='\\' )) + end_of_string = false;/* "." case */ +else if (i >=1 && + (i ==1 || source[i-2 ] =='\\' ) && + source[i-1 ] =='.' && + source[i] =='.' && + (i == srclen-1 || source[i+1 ] =='\\' )) + end_of_string = false;/* ".." case */ +else if ((i == srclen -1 ) || (source[i+1 ] =='\\' )) end_of_string = true;else end_of_string = false;
fs/smb/client/reparse.c +166 -8
239 lines not on this page · raw message
fs/smb/client/reparse.h +1 -8
@@ -18,14 +18,7 @@*/ #define IO_REPARSE_TAG_INTERNAL ((__u32)~0U) -static inline dev_t reparse_nfs_mkdev (struct reparse_posix_data *buf) -{ -u64 v =le64_to_cpu (*(__le64 *)buf->DataBuffer); - -return MKDEV (v >>32 , v &0xffffffff ); -} - -static inline dev_t wsl_mkdev (void *ptr) +static inline dev_t reparse_mkdev (void *ptr) {u64 v =le64_to_cpu (*(__le64 *)ptr);
fs/smb/client/smb2inode.c +2 -1
@@ -1198,6 +1198,7 @@ struct inode *smb2_get_reparse_inode(struct cifs_open_info_data *data,const unsigned int xid, struct cifs_tcon *tcon, const char *full_path, + bool directory, struct kvec *reparse_iov, struct kvec *xattr_iov) {
@@ -1217,7 +1218,7 @@ struct inode *smb2_get_reparse_inode(struct cifs_open_info_data *data,FILE_READ_ATTRIBUTES |FILE_WRITE_ATTRIBUTES ,FILE_CREATE , -CREATE_NOT_DIR |OPEN_REPARSE_POINT , + (directory ?CREATE_NOT_FILE :CREATE_NOT_DIR ) |OPEN_REPARSE_POINT , ACL_NO_MODE);if (xattr_iov) oparms.ea_cctx = xattr_iov;
fs/smb/client/smb2proto.h +1 -0
@@ -61,6 +61,7 @@ struct inode *smb2_get_reparse_inode(struct cifs_open_info_data *data,const unsigned int xid, struct cifs_tcon *tcon, const char *full_path, + bool directory, struct kvec *reparse_iov, struct kvec *xattr_iov); int smb2_query_reparse_point(const unsigned int xid,
fs/xfs/xfs_filestream.c +12 -11
@@ -64,7 +64,7 @@ xfs_filestream_pick_ag(struct xfs_perag *pag;struct xfs_perag *max_pag =NULL ;xfs_extlen_t minlen = *longest; -xfs_extlen_t free =0 , minfree, maxfree =0 ; +xfs_extlen_t minfree, maxfree =0 ;xfs_agnumber_t agno;bool first_pass = true;int err;
@@ -107,7 +107,6 @@ xfs_filestream_pick_ag( !(flags & XFS_PICK_USERDATA) || (flags & XFS_PICK_LOWSPACE))) {/* Break out, retaining the reference on the AG. */ - free = pag->pagf_freeblks;break ; } }
@@ -150,23 +149,25 @@ xfs_filestream_pick_ag(* grab. */ if (!max_pag) { -for_each_perag_wrap (args->mp,0 , start_agno, args->pag) +for_each_perag_wrap (args->mp,0 , start_agno, pag) { + max_pag = pag;break ; -atomic_inc (&args->pag->pagf_fstrms); - *longest =0 ; - }else { - pag = max_pag; - free = maxfree; -atomic_inc (&pag->pagf_fstrms); + } + +/* Bail if there are no AGs at all to select from. */ +if (!max_pag) +return -ENOSPC ; } + + pag = max_pag; +atomic_inc (&pag->pagf_fstrms); }else if (max_pag) {xfs_perag_rele (max_pag); } -trace_xfs_filestream_pick (pag, pino, free); +trace_xfs_filestream_pick (pag, pino); args->pag = pag;return 0 ; - } static struct xfs_inode *
fs/xfs/xfs_trace.h +5 -10
@@ -672,8 +672,8 @@ DEFINE_FILESTREAM_EVENT(xfs_filestream_lookup);DEFINE_FILESTREAM_EVENT (xfs_filestream_scan); TRACE_EVENT(xfs_filestream_pick, - TP_PROTO(struct xfs_perag *pag, xfs_ino_t ino, xfs_extlen_t free), - TP_ARGS(pag, ino, free), + TP_PROTO(struct xfs_perag *pag, xfs_ino_t ino), + TP_ARGS(pag, ino), TP_STRUCT__entry( __field(dev_t, dev) __field(xfs_ino_t, ino)
@@ -684,14 +684,9 @@ TRACE_EVENT(xfs_filestream_pick,TP_fast_assign ( __entry->dev = pag->pag_mount->m_super->s_dev; __entry->ino = ino; -if (pag) { - __entry->agno = pag->pag_agno; - __entry->streams =atomic_read (&pag->pagf_fstrms); - }else { - __entry->agno =NULLAGNUMBER ; - __entry->streams =0 ; - } - __entry->free = free; + __entry->agno = pag->pag_agno; + __entry->streams =atomic_read (&pag->pagf_fstrms); + __entry->free = pag->pagf_freeblks; ), TP_printk("dev %d:%d ino 0x%llx agno 0x%x streams %d free %d", MAJOR(__entry->dev), MINOR(__entry->dev),
include/acpi/cppc_acpi.h +1 -1
@@ -65,7 +65,7 @@ struct cpc_desc {int write_cmd_status;int write_cmd_id;/* Lock used for RMW operations in cpc_write() */ -spinlock_t rmw_lock; +raw_spinlock_t rmw_lock;struct cpc_register_resource cpc_regs[MAX_CPC_REG_ENT ];struct acpi_psd_package domain_info;struct kobject kobj;
include/linux/compiler-gcc.h +4 -0
@@ -102,7 +102,11 @@#define __noscs __attribute__((__no_sanitize__("shadow-call-stack")))#endif +#ifdef __SANITIZE_HWADDRESS__ +#define __no_sanitize_address __attribute__((__no_sanitize__("hwaddress"))) +#else #define __no_sanitize_address __attribute__((__no_sanitize_address__)) +#endif #if defined(__SANITIZE_THREAD__)#define __no_sanitize_thread __attribute__((__no_sanitize_thread__))
include/linux/device.h +3 -0
@@ -1063,6 +1063,9 @@ int device_for_each_child(struct device *dev, void *data, int (*fn)(struct device *dev, void *data));int device_for_each_child_reverse (struct device *dev,void *data,int (*fn)(struct device *dev,void *data)); +int device_for_each_child_reverse_from (struct device *parent, +struct device *from,const void *data, +int (*fn)(struct device *,const void *));struct device *device_find_child (struct device *dev,void *data,int (*match)(struct device *dev,void *data)); struct device *device_find_child_by_name(struct device *parent,
include/linux/huge_mm.h +18 -0
@@ -137,6 +137,24 @@ bool hugepage_vma_check(struct vm_area_struct *vma, unsigned long vm_flags, (transparent_hugepage_flags & \ (1<<TRANSPARENT_HUGEPAGE_USE_ZERO_PAGE_FLAG)) +static inline bool vma_thp_disabled (struct vm_area_struct *vma, +unsigned long vm_flags) +{ +/* +* Explicitly disabled through madvise or prctl, or some +* architectures may disable THP for some mappings, for +* example, s390 kvm. +*/ +return (vm_flags &VM_NOHUGEPAGE ) || +test_bit (MMF_DISABLE_THP , &vma->vm_mm->flags); +} + +static inline bool thp_disabled_by_hw (void ) +{ +/* If the hardware/firmware marked hugepage support disabled. */ +return transparent_hugepage_flags & (1 <<TRANSPARENT_HUGEPAGE_UNSUPPORTED ); +} +unsigned long thp_get_unmapped_area (struct file *filp,unsigned long addr,unsigned long len,unsigned long pgoff,unsigned long flags);
include/linux/iomap.h +19 -0
@@ -256,6 +256,25 @@ static inline const struct iomap *iomap_iter_srcmap(const struct iomap_iter *i)return &i->iomap; } +/* +* Check if the range needs to be unshared for a FALLOC_FL_UNSHARE_RANGE +* operation. +* +* Don't bother with blocks that are not shared to start with; or mappings that +* cannot be shared, such as inline data, delalloc reservations, holes or +* unwritten extents. +* +* Note that we use srcmap directly instead of iomap_iter_srcmap as unsharing +* requires providing a separate source map, and the presence of one is a good +* indicator that unsharing is needed, unlike IOMAP_F_SHARED which can be set +* for any data that goes into the COW fork for XFS. +*/ +static inline bool iomap_want_unshare_iter (const struct iomap_iter *iter) +{ +return (iter->iomap.flags &IOMAP_F_SHARED ) && + iter->srcmap.type ==IOMAP_MAPPED ; +} +ssize_t iomap_file_buffered_write (struct kiocb *iocb,struct iov_iter *from,const struct iomap_ops *ops); int iomap_file_buffered_write_punch_delalloc(struct inode *inode,
include/linux/sched.h +2 -0
@@ -854,6 +854,8 @@ struct task_struct {u8 rcu_tasks_idx;int rcu_tasks_idle_cpu;struct list_head rcu_tasks_holdout_list; +int rcu_tasks_exit_cpu; +struct list_head rcu_tasks_exit_list;#endif /* #ifdef CONFIG_TASKS_RCU */ #ifdef CONFIG_TASKS_TRACE_RCU
include/linux/thermal.h +2 -0
@@ -115,6 +115,7 @@ struct thermal_cooling_device {* @id: unique id number for each thermal zone * @type: the thermal zone device type * @device: &struct device for this thermal zone +* @removal: removal completion * @trip_temp_attrs: attributes for trip points for sysfs: trip temperature * @trip_type_attrs: attributes for trip points for sysfs: trip type * @trip_hyst_attrs: attributes for trip points for sysfs: trip hysteresis
@@ -156,6 +157,7 @@ struct thermal_zone_device {int id;char type[THERMAL_NAME_LENGTH ];struct device device; +struct completion removal;struct attribute_group trips_attribute_group;struct thermal_attr *trip_temp_attrs;struct thermal_attr *trip_type_attrs;
include/linux/ubsan.h +5 -0
@@ -4,6 +4,11 @@#ifdef CONFIG_UBSAN_TRAP const char *report_ubsan_failure (struct pt_regs *regs,u32 check_type); +#else +static inline const char *report_ubsan_failure (struct pt_regs *regs,u32 check_type) +{ +return NULL ; +}#endif #endif
include/net/ip_tunnels.h +1 -1
@@ -260,7 +260,7 @@ static inline void ip_tunnel_init_flow(struct flowi4 *fl4,memset (fl4,0 ,sizeof (*fl4));if (oif) { - fl4->flowi4_l3mdev =l3mdev_master_upper_ifindex_by_index_rcu (net, oif); + fl4->flowi4_l3mdev =l3mdev_master_upper_ifindex_by_index (net, oif);/* Legacy VRF/l3mdev use case */ fl4->flowi4_oif = fl4->flowi4_l3mdev ?0 : oif; }
include/trace/events/afs.h +33 -207
14 lines not on this page · raw message
kernel/rcu/tasks.h +60 -30
90 lines not on this page · raw message
net/mac80211/key.c +25 -17
42 lines not on this page · raw message
sound/soc/sof/ipc4-control.c +173 -2
175 lines not on this page · raw message
sound/soc/sof/ipc4-topology.c +46 -3
49 lines not on this page · raw message
tools/testing/selftests/bpf/bpf_experimental.h +31 -0
Lines of this file are not shown. View the raw message.
tools/testing/selftests/mm/uffd-common.c +2 -3
Lines of this file are not shown. View the raw message.
tools/testing/selftests/mm/uffd-common.h +2 -1
Lines of this file are not shown. View the raw message.
tools/testing/selftests/mm/uffd-unit-tests.c +6 -15
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.