Linux 6.6.102
Greg Kroah-Hartman
maintainerI'm announcing the release of the 6.6.102 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
------------
Documentation/filesystems/f2fs.rst | 6 Documentation/netlink/specs/ethtool.yaml | 6 Makefile | 2 arch/arm/boot/dts/nxp/imx/imx6ul-kontron-bl-common.dtsi | 1 arch/arm/boot/dts/nxp/vf/vfxxx.dtsi | 2 arch/arm/boot/dts/ti/omap/am335x-boneblack.dts | 2 arch/arm/crypto/aes-neonbs-glue.c | 2 arch/arm64/boot/dts/freescale/imx8mm-beacon-som.dtsi | 2 arch/arm64/boot/dts/freescale/imx8mn-beacon-som.dtsi | 2 arch/arm64/boot/dts/qcom/msm8976.dtsi | 2 arch/arm64/boot/dts/qcom/sc7180.dtsi | 10 arch/arm64/boot/dts/qcom/sdm845.dtsi | 10 arch/m68k/Kconfig.debug | 2 arch/m68k/kernel/early_printk.c | 42 - arch/m68k/kernel/head.S | 8 arch/mips/mm/tlb-r4k.c | 56 + arch/powerpc/configs/ppc6xx_defconfig | 1 arch/powerpc/kernel/eeh.c | 1 arch/powerpc/kernel/eeh_driver.c | 48 + arch/powerpc/kernel/eeh_pe.c | 10 arch/powerpc/kernel/pci-hotplug.c | 3 arch/sh/Makefile | 10 arch/sh/boot/compressed/Makefile | 4 arch/sh/boot/romimage/Makefile | 4 arch/um/drivers/rtc_user.c | 2 arch/x86/boot/compressed/sev.c | 7 arch/x86/boot/cpuflags.c | 13 arch/x86/include/asm/cpufeatures.h | 1 arch/x86/kernel/cpu/scattered.c | 1 arch/x86/kernel/sev-shared.c | 36 + arch/x86/kernel/sev.c | 11 arch/x86/mm/extable.c | 5 drivers/block/ublk_drv.c | 4 drivers/bluetooth/btusb.c | 4 drivers/char/hw_random/mtk-rng.c | 4 drivers/clk/clk-axi-clkgen.c | 2 drivers/clk/davinci/psc.c | 5 drivers/clk/sunxi-ng/ccu-sun8i-v3s.c | 3 drivers/clk/xilinx/xlnx_vcu.c | 4 drivers/cpufreq/cpufreq.c | 21 drivers/cpufreq/intel_pstate.c | 4 drivers/crypto/allwinner/sun8i-ce/sun8i-ce-cipher.c | 4 drivers/crypto/ccp/ccp-debugfs.c | 3 drivers/crypto/img-hash.c | 2 drivers/crypto/inside-secure/safexcel_hash.c | 8 drivers/crypto/intel/keembay/keembay-ocs-hcu-core.c | 8 drivers/crypto/intel/qat/qat_common/adf_transport_debug.c | 4 drivers/crypto/intel/qat/qat_common/qat_bl.c | 6 drivers/crypto/intel/qat/qat_common/qat_compression.c | 8 drivers/crypto/marvell/cesa/cipher.c | 4 drivers/crypto/marvell/cesa/hash.c | 5 drivers/devfreq/devfreq.c | 10 drivers/dma/mv_xor.c | 21 drivers/dma/nbpfaxi.c | 13 drivers/gpu/drm/amd/pm/powerplay/hwmgr/smu_helper.c | 2 drivers/gpu/drm/msm/disp/dpu1/catalog/dpu_5_1_sc8180x.h | 1 drivers/gpu/drm/rockchip/rockchip_drm_fb.c | 9 drivers/gpu/drm/vmwgfx/vmwgfx_shader.c | 2 drivers/i2c/busses/i2c-stm32f7.c | 199 ++---- drivers/infiniband/hw/erdma/erdma_verbs.c | 3 drivers/infiniband/hw/hns/hns_roce_hw_v2.c | 15 drivers/infiniband/hw/mlx5/dm.c | 2 drivers/interconnect/qcom/sc8180x.c | 6 drivers/interconnect/qcom/sc8280xp.c | 1 drivers/iommu/amd/iommu.c | 17 drivers/irqchip/Kconfig | 1 drivers/md/md.c | 9 drivers/media/v4l2-core/v4l2-ctrls-core.c | 8 drivers/mtd/ftl.c | 2 drivers/mtd/nand/raw/atmel/nand-controller.c | 2 drivers/mtd/nand/raw/atmel/pmecc.c | 6 drivers/mtd/nand/raw/rockchip-nand-controller.c | 15 drivers/net/can/kvaser_pciefd.c | 1 drivers/net/can/usb/kvaser_usb/kvaser_usb_core.c | 1 drivers/net/can/usb/peak_usb/pcan_usb_fd.c | 17 drivers/net/ethernet/emulex/benet/be_cmds.c | 2 drivers/net/ethernet/intel/fm10k/fm10k.h | 3 drivers/net/ethernet/intel/i40e/i40e.h | 2 drivers/net/ethernet/intel/ixgbe/ixgbe.h | 3 drivers/net/ethernet/mellanox/mlx5/core/en/port_buffer.c | 3 drivers/net/ethernet/mellanox/mlx5/core/en_accel/ipsec_rxtx.c | 4 drivers/net/ethernet/mellanox/mlx5/core/en_rx.c | 1 drivers/net/ethernet/mellanox/mlx5/core/lib/dm.c | 4 drivers/net/ethernet/mellanox/mlx5/core/main.c | 3 drivers/net/ipa/ipa_sysfs.c | 6 drivers/net/phy/mscc/mscc_ptp.c | 1 drivers/net/phy/mscc/mscc_ptp.h | 1 drivers/net/ppp/pptp.c | 18 drivers/net/usb/usbnet.c | 11 drivers/net/vrf.c | 2 drivers/net/wireless/ath/ath11k/hal.c | 4 drivers/net/wireless/ath/ath12k/wmi.c | 12 drivers/net/wireless/broadcom/brcm80211/brcmfmac/cfg80211.c | 8 drivers/net/wireless/intel/iwlwifi/dvm/main.c | 11 drivers/net/wireless/intel/iwlwifi/mvm/ops.c | 4 drivers/net/wireless/marvell/mwl8k.c | 4 drivers/net/wireless/purelifi/plfxlc/mac.c | 11 drivers/net/wireless/purelifi/plfxlc/mac.h | 2 drivers/net/wireless/purelifi/plfxlc/usb.c | 29 drivers/net/wireless/realtek/rtl818x/rtl8187/dev.c | 3 drivers/net/wireless/realtek/rtl8xxxu/rtl8xxxu_core.c | 2 drivers/net/wireless/realtek/rtw89/core.c | 5 drivers/pci/controller/pcie-rockchip-host.c | 2 drivers/pci/endpoint/functions/pci-epf-vntb.c | 4 drivers/pci/hotplug/pnv_php.c | 233 +++++++ drivers/pinctrl/pinmux.c | 20 drivers/pinctrl/sunxi/pinctrl-sunxi.c | 11 drivers/power/supply/cpcap-charger.c | 5 drivers/power/supply/max14577_charger.c | 4 drivers/powercap/dtpm_cpu.c | 2 drivers/pps/pps.c | 11 drivers/rtc/rtc-ds1307.c | 2 drivers/rtc/rtc-hym8563.c | 2 drivers/rtc/rtc-nct3018y.c | 2 drivers/rtc/rtc-pcf85063.c | 2 drivers/rtc/rtc-pcf8563.c | 2 drivers/rtc/rtc-rv3028.c | 2 drivers/scsi/elx/efct/efct_lio.c | 2 drivers/scsi/ibmvscsi_tgt/libsrp.c | 6 drivers/scsi/isci/request.c | 2 drivers/scsi/mpt3sas/mpt3sas_scsih.c | 3 drivers/scsi/mvsas/mv_sas.c | 4 drivers/scsi/scsi_transport_iscsi.c | 2 drivers/scsi/sd.c | 4 drivers/soc/qcom/pmic_glink.c | 9 drivers/soc/qcom/qmi_encdec.c | 46 + drivers/soc/tegra/cbb/tegra234-cbb.c | 2 drivers/soundwire/stream.c | 2 drivers/spi/spi-stm32.c | 8 drivers/staging/fbtft/fbtft-core.c | 1 drivers/staging/nvec/nvec_power.c | 2 drivers/ufs/core/ufshcd.c | 10 drivers/usb/early/xhci-dbc.c | 4 drivers/usb/gadget/composite.c | 5 drivers/usb/host/xhci-plat.c | 2 drivers/usb/misc/apple-mfi-fastcharge.c | 24 drivers/usb/serial/option.c | 2 drivers/vfio/group.c | 7 drivers/vfio/iommufd.c | 4 drivers/vfio/pci/pds/vfio_dev.c | 1 drivers/vfio/pci/vfio_pci_core.c | 2 drivers/vfio/vfio_main.c | 3 drivers/vhost/scsi.c | 4 drivers/video/fbdev/core/fbcon.c | 4 drivers/video/fbdev/imxfb.c | 9 drivers/watchdog/ziirave_wdt.c | 3 drivers/xen/gntdev-common.h | 4 drivers/xen/gntdev.c | 71 +- fs/f2fs/data.c | 7 fs/f2fs/extent_cache.c | 2 fs/f2fs/f2fs.h | 2 fs/f2fs/inode.c | 21 fs/f2fs/segment.h | 5 fs/gfs2/util.c | 31 - fs/hfs/inode.c | 1 fs/hfsplus/extents.c | 3 fs/hfsplus/inode.c | 1 fs/jfs/jfs_dmap.c | 4 fs/nfs/dir.c | 4 fs/nfs/export.c | 11 fs/nfs/flexfilelayout/flexfilelayout.c | 26 fs/nfs/flexfilelayout/flexfilelayoutdev.c | 6 fs/nfs/internal.h | 9 fs/nfs/nfs4proc.c | 10 fs/notify/fanotify/fanotify.c | 8 fs/ntfs3/file.c | 5 fs/ntfs3/frecord.c | 7 fs/ntfs3/namei.c | 10 fs/ntfs3/ntfs_fs.h | 3 fs/orangefs/orangefs-debugfs.c | 6 fs/proc/generic.c | 2 fs/proc/inode.c | 2 fs/proc/internal.h | 5 fs/smb/client/cifs_debug.c | 2 fs/smb/client/cifsacl.c | 2 fs/smb/client/cifsacl.h | 2 fs/smb/client/cifsencrypt.c | 2 fs/smb/client/cifsfs.c | 4 fs/smb/client/cifsglob.h | 2 fs/smb/client/cifspdu.h | 4 fs/smb/client/cifssmb.c | 6 fs/smb/client/file.c | 2 fs/smb/client/fs_context.h | 2 fs/smb/client/misc.c | 2 fs/smb/client/netmisc.c | 2 fs/smb/client/readdir.c | 4 fs/smb/client/smb2ops.c | 4 fs/smb/client/smb2pdu.c | 4 fs/smb/client/smb2transport.c | 2 fs/smb/client/smbdirect.c | 293 +++++---- fs/smb/client/smbdirect.h | 14 fs/smb/common/smbdirect/smbdirect_socket.h | 41 + fs/smb/server/connection.h | 1 fs/smb/server/smb2pdu.c | 22 fs/smb/server/smb_common.c | 2 fs/smb/server/transport_rdma.c | 97 +-- fs/smb/server/transport_tcp.c | 17 fs/smb/server/vfs.c | 3 include/linux/audit.h | 9 include/linux/fs_context.h | 2 include/linux/moduleparam.h | 5 include/linux/pps_kernel.h | 1 include/linux/proc_fs.h | 1 include/linux/psi_types.h | 6 include/linux/sched.h | 2 include/linux/skbuff.h | 23 include/linux/usb/usbnet.h | 1 include/linux/wait_bit.h | 60 ++ include/net/bluetooth/hci.h | 1 include/net/dst.h | 4 include/net/lwtunnel.h | 8 include/net/tc_act/tc_ctinfo.h | 6 include/net/udp.h | 24 kernel/audit.h | 2 kernel/auditsc.c | 2 kernel/bpf/preload/Kconfig | 1 kernel/events/core.c | 20 kernel/freezer.c | 51 - kernel/kcsan/kcsan_test.c | 2 kernel/module/main.c | 6 kernel/sched/core.c | 31 - kernel/sched/psi.c | 123 ++-- kernel/trace/preemptirq_delay_test.c | 13 kernel/ucount.c | 2 mm/hmm.c | 2 net/bluetooth/hci_event.c | 8 net/caif/cfctrl.c | 294 ++++------ net/core/dst.c | 4 net/core/filter.c | 3 net/core/netpoll.c | 7 net/core/skmsg.c | 7 net/ipv4/route.c | 4 net/ipv4/tcp_input.c | 4 net/ipv6/ip6_fib.c | 24 net/ipv6/ip6_offload.c | 4 net/ipv6/ip6mr.c | 3 net/ipv6/route.c | 56 + net/mac80211/cfg.c | 2 net/mac80211/tdls.c | 2 net/mac80211/tx.c | 14 net/netfilter/nf_bpf_link.c | 5 net/netfilter/nf_tables_api.c | 29 net/netfilter/xt_nfacct.c | 4 net/packet/af_packet.c | 12 net/sched/act_ctinfo.c | 19 net/sched/sch_mqprio.c | 2 net/sched/sch_netem.c | 40 + net/sched/sch_taprio.c | 21 net/sunrpc/svcsock.c | 43 + net/sunrpc/xprtsock.c | 40 + net/tls/tls_sw.c | 13 net/vmw_vsock/af_vsock.c | 3 samples/mei/mei-amt-version.c | 2 scripts/kconfig/qconf.cc | 2 security/apparmor/include/match.h | 8 security/apparmor/match.c | 23 sound/pci/hda/patch_ca0132.c | 5 sound/soc/amd/yc/acp6x-mach.c | 21 sound/soc/fsl/fsl_xcvr.c | 20 sound/soc/intel/boards/Kconfig | 2 sound/soc/mediatek/common/mtk-afe-platform-driver.c | 4 sound/soc/mediatek/common/mtk-base-afe.h | 1 sound/soc/mediatek/mt8173/mt8173-afe-pcm.c | 7 sound/soc/mediatek/mt8183/mt8183-afe-pcm.c | 7 sound/soc/mediatek/mt8186/mt8186-afe-pcm.c | 7 sound/soc/mediatek/mt8192/mt8192-afe-pcm.c | 7 sound/soc/soc-dai.c | 16 sound/soc/soc-ops.c | 26 sound/usb/mixer_scarlett2.c | 7 sound/x86/intel_hdmi_audio.c | 2 tools/bpf/bpftool/net.c | 15 tools/lib/subcmd/help.c | 12 tools/perf/.gitignore | 2 tools/perf/builtin-sched.c | 41 + tools/perf/tests/bp_account.c | 1 tools/perf/util/evsel.c | 11 tools/perf/util/evsel.h | 2 tools/perf/util/symbol.c | 1 tools/testing/selftests/arm64/fp/sve-ptrace.c | 2 tools/testing/selftests/bpf/prog_tests/sockmap_listen.c | 2 tools/testing/selftests/ftrace/test.d/event/subsystem-enable.tc | 28 tools/testing/selftests/net/rtnetlink.sh | 6 tools/testing/selftests/perf_events/.gitignore | 1 tools/testing/selftests/perf_events/Makefile | 2 tools/testing/selftests/perf_events/mmap.c | 236 ++++++++ tools/testing/selftests/syscall_user_dispatch/sud_test.c | 50 - tools/verification/rv/src/in_kernel.c | 4 287 files changed, 2609 insertions(+), 1269 deletions(-)
Abdun Nihaal (1):
staging: fbtft: fix potential memory leak in fbtft_framebuffer_alloc()
Abinash Singh (1):
f2fs: fix KMSAN uninit-value in extent_info usage
Adam Ford (2):
arm64: dts: imx8mm-beacon: Fix HS400 USDHC clock speed
arm64: dts: imx8mn-beacon: Fix HS400 USDHC clock speed
Adam Queler (1):
ASoC: amd: yc: Add DMI entries to support HP 15-fb1xxx
Alain Volmat (3):
i2c: stm32f7: use dev_err_probe upon calls of devm_request_irq
i2c: stm32f7: perform most of irq job in threaded handler
i2c: stm32f7: simplify status messages in case of errors
Albin Törnqvist (1):
arm: dts: ti: omap: Fixup pinheader typo
Alex Williamson (1):
vfio/pci: Separate SR-IOV VF dev_set
Alexander Wetzel (2):
wifi: mac80211: Do not schedule stopped TXQs
wifi: mac80211: Don't call fq_flow_idx() for management frames
Alexander Wilhelm (1):
soc: qcom: QMI encoding/decoding for big endian
Alexandru Andries (1):
ASoC: amd: yc: add DMI quirk for ASUS M6501RM
Alexei Lazar (1):
net/mlx5e: Clear Read-Only port buffer size in PBMC before update
Alok Tiwari (1):
staging: nvec: Fix incorrect null termination of battery manufacturer
Amir Goldstein (1):
fanotify: sanitize handle_type values when reporting fid
Ammar Faizi (1):
net: usbnet: Fix the wrong netif_carrier_on() call
Andi Shyti (1):
i2c: stm32f7: Use devm_clk_get_enabled()
Andreas Gruenbacher (1):
gfs2: No more self recovery
André Apitzsch (1):
arm64: dts: qcom: msm8976: Make blsp_dma controlled-remotely
Andy Shevchenko (1):
mm/hmm: move pmd_to_hmm_pfn_flags() to the respective #ifdeffery
Andy Yan (1):
drm/rockchip: cleanup fb when drm_gem_fb_afbc_init failed
Annette Kobou (1):
ARM: dts: imx6ul-kontron-bl-common: Fix RTS polarity for RS485 interface
Arnd Bergmann (7):
ethernet: intel: fix building with large NR_CPUS
ASoC: Intel: fix SND_SOC_SOF dependencies
ASoC: ops: dynamically allocate struct snd_ctl_elem_value
caif: reduce stack size, again
crypto: arm/aes-neonbs - work around gcc-15 warning
kernel: trace: preemptirq_delay_test: use offstack cpu mask
irqchip: Build IMX_MU_MSI only on ARM
Balamanikandan Gunasundar (1):
mtd: rawnand: atmel: set pmecc data setup time
Bard Liao (1):
soundwire: stream: restore params when prepare ports fail
Ben Hutchings (1):
sh: Do not use hyphen in exported variable name
Benjamin Coddington (1):
NFS: Fixup allocation flags for nfsiod's __GFP_NORETRY
Brahmajit Das (1):
samples: mei: Fix building on musl libc
Brett Creeley (1):
vfio/pds: Fix missing detach_ioas op
Brian Masney (6):
rtc: ds1307: fix incorrect maximum clock rate handling
rtc: hym8563: fix incorrect maximum clock rate handling
rtc: nct3018y: fix incorrect maximum clock rate handling
rtc: pcf85063: fix incorrect maximum clock rate handling
rtc: pcf8563: fix incorrect maximum clock rate handling
rtc: rv3028: fix incorrect maximum clock rate handling
Budimir Markovic (1):
vsock: Do not allow binding to VMADDR_PORT_ANY
Caleb Sander Mateos (1):
ublk: use vmalloc for ublk_device's __queues
Chao Yu (7):
f2fs: doc: fix wrong quota mount option description
f2fs: fix to avoid UAF in f2fs_sync_inode_meta()
f2fs: fix to avoid panic in f2fs_evict_inode
f2fs: fix to avoid out-of-boundary access in devs.path
f2fs: fix to update upper_p in __get_secs_required() correctly
f2fs: fix to calculate dirty data during has_not_enough_free_secs()
f2fs: fix to trigger foreground gc during f2fs_map_blocks() in lfs mode
Charalampos Mitrodimas (1):
usb: misc: apple-mfi-fastcharge: Make power supply names unique
Charles Han (2):
power: supply: cpcap-charger: Fix null check for power_supply_get_by_name
power: supply: max14577: Handle NULL pdata when CONFIG_OF is not set
Chen Pei (1):
perf tools: Remove libtraceevent in .gitignore
Chen Ridong (1):
sched,freezer: Remove unnecessary warning in __thaw_task
Chen-Yu Tsai (1):
ASoC: mediatek: use reserved memory or enable buffer pre-allocation
Chenyuan Yang (1):
fbdev: imxfb: Check fb_add_videomode to prevent null-ptr-deref
Chris Down (1):
Bluetooth: hci_event: Mask data status from LE ext adv reports
Christoph Paasch (1):
net/mlx5: Correctly set gso_segs when LRO is used
Clément Le Goffic (2):
spi: stm32: Check for cfg availability in stm32_spi_probe
i2c: stm32f7: unmap DMA mapped buffer
Dan Carpenter (2):
watchdog: ziirave_wdt: check record length in ziirave_firm_verify() fs/orangefs: Allow 2 more characters in do_c_string()
Daniil Dulov (1):
wifi: rtl818x: Kill URBs before clearing tx status queue
Dave Hansen (1):
x86/fpu: Delay instruction pointer fixup until after warning
Denis OSTERLAND-HEIM (1):
pps: fix poll support
Dmitry Baryshkov (2):
interconnect: qcom: sc8280xp: specify num_links for qnm_a1noc_cfg
interconnect: qcom: sc8180x: specify num_nodesDmitry Vyukov (1):
selftests: Fix errno checking in syscall_user_dispatch test
Edward Adam Davis (1):
fs/ntfs3: cancle set bad inode after removing name fails
Elliot Berman (4):
sched/core: Remove ifdeffery for saved_state freezer,sched: Use saved_state to reduce some spurious wakeups freezer,sched: Do not restore saved_state of a thawed task freezer,sched: Clean saved_state when restoring it during thaw
Eric Dumazet (10):
net: dst: annotate data-races around dst->input
net: dst: annotate data-races around dst->output
net_sched: act_ctinfo: use atomic64_t for three counters
tcp: call tcp_measure_rcv_mss() for ooo packets
ipv6: prevent infinite loop in rt6_nlmsg_size()
ipv6: fix possible infinite loop in fib6_info_uses_dev()
ipv6: annotate data-races around rt->fib6_nsiblings
pptp: ensure minimal skb length in pptp_xmit()
ipv6: reject malicious packets in ipv6_gso_segment()
pptp: fix pptp_xmit() error path
Fedor Pchelkin (2):
drm/amd/pm/powerplay/hwmgr/smu_helper: fix order of mask and value
netfilter: nf_tables: adjust lockdep assertions handling
Finn Thain (1):
m68k: Don't unregister boot console needlessly
Florian Westphal (1):
netfilter: xt_nfacct: don't assume acct name is null-terminated
Fushuai Wang (1):
selftests/bpf: fix signedness bug in redir_partial()
Gabriele Monaco (1):
tools/rv: Do not skip idle in trace
Geoffrey D. Bennett (1):
ALSA: scarlett2: Add retry on -EPROTO from scarlett2_usb_tx()
Giovanni Cabiddu (2):
crypto: qat - fix DMA direction for compression on GEN2 devices
crypto: qat - fix seq_file position update in adf_ring_next()
Gokul Sivakumar (1):
wifi: brcmfmac: fix P2P discovery failure in P2P peer due to missing P2P IE
Greg Kroah-Hartman (2):
Revert "vmci: Prevent the dispatching of uninitialized payloads" Linux 6.6.102
Hans Zhang (1):
PCI: rockchip-host: Fix "Unexpected Completion" log message
Heming Zhao (1):
md/md-cluster: handle REMOVE message earlier
Henry Martin (1):
clk: davinci: Add NULL check in davinci_lpsc_clk_register()
Herbert Xu (1):
crypto: marvell/cesa - Fix engine load inaccuracy
Horatiu Vultur (1):
phy: mscc: Fix parsing of unicast frames
Ian Forbes (1):
drm/vmwgfx: Fix Host-Backed userspace on Guest-Backed kernel
Ian Rogers (1):
perf dso: Add missed dso__put to dso__load_kcore
Ivan Stepchenko (1):
mtd: fix possible integer overflow in erase_xfer()
Jacob Pan (2):
vfio: Fix unbalanced vfio_df_close call in no-iommu mode
vfio: Prevent open_count decrement to negative
Jakub Kicinski (2):
netpoll: prevent hanging NAPI when netcons gets enabled
netlink: specs: ethtool: fix module EEPROM input/output arguments
James Cowgill (1):
media: v4l2-ctrls: Fix H264 SEPARATE_COLOUR_PLANE check
Jan Prusakowski (1):
f2fs: vm_unmap_ram() may be called from an invalid context
Jason Gunthorpe (1):
iommu/amd: Fix geometry.aperture_end for V2 tables
Jerome Brunet (1):
PCI: endpoint: pci-epf-vntb: Return -ENOENT if pci_epc_get_next_free_bar() fails
Jianbo Liu (1):
net/mlx5e: Remove skb secpath if xfrm state is not found
Jiasheng Jiang (1):
iwlwifi: Add missing check for alloc_ordered_workqueue
Jiaxun Yang (1):
MIPS: mm: tlb-r4k: Uniquify TLB entries on init
Jiayuan Chen (2):
bpf, sockmap: Fix psock incorrectly pointing to sk
bpf, ktls: Fix data corruption when using bpf_msg_pop_data() in ktls
Jimmy Assarsson (2):
can: kvaser_pciefd: Store device channel index
can: kvaser_usb: Assign netdev.dev_port based on device channel index
Johan Hovold (1):
soc: qcom: pmic_glink: fix OF node leak
Johan Korsnes (1):
arch: powerpc: defconfig: Drop obsolete CONFIG_NET_CLS_TCINDEX
John Ernberg (1):
net: usbnet: Avoid potential RCU stall on LINK_CHANGE event
Juergen Gross (1):
xen/gntdev: remove struct gntdev_copy_batch from stack
Junxian Huang (1):
RDMA/hns: Fix -Wframe-larger-than issue
Kees Cook (1):
wifi: mac80211: Write cnt before copying in ieee80211_copy_rnr_beacon()
Konrad Dybcio (3):
arm64: dts: qcom: sdm845: Expand IMEM region
arm64: dts: qcom: sc7180: Expand IMEM region drm/msm/dpu: Fill in min_prefill_lines for SC8180X
Konstantin Komarov (1):
Revert "fs/ntfs3: Replace inode_trylock with inode_lock"
Krzysztof Kozlowski (1):
ARM: dts: vfxxx: Correctly use two tuples for timer address
Kuninori Morimoto (1):
ASoC: soc-dai: tidyup return value of snd_soc_xlate_tdm_slot_mask()
Kuniyuki Iwashima (1):
bpf: Disable migration in nf_hook_run_bpf().
Lane Odenbach (1):
ASoC: amd: yc: Add DMI quirk for HP Laptop 17 cp-2033dx
Leo Yan (1):
perf tests bp_account: Fix leaked file descriptor
Li Lingfeng (1):
scsi: Revert "scsi: iscsi: Fix HW conn removal use after free"
Lifeng Zheng (3):
PM / devfreq: Check governor before using governor->name
cpufreq: Initialize cpufreq-based frequency-invariance later
cpufreq: Init policy->rwsem before it may be possibly usedLizhi Xu (1):
vmci: Prevent the dispatching of uninitialized payloads
Lorenzo Stoakes (1):
selftests/perf_events: Add a mmap() correctness test
Luca Weiss (1):
net: ipa: add IPA v5.1 and v5.5 to ipa_version_string()
Lucas De Marchi (1):
usb: early: xhci-dbc: Fix early_ioremap leak
Maher Azzouzi (1):
net/sched: mqprio: fix stack out-of-bounds write in tc entry parsing
Manivannan Sadhasivam (1):
PCI: endpoint: pci-epf-vntb: Fix the incorrect usage of __iomem attribute
Marco Elver (1):
kcsan: test: Initialize dummy variable
Mark Brown (1):
kselftest/arm64: Fix check for setting new VLs in sve-ptrace
Martin Kaistra (1):
wifi: rtl8xxxu: Fix RX skb size for aggregation disabled
Masahiro Yamada (1):
kconfig: qconf: fix ConfigList::updateListAllforAll()
Mengbiao Xiong (1):
crypto: ccp - Fix crash when rebind ccp device for ccp.ko
Michal Schmidt (1):
benet: fix BUG when creating VFs
Mike Christie (1):
vhost-scsi: Fix log flooding with target does not exist errors
Moon Hee Lee (1):
wifi: mac80211: reject TDLS operations when station is not associated
Mukesh Ojha (1):
pinmux: fix race causing mux_owner NULL with active mux_usecount
Murad Masimov (1):
wifi: plfxlc: Fix error handling in usb driver probe
Namhyung Kim (4):
perf tools: Fix use-after-free in help_unknown_cmd() perf sched: Free thread->priv using priv_destructor perf sched: Fix memory leaks for evsel->priv in timehist perf sched: Fix memory leaks in 'perf sched latency'
Namjae Jeon (4):
ksmbd: fix null pointer dereference error in generate_encryptionkey
ksmbd: fix Preauh_HashValue race condition
ksmbd: fix corrupted mtime and ctime in smb2_open
ksmbd: limit repeated connections from clients with the same IP
NeilBrown (1):
sched: Add test_and_clear_wake_up_bit() and atomic_dec_and_wake_up()
Nuno Sá (1):
clk: clk-axi-clkgen: fix fpfd_max frequency for zynq
Olga Kornievskaia (3):
NFSv4.2: another fix for listxattr
sunrpc: fix client side handling of tls alerts
sunrpc: fix handling of server side tls alerts
Ovidiu Panait (2):
crypto: sun8i-ce - fix nents passed to dma_unmap_sg()
hwrng: mtk - handle devm_pm_runtime_enable errors
Paul Chaignon (2):
bpf: Check flow_dissector ctx accesses are aligned
bpf: Check netfilter ctx accesses are aligned
Paul Kocialkowski (1):
clk: sunxi-ng: v3s: Fix de clock definition
Peter Zijlstra (2):
sched/psi: Optimize psi_group_change() cpu_clock() usage sched/psi: Fix psi_seq initialization
Petr Machata (1):
net: ipv6: ip6mr: Fix in/out netdev to pass to the FORWARD chain
Petr Pavlu (1):
module: Restore the moduleparam prefix length check
Phil Sutter (1):
netfilter: nf_tables: Drop dead code from fill_*_info routines
Quang Le (1):
net/packet: fix a race in packet_set_ring() and packet_notifier()
Rafael J. Wysocki (1):
cpufreq: intel_pstate: Always use HWP_DESIRED_PERF in passive mode
Remi Pommarel (2):
wifi: mac80211: Check 802.11 encaps offloading in ieee80211_tx_h_select_key() Reapply "wifi: mac80211: Update skb's control block key in ieee80211_tx_dequeue()"
Richard Guy Briggs (1):
audit,module: restore audit logging in load failure case
Rohit Visavalia (1):
clk: xilinx: vcu: unregister pll_post only if registered correctly
RubenKelevra (1):
fs_context: fix parameter name in infofc() macro
Ryan Lee (2):
apparmor: ensure WB_HISTORY_SIZE value is a power of 2
apparmor: fix loop detection used in conflicting attachment resolution
Salomon Dushimirimana (1):
scsi: sd: Make sd shutdown issue START STOP UNIT appropriately
Sergey Senozhatsky (1):
wifi: ath11k: clear initialized flag for deinit-ed srng lists
Seunghui Lee (1):
scsi: ufs: core: Use link recovery when h8 exit fails during runtime resume
Seungjin Bae (1):
usb: host: xhci-plat: fix incorrect type for of_match variable in xhci_plat_probe()
Shen Lichuan (2):
smb: client: Use min() macro
smb: client: Correct typos in multiple comments across various files
Shengjiu Wang (1):
ASoC: fsl_xcvr: get channel status data when PHY is not exists
Shixiong Ou (1):
fbcon: Fix outdated registered_fb reference in comment
Sivan Zohar-Kotzer (1):
powercap: dtpm_cpu: Fix NULL pointer dereference in get_pd_power_uw()
Slark Xiao (1):
USB: serial: option: add Foxconn T99W709
Stanislav Fomichev (1):
vrf: Drop existing dst reference in vrf_ip6_input_dst
Stav Aviram (1):
net/mlx5: Check device memory pointer before usage
Stefan Metzmacher (9):
smb: server: remove separate empty_recvmsg_queue
smb: server: make sure we call ib_dma_unmap_single() only if we called ib_dma_map_single already
smb: server: let recv_done() consistently call put_recvmsg/smb_direct_disconnect_rdma_connection
smb: server: let recv_done() avoid touching data_transfer after cleanup/move
smb: smbdirect: add smbdirect_socket.h
smb: client: make use of common smbdirect_socket
smb: client: make sure we call ib_dma_unmap_single() only if we called ib_dma_map_single already
smb: client: let recv_done() cleanup before notifying the callers.
smb: client: return an error if rdma_connect does not return within 5 seconds
Stephane Grosjean (1):
can: peak_usb: fix USB FD devices potential malfunction
Steven Rostedt (1):
selftests/tracing: Fix false failure of subsystem event test
Suman Kumar Chakraborty (1):
crypto: qat - use unmanaged allocation for dc_data
Sumit Gupta (1):
soc/tegra: cbb: Clear ERR_FORCE register with ERR_STATUS
Takamitsu Iwai (1):
net/sched: taprio: enforce minimum value for picos_per_byte
Takashi Iwai (1):
ALSA: hda/ca0132: Fix missing error handling in ca0132_alt_select_out()
Tamizh Chelvam Raja (1):
wifi: ath12k: fix endianness handling while accessing wmi service bit
Tao Xue (1):
usb: gadget : fix use-after-free in composite_dev_cleanup()
Thomas Fourier (13):
mwl8k: Add missing check after DMA map
Fix dma_unmap_sg() nents value
crypto: inside-secure - Fix dma_unmap_sg() nents value
scsi: ibmvscsi_tgt: Fix dma_unmap_sg() nents value
scsi: elx: efct: Fix dma_unmap_sg() nents value
scsi: mvsas: Fix dma_unmap_sg() nents value
scsi: isci: Fix dma_unmap_sg() nents value
crypto: keembay - Fix dma_unmap_sg() nents value
crypto: img-hash - Fix dma_unmap_sg() nents value
dmaengine: mv_xor: Fix missing check after DMA map and missing unmap
dmaengine: nbpfaxi: Add missing check after DMA map
mtd: rawnand: atmel: Fix dma_mapping_error() address
mtd: rawnand: rockchip: Add missing check after DMA map
Thomas Gleixner (3):
perf/core: Don't leak AUX buffer refcount on allocation failure perf/core: Exit early on perf_mmap() fail
perf/core: Prevent VMA split of buffer mappings
Thomas Weißschuh (1):
bpf/preload: Don't select USERMODE_DRIVER
Thorsten Blum (2):
smb: server: Fix extension string in ksmbd_extract_shortname()
ALSA: intel_hdmi: Fix off-by-one error in __hdmi_lpe_audio_probe()
Tigran Mkrtchyan (1):
pNFS/flexfiles: don't attempt pnfs on fatal DS errors
Timothy Pearson (5):
PCI: pnv_php: Clean up allocated IRQs on unplug
PCI: pnv_php: Work around switches with broken presence detection powerpc/eeh: Export eeh_unfreeze_pe()
powerpc/eeh: Make EEH driver device hotplug safe
PCI: pnv_php: Fix surprise plug detection and recovery
Tiwei Bie (1):
um: rtc: Avoid shadowing err in uml_rtc_start()
Tom Lendacky (1):
x86/sev: Evict cache lines during SNP memory validation
Tomas Henzl (1):
scsi: mpt3sas: Fix a fw_event memory leak
Trond Myklebust (2):
NFS: Fix wakeup of __nfs_lookup_revalidate() in unblock_revalidate()
NFS: Fix filehandle bounds checking in nfs_fh_to_dentry()
Uros Bizjak (1):
ucount: fix atomic_long_inc_below() argument type
Wang Liang (1):
net: drop UFO packets in udp_rcv_segment()
William Liu (1):
net/sched: Restrict conditions for adding duplicating netems to qdisc tree
Xiu Jianfeng (1):
wifi: iwlwifi: Fix memory leak in iwl_mvm_init()
Xiumei Mu (1):
selftests: rtnetlink.sh: remove esp4_offload after test
Yangtao Li (3):
hfsplus: make splice write available again
hfs: make splice write available again
hfsplus: remove mutex_lock check in hfsplus_free_extents
Yuan Chen (2):
bpftool: Fix memory leak in dump_xx_nlmsg on realloc failure
pinctrl: sunxi: Fix memory leak on krealloc failure
Zenm Chen (1):
Bluetooth: btusb: Add USB ID 3625:010b for TP-LINK Archer TX10UB Nano
Zheng Yu (1):
jfs: fix metapage reference count leak in dbAllocCtl
Zong-Zhe Yang (1):
wifi: rtw89: avoid NULL dereference when RX problematic packet on unsupported 6 GHz band
wangzijie (1):
proc: use the same treatment to check proc_lseek as ones for proc_read_iter et.al
xin.guo (1):
tcp: fix tcp_ofo_queue() to avoid including too much DUP SACK range
Greg Kroah-Hartman
maintainerDocumentation/filesystems/f2fs.rst +3 -3
@@ -233,9 +233,9 @@ usrjquota=<file> Appoint specified file and type during mount, so that quota grpjquota=<file> information can be properly updated during recovery flow, prjjquota=<file> <quota file>: must be in root directory; jqfmt=<quota type> <quota type>: [vfsold,vfsv0,vfsv1]. -offusrjquota Turn off user journalled quota. -offgrpjquota Turn off group journalled quota. -offprjjquota Turn off project journalled quota. +usrjquota= Turn off user journalled quota. +grpjquota= Turn off group journalled quota. +prjjquota= Turn off project journalled quota. quota Enable plain user disk quota accounting. noquota Disable all plain disk quota option. alloc_mode=%s Adjust block allocation policy, which supports "reuse"
Documentation/netlink/specs/ethtool.yaml +3 -3
@@ -1489,9 +1489,6 @@ operations: do: &module-eeprom-get-op request: - attributes: - - header - reply: attributes: - header - offset
@@ -1499,6 +1496,9 @@ operations: - page - bank - i2c-address + reply: + attributes: + - header - data dump: *module-eeprom-get-op -
Makefile +1 -1
@@ -1,7 +1,7 @@ # SPDX-License-Identifier: GPL-2.0 VERSION = 6 PATCHLEVEL = 6 -SUBLEVEL = 101 +SUBLEVEL = 102 EXTRAVERSION = NAME = Pinguïn Aangedreven
arch/arm/boot/dts/nxp/imx/imx6ul-kontron-bl-common.dtsi +0 -1
@@ -169,7 +169,6 @@ &uart2 { pinctrl-0 = <&pinctrl_uart2>; linux,rs485-enabled-at-boot-time; rs485-rx-during-tx; - rs485-rts-active-low; uart-has-rtscts; status = "okay"; };
arch/arm/boot/dts/nxp/vf/vfxxx.dtsi +1 -1
@@ -612,7 +612,7 @@ usbmisc1: usb@400b4800 { ftm: ftm@400b8000 { compatible = "fsl,ftm-timer"; - reg = <0x400b8000 0x1000 0x400b9000 0x1000>; + reg = <0x400b8000 0x1000>, <0x400b9000 0x1000>; interrupts = <44 IRQ_TYPE_LEVEL_HIGH>; clock-names = "ftm-evt", "ftm-src", "ftm-evt-counter-en", "ftm-src-counter-en";
arch/arm/boot/dts/ti/omap/am335x-boneblack.dts +1 -1
@@ -35,7 +35,7 @@ &gpio0 { "P9_18 [spi0_d1]", "P9_17 [spi0_cs0]", "[mmc0_cd]", - "P8_42A [ecappwm0]", + "P9_42A [ecappwm0]", "P8_35 [lcd d12]", "P8_33 [lcd d13]", "P8_31 [lcd d14]",
arch/arm/crypto/aes-neonbs-glue.c +1 -1
@@ -245,7 +245,7 @@ static int ctr_encrypt(struct skcipher_request *req)while (walk.nbytes >0 ) {const u8 *src = walk.src.virt.addr;u8 *dst = walk.dst.virt.addr; -int bytes = walk.nbytes; +unsigned int bytes = walk.nbytes;if (unlikely (bytes <AES_BLOCK_SIZE )) src = dst = memcpy(buf + sizeof(buf) - bytes,
arch/arm64/boot/dts/freescale/imx8mm-beacon-som.dtsi +2 -0
@@ -284,6 +284,8 @@ &usdhc3 { pinctrl-0 = <&pinctrl_usdhc3>; pinctrl-1 = <&pinctrl_usdhc3_100mhz>; pinctrl-2 = <&pinctrl_usdhc3_200mhz>; + assigned-clocks = <&clk IMX8MM_CLK_USDHC3>; + assigned-clock-rates = <400000000>; bus-width = <8>; non-removable; status = "okay";
arch/arm64/boot/dts/freescale/imx8mn-beacon-som.dtsi +2 -0
@@ -295,6 +295,8 @@ &usdhc3 { pinctrl-0 = <&pinctrl_usdhc3>; pinctrl-1 = <&pinctrl_usdhc3_100mhz>; pinctrl-2 = <&pinctrl_usdhc3_200mhz>; + assigned-clocks = <&clk IMX8MN_CLK_USDHC3>; + assigned-clock-rates = <400000000>; bus-width = <8>; non-removable; status = "okay";
arch/arm64/boot/dts/qcom/msm8976.dtsi +2 -0
@@ -862,6 +862,7 @@ blsp1_dma: dma-controller@7884000 { clock-names = "bam_clk"; #dma-cells = <1>; qcom,ee = <0>; + qcom,controlled-remotely; }; blsp1_uart1: serial@78af000 {
@@ -982,6 +983,7 @@ blsp2_dma: dma-controller@7ac4000 { clock-names = "bam_clk"; #dma-cells = <1>; qcom,ee = <0>; + qcom,controlled-remotely; }; blsp2_uart2: serial@7af0000 {
arch/arm64/boot/dts/qcom/sc7180.dtsi +5 -5
@@ -3435,18 +3435,18 @@ spmi_bus: spmi@c440000 { #interrupt-cells = <4>; }; - sram@146aa000 { + sram@14680000 { compatible = "qcom,sc7180-imem", "syscon", "simple-mfd"; - reg = <0 0x146aa000 0 0x2000>; + reg = <0 0x14680000 0 0x2e000>; #address-cells = <1>; #size-cells = <1>; - ranges = <0 0 0x146aa000 0x2000>; + ranges = <0 0 0x14680000 0x2e000>; - pil-reloc@94c { + pil-reloc@2a94c { compatible = "qcom,pil-reloc-info"; - reg = <0x94c 0xc8>; + reg = <0x2a94c 0xc8>; }; };
arch/arm64/boot/dts/qcom/sdm845.dtsi +5 -5
@@ -4989,18 +4989,18 @@ spmi_bus: spmi@c440000 { #interrupt-cells = <4>; }; - sram@146bf000 { + sram@14680000 { compatible = "qcom,sdm845-imem", "syscon", "simple-mfd"; - reg = <0 0x146bf000 0 0x1000>; + reg = <0 0x14680000 0 0x40000>; #address-cells = <1>; #size-cells = <1>; - ranges = <0 0 0x146bf000 0x1000>; + ranges = <0 0 0x14680000 0x40000>; - pil-reloc@94c { + pil-reloc@3f94c { compatible = "qcom,pil-reloc-info"; - reg = <0x94c 0xc8>; + reg = <0x3f94c 0xc8>; }; };
arch/m68k/Kconfig.debug +1 -1
@@ -10,7 +10,7 @@ config BOOTPARAM_STRING config EARLY_PRINTK bool "Early printk" - depends on !(SUN3 || M68000 || COLDFIRE) + depends on MMU_MOTOROLA help Write kernel log output directly to a serial port. Where implemented, output goes to the framebuffer as well.
arch/m68k/kernel/early_printk.c +14 -28
65 lines not on this page · raw message
arch/m68k/kernel/head.S +4 -4
@@ -3267,8 +3267,8 @@ func_return putn * turns around and calls the internal routines. This routine * is used by the boot console. * - * The calling parameters are: - * void debug_cons_nputs(const char *str, unsigned length) + * The function signature is - + * void debug_cons_nputs(struct console *c, const char *s, unsigned int n) * * This routine does NOT understand variable arguments only * simple strings!
@@ -3277,8 +3277,8 @@ ENTRY(debug_cons_nputs) moveml %d0/%d1/%a0,%sp@- movew %sr,%sp@- ori #0x0700,%sr - movel %sp@(18),%a0 /* fetch parameter */ - movel %sp@(22),%d1 /* fetch parameter */ + movel %sp@(22),%a0 /* char *s */ + movel %sp@(26),%d1 /* unsigned int n */ jra 2f 1: #ifdef CONSOLE_DEBUG
arch/mips/mm/tlb-r4k.c +55 -1
68 lines not on this page · raw message
arch/powerpc/configs/ppc6xx_defconfig +0 -1
@@ -254,7 +254,6 @@ CONFIG_NET_SCH_DSMARK=m CONFIG_NET_SCH_NETEM=m CONFIG_NET_SCH_INGRESS=m CONFIG_NET_CLS_BASIC=m -CONFIG_NET_CLS_TCINDEX=m CONFIG_NET_CLS_ROUTE4=m CONFIG_NET_CLS_FW=m CONFIG_NET_CLS_U32=m
arch/powerpc/kernel/eeh.c +1 -0
@@ -1130,6 +1130,7 @@ int eeh_unfreeze_pe(struct eeh_pe *pe)return ret; } +EXPORT_SYMBOL_GPL (eeh_unfreeze_pe);static struct pci_device_id eeh_reset_ids[] = {
arch/powerpc/kernel/eeh_driver.c +32 -16
171 lines not on this page · raw message
arch/powerpc/kernel/eeh_pe.c +6 -4
@@ -671,10 +671,12 @@ static void eeh_bridge_check_link(struct eeh_dev *edev) eeh_ops->write_config (edev, cap +PCI_EXP_LNKCTL ,2 , val);/* Check link */ -if (!edev->pdev->link_active_reporting) { -eeh_edev_dbg (edev,"No link reporting capability\n" ); -msleep (1000 ); -return ; +if (edev->pdev) { +if (!edev->pdev->link_active_reporting) { +eeh_edev_dbg (edev,"No link reporting capability\n" ); +msleep (1000 ); +return ; + } }/* Wait the link is up until timeout (5s) */
arch/powerpc/kernel/pci-hotplug.c +3 -0
@@ -111,6 +111,9 @@ void pci_hp_add_devices(struct pci_bus *bus)struct pci_controller *phb;struct device_node *dn =pci_bus_to_OF_node (bus); +if (!dn) +return ; + phb =pci_bus_to_host (bus); mode =PCI_PROBE_NORMAL ;
arch/sh/Makefile +5 -5
@@ -103,16 +103,16 @@ UTS_MACHINE := sh LDFLAGS_vmlinux += -e _stext ifdef CONFIG_CPU_LITTLE_ENDIAN -ld-bfd := elf32-sh-linux -LDFLAGS_vmlinux += --defsym jiffies=jiffies_64 --oformat $(ld-bfd) +ld_bfd := elf32-sh-linux +LDFLAGS_vmlinux += --defsym jiffies=jiffies_64 --oformat $(ld_bfd) KBUILD_LDFLAGS += -EL else -ld-bfd := elf32-shbig-linux -LDFLAGS_vmlinux += --defsym jiffies=jiffies_64+4 --oformat $(ld-bfd) +ld_bfd := elf32-shbig-linux +LDFLAGS_vmlinux += --defsym jiffies=jiffies_64+4 --oformat $(ld_bfd) KBUILD_LDFLAGS += -EB endif -export ld-bfd +export ld_bfd # Mach groups machdir-$(CONFIG_SOLUTION_ENGINE) += mach-se
arch/sh/boot/compressed/Makefile +2 -2
@@ -29,7 +29,7 @@ endif ccflags-remove-$(CONFIG_MCOUNT) += -pg -LDFLAGS_vmlinux := --oformat $(ld-bfd) -Ttext $(IMAGE_OFFSET) -e startup \ +LDFLAGS_vmlinux := --oformat $(ld_bfd) -Ttext $(IMAGE_OFFSET) -e startup \ -T $(obj)/../../kernel/vmlinux.lds KBUILD_CFLAGS += -DDISABLE_BRANCH_PROFILING
@@ -53,7 +53,7 @@ $(obj)/vmlinux.bin.lzo: $(obj)/vmlinux.bin FORCE OBJCOPYFLAGS += -R .empty_zero_page -LDFLAGS_piggy.o := -r --format binary --oformat $(ld-bfd) -T +LDFLAGS_piggy.o := -r --format binary --oformat $(ld_bfd) -T $(obj)/piggy.o: $(obj)/vmlinux.scr $(obj)/vmlinux.bin.$(suffix_y) FORCE $(call if_changed,ld)
arch/sh/boot/romimage/Makefile +2 -2
@@ -13,7 +13,7 @@ mmcif-obj-$(CONFIG_CPU_SUBTYPE_SH7724) := $(obj)/mmcif-sh7724.o load-$(CONFIG_ROMIMAGE_MMCIF) := $(mmcif-load-y) obj-$(CONFIG_ROMIMAGE_MMCIF) := $(mmcif-obj-y) -LDFLAGS_vmlinux := --oformat $(ld-bfd) -Ttext $(load-y) -e romstart \ +LDFLAGS_vmlinux := --oformat $(ld_bfd) -Ttext $(load-y) -e romstart \ -T $(obj)/../../kernel/vmlinux.lds $(obj)/vmlinux: $(obj)/head.o $(obj-y) $(obj)/piggy.o FORCE
@@ -24,7 +24,7 @@ OBJCOPYFLAGS += -j .empty_zero_page $(obj)/zeropage.bin: vmlinux FORCE $(call if_changed,objcopy) -LDFLAGS_piggy.o := -r --format binary --oformat $(ld-bfd) -T +LDFLAGS_piggy.o := -r --format binary --oformat $(ld_bfd) -T $(obj)/piggy.o: $(obj)/vmlinux.scr $(obj)/zeropage.bin arch/sh/boot/zImage FORCE $(call if_changed,ld)
arch/um/drivers/rtc_user.c +1 -1
@@ -28,7 +28,7 @@ int uml_rtc_start(bool timetravel)int err;if (timetravel) { -int err =os_pipe (uml_rtc_irq_fds,1 ,1 ); + err =os_pipe (uml_rtc_irq_fds,1 ,1 );if (err) goto fail; }else {
arch/x86/boot/compressed/sev.c +7 -0
@@ -165,6 +165,13 @@ static void __page_state_change(unsigned long paddr, enum psc_op op)*/ if (op ==SNP_PAGE_STATE_PRIVATE &&pvalidate (paddr,RMP_PG_SIZE_4K ,1 ))sev_es_terminate (SEV_TERM_SET_LINUX ,GHCB_TERM_PVALIDATE ); + +/* +* If validating memory (making it private) and affected by the +* cache-coherency vulnerability, perform the cache eviction mitigation. +*/ +if (op ==SNP_PAGE_STATE_PRIVATE && !has_cpuflag (X86_FEATURE_COHERENCY_SFW_NO )) +sev_evict_cache ((void *)paddr,1 ); }void snp_set_page_private (unsigned long paddr)
arch/x86/boot/cpuflags.c +13 -0
@@ -115,5 +115,18 @@ void get_cpuflags(void)cpuid (0x80000001 , &ignored, &ignored, &cpu.flags[6 ], &cpu.flags[1 ]); } + +if (max_amd_level >=0x8000001f ) { +u32 ebx; + +/* +* The X86_FEATURE_COHERENCY_SFW_NO feature bit is in +* the virtualization flags entry (word 8) and set by +* scattered.c, so the bit needs to be explicitly set. +*/ +cpuid (0x8000001f , &ignored, &ebx, &ignored, &ignored); +if (ebx &BIT (31 )) +set_bit (X86_FEATURE_COHERENCY_SFW_NO , cpu.flags); + } } }
arch/x86/include/asm/cpufeatures.h +1 -0
@@ -228,6 +228,7 @@#define X86_FEATURE_FLEXPRIORITY ( 8*32+ 1)/* Intel FlexPriority */ #define X86_FEATURE_EPT ( 8*32+ 2)/* Intel Extended Page Table */ #define X86_FEATURE_VPID ( 8*32+ 3)/* Intel Virtual Processor ID */ +#define X86_FEATURE_COHERENCY_SFW_NO ( 8*32+ 4)/* "" SNP cache coherency software work around not needed */ #define X86_FEATURE_VMMCALL ( 8*32+15)/* Prefer VMMCALL to VMCALL */ #define X86_FEATURE_XENPV ( 8*32+16)/* "" Xen paravirtual guest */
arch/x86/kernel/cpu/scattered.c +1 -0
@@ -46,6 +46,7 @@ static const struct cpuid_bit cpuid_bits[] = { { X86_FEATURE_CPB, CPUID_EDX, 9, 0x80000007, 0 }, { X86_FEATURE_PROC_FEEDBACK, CPUID_EDX, 11, 0x80000007, 0 }, { X86_FEATURE_MBA, CPUID_EBX, 6, 0x80000008, 0 }, + { X86_FEATURE_COHERENCY_SFW_NO, CPUID_EBX, 31, 0x8000001f, 0 }, { X86_FEATURE_SMBA, CPUID_EBX, 2, 0x80000020, 0 }, { X86_FEATURE_BMEC, CPUID_EBX, 3, 0x80000020, 0 }, { X86_FEATURE_TSA_SQ_NO, CPUID_ECX, 1, 0x80000021, 0 },
arch/x86/kernel/sev-shared.c +36 -0
@@ -1068,6 +1068,24 @@ static void __head setup_cpuid_table(const struct cc_blob_sev_info *cc_info) } } +static inline void sev_evict_cache (void *va,int npages) +{ +volatile u8 val__always_unused ; +u8 *bytes = va; +int page_idx; + +/* +* For SEV guests, a read from the first/last cache-lines of a 4K page +* using the guest key is sufficient to cause a flush of all cache-lines +* associated with that 4K page without incurring all the overhead of a +* full CLFLUSH sequence. +*/ +for (page_idx =0 ; page_idx < npages; page_idx++) { + val = bytes[page_idx *PAGE_SIZE ]; + val = bytes[page_idx *PAGE_SIZE +PAGE_SIZE -1 ]; + } +} +static void pvalidate_pages (struct snp_psc_desc *desc) {struct psc_entry *e;
@@ -1100,6 +1118,24 @@ static void pvalidate_pages(struct snp_psc_desc *desc)sev_es_terminate (SEV_TERM_SET_LINUX ,GHCB_TERM_PVALIDATE ); } } + +/* +* If not affected by the cache-coherency vulnerability there is no need +* to perform the cache eviction mitigation. +*/ +if (cpu_feature_enabled (X86_FEATURE_COHERENCY_SFW_NO )) +return ; + +for (i =0 ; i <= desc->hdr.end_entry; i++) { + e = &desc->entries[i]; + +/* +* If validating memory (making it private) perform the cache +* eviction mitigation. +*/ +if (e->operation ==SNP_PAGE_STATE_PRIVATE ) +sev_evict_cache (pfn_to_kaddr (e->gfn), e->pagesize ?512 :1 ); + } }static int vmgexit_psc (struct ghcb *ghcb,struct snp_psc_desc *desc)
arch/x86/kernel/sev.c +10 -1
@@ -688,12 +688,14 @@ static void __head early_set_pages_state(unsigned long vaddr, unsigned long paddr, unsigned long npages, enum psc_op op) { -unsigned long paddr_end; +unsigned long vaddr_begin, paddr_end;u64 val;int ret; vaddr = vaddr &PAGE_MASK ; + vaddr_begin = vaddr; + paddr = paddr &PAGE_MASK ; paddr_end = paddr + (npages <<PAGE_SHIFT );
@@ -736,6 +738,13 @@ early_set_pages_state(unsigned long vaddr, unsigned long paddr, paddr +=PAGE_SIZE ; } +/* +* If validating memory (making it private) and affected by the +* cache-coherency vulnerability, perform the cache eviction mitigation. +*/ +if (op ==SNP_PAGE_STATE_PRIVATE && !cpu_feature_enabled (X86_FEATURE_COHERENCY_SFW_NO )) +sev_evict_cache ((void *)vaddr_begin, npages); +return ; e_term:
arch/x86/mm/extable.c +2 -3
@@ -121,13 +121,12 @@ static bool ex_handler_sgx(const struct exception_table_entry *fixup,static bool ex_handler_fprestore (const struct exception_table_entry *fixup,struct pt_regs *regs) { - regs->ip =ex_fixup_addr (fixup); -WARN_ONCE (1 ,"Bad FPU state detected at %pB, reinitializing FPU registers." , (void *)instruction_pointer (regs));fpu_reset_from_exception_fixup (); -return true; + +return ex_handler_default (fixup, regs); }/*
drivers/block/ublk_drv.c +2 -2
@@ -2030,7 +2030,7 @@ static void ublk_deinit_queues(struct ublk_device *ub)for (i =0 ; i < nr_queues; i++)ublk_deinit_queue (ub, i); -kfree (ub->__queues); +kvfree (ub->__queues); }static int ublk_init_queues (struct ublk_device *ub)
@@ -2041,7 +2041,7 @@ static int ublk_init_queues(struct ublk_device *ub)int i, ret = -ENOMEM ; ub->queue_size = ubq_size; - ub->__queues =kcalloc (nr_queues, ubq_size,GFP_KERNEL ); + ub->__queues =kvcalloc (nr_queues, ubq_size,GFP_KERNEL );if (!ub->__queues)return ret;
drivers/bluetooth/btusb.c +4 -0
@@ -508,6 +508,10 @@ static const struct usb_device_id quirks_table[] = { { USB_DEVICE(0x13d3, 0x3549), .driver_info = BTUSB_REALTEK | BTUSB_WIDEBAND_SPEECH }, + /* Realtek 8851BU Bluetooth devices */ + { USB_DEVICE(0x3625, 0x010b), .driver_info = BTUSB_REALTEK | + BTUSB_WIDEBAND_SPEECH }, + /* Realtek 8852AE Bluetooth devices */ { USB_DEVICE(0x0bda, 0x2852), .driver_info = BTUSB_REALTEK | BTUSB_WIDEBAND_SPEECH },
drivers/char/hw_random/mtk-rng.c +3 -1
@@ -142,7 +142,9 @@ static int mtk_rng_probe(struct platform_device *pdev)dev_set_drvdata (&pdev->dev, priv);pm_runtime_set_autosuspend_delay (&pdev->dev,RNG_AUTOSUSPEND_TIMEOUT );pm_runtime_use_autosuspend (&pdev->dev); -devm_pm_runtime_enable (&pdev->dev); + ret =devm_pm_runtime_enable (&pdev->dev); +if (ret) +return ret;dev_info (&pdev->dev,"registered RNG driver\n" );
drivers/clk/clk-axi-clkgen.c +1 -1
@@ -118,7 +118,7 @@ static const struct axi_clkgen_limits axi_clkgen_zynqmp_default_limits = {static const struct axi_clkgen_limits axi_clkgen_zynq_default_limits = { .fpfd_min =10000 , - .fpfd_max =300000 , + .fpfd_max =450000 , .fvco_min =600000 , .fvco_max =1200000 , };
drivers/clk/davinci/psc.c +5 -0
@@ -278,6 +278,11 @@ davinci_lpsc_clk_register(struct device *dev, const char *name, lpsc->pm_domain.name =devm_kasprintf (dev,GFP_KERNEL ,"%s: %s" ,best_dev_name (dev), name); +if (!lpsc->pm_domain.name) { +clk_hw_unregister (&lpsc->hw); +kfree (lpsc); +return ERR_PTR (-ENOMEM ); + } lpsc->pm_domain.attach_dev = davinci_psc_genpd_attach_dev; lpsc->pm_domain.detach_dev = davinci_psc_genpd_detach_dev; lpsc->pm_domain.flags =GENPD_FLAG_PM_CLK ;
drivers/clk/sunxi-ng/ccu-sun8i-v3s.c +1 -2
@@ -347,8 +347,7 @@ static SUNXI_CCU_GATE(dram_ohci_clk, "dram-ohci", "dram",static const char *const de_parents[] = {"pll-video" ,"pll-periph0" }; static SUNXI_CCU_M_WITH_MUX_GATE(de_clk, "de", de_parents, -0x104 ,0 ,4 ,24 ,2 ,BIT (31 ), - CLK_SET_RATE_PARENT); + 0x104, 0, 4, 24, 3, BIT(31), 0);static const char *const tcon_parents[] = {"pll-video" }; static SUNXI_CCU_M_WITH_MUX_GATE(tcon_clk, "tcon", tcon_parents,
drivers/clk/xilinx/xlnx_vcu.c +2 -2
@@ -587,8 +587,8 @@ static void xvcu_unregister_clock_provider(struct xvcu_device *xvcu)xvcu_clk_hw_unregister_leaf (hws[CLK_XVCU_ENC_MCU ]);if (!IS_ERR_OR_NULL (hws[CLK_XVCU_ENC_CORE ]))xvcu_clk_hw_unregister_leaf (hws[CLK_XVCU_ENC_CORE ]); - -clk_hw_unregister_fixed_factor (xvcu->pll_post); +if (!IS_ERR_OR_NULL (xvcu->pll_post)) +clk_hw_unregister_fixed_factor (xvcu->pll_post); }/**
drivers/cpufreq/cpufreq.c +11 -10
@@ -1287,6 +1287,8 @@ static struct cpufreq_policy *cpufreq_policy_alloc(unsigned int cpu) goto err_free_real_cpus; } +init_rwsem (&policy->rwsem); +freq_constraints_init (&policy->constraints); policy->nb_min.notifier_call = cpufreq_notifier_min;
@@ -1309,7 +1311,6 @@ static struct cpufreq_policy *cpufreq_policy_alloc(unsigned int cpu) }INIT_LIST_HEAD (&policy->policy_list); -init_rwsem (&policy->rwsem);spin_lock_init (&policy->transition_lock);init_waitqueue_head (&policy->transition_wait);INIT_WORK (&policy->update, handle_update);
@@ -2938,15 +2939,6 @@ int cpufreq_register_driver(struct cpufreq_driver *driver_data) cpufreq_driver = driver_data;write_unlock_irqrestore (&cpufreq_driver_lock, flags); -/* -* Mark support for the scheduler's frequency invariance engine for -* drivers that implement target(), target_index() or fast_switch(). -*/ -if (!cpufreq_driver->setpolicy) { -static_branch_enable_cpuslocked (&cpufreq_freq_invariance); -pr_debug ("supports frequency invariance" ); - } -if (driver_data->setpolicy) driver_data->flags |=CPUFREQ_CONST_LOOPS ;
@@ -2977,6 +2969,15 @@ int cpufreq_register_driver(struct cpufreq_driver *driver_data) hp_online = ret; ret =0 ; +/* +* Mark support for the scheduler's frequency invariance engine for +* drivers that implement target(), target_index() or fast_switch(). +*/ +if (!cpufreq_driver->setpolicy) { +static_branch_enable_cpuslocked (&cpufreq_freq_invariance); +pr_debug ("supports frequency invariance" ); + } +pr_debug ("driver %s up and running\n" , driver_data->name); goto out;
drivers/cpufreq/intel_pstate.c +2 -2
@@ -2902,8 +2902,8 @@ static int intel_cpufreq_update_pstate(struct cpufreq_policy *policy,int max_pstate = policy->strict_target ? target_pstate : cpu->max_perf_ratio; -intel_cpufreq_hwp_update (cpu, target_pstate, max_pstate,0 , - fast_switch); +intel_cpufreq_hwp_update (cpu, target_pstate, max_pstate, + target_pstate, fast_switch); }else if (target_pstate != old_pstate) {intel_cpufreq_perf_ctl_update (cpu, target_pstate, fast_switch); }
drivers/crypto/allwinner/sun8i-ce/sun8i-ce-cipher.c +2 -2
@@ -265,8 +265,8 @@ static int sun8i_ce_cipher_prepare(struct crypto_engine *engine, void *async_req } chan->timeout = areq->cryptlen; - rctx->nr_sgs = nr_sgs; - rctx->nr_sgd = nr_sgd; + rctx->nr_sgs = ns; + rctx->nr_sgd = nd;return 0 ; theend_sgs:
drivers/crypto/ccp/ccp-debugfs.c +3 -0
@@ -319,5 +319,8 @@ void ccp5_debugfs_setup(struct ccp_device *ccp)void ccp5_debugfs_destroy (void ) { +mutex_lock (&ccp_debugfs_lock);debugfs_remove_recursive (ccp_debugfs_dir); + ccp_debugfs_dir =NULL ; +mutex_unlock (&ccp_debugfs_lock); }
drivers/crypto/img-hash.c +1 -1
@@ -436,7 +436,7 @@ static int img_hash_write_via_dma_stop(struct img_hash_dev *hdev)struct img_hash_request_ctx *ctx =ahash_request_ctx (hdev->req);if (ctx->flags &DRIVER_FLAGS_SG ) -dma_unmap_sg (hdev->dev, ctx->sg, ctx->dma_ct,DMA_TO_DEVICE ); +dma_unmap_sg (hdev->dev, ctx->sg,1 ,DMA_TO_DEVICE );return 0 ; }
drivers/crypto/inside-secure/safexcel_hash.c +6 -2
@@ -249,7 +249,9 @@ static int safexcel_handle_req_result(struct safexcel_crypto_priv *priv,safexcel_complete (priv, ring);if (sreq->nents) { -dma_unmap_sg (priv->dev, areq->src, sreq->nents,DMA_TO_DEVICE ); +dma_unmap_sg (priv->dev, areq->src, +sg_nents_for_len (areq->src, areq->nbytes), +DMA_TO_DEVICE ); sreq->nents =0 ; }
@@ -497,7 +499,9 @@ static int safexcel_ahash_send_req(struct crypto_async_request *async, int ring, DMA_FROM_DEVICE); unmap_sg:if (req->nents) { -dma_unmap_sg (priv->dev, areq->src, req->nents,DMA_TO_DEVICE ); +dma_unmap_sg (priv->dev, areq->src, +sg_nents_for_len (areq->src, areq->nbytes), +DMA_TO_DEVICE ); req->nents =0 ; } cdesc_rollback:
drivers/crypto/intel/keembay/keembay-ocs-hcu-core.c +7 -1
@@ -68,6 +68,7 @@ struct ocs_hcu_ctx {* @sg_data_total: Total data in the SG list at any time. * @sg_data_offset: Offset into the data of the current individual SG node. * @sg_dma_nents: Number of sg entries mapped in dma_list. +* @nents: Number of entries in the scatterlist. */ struct ocs_hcu_rctx {struct ocs_hcu_dev *hcu_dev;
@@ -91,6 +92,7 @@ struct ocs_hcu_rctx {unsigned int sg_data_total;unsigned int sg_data_offset;unsigned int sg_dma_nents; +unsigned int nents; };/**
@@ -199,7 +201,7 @@ static void kmb_ocs_hcu_dma_cleanup(struct ahash_request *req,/* Unmap req->src (if mapped). */ if (rctx->sg_dma_nents) { -dma_unmap_sg (dev, req->src, rctx->sg_dma_nents,DMA_TO_DEVICE ); +dma_unmap_sg (dev, req->src, rctx->nents,DMA_TO_DEVICE ); rctx->sg_dma_nents =0 ; }
@@ -260,6 +262,10 @@ static int kmb_ocs_dma_prepare(struct ahash_request *req) rc = -ENOMEM ; goto cleanup; } + +/* Save the value of nents to pass to dma_unmap_sg. */ + rctx->nents = nents; +/* * The value returned by dma_map_sg() can be < nents; so update * nents accordingly.
drivers/crypto/intel/qat/qat_common/adf_transport_debug.c +3 -1
@@ -31,8 +31,10 @@ static void *adf_ring_next(struct seq_file *sfile, void *v, loff_t *pos)struct adf_etr_ring_data *ring = sfile->private;if (*pos >= (ADF_SIZE_TO_RING_SIZE_IN_BYTES (ring->ring_size) / -ADF_MSG_SIZE_TO_BYTES (ring->msg_size))) +ADF_MSG_SIZE_TO_BYTES (ring->msg_size))) { + (*pos)++;return NULL ; + }return ring->base_addr + (ADF_MSG_SIZE_TO_BYTES (ring->msg_size) * (*pos)++);
drivers/crypto/intel/qat/qat_common/qat_bl.c +3 -3
@@ -38,7 +38,7 @@ void qat_bl_free_bufl(struct adf_accel_dev *accel_dev,for (i =0 ; i < blout->num_mapped_bufs; i++) {dma_unmap_single (dev, blout->buffers[i].addr, blout->buffers[i].len, -DMA_FROM_DEVICE ); +DMA_BIDIRECTIONAL ); }dma_unmap_single (dev, blpout, sz_out,DMA_TO_DEVICE );
@@ -160,7 +160,7 @@ static int __qat_bl_sgl_to_bufl(struct adf_accel_dev *accel_dev, } buffers[y].addr =dma_map_single (dev,sg_virt (sg) + left, sg->length - left, -DMA_FROM_DEVICE ); +DMA_BIDIRECTIONAL );if (unlikely (dma_mapping_error (dev, buffers[y].addr))) goto err_out; buffers[y].len = sg->length;
@@ -202,7 +202,7 @@ static int __qat_bl_sgl_to_bufl(struct adf_accel_dev *accel_dev,if (!dma_mapping_error (dev, buflout->buffers[i].addr))dma_unmap_single (dev, buflout->buffers[i].addr, buflout->buffers[i].len, -DMA_FROM_DEVICE ); +DMA_BIDIRECTIONAL ); }if (!buf->sgl_dst_valid)
drivers/crypto/intel/qat/qat_common/qat_compression.c +4 -4
@@ -197,7 +197,7 @@ static int qat_compression_alloc_dc_data(struct adf_accel_dev *accel_dev)struct adf_dc_data *dc_data =NULL ;u8 *obuff =NULL ; - dc_data =devm_kzalloc (dev,sizeof (*dc_data),GFP_KERNEL ); + dc_data =kzalloc_node (sizeof (*dc_data),GFP_KERNEL ,dev_to_node (dev));if (!dc_data) goto err;
@@ -205,7 +205,7 @@ static int qat_compression_alloc_dc_data(struct adf_accel_dev *accel_dev)if (!obuff) goto err; - obuff_p =dma_map_single (dev, obuff, ovf_buff_sz,DMA_FROM_DEVICE ); + obuff_p =dma_map_single (dev, obuff, ovf_buff_sz,DMA_BIDIRECTIONAL );if (unlikely (dma_mapping_error (dev, obuff_p))) goto err;
@@ -233,9 +233,9 @@ static void qat_free_dc_data(struct adf_accel_dev *accel_dev)return ;dma_unmap_single (dev, dc_data->ovf_buff_p, dc_data->ovf_buff_sz, -DMA_FROM_DEVICE ); +DMA_BIDIRECTIONAL );kfree_sensitive (dc_data->ovf_buff); -devm_kfree (dev, dc_data); +kfree (dc_data); accel_dev->dc_data =NULL ; }
drivers/crypto/marvell/cesa/cipher.c +3 -1
@@ -75,9 +75,12 @@ mv_cesa_skcipher_dma_cleanup(struct skcipher_request *req)static inline void mv_cesa_skcipher_cleanup (struct skcipher_request *req) {struct mv_cesa_skcipher_req *creq =skcipher_request_ctx (req); +struct mv_cesa_engine *engine = creq->base.engine;if (mv_cesa_req_get_type (&creq->base) ==CESA_DMA_REQ )mv_cesa_skcipher_dma_cleanup (req); + +atomic_sub (req->cryptlen, &engine->load); }static void mv_cesa_skcipher_std_step (struct skcipher_request *req)
@@ -212,7 +215,6 @@ mv_cesa_skcipher_complete(struct crypto_async_request *req)struct mv_cesa_engine *engine = creq->base.engine;unsigned int ivsize; -atomic_sub (skreq->cryptlen, &engine->load); ivsize =crypto_skcipher_ivsize (crypto_skcipher_reqtfm (skreq));if (mv_cesa_req_get_type (&creq->base) ==CESA_DMA_REQ ) {
drivers/crypto/marvell/cesa/hash.c +3 -2
@@ -110,9 +110,12 @@ static inline void mv_cesa_ahash_dma_cleanup(struct ahash_request *req)static inline void mv_cesa_ahash_cleanup (struct ahash_request *req) {struct mv_cesa_ahash_req *creq =ahash_request_ctx (req); +struct mv_cesa_engine *engine = creq->base.engine;if (mv_cesa_req_get_type (&creq->base) ==CESA_DMA_REQ )mv_cesa_ahash_dma_cleanup (req); + +atomic_sub (req->nbytes, &engine->load); }static void mv_cesa_ahash_last_cleanup (struct ahash_request *req)
@@ -395,8 +398,6 @@ static void mv_cesa_ahash_complete(struct crypto_async_request *req) } } } - -atomic_sub (ahashreq->nbytes, &engine->load); } static void mv_cesa_ahash_prepare(struct crypto_async_request *req,
drivers/devfreq/devfreq.c +3 -7
@@ -1382,15 +1382,11 @@ int devfreq_remove_governor(struct devfreq_governor *governor)int ret;struct device *dev = devfreq->dev.parent; +if (!devfreq->governor) +continue ; +if (!strncmp (devfreq->governor->name, governor->name,DEVFREQ_NAME_LEN )) { -/* we should have a devfreq governor! */ -if (!devfreq->governor) { -dev_warn (dev,"%s: Governor %s NOT present\n" , - __func__, governor->name); -continue ; -/* Fall through */ - } ret = devfreq->governor->event_handler (devfreq,DEVFREQ_GOV_STOP ,NULL );if (ret) {
drivers/dma/mv_xor.c +19 -2
@@ -1061,8 +1061,16 @@ mv_xor_channel_add(struct mv_xor_device *xordev,*/ mv_chan->dummy_src_addr =dma_map_single (dma_dev->dev, mv_chan->dummy_src,MV_XOR_MIN_BYTE_COUNT ,DMA_FROM_DEVICE ); +if (dma_mapping_error (dma_dev->dev, mv_chan->dummy_src_addr)) +return ERR_PTR (-ENOMEM ); + mv_chan->dummy_dst_addr =dma_map_single (dma_dev->dev, mv_chan->dummy_dst,MV_XOR_MIN_BYTE_COUNT ,DMA_TO_DEVICE ); +if (dma_mapping_error (dma_dev->dev, mv_chan->dummy_dst_addr)) { + ret = -ENOMEM ; + goto err_unmap_src; + } +/* allocate coherent memory for hardware descriptors * note: writecombine gives slightly better performance, but
@@ -1071,8 +1079,10 @@ mv_xor_channel_add(struct mv_xor_device *xordev, mv_chan->dma_desc_pool_virt =dma_alloc_wc (&pdev->dev,MV_XOR_POOL_SIZE , &mv_chan->dma_desc_pool,GFP_KERNEL ); -if (!mv_chan->dma_desc_pool_virt) -return ERR_PTR (-ENOMEM ); +if (!mv_chan->dma_desc_pool_virt) { + ret = -ENOMEM ; + goto err_unmap_dst; + }/* discover transaction capabilites from the platform data */ dma_dev->cap_mask = cap_mask;
@@ -1155,6 +1165,13 @@ mv_xor_channel_add(struct mv_xor_device *xordev, err_free_dma:dma_free_coherent (&pdev->dev,MV_XOR_POOL_SIZE , mv_chan->dma_desc_pool_virt, mv_chan->dma_desc_pool); +err_unmap_dst: +dma_unmap_single (dma_dev->dev, mv_chan->dummy_dst_addr, +MV_XOR_MIN_BYTE_COUNT ,DMA_TO_DEVICE ); +err_unmap_src: +dma_unmap_single (dma_dev->dev, mv_chan->dummy_src_addr, +MV_XOR_MIN_BYTE_COUNT ,DMA_FROM_DEVICE ); +return ERR_PTR (ret); }
drivers/dma/nbpfaxi.c +13 -0
@@ -711,6 +711,9 @@ static int nbpf_desc_page_alloc(struct nbpf_channel *chan)list_add_tail (&ldesc->node, &lhead); ldesc->hwdesc_dma_addr =dma_map_single (dchan->device->dev, hwdesc,sizeof (*hwdesc),DMA_TO_DEVICE ); +if (dma_mapping_error (dchan->device->dev, + ldesc->hwdesc_dma_addr)) + goto unmap_error;dev_dbg (dev,"%s(): mapped 0x%p to %pad\n" , __func__, hwdesc, &ldesc->hwdesc_dma_addr);
@@ -737,6 +740,16 @@ static int nbpf_desc_page_alloc(struct nbpf_channel *chan)spin_unlock_irq (&chan->lock);return ARRAY_SIZE (dpage->desc); + +unmap_error: +while (i--) { + ldesc--; hwdesc--; + +dma_unmap_single (dchan->device->dev, ldesc->hwdesc_dma_addr, +sizeof (hwdesc),DMA_TO_DEVICE ); + } + +return -ENOMEM ; }static void nbpf_desc_put (struct nbpf_desc *desc)
drivers/gpu/drm/amd/pm/powerplay/hwmgr/smu_helper.c +1 -1
@@ -149,7 +149,7 @@ int phm_wait_on_indirect_register(struct pp_hwmgr *hwmgr, }cgs_write_register (hwmgr->device, indirect_port, index); -return phm_wait_on_register (hwmgr, indirect_port +1 , mask, value); +return phm_wait_on_register (hwmgr, indirect_port +1 , value, mask); } int phm_wait_for_register_unequal(struct pp_hwmgr *hwmgr,
drivers/gpu/drm/msm/disp/dpu1/catalog/dpu_5_1_sc8180x.h +1 -0
@@ -378,6 +378,7 @@ static const struct dpu_perf_cfg sc8180x_perf_data = { .min_core_ib = 2400000, .min_llcc_ib = 800000, .min_dram_ib = 800000, + .min_prefill_lines = 24, .danger_lut_tbl = {0xf, 0xffff, 0x0}, .safe_lut_tbl = {0xfff0, 0xf000, 0xffff}, .qos_lut_tbl = {
drivers/gpu/drm/rockchip/rockchip_drm_fb.c +1 -8
@@ -52,16 +52,9 @@ rockchip_fb_create(struct drm_device *dev, struct drm_file *file, }if (drm_is_afbc (mode_cmd->modifier[0 ])) { -int ret, i; - ret =drm_gem_fb_afbc_init (dev, mode_cmd, afbc_fb);if (ret) { -struct drm_gem_object **obj = afbc_fb->base.obj; - -for (i =0 ; i < info->num_planes; ++i) -drm_gem_object_put (obj[i]); - -kfree (afbc_fb); +drm_framebuffer_put (&afbc_fb->base);return ERR_PTR (ret); } }
drivers/gpu/drm/vmwgfx/vmwgfx_shader.c +1 -1
@@ -896,7 +896,7 @@ int vmw_compat_shader_add(struct vmw_private *dev_priv, .busy_domain = VMW_BO_DOMAIN_SYS, .bo_type = ttm_bo_type_device, .size = size, - .pin = true, + .pin = false, .keep_resv = true, };
drivers/i2c/busses/i2c-stm32f7.c +79 -120
330 lines not on this page · raw message
drivers/infiniband/hw/erdma/erdma_verbs.c +2 -1
@@ -585,7 +585,8 @@ static struct erdma_mtt *erdma_create_cont_mtt(struct erdma_dev *dev,static void erdma_destroy_mtt_buf_sg (struct erdma_dev *dev,struct erdma_mtt *mtt) { -dma_unmap_sg (&dev->pdev->dev, mtt->sglist, mtt->nsg,DMA_TO_DEVICE ); +dma_unmap_sg (&dev->pdev->dev, mtt->sglist, +DIV_ROUND_UP (mtt->size,PAGE_SIZE ),DMA_TO_DEVICE );vfree (mtt->sglist); }
drivers/infiniband/hw/hns/hns_roce_hw_v2.c +10 -5
@@ -5192,11 +5192,10 @@ static int hns_roce_v2_modify_qp(struct ib_qp *ibqp, {struct hns_roce_dev *hr_dev =to_hr_dev (ibqp->device);struct hns_roce_qp *hr_qp =to_hr_qp (ibqp); -struct hns_roce_v2_qp_context ctx[2 ]; -struct hns_roce_v2_qp_context *context = ctx; -struct hns_roce_v2_qp_context *qpc_mask = ctx +1 ; +struct hns_roce_v2_qp_context *context; +struct hns_roce_v2_qp_context *qpc_mask;struct ib_device *ibdev = &hr_dev->ib_dev; -int ret; +int ret = -ENOMEM ;if (attr_mask & ~IB_QP_ATTR_STANDARD_BITS )return -EOPNOTSUPP ;
@@ -5207,7 +5206,11 @@ static int hns_roce_v2_modify_qp(struct ib_qp *ibqp,* we should set all bits of the relevant fields in context mask to * 0 at the same time, else set them to 0x1. */ -memset (context,0 , hr_dev->caps.qpc_sz); + context =kvzalloc (sizeof (*context),GFP_KERNEL ); + qpc_mask =kvzalloc (sizeof (*qpc_mask),GFP_KERNEL ); +if (!context || !qpc_mask) + goto out; +memset (qpc_mask,0xff , hr_dev->caps.qpc_sz); ret = hns_roce_v2_set_abs_fields(ibqp, attr, attr_mask, cur_state,
@@ -5249,6 +5252,8 @@ static int hns_roce_v2_modify_qp(struct ib_qp *ibqp,clear_qp (hr_qp); out: +kvfree (qpc_mask); +kvfree (context);return ret; }
drivers/infiniband/hw/mlx5/dm.c +1 -1
@@ -282,7 +282,7 @@ static struct ib_dm *handle_alloc_dm_memic(struct ib_ucontext *ctx,int err;u64 address; -if (!MLX5_CAP_DEV_MEM (dm_db->dev, memic)) +if (!dm_db || !MLX5_CAP_DEV_MEM (dm_db->dev, memic))return ERR_PTR (-EOPNOTSUPP ); dm =kzalloc (sizeof (*dm),GFP_KERNEL );
drivers/interconnect/qcom/sc8180x.c +6 -0
@@ -1492,34 +1492,40 @@ static struct qcom_icc_bcm bcm_sh3 = {static struct qcom_icc_bcm bcm_sn0 = { .name ="SN0" , + .num_nodes =1 , .nodes = { &slv_qns_gemnoc_sf } };static struct qcom_icc_bcm bcm_sn1 = { .name ="SN1" , + .num_nodes =1 , .nodes = { &slv_qxs_imem } };static struct qcom_icc_bcm bcm_sn2 = { .name ="SN2" , .keepalive = true, + .num_nodes =1 , .nodes = { &slv_qns_gemnoc_gc } };static struct qcom_icc_bcm bcm_co2 = { .name ="CO2" , + .num_nodes =1 , .nodes = { &mas_qnm_npu } };static struct qcom_icc_bcm bcm_sn3 = { .name ="SN3" , .keepalive = true, + .num_nodes =2 , .nodes = { &slv_srvc_aggre1_noc, &slv_qns_cnoc } };static struct qcom_icc_bcm bcm_sn4 = { .name ="SN4" , + .num_nodes =1 , .nodes = { &slv_qxs_pimem } };
drivers/interconnect/qcom/sc8280xp.c +1 -0
@@ -48,6 +48,7 @@ static struct qcom_icc_node qnm_a1noc_cfg = { .id = SC8280XP_MASTER_A1NOC_CFG, .channels = 1, .buswidth = 4, + .num_links = 1, .links = { SC8280XP_SLAVE_SERVICE_A1NOC }, };
drivers/iommu/amd/iommu.c +15 -2
@@ -2159,8 +2159,21 @@ static inline u64 dma_max_address(void)if (amd_iommu_pgtable ==AMD_IOMMU_V1 )return ~0ULL ; -/* V2 with 4/5 level page table */ -return ((1ULL <<PM_LEVEL_SHIFT (amd_iommu_gpt_level)) -1 ); +/* +* V2 with 4/5 level page table. Note that "2.2.6.5 AMD64 4-Kbyte Page +* Translation" shows that the V2 table sign extends the top of the +* address space creating a reserved region in the middle of the +* translation, just like the CPU does. Further Vasant says the docs are +* incomplete and this only applies to non-zero PASIDs. If the AMDv2 +* page table is assigned to the 0 PASID then there is no sign extension +* check. +* +* Since the IOMMU must have a fixed geometry, and the core code does +* not understand sign extended addressing, we have to chop off the high +* bit to get consistent behavior with attachments of the domain to any +* PASID. +*/ +return ((1ULL << (PM_LEVEL_SHIFT (amd_iommu_gpt_level) -1 )) -1 ); }static struct iommu_domain *amd_iommu_domain_alloc (unsigned type)
drivers/irqchip/Kconfig +1 -0
@@ -483,6 +483,7 @@ config IMX_MU_MSI tristate "i.MX MU used as MSI controller" depends on OF && HAS_IOMEM depends on ARCH_MXC || COMPILE_TEST + depends on ARM || ARM64 default m if ARCH_MXC select IRQ_DOMAIN select IRQ_DOMAIN_HIERARCHY
drivers/md/md.c +6 -3
@@ -9465,8 +9465,8 @@ void md_check_recovery(struct mddev *mddev)* remove disk. */ rdev_for_each_safe (rdev, tmp, mddev) { -if (test_and_clear_bit (ClusterRemove, &rdev->flags) && - rdev->raid_disk <0 ) +if (rdev->raid_disk <0 && +test_and_clear_bit (ClusterRemove, &rdev->flags))md_kick_rdev_from_array (rdev); } }
@@ -9813,8 +9813,11 @@ static void check_sb_changes(struct mddev *mddev, struct md_rdev *rdev)/* Check for change of roles in the active devices */ rdev_for_each_safe (rdev2, tmp, mddev) { -if (test_bit (Faulty, &rdev2->flags)) +if (test_bit (Faulty, &rdev2->flags)) { +if (test_bit (ClusterRemove, &rdev2->flags)) +set_bit (MD_RECOVERY_NEEDED , &mddev->recovery);continue ; + }/* Check if the roles changed */ role =le16_to_cpu (sb->dev_roles[rdev2->desc_nr]);
drivers/media/v4l2-core/v4l2-ctrls-core.c +4 -4
@@ -894,12 +894,12 @@ static int std_validate_compound(const struct v4l2_ctrl *ctrl, u32 idx, p_h264_sps->flags &= ~V4L2_H264_SPS_FLAG_QPPRIME_Y_ZERO_TRANSFORM_BYPASS ; - -if (p_h264_sps->chroma_format_idc <3 ) - p_h264_sps->flags &= - ~V4L2_H264_SPS_FLAG_SEPARATE_COLOUR_PLANE ; } +if (p_h264_sps->chroma_format_idc <3 ) + p_h264_sps->flags &= + ~V4L2_H264_SPS_FLAG_SEPARATE_COLOUR_PLANE ; +if (p_h264_sps->flags &V4L2_H264_SPS_FLAG_FRAME_MBS_ONLY ) p_h264_sps->flags &= ~V4L2_H264_SPS_FLAG_MB_ADAPTIVE_FRAME_FIELD ;
drivers/mtd/ftl.c +1 -1
@@ -344,7 +344,7 @@ static int erase_xfer(partition_t *part,return -ENOMEM ; erase->addr = xfer->Offset; - erase->len =1 << part->header.EraseUnitSize; + erase->len =1ULL << part->header.EraseUnitSize; ret =mtd_erase (part->mbd.mtd, erase);if (!ret) {
drivers/mtd/nand/raw/atmel/nand-controller.c +1 -1
@@ -373,7 +373,7 @@ static int atmel_nand_dma_transfer(struct atmel_nand_controller *nc,dma_cookie_t cookie; buf_dma =dma_map_single (nc->dev, buf, len, dir); -if (dma_mapping_error (nc->dev, dev_dma)) { +if (dma_mapping_error (nc->dev, buf_dma)) {dev_err (nc->dev,"Failed to prepare a buffer for DMA access\n" ); goto err;
drivers/mtd/nand/raw/atmel/pmecc.c +6 -0
@@ -143,6 +143,7 @@ struct atmel_pmecc_caps {int nstrengths;int el_offset;bool correct_erased_chunks; +bool clk_ctrl; };struct atmel_pmecc {
@@ -843,6 +844,10 @@ static struct atmel_pmecc *atmel_pmecc_create(struct platform_device *pdev,if (IS_ERR (pmecc->regs.errloc))return ERR_CAST (pmecc->regs.errloc); +/* pmecc data setup time */ +if (caps->clk_ctrl) +writel (PMECC_CLK_133MHZ , pmecc->regs.base +ATMEL_PMECC_CLK ); +/* Disable all interrupts before registering the PMECC handler. */ writel (0xffffffff , pmecc->regs.base +ATMEL_PMECC_IDR );atmel_pmecc_reset (pmecc);
@@ -896,6 +901,7 @@ static struct atmel_pmecc_caps at91sam9g45_caps = { .strengths = atmel_pmecc_strengths, .nstrengths = 5, .el_offset = 0x8c, + .clk_ctrl = true, };static struct atmel_pmecc_caps sama5d4_caps = {
drivers/mtd/nand/raw/rockchip-nand-controller.c +15 -0
@@ -656,9 +656,16 @@ static int rk_nfc_write_page_hwecc(struct nand_chip *chip, const u8 *buf, dma_data =dma_map_single (nfc->dev, (void *)nfc->page_buf, mtd->writesize,DMA_TO_DEVICE ); +if (dma_mapping_error (nfc->dev, dma_data)) +return -ENOMEM ; + dma_oob =dma_map_single (nfc->dev, nfc->oob_buf, ecc->steps * oob_step,DMA_TO_DEVICE ); +if (dma_mapping_error (nfc->dev, dma_oob)) { +dma_unmap_single (nfc->dev, dma_data, mtd->writesize,DMA_TO_DEVICE ); +return -ENOMEM ; + }reinit_completion (&nfc->done);writel (INT_DMA , nfc->regs + nfc->cfg->int_en_off);
@@ -772,9 +779,17 @@ static int rk_nfc_read_page_hwecc(struct nand_chip *chip, u8 *buf, int oob_on, dma_data =dma_map_single (nfc->dev, nfc->page_buf, mtd->writesize,DMA_FROM_DEVICE ); +if (dma_mapping_error (nfc->dev, dma_data)) +return -ENOMEM ; + dma_oob =dma_map_single (nfc->dev, nfc->oob_buf, ecc->steps * oob_step,DMA_FROM_DEVICE ); +if (dma_mapping_error (nfc->dev, dma_oob)) { +dma_unmap_single (nfc->dev, dma_data, mtd->writesize, +DMA_FROM_DEVICE ); +return -ENOMEM ; + }/* * The first blocks (4, 8 or 16 depending on the device)
drivers/net/can/kvaser_pciefd.c +1 -0
@@ -927,6 +927,7 @@ static int kvaser_pciefd_setup_can_ctrls(struct kvaser_pciefd *pcie) can->err_rep_cnt =0 ; can->bec.txerr =0 ; can->bec.rxerr =0 ; + can->can.dev->dev_port = i;init_completion (&can->start_comp);init_completion (&can->flush_comp);
drivers/net/can/usb/kvaser_usb/kvaser_usb_core.c +1 -0
@@ -856,6 +856,7 @@ static int kvaser_usb_init_one(struct kvaser_usb *dev, int channel) }SET_NETDEV_DEV (netdev, &dev->intf->dev); netdev->dev_id = channel; + netdev->dev_port = channel; dev->nets[channel] = priv;
drivers/net/can/usb/peak_usb/pcan_usb_fd.c +9 -8
@@ -49,7 +49,7 @@ struct __packed pcan_ufd_fw_info {__le32 ser_no;/* S/N */ __le32 flags;/* special functions */ -/* extended data when type == PCAN_USBFD_TYPE_EXT */ +/* extended data when type >= PCAN_USBFD_TYPE_EXT */ u8 cmd_out_ep;/* ep for cmd */ u8 cmd_in_ep;/* ep for replies */ u8 data_out_ep[2 ];/* ep for CANx TX */
@@ -982,10 +982,11 @@ static int pcan_usb_fd_init(struct peak_usb_device *dev) dev->can.ctrlmode |=CAN_CTRLMODE_FD_NON_ISO ; } -/* if vendor rsp is of type 2, then it contains EP numbers to -* use for cmds pipes. If not, then default EP should be used. +/* if vendor rsp type is greater than or equal to 2, then it +* contains EP numbers to use for cmds pipes. If not, then +* default EP should be used. */ -if (fw_info->type !=cpu_to_le16 (PCAN_USBFD_TYPE_EXT )) { +if (le16_to_cpu (fw_info->type) <PCAN_USBFD_TYPE_EXT ) { fw_info->cmd_out_ep =PCAN_USBPRO_EP_CMDOUT ; fw_info->cmd_in_ep =PCAN_USBPRO_EP_CMDIN ; }
@@ -1018,11 +1019,11 @@ static int pcan_usb_fd_init(struct peak_usb_device *dev) dev->can_channel_id =le32_to_cpu (pdev->usb_if->fw_info.dev_id[dev->ctrl_idx]); -/* if vendor rsp is of type 2, then it contains EP numbers to -* use for data pipes. If not, then statically defined EP are used -* (see peak_usb_create_dev()). +/* if vendor rsp type is greater than or equal to 2, then it contains EP +* numbers to use for data pipes. If not, then statically defined EP are +* used (see peak_usb_create_dev()). */ -if (fw_info->type ==cpu_to_le16 (PCAN_USBFD_TYPE_EXT )) { +if (le16_to_cpu (fw_info->type) >=PCAN_USBFD_TYPE_EXT ) { dev->ep_msg_in = fw_info->data_in_ep; dev->ep_msg_out = fw_info->data_out_ep[dev->ctrl_idx]; }
drivers/net/ethernet/emulex/benet/be_cmds.c +1 -1
@@ -3852,8 +3852,8 @@ int be_cmd_set_mac_list(struct be_adapter *adapter, u8 *mac_array, status =be_mcc_notify_wait (adapter); err: -dma_free_coherent (&adapter->pdev->dev, cmd.size, cmd.va, cmd.dma);spin_unlock_bh (&adapter->mcc_lock); +dma_free_coherent (&adapter->pdev->dev, cmd.size, cmd.va, cmd.dma);return status; }
drivers/net/ethernet/intel/fm10k/fm10k.h +2 -1
@@ -189,13 +189,14 @@ struct fm10k_q_vector {struct fm10k_ring_container rx, tx;struct napi_struct napi; +struct rcu_head rcu;/* to avoid race with update stats on free */ +cpumask_t affinity_mask;char name[IFNAMSIZ +9 ];#ifdef CONFIG_DEBUG_FS struct dentry *dbg_q_vector;#endif /* CONFIG_DEBUG_FS */ -struct rcu_head rcu;/* to avoid race with update stats on free */ /* for dynamic allocation of rings associated with this q_vector */ struct fm10k_ring ring[]____cacheline_internodealigned_in_smp ;
drivers/net/ethernet/intel/i40e/i40e.h +1 -1
@@ -953,6 +953,7 @@ struct i40e_q_vector {u16 reg_idx;/* register index of the interrupt */ struct napi_struct napi; +struct rcu_head rcu;/* to avoid race with update stats on free */ struct i40e_ring_container rx;struct i40e_ring_container tx;
@@ -963,7 +964,6 @@ struct i40e_q_vector {cpumask_t affinity_mask;struct irq_affinity_notify affinity_notify; -struct rcu_head rcu;/* to avoid race with update stats on free */ char name[I40E_INT_NAME_STR_LEN ];bool arm_wb_state;bool in_busy_poll;
drivers/net/ethernet/intel/ixgbe/ixgbe.h +2 -1
@@ -503,9 +503,10 @@ struct ixgbe_q_vector {struct ixgbe_ring_container rx, tx;struct napi_struct napi; +struct rcu_head rcu;/* to avoid race with update stats on free */ +cpumask_t affinity_mask;int numa_node; -struct rcu_head rcu;/* to avoid race with update stats on free */ char name[IFNAMSIZ +9 ];/* for dynamic allocation of rings associated with this q_vector */
drivers/net/ethernet/mellanox/mlx5/core/en/port_buffer.c +3 -0
@@ -331,6 +331,9 @@ static int port_set_buffer(struct mlx5e_priv *priv,if (err) goto out; +/* RO bits should be set to 0 on write */ +MLX5_SET (pbmc_reg, in, port_buffer_size,0 ); + err =mlx5e_port_set_pbmc (mdev, in); out:kfree (in);
drivers/net/ethernet/mellanox/mlx5/core/en_accel/ipsec_rxtx.c +4 -0
@@ -333,6 +333,10 @@ void mlx5e_ipsec_offload_handle_rx_skb(struct net_device *netdev,if (unlikely (!sa_entry)) {rcu_read_unlock ();atomic64_inc (&ipsec->sw_stats.ipsec_rx_drop_sadb_miss); +/* Clear secpath to prevent invalid dereference +* in downstream XFRM policy checks. +*/ +secpath_reset (skb);return ; }xfrm_state_hold (sa_entry->x);
drivers/net/ethernet/mellanox/mlx5/core/en_rx.c +1 -0
@@ -1573,6 +1573,7 @@ static inline void mlx5e_build_rx_skb(struct mlx5_cqe64 *cqe,unsigned int hdrlen =mlx5e_lro_update_hdr (skb, cqe, cqe_bcnt);skb_shinfo (skb)->gso_size =DIV_ROUND_UP (cqe_bcnt - hdrlen, lro_num_seg); +skb_shinfo (skb)->gso_segs = lro_num_seg;/* Subtract one since we already counted this as one * "regular" packet in mlx5e_complete_rx_cqe() */
drivers/net/ethernet/mellanox/mlx5/core/lib/dm.c +2 -2
@@ -28,7 +28,7 @@ struct mlx5_dm *mlx5_dm_create(struct mlx5_core_dev *dev) dm =kzalloc (sizeof (*dm),GFP_KERNEL );if (!dm) -return ERR_PTR (-ENOMEM ); +return NULL ;spin_lock_init (&dm->lock);
@@ -80,7 +80,7 @@ struct mlx5_dm *mlx5_dm_create(struct mlx5_core_dev *dev) err_steering:kfree (dm); -return ERR_PTR (-ENOMEM ); +return NULL ; }void mlx5_dm_cleanup (struct mlx5_core_dev *dev)
drivers/net/ethernet/mellanox/mlx5/core/main.c +0 -3
@@ -1055,9 +1055,6 @@ static int mlx5_init_once(struct mlx5_core_dev *dev) } dev->dm =mlx5_dm_create (dev); -if (IS_ERR (dev->dm)) -mlx5_core_warn (dev,"Failed to init device memory %ld\n" ,PTR_ERR (dev->dm)); - dev->tracer =mlx5_fw_tracer_create (dev); dev->hv_vhca =mlx5_hv_vhca_create (dev); dev->rsc_dump =mlx5_rsc_dump_create (dev);
drivers/net/ipa/ipa_sysfs.c +5 -1
@@ -38,8 +38,12 @@ static const char *ipa_version_string(struct ipa *ipa)return "4.11" ;case IPA_VERSION_5_0 :return "5.0" ; +case IPA_VERSION_5_1 : +return "5.1" ; +case IPA_VERSION_5_5 : +return "5.5" ;default : -return "0.0" ;/* Won't happen (checked at probe time) */ +return "0.0" ;/* Should not happen */ } }
drivers/net/phy/mscc/mscc_ptp.c +1 -0
@@ -897,6 +897,7 @@ static int vsc85xx_eth1_conf(struct phy_device *phydev, enum ts_blk blk, get_unaligned_be32(ptp_multicast)); }else { val |=ANA_ETH1_FLOW_ADDR_MATCH2_ANY_MULTICAST ; + val |=ANA_ETH1_FLOW_ADDR_MATCH2_ANY_UNICAST ;vsc85xx_ts_write_csr (phydev, blk,MSCC_ANA_ETH1_FLOW_ADDR_MATCH2 (0 ), val); vsc85xx_ts_write_csr(phydev, blk,
drivers/net/phy/mscc/mscc_ptp.h +1 -0
@@ -98,6 +98,7 @@#define MSCC_ANA_ETH1_FLOW_ADDR_MATCH2 (x) (MSCC_ANA_ETH1_FLOW_ENA(x) + 3)#define ANA_ETH1_FLOW_ADDR_MATCH2_MASK_MASK GENMASK(22, 20)#define ANA_ETH1_FLOW_ADDR_MATCH2_ANY_MULTICAST 0x400000 +#define ANA_ETH1_FLOW_ADDR_MATCH2_ANY_UNICAST 0x200000#define ANA_ETH1_FLOW_ADDR_MATCH2_FULL_ADDR 0x100000#define ANA_ETH1_FLOW_ADDR_MATCH2_SRC_DEST_MASK GENMASK(17, 16)#define ANA_ETH1_FLOW_ADDR_MATCH2_SRC_DEST 0x020000
drivers/net/ppp/pptp.c +11 -7
@@ -159,19 +159,17 @@ static int pptp_xmit(struct ppp_channel *chan, struct sk_buff *skb)int len;unsigned char *data;__u32 seq_recv; - -struct rtable *rt;struct net_device *tdev;struct iphdr *iph;int max_headroom;if (sk_pppox (po)->sk_state &PPPOX_DEAD ) - goto tx_error; + goto tx_drop; rt =pptp_route_output (po, &fl4);if (IS_ERR (rt)) - goto tx_error; + goto tx_drop; tdev = rt->dst.dev;
@@ -179,16 +177,20 @@ static int pptp_xmit(struct ppp_channel *chan, struct sk_buff *skb)if (skb_headroom (skb) < max_headroom ||skb_cloned (skb) ||skb_shared (skb)) {struct sk_buff *new_skb =skb_realloc_headroom (skb, max_headroom); -if (!new_skb) { -ip_rt_put (rt); + +if (!new_skb) goto tx_error; - } +if (skb->sk)skb_set_owner_w (new_skb, skb->sk);consume_skb (skb); skb = new_skb; } +/* Ensure we can safely access protocol field and LCP code */ +if (!pskb_may_pull (skb,3 )) + goto tx_error; + data = skb->data; islcp = ((data[0 ] <<8 ) + data[1 ]) ==PPP_LCP &&1 <= data[2 ] && data[2 ] <=7 ;
@@ -262,6 +264,8 @@ static int pptp_xmit(struct ppp_channel *chan, struct sk_buff *skb)return 1 ; tx_error: +ip_rt_put (rt); +tx_drop:kfree_skb (skb);return 1 ; }
drivers/net/usb/usbnet.c +8 -3
@@ -1113,6 +1113,9 @@ static void __handle_link_change(struct usbnet *dev)if (!test_bit (EVENT_DEV_OPEN , &dev->flags))return ; +if (test_and_clear_bit (EVENT_LINK_CARRIER_ON , &dev->flags)) +netif_carrier_on (dev->net); +if (!netif_carrier_ok (dev->net)) {/* kill URBs for reading packets to save bus bandwidth */ unlink_urbs (dev, &dev->rxq);
@@ -2015,10 +2018,12 @@ EXPORT_SYMBOL(usbnet_manage_power);void usbnet_link_change (struct usbnet *dev,bool link,bool need_reset) {/* update link after link is reseted */ -if (link && !need_reset) -netif_carrier_on (dev->net); -else +if (link && !need_reset) { +set_bit (EVENT_LINK_CARRIER_ON , &dev->flags); + }else { +clear_bit (EVENT_LINK_CARRIER_ON , &dev->flags);netif_carrier_off (dev->net); + }if (need_reset && link)usbnet_defer_kevent (dev,EVENT_LINK_RESET );
drivers/net/vrf.c +2 -0
@@ -1345,6 +1345,8 @@ static void vrf_ip6_input_dst(struct sk_buff *skb, struct net_device *vrf_dev,struct net *net =dev_net (vrf_dev);struct rt6_info *rt6; +skb_dst_drop (skb); + rt6 =vrf_ip6_route_lookup (net, vrf_dev, &fl6, ifindex, skb,RT6_LOOKUP_F_HAS_SADDR |RT6_LOOKUP_F_IFACE );if (unlikely (!rt6))
drivers/net/wireless/ath/ath11k/hal.c +4 -0
@@ -1319,6 +1319,10 @@ EXPORT_SYMBOL(ath11k_hal_srng_init);void ath11k_hal_srng_deinit (struct ath11k_base *ab) {struct ath11k_hal *hal = &ab->hal; +int i; + +for (i =0 ; i <HAL_SRNG_RING_ID_MAX ; i++) + ab->hal.srng_list[i].initialized =0 ;ath11k_hal_unregister_srng_key (ab);ath11k_hal_free_cont_rdp (ab);
drivers/net/wireless/ath/ath12k/wmi.c +7 -5
@@ -6303,7 +6303,7 @@ static int ath12k_wmi_tlv_services_parser(struct ath12k_base *ab, void *data) {const struct wmi_service_available_event *ev; -u32 *wmi_ext2_service_bitmap; +__le32 *wmi_ext2_service_bitmap;int i, j;u16 expected_len;
@@ -6335,12 +6335,12 @@ static int ath12k_wmi_tlv_services_parser(struct ath12k_base *ab, ev->wmi_service_segment_bitmap[3]);break ;case WMI_TAG_ARRAY_UINT32 : - wmi_ext2_service_bitmap = (u32 *)ptr; + wmi_ext2_service_bitmap = (__le32 *)ptr;for (i =0 , j =WMI_MAX_EXT_SERVICE ; i <WMI_SERVICE_SEGMENT_BM_SIZE32 && j <WMI_MAX_EXT2_SERVICE ; i++) {do { -if (wmi_ext2_service_bitmap[i] & +if (__le32_to_cpu (wmi_ext2_service_bitmap[i]) &BIT (j %WMI_AVAIL_SERVICE_BITS_IN_SIZE32 ))set_bit (j, ab->wmi_ab.svc_map); }while (++j %WMI_AVAIL_SERVICE_BITS_IN_SIZE32 );
@@ -6348,8 +6348,10 @@ static int ath12k_wmi_tlv_services_parser(struct ath12k_base *ab,ath12k_dbg (ab,ATH12K_DBG_WMI ,"wmi_ext2_service_bitmap 0x%04x 0x%04x 0x%04x 0x%04x" , - wmi_ext2_service_bitmap[0 ], wmi_ext2_service_bitmap[1 ], - wmi_ext2_service_bitmap[2 ], wmi_ext2_service_bitmap[3 ]); +__le32_to_cpu (wmi_ext2_service_bitmap[0 ]), +__le32_to_cpu (wmi_ext2_service_bitmap[1 ]), +__le32_to_cpu (wmi_ext2_service_bitmap[2 ]), +__le32_to_cpu (wmi_ext2_service_bitmap[3 ]));break ; }return 0 ;
drivers/net/wireless/broadcom/brcm80211/brcmfmac/cfg80211.c +4 -4
@@ -1541,10 +1541,6 @@ brcmf_cfg80211_scan(struct wiphy *wiphy, struct cfg80211_scan_request *request)return -EAGAIN ; } -/* If scan req comes for p2p0, send it over primary I/F */ -if (vif == cfg->p2p.bss_idx[P2PAPI_BSSCFG_DEVICE ].vif) - vif = cfg->p2p.bss_idx[P2PAPI_BSSCFG_PRIMARY ].vif; -brcmf_dbg (SCAN ,"START ESCAN\n" ); cfg->scan_request = request;
@@ -1560,6 +1556,10 @@ brcmf_cfg80211_scan(struct wiphy *wiphy, struct cfg80211_scan_request *request)if (err) goto scan_out; +/* If scan req comes for p2p0, send it over primary I/F */ +if (vif == cfg->p2p.bss_idx[P2PAPI_BSSCFG_DEVICE ].vif) + vif = cfg->p2p.bss_idx[P2PAPI_BSSCFG_PRIMARY ].vif; + err =brcmf_do_escan (vif->ifp, request);if (err) goto scan_out;
drivers/net/wireless/intel/iwlwifi/dvm/main.c +9 -2
@@ -1048,9 +1048,11 @@ static void iwl_bg_restart(struct work_struct *data)* *****************************************************************************/ -static void iwl_setup_deferred_work (struct iwl_priv *priv) +static int iwl_setup_deferred_work (struct iwl_priv *priv) { priv->workqueue =alloc_ordered_workqueue (DRV_NAME ,0 ); +if (!priv->workqueue) +return -ENOMEM ;INIT_WORK (&priv->restart, iwl_bg_restart);INIT_WORK (&priv->beacon_update, iwl_bg_beacon_update);
@@ -1067,6 +1069,8 @@ static void iwl_setup_deferred_work(struct iwl_priv *priv)timer_setup (&priv->statistics_periodic, iwl_bg_statistics_periodic,0 );timer_setup (&priv->ucode_trace, iwl_bg_ucode_trace,0 ); + +return 0 ; }void iwl_cancel_deferred_work (struct iwl_priv *priv)
@@ -1456,7 +1460,9 @@ static struct iwl_op_mode *iwl_op_mode_dvm_start(struct iwl_trans *trans,/******************** * 6. Setup services ********************/ -iwl_setup_deferred_work (priv); +if (iwl_setup_deferred_work (priv)) + goto out_uninit_drv; +iwl_setup_rx_handlers (priv);iwl_power_initialize (priv);
@@ -1494,6 +1500,7 @@ static struct iwl_op_mode *iwl_op_mode_dvm_start(struct iwl_trans *trans,iwl_cancel_deferred_work (priv);destroy_workqueue (priv->workqueue); priv->workqueue =NULL ; +out_uninit_drv:iwl_uninit_drv (priv); out_free_eeprom_blob:kfree (priv->eeprom_blob);
drivers/net/wireless/intel/iwlwifi/mvm/ops.c +3 -1
@@ -65,8 +65,10 @@ static int __init iwl_mvm_init(void) } ret =iwl_opmode_register ("iwlmvm" , &iwl_mvm_ops); -if (ret) +if (ret) {pr_err ("Unable to register MVM op_mode: %d\n" , ret); +iwl_mvm_rate_control_unregister (); + }return ret; }
drivers/net/wireless/marvell/mwl8k.c +4 -0
@@ -1222,6 +1222,10 @@ static int rxq_refill(struct ieee80211_hw *hw, int index, int limit) addr =dma_map_single (&priv->pdev->dev, skb->data,MWL8K_RX_MAXSZ ,DMA_FROM_DEVICE ); +if (dma_mapping_error (&priv->pdev->dev, addr)) { +kfree_skb (skb); +break ; + } rxq->rxd_count++; rx = rxq->tail++;
drivers/net/wireless/purelifi/plfxlc/mac.c +6 -5
@@ -100,11 +100,6 @@ int plfxlc_mac_init_hw(struct ieee80211_hw *hw)return r; } -void plfxlc_mac_release (struct plfxlc_mac *mac) -{ -plfxlc_chip_release (&mac->chip); -} -int plfxlc_op_start (struct ieee80211_hw *hw) {plfxlc_hw_mac (hw)->chip.usb.initialized =1 ;
@@ -752,3 +747,9 @@ struct ieee80211_hw *plfxlc_mac_alloc_hw(struct usb_interface *intf)SET_IEEE80211_DEV (hw, &intf->dev);return hw; } + +void plfxlc_mac_release_hw (struct ieee80211_hw *hw) +{ +plfxlc_chip_release (&plfxlc_hw_mac (hw)->chip); +ieee80211_free_hw (hw); +}
drivers/net/wireless/purelifi/plfxlc/mac.h +1 -1
@@ -168,7 +168,7 @@ static inline u8 *plfxlc_mac_get_perm_addr(struct plfxlc_mac *mac) }struct ieee80211_hw *plfxlc_mac_alloc_hw (struct usb_interface *intf); -void plfxlc_mac_release (struct plfxlc_mac *mac); +void plfxlc_mac_release_hw (struct ieee80211_hw *hw);int plfxlc_mac_preinit_hw (struct ieee80211_hw *hw,const u8 *hw_address);int plfxlc_mac_init_hw (struct ieee80211_hw *hw);
drivers/net/wireless/purelifi/plfxlc/usb.c +14 -15
@@ -604,7 +604,7 @@ static int probe(struct usb_interface *intf, r =plfxlc_upload_mac_and_serial (intf, hw_address, serial_number);if (r) {dev_err (&intf->dev,"MAC and Serial upload failed (%d)\n" , r); - goto error; + goto error_free_hw; } chip->unit_type =STA ;
@@ -613,13 +613,13 @@ static int probe(struct usb_interface *intf, r =plfxlc_mac_preinit_hw (hw, hw_address);if (r) {dev_err (&intf->dev,"Init mac failed (%d)\n" , r); - goto error; + goto error_free_hw; } r =ieee80211_register_hw (hw);if (r) {dev_err (&intf->dev,"Register device failed (%d)\n" , r); - goto error; + goto error_free_hw; } if ((le16_to_cpu(interface_to_usbdev(intf)->descriptor.idVendor) ==
@@ -632,7 +632,7 @@ static int probe(struct usb_interface *intf, }if (r !=0 ) {dev_err (&intf->dev,"FPGA download failed (%d)\n" , r); - goto error; + goto error_unreg_hw; } tx->mac_fifo_full =0 ;
@@ -642,21 +642,21 @@ static int probe(struct usb_interface *intf, r =plfxlc_usb_init_hw (usb);if (r <0 ) {dev_err (&intf->dev,"usb_init_hw failed (%d)\n" , r); - goto error; + goto error_unreg_hw; }msleep (PLF_MSLEEP_TIME ); r =plfxlc_chip_switch_radio (chip,PLFXLC_RADIO_ON );if (r <0 ) {dev_dbg (&intf->dev,"chip_switch_radio_on failed (%d)\n" , r); - goto error; + goto error_unreg_hw; }msleep (PLF_MSLEEP_TIME ); r =plfxlc_chip_set_rate (chip,8 );if (r <0 ) {dev_dbg (&intf->dev,"chip_set_rate failed (%d)\n" , r); - goto error; + goto error_unreg_hw; }msleep (PLF_MSLEEP_TIME );
@@ -664,7 +664,7 @@ static int probe(struct usb_interface *intf, hw_address, ETH_ALEN, USB_REQ_MAC_WR);if (r <0 ) {dev_dbg (&intf->dev,"MAC_WR failure (%d)\n" , r); - goto error; + goto error_unreg_hw; }plfxlc_chip_enable_rxtx (chip);
@@ -691,12 +691,12 @@ static int probe(struct usb_interface *intf,plfxlc_mac_init_hw (hw); usb->initialized = true;return 0 ; + +error_unreg_hw: +ieee80211_unregister_hw (hw); +error_free_hw: +plfxlc_mac_release_hw (hw); error: -if (hw) { -plfxlc_mac_release (plfxlc_hw_mac (hw)); -ieee80211_unregister_hw (hw); -ieee80211_free_hw (hw); - }dev_err (&intf->dev,"pureLifi:Device error" );return r; }
@@ -730,8 +730,7 @@ static void disconnect(struct usb_interface *intf)*/ usb_reset_device (interface_to_usbdev (intf)); -plfxlc_mac_release (mac); -ieee80211_free_hw (hw); +plfxlc_mac_release_hw (hw); }static void plfxlc_usb_resume (struct plfxlc_usb *usb)
drivers/net/wireless/realtek/rtl818x/rtl8187/dev.c +2 -1
@@ -1041,10 +1041,11 @@ static void rtl8187_stop(struct ieee80211_hw *dev)rtl818x_iowrite8 (priv, &priv->map->CONFIG4, reg |RTL818X_CONFIG4_VCOOFF );rtl818x_iowrite8 (priv, &priv->map->EEPROM_CMD,RTL818X_EEPROM_CMD_NORMAL ); +usb_kill_anchored_urbs (&priv->anchored); +while ((skb =skb_dequeue (&priv->b_tx_status.queue)))dev_kfree_skb_any (skb); -usb_kill_anchored_urbs (&priv->anchored);mutex_unlock (&priv->conf_mutex);if (!priv->is_rtl8187b)
drivers/net/wireless/realtek/rtl8xxxu/rtl8xxxu_core.c +1 -1
@@ -6501,7 +6501,7 @@ static int rtl8xxxu_submit_rx_urb(struct rtl8xxxu_priv *priv, skb_size = fops->rx_agg_buf_size; skb_size += (rx_desc_sz +sizeof (struct rtl8723au_phy_stats )); }else { - skb_size =IEEE80211_MAX_FRAME_LEN ; + skb_size =IEEE80211_MAX_FRAME_LEN + rx_desc_sz; } skb =__netdev_alloc_skb (NULL , skb_size,GFP_KERNEL );
drivers/net/wireless/realtek/rtw89/core.c +5 -0
@@ -1597,6 +1597,11 @@ static void rtw89_core_cancel_6ghz_probe_tx(struct rtw89_dev *rtwdev,if (rx_status->band !=NL80211_BAND_6GHZ )return ; +if (unlikely (!(rtwdev->chip->support_bands &BIT (NL80211_BAND_6GHZ )))) { +rtw89_debug (rtwdev,RTW89_DBG_UNEXP ,"invalid rx on unsupported 6 GHz\n" ); +return ; + } + ssid_ie =cfg80211_find_ie (WLAN_EID_SSID , ies, skb->len);list_for_each_entry (info, &pkt_list[NL80211_BAND_6GHZ ], list) {
drivers/pci/controller/pcie-rockchip-host.c +1 -1
@@ -436,7 +436,7 @@ static irqreturn_t rockchip_pcie_subsys_irq_handler(int irq, void *arg)dev_dbg (dev,"malformed TLP received from the link\n" );if (sub_reg &PCIE_CORE_INT_UCR ) -dev_dbg (dev,"malformed TLP received from the link\n" ); +dev_dbg (dev,"Unexpected Completion received from the link\n" );if (sub_reg &PCIE_CORE_INT_FCE )dev_dbg (dev,"an error was observed in the flow control advertisements from the other side\n" );
drivers/pci/endpoint/functions/pci-epf-vntb.c +2 -2
@@ -531,7 +531,7 @@ static int epf_ntb_db_bar_init(struct epf_ntb *ntb)struct device *dev = &ntb->epf->dev;int ret;struct pci_epf_bar *epf_bar; -void __iomem *mw_addr; +void *mw_addr;enum pci_barno barno;size_t size =sizeof (u32) * ntb->db_count;
@@ -711,7 +711,7 @@ static int epf_ntb_init_epc_bar(struct epf_ntb *ntb) barno =pci_epc_get_next_free_bar (epc_features, barno);if (barno <0 ) {dev_err (dev,"Fail to get NTB function BAR\n" ); -return barno; +return -ENOENT ; } ntb->epf_ntb_bar[bar] = barno; }
drivers/pci/hotplug/pnv_php.c +211 -22
338 lines not on this page · raw message
drivers/pinctrl/pinmux.c +9 -11
@@ -238,18 +238,7 @@ static const char *pin_free(struct pinctrl_dev *pctldev, int pin,if (desc->mux_usecount)return NULL ; } - } - -/* -* If there is no kind of request function for the pin we just assume -* we got it by default and proceed. -*/ -if (gpio_range && ops->gpio_disable_free) - ops->gpio_disable_free (pctldev, gpio_range, pin); -else if (ops->free) - ops->free (pctldev, pin); - scoped_guard(mutex, &desc->mux_lock) {if (gpio_range) { owner = desc->gpio_owner; desc->gpio_owner =NULL ;
@@ -260,6 +249,15 @@ static const char *pin_free(struct pinctrl_dev *pctldev, int pin, } } +/* +* If there is no kind of request function for the pin we just assume +* we got it by default and proceed. +*/ +if (gpio_range && ops->gpio_disable_free) + ops->gpio_disable_free (pctldev, gpio_range, pin); +else if (ops->free) + ops->free (pctldev, pin); +module_put (pctldev->owner);return owner;
drivers/pinctrl/sunxi/pinctrl-sunxi.c +8 -3
@@ -395,6 +395,7 @@ static int sunxi_pctrl_dt_node_to_map(struct pinctrl_dev *pctldev,const char *function, *pin_prop;const char *group;int ret, npins, nmaps, configlen =0 , i =0 ; +struct pinctrl_map *new_map; *map =NULL ; *num_maps =0 ;
@@ -469,9 +470,13 @@ static int sunxi_pctrl_dt_node_to_map(struct pinctrl_dev *pctldev,* We know have the number of maps we need, we can resize our * map array */ - *map =krealloc (*map, i *sizeof (struct pinctrl_map ),GFP_KERNEL ); -if (!*map) -return -ENOMEM ; + new_map =krealloc (*map, i *sizeof (struct pinctrl_map ),GFP_KERNEL ); +if (!new_map) { + ret = -ENOMEM ; + goto err_free_map; + } + + *map = new_map;return 0 ;
drivers/power/supply/cpcap-charger.c +2 -3
@@ -689,9 +689,8 @@ static void cpcap_usb_detect(struct work_struct *work)struct power_supply *battery; battery =power_supply_get_by_name ("battery" ); -if (IS_ERR_OR_NULL (battery)) { -dev_err (ddata->dev,"battery power_supply not available %li\n" , -PTR_ERR (battery)); +if (!battery) { +dev_err (ddata->dev,"battery power_supply not available\n" );return ; }
drivers/power/supply/max14577_charger.c +2 -2
@@ -501,7 +501,7 @@ static struct max14577_charger_platform_data *max14577_charger_dt_init(static struct max14577_charger_platform_data *max14577_charger_dt_init (struct platform_device *pdev) { -return NULL ; +return ERR_PTR (-ENODATA ); }#endif /* CONFIG_OF */
@@ -572,7 +572,7 @@ static int max14577_charger_probe(struct platform_device *pdev) chg->max14577 = max14577; chg->pdata =max14577_charger_dt_init (pdev); -if (IS_ERR_OR_NULL (chg->pdata)) +if (IS_ERR (chg->pdata))return PTR_ERR (chg->pdata); ret =max14577_charger_reg_init (chg);
drivers/powercap/dtpm_cpu.c +2 -0
@@ -93,6 +93,8 @@ static u64 get_pd_power_uw(struct dtpm *dtpm)int i; pd =em_cpu_get (dtpm_cpu->cpu); +if (!pd) +return 0 ; pd_mask =em_span_cpus (pd);
drivers/pps/pps.c +9 -2
@@ -41,6 +41,9 @@ static __poll_t pps_cdev_poll(struct file *file, poll_table *wait)poll_wait (file, &pps->queue, wait); +if (pps->last_fetched_ev == pps->last_ev) +return 0 ; +return EPOLLIN |EPOLLRDNORM ; }
@@ -186,9 +189,11 @@ static long pps_cdev_ioctl(struct file *file,if (err)return err; -/* Return the fetched timestamp */ +/* Return the fetched timestamp and save last fetched event */ spin_lock_irq (&pps->lock); + pps->last_fetched_ev = pps->last_ev; + fdata.info.assert_sequence = pps->assert_sequence; fdata.info.clear_sequence = pps->clear_sequence; fdata.info.assert_tu = pps->assert_tu;
@@ -272,9 +277,11 @@ static long pps_cdev_compat_ioctl(struct file *file,if (err)return err; -/* Return the fetched timestamp */ +/* Return the fetched timestamp and save last fetched event */ spin_lock_irq (&pps->lock); + pps->last_fetched_ev = pps->last_ev; + compat.info.assert_sequence = pps->assert_sequence; compat.info.clear_sequence = pps->clear_sequence; compat.info.current_mode = pps->current_mode;
drivers/rtc/rtc-ds1307.c +1 -1
@@ -1461,7 +1461,7 @@ static long ds3231_clk_sqw_round_rate(struct clk_hw *hw, unsigned long rate,return ds3231_clk_sqw_rates[i]; } -return 0 ; +return ds3231_clk_sqw_rates[ARRAY_SIZE (ds3231_clk_sqw_rates) -1 ]; } static int ds3231_clk_sqw_set_rate(struct clk_hw *hw, unsigned long rate,
drivers/rtc/rtc-hym8563.c +1 -1
@@ -294,7 +294,7 @@ static long hym8563_clkout_round_rate(struct clk_hw *hw, unsigned long rate,if (clkout_rates[i] <= rate)return clkout_rates[i]; -return 0 ; +return clkout_rates[0 ]; } static int hym8563_clkout_set_rate(struct clk_hw *hw, unsigned long rate,
drivers/rtc/rtc-nct3018y.c +1 -1
@@ -342,7 +342,7 @@ static long nct3018y_clkout_round_rate(struct clk_hw *hw, unsigned long rate,if (clkout_rates[i] <= rate)return clkout_rates[i]; -return 0 ; +return clkout_rates[0 ]; } static int nct3018y_clkout_set_rate(struct clk_hw *hw, unsigned long rate,
drivers/rtc/rtc-pcf85063.c +1 -1
@@ -410,7 +410,7 @@ static long pcf85063_clkout_round_rate(struct clk_hw *hw, unsigned long rate,if (clkout_rates[i] <= rate)return clkout_rates[i]; -return 0 ; +return clkout_rates[0 ]; } static int pcf85063_clkout_set_rate(struct clk_hw *hw, unsigned long rate,
drivers/rtc/rtc-pcf8563.c +1 -1
@@ -386,7 +386,7 @@ static long pcf8563_clkout_round_rate(struct clk_hw *hw, unsigned long rate,if (clkout_rates[i] <= rate)return clkout_rates[i]; -return 0 ; +return clkout_rates[0 ]; } static int pcf8563_clkout_set_rate(struct clk_hw *hw, unsigned long rate,
drivers/rtc/rtc-rv3028.c +1 -1
@@ -738,7 +738,7 @@ static long rv3028_clkout_round_rate(struct clk_hw *hw, unsigned long rate,if (clkout_rates[i] <= rate)return clkout_rates[i]; -return 0 ; +return clkout_rates[0 ]; } static int rv3028_clkout_set_rate(struct clk_hw *hw, unsigned long rate,
drivers/scsi/elx/efct/efct_lio.c +1 -1
@@ -382,7 +382,7 @@ efct_lio_sg_unmap(struct efct_io *io)return ;dma_unmap_sg (&io->efct->pci->dev, cmd->t_data_sg, - ocp->seg_map_cnt, cmd->data_direction); + cmd->t_data_nents, cmd->data_direction); ocp->seg_map_cnt =0 ; }
drivers/scsi/ibmvscsi_tgt/libsrp.c +4 -2
@@ -184,7 +184,8 @@ static int srp_direct_data(struct ibmvscsis_cmd *cmd, struct srp_direct_buf *md, err =rdma_io (cmd, sg, nsg, md,1 , dir, len);if (dma_map) -dma_unmap_sg (iue->target->dev, sg, nsg,DMA_BIDIRECTIONAL ); +dma_unmap_sg (iue->target->dev, sg, cmd->se_cmd.t_data_nents, +DMA_BIDIRECTIONAL );return err; }
@@ -256,7 +257,8 @@ static int srp_indirect_data(struct ibmvscsis_cmd *cmd, struct srp_cmd *srp_cmd, err =rdma_io (cmd, sg, nsg, md, nmd, dir, len);if (dma_map) -dma_unmap_sg (iue->target->dev, sg, nsg,DMA_BIDIRECTIONAL ); +dma_unmap_sg (iue->target->dev, sg, cmd->se_cmd.t_data_nents, +DMA_BIDIRECTIONAL ); free_mem:if (token && dma_map) {
drivers/scsi/isci/request.c +1 -1
@@ -2907,7 +2907,7 @@ static void isci_request_io_request_complete(struct isci_host *ihost, task->total_xfer_len, task->data_dir); else /* unmap the sgl dma addresses */ dma_unmap_sg(&ihost->pdev->dev, task->scatter, - request->num_sg_entries, task->data_dir); + task->num_scatter, task->data_dir);break ;case SAS_PROTOCOL_SMP : {struct scatterlist *sg = &task->smp_task.smp_req;
drivers/scsi/mpt3sas/mpt3sas_scsih.c +1 -2
@@ -10818,8 +10818,7 @@ _mpt3sas_fw_work(struct MPT3SAS_ADAPTER *ioc, struct fw_event_work *fw_event)break ;case MPI2_EVENT_PCIE_TOPOLOGY_CHANGE_LIST :_scsih_pcie_topology_change_event (ioc, fw_event); - ioc->current_event =NULL ; -return ; +break ; } out:fw_event_work_put (fw_event);
drivers/scsi/mvsas/mv_sas.c +2 -2
@@ -828,7 +828,7 @@ static int mvs_task_prep(struct sas_task *task, struct mvs_info *mvi, int is_tmfdev_printk (KERN_ERR , mvi->dev,"mvsas prep failed[%d]!\n" , rc);if (!sas_protocol_ata (task->task_proto))if (n_elem) -dma_unmap_sg (mvi->dev, task->scatter, n_elem, +dma_unmap_sg (mvi->dev, task->scatter, task->num_scatter, task->data_dir); prep_out:return rc;
@@ -874,7 +874,7 @@ static void mvs_slot_task_free(struct mvs_info *mvi, struct sas_task *task,if (!sas_protocol_ata (task->task_proto))if (slot->n_elem)dma_unmap_sg (mvi->dev, task->scatter, - slot->n_elem, task->data_dir); + task->num_scatter, task->data_dir);switch (task->task_proto) {case SAS_PROTOCOL_SMP :
drivers/scsi/scsi_transport_iscsi.c +2 -0
@@ -2169,6 +2169,8 @@ static int iscsi_iter_destroy_conn_fn(struct device *dev, void *data)return 0 ;iscsi_remove_conn (iscsi_dev_to_conn (dev)); +iscsi_put_conn (iscsi_dev_to_conn (dev)); +return 0 ; }
drivers/scsi/sd.c +3 -1
@@ -3895,7 +3895,9 @@ static void sd_shutdown(struct device *dev)if ((system_state !=SYSTEM_RESTART && sdkp->device->manage_system_start_stop) || (system_state ==SYSTEM_POWER_OFF && - sdkp->device->manage_shutdown)) { + sdkp->device->manage_shutdown) || + (system_state ==SYSTEM_RUNNING && + sdkp->device->manage_runtime_start_stop)) {sd_printk (KERN_NOTICE , sdkp,"Stopping disk\n" );sd_start_stop_device (sdkp,0 ); }
drivers/soc/qcom/pmic_glink.c +7 -2
@@ -145,7 +145,10 @@ static int pmic_glink_rpmsg_callback(struct rpmsg_device *rpdev, void *data,return 0 ; } -static void pmic_glink_aux_release (struct device *dev) {} +static void pmic_glink_aux_release (struct device *dev) +{ +of_node_put (dev->of_node); +} static int pmic_glink_add_aux_device(struct pmic_glink *pg, struct auxiliary_device *aux,
@@ -159,8 +162,10 @@ static int pmic_glink_add_aux_device(struct pmic_glink *pg, aux->dev.release = pmic_glink_aux_release;device_set_of_node_from_dev (&aux->dev, parent); ret =auxiliary_device_init (aux); -if (ret) +if (ret) { +of_node_put (aux->dev.of_node);return ret; + } ret =auxiliary_device_add (aux);if (ret)
drivers/soc/qcom/qmi_encdec.c +38 -8
88 lines not on this page · raw message
drivers/soc/tegra/cbb/tegra234-cbb.c +2 -0
@@ -185,6 +185,8 @@ static void tegra234_cbb_error_clear(struct tegra_cbb *cbb) {struct tegra234_cbb *priv =to_tegra234_cbb (cbb); +writel (0 , priv->mon +FABRIC_MN_MASTER_ERR_FORCE_0 ); +writel (0x3f , priv->mon +FABRIC_MN_MASTER_ERR_STATUS_0 );dsb (sy); }
drivers/soundwire/stream.c +1 -1
@@ -1409,7 +1409,7 @@ static int _sdw_prepare_stream(struct sdw_stream_runtime *stream,if (ret <0 ) {dev_err (bus->dev,"Prepare port(s) failed ret = %d\n" , ret); -return ret; + goto restore_params; } }
drivers/spi/spi-stm32.c +7 -1
@@ -1808,9 +1808,15 @@ static int stm32_spi_probe(struct platform_device *pdev)struct resource *res;struct reset_control *rst;struct device_node *np = pdev->dev.of_node; +const struct stm32_spi_cfg *cfg;bool device_mode;int ret; -const struct stm32_spi_cfg *cfg =of_device_get_match_data (&pdev->dev); + + cfg =of_device_get_match_data (&pdev->dev); +if (!cfg) { +dev_err (&pdev->dev,"Failed to get match data for platform\n" ); +return -ENODEV ; + } device_mode =of_property_read_bool (np,"spi-slave" );if (!cfg->has_device_mode && device_mode) {
drivers/staging/fbtft/fbtft-core.c +1 -0
@@ -744,6 +744,7 @@ struct fb_info *fbtft_framebuffer_alloc(struct fbtft_display *display,return info;
Lines of this file are not shown. View the raw message.
drivers/usb/misc/apple-mfi-fastcharge.c +21 -3
Lines of this file are not shown. View the raw message.
drivers/xen/gntdev.c +50 -21
71 lines not on this page · raw message
fs/nfs/flexfilelayout/flexfilelayout.c +16 -10
Lines of this file are not shown. View the raw message.
fs/nfs/flexfilelayout/flexfilelayoutdev.c +3 -3
Lines of this file are not shown. View the raw message.
fs/smb/client/smbdirect.c +163 -130
293 lines not on this page · raw message
fs/smb/common/smbdirect/smbdirect_socket.h new file +41 -0
41 lines not on this page · raw message
fs/smb/server/transport_rdma.c +35 -62
97 lines not on this page · raw message
include/linux/wait_bit.h +60 -0
60 lines not on this page · raw message
kernel/freezer.c +20 -31
51 lines not on this page · raw message
kernel/sched/psi.c +65 -58
123 lines not on this page · raw message
net/caif/cfctrl.c +144 -150
294 lines not on this page · raw message
net/ipv6/route.c +32 -24
56 lines not on this page · raw message
net/sunrpc/svcsock.c +35 -8
43 lines not on this page · raw message
sound/soc/mediatek/common/mtk-afe-platform-driver.c +3 -1
Lines of this file are not shown. View the raw message.
sound/soc/mediatek/common/mtk-base-afe.h +1 -0
Lines of this file are not shown. View the raw message.
sound/soc/mediatek/mt8173/mt8173-afe-pcm.c +7 -0
Lines of this file are not shown. View the raw message.
sound/soc/mediatek/mt8183/mt8183-afe-pcm.c +7 -0
Lines of this file are not shown. View the raw message.
sound/soc/mediatek/mt8186/mt8186-afe-pcm.c +7 -0
Lines of this file are not shown. View the raw message.
sound/soc/mediatek/mt8192/mt8192-afe-pcm.c +7 -0
Lines of this file are not shown. View the raw message.
tools/perf/builtin-sched.c +38 -3
41 lines not on this page · raw message
tools/testing/selftests/arm64/fp/sve-ptrace.c +1 -1
Lines of this file are not shown. View the raw message.
tools/testing/selftests/bpf/prog_tests/sockmap_listen.c +2 -0
Lines of this file are not shown. View the raw message.
tools/testing/selftests/ftrace/test.d/event/subsystem-enable.tc +26 -2
Lines of this file are not shown. View the raw message.
tools/testing/selftests/net/rtnetlink.sh +6 -0
Lines of this file are not shown. View the raw message.
tools/testing/selftests/perf_events/.gitignore +1 -0
Lines of this file are not shown. View the raw message.
tools/testing/selftests/perf_events/Makefile +1 -1
Lines of this file are not shown. View the raw message.
tools/testing/selftests/perf_events/mmap.c new file +236 -0
236 lines not on this page · raw message
tools/testing/selftests/syscall_user_dispatch/sud_test.c +25 -25
50 lines not on this page · raw message
The rest of this diff is not shown. View the raw message.
Part of the diff is not shown here. View the raw message.