28 Jan, 2021

1 commit


25 Jan, 2021

1 commit


20 Jan, 2021

2 commits

  • [ Upstream commit f6f92968e1e5a7a9d211faaebefc26ebe408dad7 ]

    Not all firmware versions support allocating DMA memory in smaller blocks so
    first try to allocate big block of DMA memory for QMI. If the allocation fails,
    let firmware request multiple blocks of DMA memory with smaller size.

    This also fixes an unnecessary error message seen during ath11k probe on
    QCA6390:

    ath11k_pci 0000:06:00.0: Respond mem req failed, result: 1, err: 0
    ath11k_pci 0000:06:00.0: qmi failed to respond fw mem req:-22

    Tested-on: QCA6390 hw2.0 PCI WLAN.HST.1.0.1-01740-QCAHSTSWPLZ_V2_TO_X86-1

    Signed-off-by: Carl Huang
    Signed-off-by: Kalle Valo
    Link: https://lore.kernel.org/r/1608127593-15192-1-git-send-email-kvalo@codeaurora.org
    Signed-off-by: Sasha Levin

    Carl Huang
     
  • [ Upstream commit 3597010630d0aa96f5778901e691c6068bb86318 ]

    During connect and disconnect stress test, crashed happened
    because ar->rx_channel is NULL. Fix it by checking whether
    ar->rx_channel is NULL.

    Crash stack is as below:
    RIP: 0010:ath11k_dp_rx_h_ppdu+0x110/0x230 [ath11k]
    [ 5028.808963] ath11k_dp_rx_wbm_err+0x14a/0x360 [ath11k]
    [ 5028.808970] ath11k_dp_rx_process_wbm_err+0x41c/0x520 [ath11k]
    [ 5028.808978] ath11k_dp_service_srng+0x25e/0x2d0 [ath11k]
    [ 5028.808982] ath11k_pci_ext_grp_napi_poll+0x23/0x80 [ath11k_pci]
    [ 5028.808986] net_rx_action+0x27e/0x400
    [ 5028.808990] __do_softirq+0xfd/0x2bb
    [ 5028.808993] irq_exit+0xa6/0xb0
    [ 5028.808995] do_IRQ+0x56/0xe0
    [ 5028.808997] common_interrupt+0xf/0xf

    Tested-on: QCA6390 hw2.0 PCI WLAN.HST.1.0.1-01740-QCAHSTSWPLZ_V2_TO_X86-1

    Signed-off-by: Carl Huang
    Signed-off-by: Kalle Valo
    Link: https://lore.kernel.org/r/20201211055613.9310-1-cjhuang@codeaurora.org
    Signed-off-by: Sasha Levin

    Carl Huang
     

18 Jan, 2021

1 commit

  • Add initial MxM (multi-chip-multi-interface) wifi driver
    for IMX Linux Kernel version 5.10.
    The driver is initial to target support 88w8987/88w8997.

    The MxM wifi driver is merged from below repo:
    ssh://git@bitbucket.sw.nxp.com/wcswrel/
    rel-l5-10-nxp-wifi-fp92-bt-fp92-linux-android-mxm5x16214-mgpl.git

    Change-Id: I431cc871963cb571d6561293ec4e5a8507bbf098
    Signed-off-by: yang.tian

    yang.tian
     

17 Jan, 2021

1 commit

  • commit e186620d7bf11b274b985b839c38266d7918cc05 upstream.

    Without crc32, the driver fails to link:

    arm-linux-gnueabi-ld: drivers/net/wireless/ath/wil6210/fw.o: in function `wil_fw_verify':
    fw.c:(.text+0x74c): undefined reference to `crc32_le'
    arm-linux-gnueabi-ld: drivers/net/wireless/ath/wil6210/fw.o:fw.c:(.text+0x758): more undefined references to `crc32_le' follow

    Fixes: 151a9706503f ("wil6210: firmware download")
    Signed-off-by: Arnd Bergmann
    Signed-off-by: David S. Miller
    Signed-off-by: Greg Kroah-Hartman

    Arnd Bergmann
     

13 Jan, 2021

1 commit

  • commit 4dfde294b9792dcf8615b55c58f093d544f472f0 upstream.

    request_firmware_nowait() which schedules another work is used to load
    firmware when USB is probing. If USB is unplugged before running the
    firmware work, it goes disconnect ops, and then causes use-after-free.
    Though we wait for completion of firmware work before freeing the hw,
    firmware callback rises completion too early. So I move it to the
    last step.

    usb 5-1: Direct firmware load for rtlwifi/rtl8192cufw.bin failed with error -2
    rtlwifi: Loading alternative firmware rtlwifi/rtl8192cufw.bin
    rtlwifi: Selected firmware is not available
    ==================================================================
    BUG: KASAN: use-after-free in rtl_fw_do_work.cold+0x68/0x6a drivers/net/wireless/realtek/rtlwifi/core.c:93
    Write of size 4 at addr ffff8881454cff50 by task kworker/0:6/7379

    CPU: 0 PID: 7379 Comm: kworker/0:6 Not tainted 5.10.0-rc7-syzkaller #0
    Hardware name: Google Google Compute Engine/Google Compute Engine, BIOS Google 01/01/2011
    Workqueue: events request_firmware_work_func
    Call Trace:
    __dump_stack lib/dump_stack.c:77 [inline]
    dump_stack+0x107/0x163 lib/dump_stack.c:118
    print_address_description.constprop.0.cold+0xae/0x4c8 mm/kasan/report.c:385
    __kasan_report mm/kasan/report.c:545 [inline]
    kasan_report.cold+0x1f/0x37 mm/kasan/report.c:562
    rtl_fw_do_work.cold+0x68/0x6a drivers/net/wireless/realtek/rtlwifi/core.c:93
    request_firmware_work_func+0x12c/0x230 drivers/base/firmware_loader/main.c:1079
    process_one_work+0x933/0x1520 kernel/workqueue.c:2272
    worker_thread+0x64c/0x1120 kernel/workqueue.c:2418
    kthread+0x38c/0x460 kernel/kthread.c:292
    ret_from_fork+0x1f/0x30 arch/x86/entry/entry_64.S:296

    The buggy address belongs to the page:
    page:00000000f54435b3 refcount:0 mapcount:0 mapping:0000000000000000 index:0x0 pfn:0x1454cf
    flags: 0x200000000000000()
    raw: 0200000000000000 0000000000000000 ffffea00051533c8 0000000000000000
    raw: 0000000000000000 0000000000000000 00000000ffffffff 0000000000000000
    page dumped because: kasan: bad access detected

    Memory state around the buggy address:
    ffff8881454cfe00: ff ff ff ff ff ff ff ff ff ff ff ff ff ff ff ff
    ffff8881454cfe80: ff ff ff ff ff ff ff ff ff ff ff ff ff ff ff ff
    >ffff8881454cff00: ff ff ff ff ff ff ff ff ff ff ff ff ff ff ff ff
    ^
    ffff8881454cff80: ff ff ff ff ff ff ff ff ff ff ff ff ff ff ff ff
    ffff8881454d0000: ff ff ff ff ff ff ff ff ff ff ff ff ff ff ff ff

    Reported-by: syzbot+65be4277f3c489293939@syzkaller.appspotmail.com
    Signed-off-by: Ping-Ke Shih
    Signed-off-by: Kalle Valo
    Link: https://lore.kernel.org/r/20201214053106.7748-1-pkshih@realtek.com
    Signed-off-by: Greg Kroah-Hartman

    Ping-Ke Shih
     

09 Jan, 2021

1 commit

  • [ Upstream commit 5c455c5ab332773464d02ba17015acdca198f03d ]

    mwifiex_cmd_802_11_ad_hoc_start() calls memcpy() without checking
    the destination size may trigger a buffer overflower,
    which a local user could use to cause denial of service
    or the execution of arbitrary code.
    Fix it by putting the length check before calling memcpy().

    Signed-off-by: Zhang Xiaohui
    Signed-off-by: Kalle Valo
    Link: https://lore.kernel.org/r/20201206084801.26479-1-ruc_zhangxiaohui@163.com
    Signed-off-by: Sasha Levin

    Zhang Xiaohui
     

30 Dec, 2020

30 commits

  • Changes in 5.10.4
    hwmon: (k10temp) Remove support for displaying voltage and current on Zen CPUs
    drm/gma500: fix double free of gma_connector
    iio: adc: at91_adc: add Kconfig dep on the OF symbol and remove of_match_ptr()
    drm/aspeed: Fix Kconfig warning & subsequent build errors
    drm/mcde: Fix handling of platform_get_irq() error
    drm/tve200: Fix handling of platform_get_irq() error
    arm64: dts: renesas: hihope-rzg2-ex: Drop rxc-skew-ps from ethernet-phy node
    arm64: dts: renesas: cat875: Remove rxc-skew-ps from ethernet-phy node
    soc: renesas: rmobile-sysc: Fix some leaks in rmobile_init_pm_domains()
    soc: mediatek: Check if power domains can be powered on at boot time
    arm64: dts: mediatek: mt8183: fix gce incorrect mbox-cells value
    arm64: dts: ipq6018: update the reserved-memory node
    arm64: dts: qcom: sc7180: Fix one forgotten interconnect reference
    soc: qcom: geni: More properly switch to DMA mode
    Revert "i2c: i2c-qcom-geni: Fix DMA transfer race"
    RDMA/bnxt_re: Set queue pair state when being queried
    rtc: pcf2127: fix pcf2127_nvmem_read/write() returns
    RDMA/bnxt_re: Fix entry size during SRQ create
    selinux: fix error initialization in inode_doinit_with_dentry()
    ARM: dts: aspeed-g6: Fix the GPIO memory size
    ARM: dts: aspeed: s2600wf: Fix VGA memory region location
    RDMA/core: Fix error return in _ib_modify_qp()
    RDMA/rxe: Compute PSN windows correctly
    x86/mm/ident_map: Check for errors from ident_pud_init()
    ARM: p2v: fix handling of LPAE translation in BE mode
    RDMA/rtrs-clt: Remove destroy_con_cq_qp in case route resolving failed
    RDMA/rtrs-clt: Missing error from rtrs_rdma_conn_established
    RDMA/rtrs-srv: Don't guard the whole __alloc_srv with srv_mutex
    x86/apic: Fix x2apic enablement without interrupt remapping
    ASoC: qcom: fix unsigned int bitwidth compared to less than zero
    sched/deadline: Fix sched_dl_global_validate()
    sched: Reenable interrupts in do_sched_yield()
    drm/amdgpu: fix incorrect enum type
    crypto: talitos - Endianess in current_desc_hdr()
    crypto: talitos - Fix return type of current_desc_hdr()
    crypto: inside-secure - Fix sizeof() mismatch
    ASoC: sun4i-i2s: Fix lrck_period computation for I2S justified mode
    drm/msm: Add missing stub definition
    ARM: dts: aspeed: tiogapass: Remove vuart
    drm/amdgpu: fix build_coefficients() argument
    powerpc/64: Set up a kernel stack for secondaries before cpu_restore()
    spi: img-spfi: fix reference leak in img_spfi_resume
    f2fs: call f2fs_get_meta_page_retry for nat page
    RDMA/mlx5: Fix corruption of reg_pages in mlx5_ib_rereg_user_mr()
    perf test: Use generic event for expand_libpfm_events()
    drm/msm/dp: DisplayPort PHY compliance tests fixup
    drm/msm/dsi_pll_7nm: restore VCO rate during restore_state
    drm/msm/dsi_pll_10nm: restore VCO rate during restore_state
    drm/msm/dpu: fix clock scaling on non-sc7180 board
    spi: spi-mem: fix reference leak in spi_mem_access_start
    scsi: aacraid: Improve compat_ioctl handlers
    pinctrl: core: Add missing #ifdef CONFIG_GPIOLIB
    ASoC: pcm: DRAIN support reactivation
    drm/bridge: tpd12s015: Fix irq registering in tpd12s015_probe
    crypto: arm64/poly1305-neon - reorder PAC authentication with SP update
    crypto: arm/aes-neonbs - fix usage of cbc(aes) fallback
    crypto: caam - fix printing on xts fallback allocation error path
    selinux: fix inode_doinit_with_dentry() LABEL_INVALID error handling
    nl80211/cfg80211: fix potential infinite loop
    spi: stm32: fix reference leak in stm32_spi_resume
    bpf: Fix tests for local_storage
    x86/mce: Correct the detection of invalid notifier priorities
    drm/edid: Fix uninitialized variable in drm_cvt_modes()
    ath11k: Initialize complete alpha2 for regulatory change
    ath11k: Fix number of rules in filtered ETSI regdomain
    ath11k: fix wmi init configuration
    brcmfmac: Fix memory leak for unpaired brcmf_{alloc/free}
    arm64: dts: exynos: Include common syscon restart/poweroff for Exynos7
    arm64: dts: exynos: Correct psci compatible used on Exynos7
    drm/panel: simple: Add flags to boe_nv133fhm_n61
    Bluetooth: Fix null pointer dereference in hci_event_packet()
    Bluetooth: Fix: LL PRivacy BLE device fails to connect
    Bluetooth: hci_h5: fix memory leak in h5_close
    spi: stm32-qspi: fix reference leak in stm32 qspi operations
    spi: spi-ti-qspi: fix reference leak in ti_qspi_setup
    spi: mt7621: fix missing clk_disable_unprepare() on error in mt7621_spi_probe
    spi: tegra20-slink: fix reference leak in slink ops of tegra20
    spi: tegra20-sflash: fix reference leak in tegra_sflash_resume
    spi: tegra114: fix reference leak in tegra spi ops
    spi: bcm63xx-hsspi: fix missing clk_disable_unprepare() on error in bcm63xx_hsspi_resume
    spi: imx: fix reference leak in two imx operations
    ASoC: qcom: common: Fix refcounting in qcom_snd_parse_of()
    ath11k: Handle errors if peer creation fails
    mwifiex: fix mwifiex_shutdown_sw() causing sw reset failure
    drm/msm/a6xx: Clear shadow on suspend
    drm/msm/a5xx: Clear shadow on suspend
    firmware: tegra: fix strncpy()/strncat() confusion
    drm/msm/dp: return correct connection status after suspend
    drm/msm/dp: skip checking LINK_STATUS_UPDATED bit
    drm/msm/dp: do not notify audio subsystem if sink doesn't support audio
    selftests/run_kselftest.sh: fix dry-run typo
    selftest/bpf: Add missed ip6ip6 test back
    ASoC: wm8994: Fix PM disable depth imbalance on error
    ASoC: wm8998: Fix PM disable depth imbalance on error
    spi: sprd: fix reference leak in sprd_spi_remove
    virtiofs fix leak in setup
    ASoC: arizona: Fix a wrong free in wm8997_probe
    RDMa/mthca: Work around -Wenum-conversion warning
    ASoC: SOF: Intel: fix Kconfig dependency for SND_INTEL_DSP_CONFIG
    arm64: dts: ti: k3-am65*/j721e*: Fix unit address format error for dss node
    MIPS: BCM47XX: fix kconfig dependency bug for BCM47XX_BCMA
    drm/amdgpu: fix compute queue priority if num_kcq is less than 4
    soc: ti: omap-prm: Do not check rstst bit on deassert if already deasserted
    crypto: Kconfig - CRYPTO_MANAGER_EXTRA_TESTS requires the manager
    crypto: qat - fix status check in qat_hal_put_rel_rd_xfer()
    firmware: arm_scmi: Fix missing destroy_workqueue()
    drm/udl: Fix missing error code in udl_handle_damage()
    staging: greybus: codecs: Fix reference counter leak in error handling
    staging: gasket: interrupt: fix the missed eventfd_ctx_put() in gasket_interrupt.c
    scripts: kernel-doc: Restore anonymous enum parsing
    drm/amdkfd: Put ACPI table after using it
    ionic: use mc sync for multicast filters
    ionic: flatten calls to ionic_lif_rx_mode
    ionic: change set_rx_mode from_ndo to can_sleep
    media: tm6000: Fix sizeof() mismatches
    media: platform: add missing put_device() call in mtk_jpeg_clk_init()
    media: mtk-vcodec: add missing put_device() call in mtk_vcodec_init_dec_pm()
    media: mtk-vcodec: add missing put_device() call in mtk_vcodec_release_dec_pm()
    media: mtk-vcodec: add missing put_device() call in mtk_vcodec_init_enc_pm()
    media: v4l2-fwnode: Return -EINVAL for invalid bus-type
    media: v4l2-fwnode: v4l2_fwnode_endpoint_parse caller must init vep argument
    media: ov5640: fix support of BT656 bus mode
    media: staging: rkisp1: cap: fix runtime PM imbalance on error
    media: cedrus: fix reference leak in cedrus_start_streaming
    media: platform: add missing put_device() call in mtk_jpeg_probe() and mtk_jpeg_remove()
    media: venus: core: change clk enable and disable order in resume and suspend
    media: venus: core: vote for video-mem path
    media: venus: core: vote with average bandwidth and peak bandwidth as zero
    RDMA/cma: Add missing error handling of listen_id
    ASoC: meson: fix COMPILE_TEST error
    spi: dw: fix build error by selecting MULTIPLEXER
    scsi: core: Fix VPD LUN ID designator priorities
    media: venus: put dummy vote on video-mem path after last session release
    media: solo6x10: fix missing snd_card_free in error handling case
    video: fbdev: atmel_lcdfb: fix return error code in atmel_lcdfb_of_init()
    mmc: sdhci: tegra: fix wrong unit with busy_timeout
    drm/omap: dmm_tiler: fix return error code in omap_dmm_probe()
    drm/meson: Free RDMA resources after tearing down DRM
    drm/meson: Unbind all connectors on module removal
    drm/meson: dw-hdmi: Register a callback to disable the regulator
    drm/meson: dw-hdmi: Ensure that clocks are enabled before touching the TOP registers
    ASoC: intel: SND_SOC_INTEL_KEEMBAY should depend on ARCH_KEEMBAY
    iommu/vt-d: include conditionally on CONFIG_INTEL_IOMMU_SVM
    Input: ads7846 - fix race that causes missing releases
    Input: ads7846 - fix integer overflow on Rt calculation
    Input: ads7846 - fix unaligned access on 7845
    bus: mhi: core: Remove double locking from mhi_driver_remove()
    bus: mhi: core: Fix null pointer access when parsing MHI configuration
    usb/max3421: fix return error code in max3421_probe()
    spi: mxs: fix reference leak in mxs_spi_probe
    selftests/bpf: Fix broken riscv build
    powerpc: Avoid broken GCC __attribute__((optimize))
    powerpc/feature: Fix CPU_FTRS_ALWAYS by removing CPU_FTRS_GENERIC_32
    ARM: dts: tacoma: Fix node vs reg mismatch for flash memory
    Revert "powerpc/pseries/hotplug-cpu: Remove double free in error path"
    powerpc/powernv/sriov: fix unsigned int win compared to less than zero
    mfd: htc-i2cpld: Add the missed i2c_put_adapter() in htcpld_register_chip_i2c()
    mfd: MFD_SL28CPLD should depend on ARCH_LAYERSCAPE
    mfd: stmfx: Fix dev_err_probe() call in stmfx_chip_init()
    mfd: cpcap: Fix interrupt regression with regmap clear_ack
    EDAC/mce_amd: Use struct cpuinfo_x86.cpu_die_id for AMD NodeId
    scsi: ufs: Avoid to call REQ_CLKS_OFF to CLKS_OFF
    scsi: ufs: Fix clkgating on/off
    rcu: Allow rcu_irq_enter_check_tick() from NMI
    rcu,ftrace: Fix ftrace recursion
    rcu/tree: Defer kvfree_rcu() allocation to a clean context
    crypto: crypto4xx - Replace bitwise OR with logical OR in crypto4xx_build_pd
    crypto: omap-aes - Fix PM disable depth imbalance in omap_aes_probe
    crypto: sun8i-ce - fix two error path's memory leak
    spi: fix resource leak for drivers without .remove callback
    drm/meson: dw-hdmi: Disable clocks on driver teardown
    drm/meson: dw-hdmi: Enable the iahb clock early enough
    PCI: Disable MSI for Pericom PCIe-USB adapter
    PCI: brcmstb: Initialize "tmp" before use
    soc: ti: knav_qmss: fix reference leak in knav_queue_probe
    soc: ti: Fix reference imbalance in knav_dma_probe
    drivers: soc: ti: knav_qmss_queue: Fix error return code in knav_queue_probe
    soc: qcom: initialize local variable
    arm64: dts: qcom: sm8250: correct compatible for sm8250-mtp
    arm64: dts: qcom: msm8916-samsung-a2015: Disable muic i2c pin bias
    Input: omap4-keypad - fix runtime PM error handling
    clk: meson: Kconfig: fix dependency for G12A
    staging: mfd: hi6421-spmi-pmic: fix error return code in hi6421_spmi_pmic_probe()
    ath11k: Fix the rx_filter flag setting for peer rssi stats
    RDMA/cxgb4: Validate the number of CQEs
    soundwire: Fix DEBUG_LOCKS_WARN_ON for uninitialized attribute
    pinctrl: sunxi: fix irq bank map for the Allwinner A100 pin controller
    memstick: fix a double-free bug in memstick_check
    ARM: dts: at91: sam9x60: add pincontrol for USB Host
    ARM: dts: at91: sama5d4_xplained: add pincontrol for USB Host
    ARM: dts: at91: sama5d3_xplained: add pincontrol for USB Host
    mmc: pxamci: Fix error return code in pxamci_probe
    brcmfmac: fix error return code in brcmf_cfg80211_connect()
    orinoco: Move context allocation after processing the skb
    qtnfmac: fix error return code in qtnf_pcie_probe()
    rsi: fix error return code in rsi_reset_card()
    cw1200: fix missing destroy_workqueue() on error in cw1200_init_common
    dmaengine: mv_xor_v2: Fix error return code in mv_xor_v2_probe()
    arm64: dts: qcom: sdm845: Limit ipa iommu streams
    leds: netxbig: add missing put_device() call in netxbig_leds_get_of_pdata()
    leds: lp50xx: Fix an error handling path in 'lp50xx_probe_dt()'
    leds: turris-omnia: check for LED_COLOR_ID_RGB instead LED_COLOR_ID_MULTI
    arm64: tegra: Fix DT binding for IO High Voltage entry
    RDMA/cma: Fix deadlock on &lock in rdma_cma_listen_on_all() error unwind
    soundwire: qcom: Fix build failure when slimbus is module
    drm/imx/dcss: fix rotations for Vivante tiled formats
    media: siano: fix memory leak of debugfs members in smsdvb_hotplug
    platform/x86: mlx-platform: Remove PSU EEPROM from default platform configuration
    platform/x86: mlx-platform: Remove PSU EEPROM from MSN274x platform configuration
    arm64: dts: qcom: sc7180: limit IPA iommu streams
    RDMA/hns: Only record vlan info for HIP08
    RDMA/hns: Fix missing fields in address vector
    RDMA/hns: Avoid setting loopback indicator when smac is same as dmac
    serial: 8250-mtk: Fix reference leak in mtk8250_probe
    samples: bpf: Fix lwt_len_hist reusing previous BPF map
    media: imx214: Fix stop streaming
    mips: cdmm: fix use-after-free in mips_cdmm_bus_discover
    media: max2175: fix max2175_set_csm_mode() error code
    slimbus: qcom-ngd-ctrl: Avoid sending power requests without QMI
    RDMA/core: Track device memory MRs
    drm/mediatek: Use correct aliases name for ovl
    HSI: omap_ssi: Don't jump to free ID in ssi_add_controller()
    ARM: dts: Remove non-existent i2c1 from 98dx3236
    arm64: dts: armada-3720-turris-mox: update ethernet-phy handle name
    power: supply: bq25890: Use the correct range for IILIM register
    arm64: dts: rockchip: Set dr_mode to "host" for OTG on rk3328-roc-cc
    power: supply: max17042_battery: Fix current_{avg,now} hiding with no current sense
    power: supply: axp288_charger: Fix HP Pavilion x2 10 DMI matching
    power: supply: bq24190_charger: fix reference leak
    genirq/irqdomain: Don't try to free an interrupt that has no mapping
    arm64: dts: ls1028a: fix ENETC PTP clock input
    arm64: dts: ls1028a: fix FlexSPI clock input
    arm64: dts: freescale: sl28: combine SPI MTD partitions
    phy: tegra: xusb: Fix usb_phy device driver field
    arm64: dts: qcom: c630: Polish i2c-hid devices
    arm64: dts: qcom: c630: Fix pinctrl pins properties
    PCI: Bounds-check command-line resource alignment requests
    PCI: Fix overflow in command-line resource alignment requests
    PCI: iproc: Fix out-of-bound array accesses
    PCI: iproc: Invalidate correct PAXB inbound windows
    arm64: dts: meson: fix spi-max-frequency on Khadas VIM2
    arm64: dts: meson-sm1: fix typo in opp table
    soc: amlogic: canvas: add missing put_device() call in meson_canvas_get()
    scsi: hisi_sas: Fix up probe error handling for v3 hw
    scsi: pm80xx: Do not sleep in atomic context
    spi: spi-fsl-dspi: Use max_native_cs instead of num_chipselect to set SPI_MCR
    ARM: dts: at91: at91sam9rl: fix ADC triggers
    RDMA/hns: Fix 0-length sge calculation error
    RDMA/hns: Bugfix for calculation of extended sge
    mailbox: arm_mhu_db: Fix mhu_db_shutdown by replacing kfree with devm_kfree
    soundwire: master: use pm_runtime_set_active() on add
    platform/x86: dell-smbios-base: Fix error return code in dell_smbios_init
    ASoC: Intel: Boards: tgl_max98373: update TDM slot_width
    media: max9271: Fix GPIO enable/disable
    media: rdacm20: Enable GPIO1 explicitly
    media: i2c: imx219: Selection compliance fixes
    ath11k: Don't cast ath11k_skb_cb to ieee80211_tx_info.control
    ath11k: Reset ath11k_skb_cb before setting new flags
    ath11k: Fix an error handling path
    ath10k: Fix the parsing error in service available event
    ath10k: Fix an error handling path
    ath10k: Release some resources in an error handling path
    SUNRPC: rpc_wake_up() should wake up tasks in the correct order
    NFSv4.2: condition READDIR's mask for security label based on LSM state
    SUNRPC: xprt_load_transport() needs to support the netid "rdma6"
    NFSv4: Fix the alignment of page data in the getdeviceinfo reply
    net: sunrpc: Fix 'snprintf' return value check in 'do_xprt_debugfs'
    lockd: don't use interval-based rebinding over TCP
    NFS: switch nfsiod to be an UNBOUND workqueue.
    selftests/seccomp: Update kernel config
    vfio-pci: Use io_remap_pfn_range() for PCI IO memory
    hwmon: (ina3221) Fix PM usage counter unbalance in ina3221_write_enable
    f2fs: fix double free of unicode map
    media: tvp5150: Fix wrong return value of tvp5150_parse_dt()
    media: saa7146: fix array overflow in vidioc_s_audio()
    powerpc/perf: Fix crash with is_sier_available when pmu is not set
    powerpc/64: Fix an EMIT_BUG_ENTRY in head_64.S
    powerpc/xmon: Fix build failure for 8xx
    powerpc/perf: Fix to update radix_scope_qual in power10
    powerpc/perf: Update the PMU group constraints for l2l3 events in power10
    powerpc/perf: Fix the PMU group constraints for threshold events in power10
    clocksource/drivers/orion: Add missing clk_disable_unprepare() on error path
    clocksource/drivers/cadence_ttc: Fix memory leak in ttc_setup_clockevent()
    clocksource/drivers/ingenic: Fix section mismatch
    clocksource/drivers/riscv: Make RISCV_TIMER depends on RISCV_SBI
    arm64: mte: fix prctl(PR_GET_TAGGED_ADDR_CTRL) if TCF0=NONE
    iio: hrtimer-trigger: Mark hrtimer to expire in hard interrupt context
    libbpf: Sanitise map names before pinning
    ARM: dts: at91: sam9x60ek: remove bypass property
    ARM: dts: at91: sama5d2: map securam as device
    scripts: kernel-doc: fix parsing function-like typedefs
    bpf: Fix bpf_put_raw_tracepoint()'s use of __module_address()
    selftests/bpf: Fix invalid use of strncat in test_sockmap
    pinctrl: falcon: add missing put_device() call in pinctrl_falcon_probe()
    soc: rockchip: io-domain: Fix error return code in rockchip_iodomain_probe()
    arm64: dts: rockchip: Fix UART pull-ups on rk3328
    memstick: r592: Fix error return in r592_probe()
    MIPS: Don't round up kernel sections size for memblock_add()
    mt76: mt7663s: fix a possible ple quota underflow
    mt76: mt7915: set fops_sta_stats.owner to THIS_MODULE
    mt76: set fops_tx_stats.owner to THIS_MODULE
    mt76: dma: fix possible deadlock running mt76_dma_cleanup
    net/mlx5: Properly convey driver version to firmware
    mt76: fix memory leak if device probing fails
    mt76: fix tkip configuration for mt7615/7663 devices
    ASoC: jz4740-i2s: add missed checks for clk_get()
    ASoC: q6afe-clocks: Add missing parent clock rate
    dm ioctl: fix error return code in target_message
    ASoC: cros_ec_codec: fix uninitialized memory read
    ASoC: atmel: mchp-spdifrx needs COMMON_CLK
    ASoC: qcom: fix QDSP6 dependencies, attempt #3
    phy: mediatek: allow compile-testing the hdmi phy
    phy: renesas: rcar-gen3-usb2: disable runtime pm in case of failure
    memory: ti-emif-sram: only build for ARMv7
    memory: jz4780_nemc: Fix potential NULL dereference in jz4780_nemc_probe()
    drm/msm: a5xx: Make preemption reset case reentrant
    drm/msm: add IOMMU_SUPPORT dependency
    clocksource/drivers/arm_arch_timer: Use stable count reader in erratum sne
    clocksource/drivers/arm_arch_timer: Correct fault programming of CNTKCTL_EL1.EVNTI
    cpufreq: ap806: Add missing MODULE_DEVICE_TABLE
    cpufreq: highbank: Add missing MODULE_DEVICE_TABLE
    cpufreq: mediatek: Add missing MODULE_DEVICE_TABLE
    cpufreq: qcom: Add missing MODULE_DEVICE_TABLE
    cpufreq: st: Add missing MODULE_DEVICE_TABLE
    cpufreq: sun50i: Add missing MODULE_DEVICE_TABLE
    cpufreq: loongson1: Add missing MODULE_ALIAS
    cpufreq: scpi: Add missing MODULE_ALIAS
    cpufreq: vexpress-spc: Add missing MODULE_ALIAS
    cpufreq: imx: fix NVMEM_IMX_OCOTP dependency
    macintosh/adb-iop: Always wait for reply message from IOP
    macintosh/adb-iop: Send correct poll command
    staging: bcm2835: fix vchiq_mmal dependencies
    staging: greybus: audio: Fix possible leak free widgets in gbaudio_dapm_free_controls
    spi: dw: Fix error return code in dw_spi_bt1_probe()
    Bluetooth: btusb: Add the missed release_firmware() in btusb_mtk_setup_firmware()
    Bluetooth: btmtksdio: Add the missed release_firmware() in mtk_setup_firmware()
    Bluetooth: sco: Fix crash when using BT_SNDMTU/BT_RCVMTU option
    block/rnbd-clt: Dynamically alloc buffer for pathname & blk_symlink_name
    block/rnbd: fix a null pointer dereference on dev->blk_symlink_name
    Bluetooth: btusb: Fix detection of some fake CSR controllers with a bcdDevice val of 0x0134
    platform/x86: intel-vbtn: Fix SW_TABLET_MODE always reporting 1 on some HP x360 models
    adm8211: fix error return code in adm8211_probe()
    mtd: spi-nor: sst: fix BPn bits for the SST25VF064C
    mtd: spi-nor: ignore errors in spi_nor_unlock_all()
    mtd: spi-nor: atmel: remove global protection flag
    mtd: spi-nor: atmel: fix unlock_all() for AT25FS010/040
    arm64: dts: meson: g12b: odroid-n2: fix PHY deassert timing requirements
    arm64: dts: meson: fix PHY deassert timing requirements
    ARM: dts: meson: fix PHY deassert timing requirements
    arm64: dts: meson: g12a: x96-max: fix PHY deassert timing requirements
    arm64: dts: meson: g12b: w400: fix PHY deassert timing requirements
    clk: fsl-sai: fix memory leak
    scsi: qedi: Fix missing destroy_workqueue() on error in __qedi_probe
    scsi: pm80xx: Fix error return in pm8001_pci_probe()
    scsi: iscsi: Fix inappropriate use of put_device()
    seq_buf: Avoid type mismatch for seq_buf_init
    scsi: fnic: Fix error return code in fnic_probe()
    platform/x86: mlx-platform: Fix item counter assignment for MSN2700, MSN24xx systems
    platform/x86: mlx-platform: Fix item counter assignment for MSN2700/ComEx system
    ARM: 9030/1: entry: omit FP emulation for UND exceptions taken in kernel mode
    powerpc/pseries/hibernation: drop pseries_suspend_begin() from suspend ops
    powerpc/pseries/hibernation: remove redundant cacheinfo update
    powerpc/powermac: Fix low_sleep_handler with CONFIG_VMAP_STACK
    drm/mediatek: avoid dereferencing a null hdmi_phy on an error message
    ASoC: amd: change clk_get() to devm_clk_get() and add missed checks
    coresight: remove broken __exit annotations
    ASoC: max98390: Fix error codes in max98390_dsm_init()
    powerpc/mm: sanity_check_fault() should work for all, not only BOOK3S
    usb: ehci-omap: Fix PM disable depth umbalance in ehci_hcd_omap_probe
    usb: oxu210hp-hcd: Fix memory leak in oxu_create
    speakup: fix uninitialized flush_lock
    nfsd: Fix message level for normal termination
    NFSD: Fix 5 seconds delay when doing inter server copy
    nfs_common: need lock during iterate through the list
    x86/kprobes: Restore BTF if the single-stepping is cancelled
    scsi: qla2xxx: Fix FW initialization error on big endian machines
    scsi: qla2xxx: Fix N2N and NVMe connect retry failure
    platform/chrome: cros_ec_spi: Don't overwrite spi::mode
    misc: pci_endpoint_test: fix return value of error branch
    bus: fsl-mc: add back accidentally dropped error check
    bus: fsl-mc: fix error return code in fsl_mc_object_allocate()
    fsi: Aspeed: Add mutex to protect HW access
    s390/cio: fix use-after-free in ccw_device_destroy_console
    iwlwifi: dbg-tlv: fix old length in is_trig_data_contained()
    iwlwifi: mvm: hook up missing RX handlers
    erofs: avoid using generic_block_bmap
    clk: renesas: r8a779a0: Fix R and OSC clocks
    can: m_can: m_can_config_endisable(): remove double clearing of clock stop request bit
    powerpc/sstep: Emulate prefixed instructions only when CPU_FTR_ARCH_31 is set
    powerpc/sstep: Cover new VSX instructions under CONFIG_VSX
    slimbus: qcom: fix potential NULL dereference in qcom_slim_prg_slew()
    ALSA: hda/hdmi: fix silent stream for first playback to DP
    RDMA/core: Do not indicate device ready when device enablement fails
    RDMA/uverbs: Fix incorrect variable type
    remoteproc/mediatek: change MT8192 CFG register base
    remoteproc/mtk_scp: surround DT device IDs with CONFIG_OF
    remoteproc: q6v5-mss: fix error handling in q6v5_pds_enable
    remoteproc: qcom: fix reference leak in adsp_start
    remoteproc: qcom: pas: fix error handling in adsp_pds_enable
    remoteproc: k3-dsp: Fix return value check in k3_dsp_rproc_of_get_memories()
    remoteproc: qcom: Fix potential NULL dereference in adsp_init_mmio()
    remoteproc/mediatek: unprepare clk if scp_before_load fails
    clk: qcom: gcc-sc7180: Use floor ops for sdcc clks
    clk: tegra: Fix duplicated SE clock entry
    mtd: rawnand: gpmi: fix reference count leak in gpmi ops
    mtd: rawnand: meson: Fix a resource leak in init
    mtd: rawnand: gpmi: Fix the random DMA timeout issue
    samples/bpf: Fix possible hang in xdpsock with multiple threads
    fs: Handle I_DONTCACHE in iput_final() instead of generic_drop_inode()
    extcon: max77693: Fix modalias string
    crypto: atmel-i2c - select CONFIG_BITREVERSE
    mac80211: don't set set TDLS STA bandwidth wider than possible
    mac80211: fix a mistake check for rx_stats update
    ASoC: wm_adsp: remove "ctl" from list on error in wm_adsp_create_control()
    irqchip/alpine-msi: Fix freeing of interrupts on allocation error path
    irqchip/ti-sci-inta: Fix printing of inta id on probe success
    irqchip/ti-sci-intr: Fix freeing of irqs
    dmaengine: ti: k3-udma: Correct normal channel offset when uchan_cnt is not 0
    RDMA/hns: Limit the length of data copied between kernel and userspace
    RDMA/hns: Normalization the judgment of some features
    RDMA/hns: Do shift on traffic class when using RoCEv2
    gpiolib: irq hooks: fix recursion in gpiochip_irq_unmask
    ath11k: Fix incorrect tlvs in scan start command
    irqchip/qcom-pdc: Fix phantom irq when changing between rising/falling
    watchdog: armada_37xx: Add missing dependency on HAS_IOMEM
    watchdog: sirfsoc: Add missing dependency on HAS_IOMEM
    watchdog: sprd: remove watchdog disable from resume fail path
    watchdog: sprd: check busy bit before new loading rather than after that
    watchdog: Fix potential dereferencing of null pointer
    ubifs: Fix error return code in ubifs_init_authentication()
    um: Monitor error events in IRQ controller
    um: tty: Fix handling of close in tty lines
    um: chan_xterm: Fix fd leak
    sunrpc: fix xs_read_xdr_buf for partial pages receive
    RDMA/mlx5: Fix MR cache memory leak
    RDMA/cma: Don't overwrite sgid_attr after device is released
    nfc: s3fwrn5: Release the nfc firmware
    drm: mxsfb: Silence -EPROBE_DEFER while waiting for bridge
    powerpc/perf: Fix Threshold Event Counter Multiplier width for P10
    powerpc/ps3: use dma_mapping_error()
    perf test: Fix metric parsing test
    drm/amdgpu: fix regression in vbios reservation handling on headless
    mm/gup: reorganize internal_get_user_pages_fast()
    mm/gup: prevent gup_fast from racing with COW during fork
    mm/gup: combine put_compound_head() and unpin_user_page()
    mm: memcg/slab: fix return of child memcg objcg for root memcg
    mm: memcg/slab: fix use after free in obj_cgroup_charge
    mm/rmap: always do TTU_IGNORE_ACCESS
    sparc: fix handling of page table constructor failure
    mm/vmalloc: Fix unlock order in s_stop()
    mm/vmalloc.c: fix kasan shadow poisoning size
    mm,memory_failure: always pin the page in madvise_inject_error
    hugetlb: fix an error code in hugetlb_reserve_pages()
    mm: don't wake kswapd prematurely when watermark boosting is disabled
    proc: fix lookup in /proc/net subdirectories after setns(2)
    checkpatch: fix unescaped left brace
    s390/test_unwind: fix CALL_ON_STACK tests
    lan743x: fix rx_napi_poll/interrupt ping-pong
    ice, xsk: clear the status bits for the next_to_use descriptor
    i40e, xsk: clear the status bits for the next_to_use descriptor
    net: dsa: qca: ar9331: fix sleeping function called from invalid context bug
    dpaa2-eth: fix the size of the mapped SGT buffer
    net: bcmgenet: Fix a resource leak in an error handling path in the probe functin
    net: mscc: ocelot: Fix a resource leak in the error handling path of the probe function
    net: allwinner: Fix some resources leak in the error handling path of the probe and in the remove function
    block/rnbd-clt: Get rid of warning regarding size argument in strlcpy
    block/rnbd-clt: Fix possible memleak
    NFS/pNFS: Fix a typo in ff_layout_resend_pnfs_read()
    net: korina: fix return value
    devlink: use _BITUL() macro instead of BIT() in the UAPI header
    libnvdimm/label: Return -ENXIO for no slot in __blk_label_update
    powerpc/32s: Fix cleanup_cpu_mmu_context() compile bug
    watchdog: qcom: Avoid context switch in restart handler
    watchdog: coh901327: add COMMON_CLK dependency
    clk: ti: Fix memleak in ti_fapll_synth_setup
    pwm: zx: Add missing cleanup in error path
    pwm: lp3943: Dynamically allocate PWM chip base
    pwm: imx27: Fix overflow for bigger periods
    pwm: sun4i: Remove erroneous else branch
    io_uring: cancel only requests of current task
    tools build: Add missing libcap to test-all.bin target
    perf record: Fix memory leak when using '--user-regs=?' to list registers
    qlcnic: Fix error code in probe
    nfp: move indirect block cleanup to flower app stop callback
    vdpa/mlx5: Use write memory barrier after updating CQ index
    virtio_ring: Cut and paste bugs in vring_create_virtqueue_packed()
    virtio_net: Fix error code in probe()
    virtio_ring: Fix two use after free bugs
    vhost scsi: fix error return code in vhost_scsi_set_endpoint()
    epoll: check for events when removing a timed out thread from the wait queue
    clk: bcm: dvp: Add MODULE_DEVICE_TABLE()
    clk: at91: sama7g5: fix compilation error
    clk: at91: sam9x60: remove atmel,osc-bypass support
    clk: s2mps11: Fix a resource leak in error handling paths in the probe function
    clk: sunxi-ng: Make sure divider tables have sentinel
    clk: vc5: Use "idt,voltage-microvolt" instead of "idt,voltage-microvolts"
    kconfig: fix return value of do_error_if()
    powerpc/boot: Fix build of dts/fsl
    powerpc/smp: Add __init to init_big_cores()
    ARM: 9044/1: vfp: use undef hook for VFP support detection
    ARM: 9036/1: uncompress: Fix dbgadtb size parameter name
    perf probe: Fix memory leak when synthesizing SDT probes
    io_uring: fix racy IOPOLL flush overflow
    io_uring: cancel reqs shouldn't kill overflow list
    Smack: Handle io_uring kernel thread privileges
    proc mountinfo: make splice available again
    io_uring: fix io_cqring_events()'s noflush
    io_uring: fix racy IOPOLL completions
    io_uring: always let io_iopoll_complete() complete polled io
    vfio/pci: Move dummy_resources_list init in vfio_pci_probe()
    vfio/pci/nvlink2: Do not attempt NPU2 setup on POWER8NVL NPU
    media: gspca: Fix memory leak in probe
    io_uring: fix io_wqe->work_list corruption
    io_uring: fix 0-iov read buffer select
    io_uring: hold uring_lock while completing failed polled io in io_wq_submit_work()
    io_uring: fix ignoring xa_store errors
    io_uring: fix double io_uring free
    io_uring: make ctx cancel on exit targeted to actual ctx
    media: sunxi-cir: ensure IR is handled when it is continuous
    media: netup_unidvb: Don't leak SPI master in probe error path
    media: ipu3-cio2: Remove traces of returned buffers
    media: ipu3-cio2: Return actual subdev format
    media: ipu3-cio2: Serialise access to pad format
    media: ipu3-cio2: Validate mbus format in setting subdev format
    media: ipu3-cio2: Make the field on subdev format V4L2_FIELD_NONE
    Input: cyapa_gen6 - fix out-of-bounds stack access
    ALSA: hda/ca0132 - Change Input Source enum strings.
    ACPI: NFIT: Fix input validation of bus-family
    PM: ACPI: PCI: Drop acpi_pm_set_bridge_wakeup()
    Revert "ACPI / resources: Use AE_CTRL_TERMINATE to terminate resources walks"
    ACPI: PNP: compare the string length in the matching_id()
    ALSA: hda: Fix regressions on clear and reconfig sysfs
    ALSA: hda/ca0132 - Fix AE-5 rear headphone pincfg.
    ALSA: hda/realtek: make bass spk volume adjustable on a yoga laptop
    ALSA: hda/realtek - Enable headset mic of ASUS X430UN with ALC256
    ALSA: hda/realtek - Enable headset mic of ASUS Q524UQK with ALC255
    ALSA: hda/realtek - Add supported for more Lenovo ALC285 Headset Button
    ALSA: pcm: oss: Fix a few more UBSAN fixes
    ALSA/hda: apply jack fixup for the Acer Veriton N4640G/N6640G/N2510G
    ALSA: hda/realtek: Add quirk for MSI-GP73
    ALSA: hda/realtek: Apply jack fixup for Quanta NL3
    ALSA: hda/realtek: Remove dummy lineout on Acer TravelMate P648/P658
    ALSA: hda/realtek - Supported Dell fixed type headset
    ALSA: usb-audio: Add VID to support native DSD reproduction on FiiO devices
    ALSA: usb-audio: Disable sample read check if firmware doesn't give back
    ALSA: usb-audio: Add alias entry for ASUS PRIME TRX40 PRO-S
    ALSA: core: memalloc: add page alignment for iram
    s390/smp: perform initial CPU reset also for SMT siblings
    s390/kexec_file: fix diag308 subcode when loading crash kernel
    s390/idle: add missing mt_cycles calculation
    s390/idle: fix accounting with machine checks
    s390/dasd: fix hanging device offline processing
    s390/dasd: prevent inconsistent LCU device data
    s390/dasd: fix list corruption of pavgroup group list
    s390/dasd: fix list corruption of lcu list
    binder: add flag to clear buffer on txn complete
    ASoC: cx2072x: Fix doubly definitions of Playback and Capture streams
    ASoC: AMD Renoir - add DMI table to avoid the ACP mic probe (broken BIOS)
    ASoC: AMD Raven/Renoir - fix the PCI probe (PCI revision)
    staging: comedi: mf6x4: Fix AI end-of-conversion detection
    z3fold: simplify freeing slots
    z3fold: stricter locking and more careful reclaim
    perf/x86/intel: Add event constraint for CYCLE_ACTIVITY.STALLS_MEM_ANY
    perf/x86/intel: Fix rtm_abort_event encoding on Ice Lake
    perf/x86/intel/lbr: Fix the return type of get_lbr_cycles()
    powerpc/perf: Exclude kernel samples while counting events in user space.
    cpufreq: intel_pstate: Use most recent guaranteed performance values
    crypto: ecdh - avoid unaligned accesses in ecdh_set_secret()
    crypto: arm/aes-ce - work around Cortex-A57/A72 silion errata
    m68k: Fix WARNING splat in pmac_zilog driver
    Documentation: seqlock: s/LOCKTYPE/LOCKNAME/g
    EDAC/i10nm: Use readl() to access MMIO registers
    EDAC/amd64: Fix PCI component registration
    cpuset: fix race between hotplug work and later CPU offline
    dyndbg: fix use before null check
    USB: serial: mos7720: fix parallel-port state restore
    USB: serial: digi_acceleport: fix write-wakeup deadlocks
    USB: serial: keyspan_pda: fix dropped unthrottle interrupts
    USB: serial: keyspan_pda: fix write deadlock
    USB: serial: keyspan_pda: fix stalled writes
    USB: serial: keyspan_pda: fix write-wakeup use-after-free
    USB: serial: keyspan_pda: fix tx-unthrottle use-after-free
    USB: serial: keyspan_pda: fix write unthrottling
    btrfs: do not shorten unpin len for caching block groups
    btrfs: update last_byte_to_unpin in switch_commit_roots
    btrfs: fix race when defragmenting leads to unnecessary IO
    ext4: fix an IS_ERR() vs NULL check
    ext4: fix a memory leak of ext4_free_data
    ext4: fix deadlock with fs freezing and EA inodes
    ext4: don't remount read-only with errors=continue on reboot
    RISC-V: Fix usage of memblock_enforce_memory_limit
    arm64: dts: ti: k3-am65: mark dss as dma-coherent
    arm64: dts: marvell: keep SMMU disabled by default for Armada 7040 and 8040
    KVM: arm64: Introduce handling of AArch32 TTBCR2 traps
    KVM: x86: reinstate vendor-agnostic check on SPEC_CTRL cpuid bits
    KVM: SVM: Remove the call to sev_platform_status() during setup
    iommu/arm-smmu: Allow implementation specific write_s2cr
    iommu/arm-smmu-qcom: Read back stream mappings
    iommu/arm-smmu-qcom: Implement S2CR quirk
    ARM: dts: pandaboard: fix pinmux for gpio user button of Pandaboard ES
    ARM: dts: at91: sama5d2: fix CAN message ram offset and size
    ARM: tegra: Populate OPP table for Tegra20 Ventana
    xprtrdma: Fix XDRBUF_SPARSE_PAGES support
    powerpc/32: Fix vmap stack - Properly set r1 before activating MMU on syscall too
    powerpc: Fix incorrect stw{, ux, u, x} instructions in __set_pte_at
    powerpc/rtas: Fix typo of ibm,open-errinjct in RTAS filter
    powerpc/bitops: Fix possible undefined behaviour with fls() and fls64()
    powerpc/feature: Add CPU_FTR_NOEXECUTE to G2_LE
    powerpc/xmon: Change printk() to pr_cont()
    powerpc/8xx: Fix early debug when SMC1 is relocated
    powerpc/mm: Fix verification of MMU_FTR_TYPE_44x
    powerpc/powernv/npu: Do not attempt NPU2 setup on POWER8NVL NPU
    powerpc/powernv/memtrace: Don't leak kernel memory to user space
    powerpc/powernv/memtrace: Fix crashing the kernel when enabling concurrently
    ovl: make ioctl() safe
    ima: Don't modify file descriptor mode on the fly
    um: Remove use of asprinf in umid.c
    um: Fix time-travel mode
    ceph: fix race in concurrent __ceph_remove_cap invocations
    SMB3: avoid confusing warning message on mount to Azure
    SMB3.1.1: remove confusing mount warning when no SPNEGO info on negprot rsp
    SMB3.1.1: do not log warning message if server doesn't populate salt
    ubifs: wbuf: Don't leak kernel memory to flash
    jffs2: Fix GC exit abnormally
    jffs2: Fix ignoring mounting options problem during remounting
    fsnotify: generalize handle_inode_event()
    inotify: convert to handle_inode_event() interface
    fsnotify: fix events reported to watching parent and child
    jfs: Fix array index bounds check in dbAdjTree
    drm/panfrost: Fix job timeout handling
    drm/panfrost: Move the GPU reset bits outside the timeout handler
    platform/x86: mlx-platform: remove an unused variable
    drm/amdgpu: only set DP subconnector type on DP and eDP connectors
    drm/amd/display: Fix memory leaks in S3 resume
    drm/dp_aux_dev: check aux_dev before use in drm_dp_aux_dev_get_by_minor()
    drm/i915: Fix mismatch between misplaced vma check and vma insert
    iio: ad_sigma_delta: Don't put SPI transfer buffer on the stack
    spi: pxa2xx: Fix use-after-free on unbind
    spi: spi-sh: Fix use-after-free on unbind
    spi: atmel-quadspi: Fix use-after-free on unbind
    spi: spi-mtk-nor: Don't leak SPI master in probe error path
    spi: ar934x: Don't leak SPI master in probe error path
    spi: davinci: Fix use-after-free on unbind
    spi: fsl: fix use of spisel_boot signal on MPC8309
    spi: gpio: Don't leak SPI master in probe error path
    spi: mxic: Don't leak SPI master in probe error path
    spi: npcm-fiu: Disable clock in probe error path
    spi: pic32: Don't leak DMA channels in probe error path
    spi: rb4xx: Don't leak SPI master in probe error path
    spi: rpc-if: Fix use-after-free on unbind
    spi: sc18is602: Don't leak SPI master in probe error path
    spi: spi-geni-qcom: Fix use-after-free on unbind
    spi: spi-qcom-qspi: Fix use-after-free on unbind
    spi: st-ssc4: Fix unbalanced pm_runtime_disable() in probe error path
    spi: synquacer: Disable clock in probe error path
    spi: mt7621: Disable clock in probe error path
    spi: mt7621: Don't leak SPI master in probe error path
    spi: atmel-quadspi: Disable clock in probe error path
    spi: atmel-quadspi: Fix AHB memory accesses
    soc: qcom: smp2p: Safely acquire spinlock without IRQs
    mtd: spinand: Fix OOB read
    mtd: parser: cmdline: Fix parsing of part-names with colons
    mtd: core: Fix refcounting for unpartitioned MTDs
    mtd: rawnand: qcom: Fix DMA sync on FLASH_STATUS register read
    mtd: rawnand: meson: fix meson_nfc_dma_buffer_release() arguments
    scsi: qla2xxx: Fix crash during driver load on big endian machines
    scsi: lpfc: Fix invalid sleeping context in lpfc_sli4_nvmet_alloc()
    scsi: lpfc: Fix scheduling call while in softirq context in lpfc_unreg_rpi
    scsi: lpfc: Re-fix use after free in lpfc_rq_buf_free()
    openat2: reject RESOLVE_BENEATH|RESOLVE_IN_ROOT
    iio: buffer: Fix demux update
    iio: adc: rockchip_saradc: fix missing clk_disable_unprepare() on error in rockchip_saradc_resume
    iio: imu: st_lsm6dsx: fix edge-trigger interrupts
    iio:light:rpr0521: Fix timestamp alignment and prevent data leak.
    iio:light:st_uvis25: Fix timestamp alignment and prevent data leak.
    iio:magnetometer:mag3110: Fix alignment and data leak issues.
    iio:pressure:mpl3115: Force alignment of buffer
    iio:imu:bmi160: Fix too large a buffer.
    iio:imu:bmi160: Fix alignment and data leak issues
    iio:adc:ti-ads124s08: Fix buffer being too long.
    iio:adc:ti-ads124s08: Fix alignment and data leak issues.
    md/cluster: block reshape with remote resync job
    md/cluster: fix deadlock when node is doing resync job
    pinctrl: sunxi: Always call chained_irq_{enter, exit} in sunxi_pinctrl_irq_handler
    clk: ingenic: Fix divider calculation with div tables
    clk: mvebu: a3700: fix the XTAL MODE pin to MPP1_9
    clk: tegra: Do not return 0 on failure
    counter: microchip-tcb-capture: Fix CMR value check
    device-dax/core: Fix memory leak when rmmod dax.ko
    dma-buf/dma-resv: Respect num_fences when initializing the shared fence list.
    driver: core: Fix list corruption after device_del()
    xen-blkback: set ring->xenblkd to NULL after kthread_stop()
    xen/xenbus: Allow watches discard events before queueing
    xen/xenbus: Add 'will_handle' callback support in xenbus_watch_path()
    xen/xenbus/xen_bus_type: Support will_handle watch callback
    xen/xenbus: Count pending messages for each watch
    xenbus/xenbus_backend: Disallow pending watch messages
    memory: jz4780_nemc: Fix an error pointer vs NULL check in probe()
    memory: renesas-rpc-if: Fix a node reference leak in rpcif_probe()
    memory: renesas-rpc-if: Return correct value to the caller of rpcif_manual_xfer()
    memory: renesas-rpc-if: Fix unbalanced pm_runtime_enable in rpcif_{enable,disable}_rpm
    libnvdimm/namespace: Fix reaping of invalidated block-window-namespace labels
    platform/x86: intel-vbtn: Allow switch events on Acer Switch Alpha 12
    tracing: Disable ftrace selftests when any tracer is running
    mt76: add back the SUPPORTS_REORDERING_BUFFER flag
    of: fix linker-section match-table corruption
    PCI: Fix pci_slot_release() NULL pointer dereference
    regulator: axp20x: Fix DLDO2 voltage control register mask for AXP22x
    remoteproc: sysmon: Ensure remote notification ordering
    thermal/drivers/cpufreq_cooling: Update cpufreq_state only if state has changed
    rtc: ep93xx: Fix NULL pointer dereference in ep93xx_rtc_read_time
    Revert: "ring-buffer: Remove HAVE_64BIT_ALIGNED_ACCESS"
    null_blk: Fix zone size initialization
    null_blk: Fail zone append to conventional zones
    drm/edid: fix objtool warning in drm_cvt_modes()
    x86/CPU/AMD: Save AMD NodeId as cpu_die_id
    Linux 5.10.4

    Signed-off-by: Greg Kroah-Hartman
    Change-Id: I25209e79d8b9faf5382087955a29b7404bdefe38

    Greg Kroah-Hartman
     
  • commit ed89b89330b521f20682ead6bf93e1014b21a200 upstream.

    It was accidentally dropped while adding multiple wiphy support
    Fixes fast-rx support and avoids handling reordering in both mac80211
    and the driver

    Cc: stable@vger.kernel.org
    Fixes: c89d36254155 ("mt76: add function for allocating an extra wiphy")
    Signed-off-by: Felix Fietkau
    Signed-off-by: Greg Kroah-Hartman

    Felix Fietkau
     
  • [ Upstream commit f57ad6a9885e8399897daee3249cabccf9c972f8 ]

    Currently 6G specific tlvs have duplicate entries which is causing
    scan failures. Fix this by removing the duplicate entries of the same
    tlv. This also fixes out-of-bound memory writes caused due to
    adding tlvs when num_hint_bssid and num_hint_s_ssid are ZEROs.

    Tested-on: QCN9074 hw1.0 PCI WLAN.HK.2.4.0.1-01386-QCAHKSWPL_SILICONZ-1

    Fixes: 74601ecfef6e ("ath11k: Add support for 6g scan hint")
    Reported-by: Carl Huang
    Signed-off-by: Pradeep Kumar Chitrapu
    Signed-off-by: Kalle Valo
    Link: https://lore.kernel.org/r/1607609124-17250-7-git-send-email-kvalo@codeaurora.org
    Signed-off-by: Sasha Levin

    Pradeep Kumar Chitrapu
     
  • [ Upstream commit 8a59d39033c35bb484f6bd91891db86ebe07fdc2 ]

    The RX handlers for probe response data and channel switch weren't
    hooked up properly, fix that.

    Fixes: 86e177d80ff7 ("iwlwifi: mvm: add NOA and CSA to a probe response")
    Fixes: d3a108a48dc6 ("iwlwifi: mvm: Support CSA countdown offloading")
    Signed-off-by: Johannes Berg
    Signed-off-by: Luca Coelho
    Link: https://lore.kernel.org/r/iwlwifi.20201209231352.2d07dcee0d35.I07a61b5d734478db57d9434ff303e4c90bf6c32b@changeid
    Signed-off-by: Luca Coelho
    Signed-off-by: Sasha Levin

    Johannes Berg
     
  • [ Upstream commit 58a1c9f9a9b6b9092ae10b84f6b571a06596e296 ]

    There's a bug in the lengths - the 'old length' needs to be calculated
    using the 'old' pointer, of course, likely a copy/paste mistake. Fix
    this.

    Reported-by: Daniel Gabay
    Signed-off-by: Johannes Berg
    Fixes: cf29c5b66b9f ("iwlwifi: dbg_ini: implement time point handling")
    Signed-off-by: Luca Coelho
    Link: https://lore.kernel.org/r/iwlwifi.20201209231352.c0105ddffa74.I1ddb243053ff763c91b663748b6a593ecc3b5634@changeid
    Signed-off-by: Luca Coelho
    Signed-off-by: Sasha Levin

    Johannes Berg
     
  • [ Upstream commit 05c2a61d69ea306e891884a86486e1ef37c4b78d ]

    Fix to return a negative error code from the error handling
    case instead of 0, as done elsewhere in this function.

    Fixes: cc0b88cf5ecf ("[PATCH] Add adm8211 802.11b wireless driver")
    Reported-by: Hulk Robot
    Signed-off-by: Zhang Changzhong
    Signed-off-by: Kalle Valo
    Link: https://lore.kernel.org/r/1607071638-33619-1-git-send-email-zhangchangzhong@huawei.com
    Signed-off-by: Sasha Levin

    Zhang Changzhong
     
  • [ Upstream commit 930e0eaddf810cfa90e114a0df02f48539e1346f ]

    Fix Tx-Rx MIC overwrite during TKIP hw key configuration

    Fixes: 01cfc1b45421 ("mt76: mt7615: add BIP_CMAC_128 cipher support")
    Tested-by: YN Chen
    Signed-off-by: Lorenzo Bianconi
    Signed-off-by: Felix Fietkau
    Signed-off-by: Sasha Levin

    Lorenzo Bianconi
     
  • [ Upstream commit bc348defcc6eceeb4f7784bf9a263ddb72fd3fb4 ]

    Run mt76_free_device instead of ieee80211_free_hw if device probing
    fails in order to remove the already allocated mt76 workqueue

    Fixes: a86f1d01f5ce5 ("mt76: move mt76 workqueue in common code")
    Fixes: f1d962369d568 ("mt76: mt7915: implement HE per-rate tx power support")
    Signed-off-by: Lorenzo Bianconi
    Signed-off-by: Felix Fietkau
    Signed-off-by: Sasha Levin

    Lorenzo Bianconi
     
  • [ Upstream commit 5f0ce5848733b86deaba1c6d102e20479230b20a ]

    Fix the following possible deadlock reported by lockdep disabling BH
    running mt76_free_pending_txwi()

    ================================
    WARNING: inconsistent lock state
    5.9.0-rc6 #14 Not tainted
    --------------------------------
    inconsistent {IN-SOFTIRQ-W} -> {SOFTIRQ-ON-W} usage.
    rmmod/1227 [HC0[0]:SC0[0]:HE1:SE1] takes:
    ffff888156a83530 (&dev->lock#2){+.?.}-{2:2}, at: mt76_dma_cleanup+0x125/0x150 [mt76]
    {IN-SOFTIRQ-W} state was registered at:
    __lock_acquire+0x20c/0x6b0
    lock_acquire+0x9d/0x220
    _raw_spin_lock+0x2c/0x70
    mt76_dma_tx_cleanup+0xc7/0x200 [mt76]
    mt76x02_poll_tx+0x31/0xb0 [mt76x02_lib]
    napi_poll+0x3a/0x100
    net_rx_action+0xa8/0x200
    __do_softirq+0xc4/0x430
    asm_call_on_stack+0xf/0x20
    do_softirq_own_stack+0x49/0x60
    irq_exit_rcu+0x9a/0xd0
    common_interrupt+0xa4/0x190
    asm_common_interrupt+0x1e/0x40
    irq event stamp: 9915
    hardirqs last enabled at (9915): [] __free_pages_ok+0x336/0x3b0
    hardirqs last disabled at (9914): [] __free_pages_ok+0x2fe/0x3b0
    softirqs last enabled at (9912): [] mt76_dma_rx_cleanup+0xa2/0x120 [mt76]
    softirqs last disabled at (9846): [] mt76_dma_rx_cleanup+0x1a/0x120 [mt76]

    other info that might help us debug this:
    Possible unsafe locking scenario:

    CPU0
    ----
    lock(&dev->lock#2);

    lock(&dev->lock#2);

    *** DEADLOCK ***

    1 lock held by rmmod/1227:
    #0: ffff88815b5eb240 (&dev->mutex){....}-{3:3}, at: driver_detach+0xb5/0x110

    stack backtrace:
    CPU: 1 PID: 1227 Comm: rmmod Kdump: loaded Not tainted 5.9.0-rc6-wdn-src+ #14
    Hardware name: Dell Inc. Studio XPS 1340/0K183D, BIOS A11 09/08/2009
    Call Trace:
    dump_stack+0x77/0xa0
    mark_lock_irq.cold+0x15/0x39
    mark_lock+0x1fc/0x500
    mark_usage+0xc7/0x140
    __lock_acquire+0x20c/0x6b0
    ? find_held_lock+0x2b/0x80
    ? sched_clock_cpu+0xc/0xb0
    lock_acquire+0x9d/0x220
    ? mt76_dma_cleanup+0x125/0x150 [mt76]
    _raw_spin_lock+0x2c/0x70
    ? mt76_dma_cleanup+0x125/0x150 [mt76]
    mt76_dma_cleanup+0x125/0x150 [mt76]
    mt76x2_cleanup+0x5a/0x70 [mt76x2e]
    mt76x2e_remove+0x18/0x30 [mt76x2e]
    pci_device_remove+0x36/0xa0
    __device_release_driver+0x16c/0x220
    driver_detach+0xcf/0x110
    bus_remove_driver+0x56/0xca
    pci_unregister_driver+0x36/0x80
    __do_sys_delete_module.constprop.0+0x127/0x200
    ? syscall_enter_from_user_mode+0x1d/0x50
    ? trace_hardirqs_on+0x1c/0xe0
    do_syscall_64+0x33/0x80
    entry_SYSCALL_64_after_hwframe+0x44/0xa9
    RIP: 0033:0x7ff0da54e36b
    Code: 73 01 c3 48 8b 0d 2d 0b 0c 00 f7 d8 64 89 01 48 83 c8 ff c3 66 2e 0f 1f 84 00 00 00 00 00 90 f3 0f 1e fa b8 b0 00 00 00 0f 05 3d 01 f0 ff ff 73 01 c3 48 8b 0d fd 0a 0c 00 f7 d8 64 89 01 48

    Fixes: dd57a95cfddc ("mt76: move txwi handling code to dma.c, since it is mmio specific")
    Signed-off-by: Lorenzo Bianconi
    Signed-off-by: Felix Fietkau
    Signed-off-by: Sasha Levin

    Lorenzo Bianconi
     
  • [ Upstream commit f9df085ce1be5c599e4df590ff7ba853786c6d95 ]

    If THIS_MODULE is not set, the module would be removed while debugfs is
    being used.
    It eventually makes kernel panic.

    Fixes: e57b7901469f ("mt76: add mac80211 driver for MT7915 PCIe-based chipsets")
    Signed-off-by: Taehee Yoo
    Signed-off-by: Felix Fietkau
    Signed-off-by: Sasha Levin

    Taehee Yoo
     
  • [ Upstream commit 5efbe3b1b8992d5f837388091920945c23212159 ]

    If THIS_MODULE is not set, the module would be removed while debugfs is
    being used.
    It eventually makes kernel panic.

    Fixes: ec9742a8f38e ("mt76: mt7915: add .sta_add_debugfs support")
    Signed-off-by: Taehee Yoo
    Signed-off-by: Felix Fietkau
    Signed-off-by: Sasha Levin

    Taehee Yoo
     
  • [ Upstream commit 1c79a190e94325e01811f653f770a34e816fdd8f ]

    Properly account current consumed ple quota in mt7663s_tx_pick_quota
    routine and avoid possible underflow.

    Fixes: 6ef2d665f64d ("mt76: mt7663s: split mt7663s_tx_update_sched in mt7663s_tx_{pick,update}_quota")
    Signed-off-by: Lorenzo Bianconi
    Signed-off-by: Felix Fietkau
    Signed-off-by: Sasha Levin

    Lorenzo Bianconi
     
  • [ Upstream commit 6364e693f4a7a89a2fb3dd2cbd6cc06d5fd6e26d ]

    Should an error occur after calling 'ath10k_usb_create()', it should be
    undone by a corresponding 'ath10k_usb_destroy()' call

    Fixes: 4db66499df91 ("ath10k: add initial USB support")
    Signed-off-by: Christophe JAILLET
    Signed-off-by: Kalle Valo
    Link: https://lore.kernel.org/r/20201122170358.1346065-1-christophe.jaillet@wanadoo.fr
    Signed-off-by: Sasha Levin

    Christophe JAILLET
     
  • [ Upstream commit ed3573bc3943c27d2d8e405a242f87ed14572ca1 ]

    If 'ath10k_usb_create()' fails, we should release some resources and report
    an error instead of silently continuing.

    Fixes: 4db66499df91 ("ath10k: add initial USB support")
    Signed-off-by: Christophe JAILLET
    Signed-off-by: Kalle Valo
    Link: https://lore.kernel.org/r/20201122170342.1346011-1-christophe.jaillet@wanadoo.fr
    Signed-off-by: Sasha Levin

    Christophe JAILLET
     
  • [ Upstream commit c7cee9c0f499f27ec6de06bea664b61320534768 ]

    The wmi service available event has been
    extended to contain extra 128 bit for new services
    to be indicated by firmware.

    Currently the presence of any optional TLVs in
    the wmi service available event leads to a parsing
    error with the below error message:
    ath10k_snoc 18800000.wifi: failed to parse svc_avail tlv: -71

    The wmi service available event parsing should
    not return error for the newly added optional TLV.
    Fix this parsing for service available event message.

    Tested-on: WCN3990 hw1.0 SNOC WLAN.HL.3.2.2-00720-QCAHLSWMTPL-1

    Fixes: cea19a6ce8bf ("ath10k: add WMI_SERVICE_AVAILABLE_EVENT support")
    Signed-off-by: Rakesh Pillai
    Reviewed-by: Douglas Anderson
    Signed-off-by: Kalle Valo
    Link: https://lore.kernel.org/r/1605501291-23040-1-git-send-email-pillair@codeaurora.org
    Signed-off-by: Sasha Levin

    Rakesh Pillai
     
  • [ Upstream commit e7bcc145bcd035e56da7b97b033c463b32a5ff80 ]

    If 'kzalloc' fails, we must return an error code.

    While at it, remove a useless initialization of 'err' which could hide the
    issue.

    Fixes: d5c65159f289 ("ath11k: driver for Qualcomm IEEE 802.11ax devices")
    Signed-off-by: Christophe JAILLET
    Signed-off-by: Kalle Valo
    Link: https://lore.kernel.org/r/20201122173943.1366167-1-christophe.jaillet@wanadoo.fr
    Signed-off-by: Sasha Levin

    Christophe JAILLET
     
  • [ Upstream commit 5da7acfec5ec55aa0b69b8760f1d2116b4e2ad26 ]

    It was observed that the codepath for the ATH11K_SKB_HW_80211_ENCAP was
    used even when the IEEE80211_TX_CTRL_HW_80211_ENCAP was not enabled for a
    an skbuff. This became even more prominent when the QCAs wlan-open patchset
    for ath11k [1] was applied and a sane looking fix just caused crashes when
    injecting frames via a monitor interface (for example with ratechecker):

    [ 86.963152] Unable to handle kernel NULL pointer dereference at virtual address 00000338
    [ 86.963192] pgd = ffffffc0008f0000
    [ 86.971034] [00000338] *pgd=0000000051706003, *pud=0000000051706003, *pmd=0000000051707003, *pte=00e800000b000707
    [ 86.984292] Internal error: Oops: 96000006 [#1] PREEMPT SMP
    [...]
    [ 87.713339] [] ieee80211_tx_status_8023+0xf8/0x220 [mac80211]
    [ 87.715654] [] ath11k_dp_tx_completion_handler+0x42c/0xa10 [ath11k]
    [ 87.722924] [] ath11k_dp_service_srng+0x70/0x3c8 [ath11k]
    [ 87.730831] [] 0xffffffbffca03460
    [ 87.737599] [] net_rx_action+0xf8/0x288
    [ 87.742462] [] __do_softirq+0xfc/0x220
    [ 87.748014] [] irq_exit+0x98/0xe8
    [ 87.753396] [] __handle_domain_irq+0x90/0xb8
    [ 87.757999] [] gic_handle_irq+0x6c/0xc8
    [ 87.763899] Exception stack(0xffffffc00081bdc0 to 0xffffffc00081bef0)

    Problem is that the state of ath11k_skb_cb->flags must be considered
    unknown and could contain anything when it is not manually initialized. So
    it could also contain ATH11K_SKB_HW_80211_ENCAP. And this can result in the
    code to assume that the ath11k_skb_cb->vif is set - even when this is not
    always the case for non ATH11K_SKB_HW_80211_ENCAP transmissions.

    Tested-on: IPQ8074 hw2.0 WLAN.HK.2.4.0.1.r1-00026-QCAHKSWPL_SILICONZ-2

    [1] https://source.codeaurora.org/quic/qsdk/oss/system/feeds/wlan-open/tree/mac80211/patches?h=NHSS.QSDK.11.4.r3
    (162 patches at the moment which are often not upstreamed but essential
    to get ath11k working)

    Fixes: e7f33e0c52c0 ("ath11k: add tx hw 802.11 encapsulation offloading support")
    Signed-off-by: Sven Eckelmann
    Signed-off-by: Kalle Valo
    Link: https://lore.kernel.org/r/20201119154235.263250-2-sven@narfation.org
    Signed-off-by: Sasha Levin

    Sven Eckelmann
     
  • [ Upstream commit f4d291b43f809b74c66b21f5190cd578af43070b ]

    The driver_data area of ieee80211_tx_info is used in ath11k for
    ath11k_skb_cb. The first function in the TX patch which rewrites it to
    ath11k_skb_cb is already ath11k_mac_op_tx. No one else in the code path
    must use it for something else before it reinitializes it. Otherwise the
    data has to be considered uninitialized or corrupt.

    But the ieee80211_tx_info.control shares exactly the same area as
    ieee80211_tx_info.driver_data and ath11k is still using it. This results in
    best case in a

    ath11k c000000.wifi1: no vif found for mgmt frame, flags 0x0

    or (slightly worse) in a kernel oops.

    Instead, the interesting data must be moved first into the ath11k_skb_cb
    and ieee80211_tx_info.control must then not be used anymore.

    Tested-on: IPQ8074 hw2.0 WLAN.HK.2.4.0.1.r1-00026-QCAHKSWPL_SILICONZ-2

    Fixes: d5c65159f289 ("ath11k: driver for Qualcomm IEEE 802.11ax devices")
    Signed-off-by: Sven Eckelmann
    Signed-off-by: Kalle Valo
    Link: https://lore.kernel.org/r/20201119154235.263250-1-sven@narfation.org
    Signed-off-by: Sasha Levin

    Sven Eckelmann
     
  • [ Upstream commit 7ec8a926188eb8e7a3cbaca43ec44f2d7146d71b ]

    Add the missing destroy_workqueue() before return from
    cw1200_init_common in the error handling case.

    Fixes: a910e4a94f69 ("cw1200: add driver for the ST-E CW1100 & CW1200 WLAN chipsets")
    Reported-by: Hulk Robot
    Signed-off-by: Qinglang Miao
    Signed-off-by: Kalle Valo
    Link: https://lore.kernel.org/r/20201119070842.1011-1-miaoqinglang@huawei.com
    Signed-off-by: Sasha Levin

    Qinglang Miao
     
  • [ Upstream commit fb21d14694bd46a538258d86498736490b3ba855 ]

    Fix to return a negative error code from the error handling
    case instead of 0, as done elsewhere in this function.

    Fixes: 17ff2c794f39 ("rsi: reset device changes for 9116")
    Reported-by: Hulk Robot
    Signed-off-by: Zhang Changzhong
    Signed-off-by: Kalle Valo
    Link: https://lore.kernel.org/r/1605582454-39649-1-git-send-email-zhangchangzhong@huawei.com
    Signed-off-by: Sasha Levin

    Zhang Changzhong
     
  • [ Upstream commit 31e07aa33fa7cdc93fa91c3f78f031e8d38862c2 ]

    Fix to return a negative error code from the error handling
    case instead of 0, as done elsewhere in this function.

    Fixes: b7da53cd6cd1 ("qtnfmac_pcie: use single PCIe driver for all platforms")
    Reported-by: Hulk Robot
    Signed-off-by: Wang Hai
    Signed-off-by: Kalle Valo
    Link: https://lore.kernel.org/r/20201114123347.29632-1-wanghai38@huawei.com
    Signed-off-by: Sasha Levin

    Wang Hai
     
  • [ Upstream commit a31eb615646a63370aa1da1053c45439c7653d83 ]

    ezusb_xmit() allocates a context which is leaked if
    orinoco_process_xmit_skb() returns an error.

    Move ezusb_alloc_ctx() after the invocation of
    orinoco_process_xmit_skb() because the context is not needed so early.
    ezusb_access_ltv() will cleanup the context in case of an error.

    Fixes: bac6fafd4d6a0 ("orinoco: refactor xmit path")
    Signed-off-by: Sebastian Andrzej Siewior
    Signed-off-by: Kalle Valo
    Link: https://lore.kernel.org/r/20201113212252.2243570-2-bigeasy@linutronix.de
    Signed-off-by: Sasha Levin

    Sebastian Andrzej Siewior
     
  • [ Upstream commit 37ff144d29acd7bca3d465ce2fc4cb5c7072a7e5 ]

    Fix to return a negative error code from the error handling
    case instead of 0, as done elsewhere in this function.

    Fixes: 3b1e0a7bdfee ("brcmfmac: add support for SAE authentication offload")
    Reported-by: Hulk Robot
    Signed-off-by: Zhang Changzhong
    Reviewed-by: Chi-hsien Lin
    Signed-off-by: Kalle Valo
    Link: https://lore.kernel.org/r/1605248896-16812-1-git-send-email-zhangchangzhong@huawei.com
    Signed-off-by: Sasha Levin

    Zhang Changzhong
     
  • [ Upstream commit 11af6de4799ee6eeae3730f18fd417414d212e2d ]

    Set the rx_filter in ath11k_mac_config_mon_status_default(),
    only when the rx_filter value exists in ath11k_debug_rx_filter().

    Without this change, rx_filter gets set to 0 and peer rssi stats
    aren't updating properly from firmware.

    Tested-on: IPQ8074 WLAN.HK.2.1.0.1-01230-QCAHKSWPL_SILICONZ-4

    Fixes: ec48d28ba291 ("ath11k: Fix rx_filter flags setting for per peer rx_stats")

    Signed-off-by: Maharaja Kennadyrajan
    Signed-off-by: Kalle Valo
    Link: https://lore.kernel.org/r/1605091117-11005-1-git-send-email-mkenna@codeaurora.org
    Signed-off-by: Sasha Levin

    Maharaja Kennadyrajan
     
  • [ Upstream commit fa74cb1dc0f4da46c441b735ca865ac52de42c0e ]

    When a PCIe function level reset (FLR) is performed but without fw reset for
    some reasons (e.g., on Microsoft Surface devices, fw reset requires other
    quirks), it fails to reset wifi properly. You can trigger the issue on such
    devices via debugfs entry for reset:

    $ echo 1 | sudo tee /sys/kernel/debug/mwifiex/mlan0/reset

    and the resulting dmesg log:

    [ 45.740508] mwifiex_pcie 0000:03:00.0: Resetting per request
    [ 45.742937] mwifiex_pcie 0000:03:00.0: info: successfully disconnected from [BSSID]: reason code 3
    [ 45.744666] mwifiex_pcie 0000:03:00.0: info: shutdown mwifiex...
    [ 45.751530] mwifiex_pcie 0000:03:00.0: PREP_CMD: card is removed
    [ 45.751539] mwifiex_pcie 0000:03:00.0: PREP_CMD: card is removed
    [ 45.771691] mwifiex_pcie 0000:03:00.0: PREP_CMD: card is removed
    [ 45.771695] mwifiex_pcie 0000:03:00.0: deleting the crypto keys
    [ 45.771697] mwifiex_pcie 0000:03:00.0: PREP_CMD: card is removed
    [ 45.771698] mwifiex_pcie 0000:03:00.0: deleting the crypto keys
    [ 45.771699] mwifiex_pcie 0000:03:00.0: PREP_CMD: card is removed
    [ 45.771701] mwifiex_pcie 0000:03:00.0: deleting the crypto keys
    [ 45.771702] mwifiex_pcie 0000:03:00.0: PREP_CMD: card is removed
    [ 45.771703] mwifiex_pcie 0000:03:00.0: deleting the crypto keys
    [ 45.771704] mwifiex_pcie 0000:03:00.0: PREP_CMD: card is removed
    [ 45.771705] mwifiex_pcie 0000:03:00.0: deleting the crypto keys
    [ 45.771707] mwifiex_pcie 0000:03:00.0: PREP_CMD: card is removed
    [ 45.771708] mwifiex_pcie 0000:03:00.0: deleting the crypto keys
    [ 53.099343] mwifiex_pcie 0000:03:00.0: info: trying to associate to '[SSID]' bssid [BSSID]
    [ 53.241870] mwifiex_pcie 0000:03:00.0: info: associated to bssid [BSSID] successfully
    [ 75.377942] mwifiex_pcie 0000:03:00.0: cmd_wait_q terminated: -110
    [ 85.385491] mwifiex_pcie 0000:03:00.0: info: successfully disconnected from [BSSID]: reason code 15
    [ 87.539408] mwifiex_pcie 0000:03:00.0: cmd_wait_q terminated: -110
    [ 87.539412] mwifiex_pcie 0000:03:00.0: deleting the crypto keys
    [ 99.699917] mwifiex_pcie 0000:03:00.0: cmd_wait_q terminated: -110
    [ 99.699925] mwifiex_pcie 0000:03:00.0: deleting the crypto keys
    [ 111.859802] mwifiex_pcie 0000:03:00.0: cmd_wait_q terminated: -110
    [ 111.859808] mwifiex_pcie 0000:03:00.0: deleting the crypto keys
    [...]

    When comparing mwifiex_shutdown_sw() with mwifiex_pcie_remove(), it
    lacks mwifiex_init_shutdown_fw().

    This commit fixes mwifiex_shutdown_sw() by adding the missing
    mwifiex_init_shutdown_fw().

    Fixes: 4c5dae59d2e9 ("mwifiex: add PCIe function level reset support")
    Signed-off-by: Tsuchiya Yuto
    Signed-off-by: Kalle Valo
    Link: https://lore.kernel.org/r/20201028142110.18144-2-kitakar@gmail.com
    Signed-off-by: Sasha Levin

    Tsuchiya Yuto
     
  • [ Upstream commit c134d1f8c436d96b3f62896c630278e3ec001280 ]

    ath11k_peer_create() is called without its return value being checked,
    meaning errors will be unhandled. Add missing check and, as the mutex is
    unconditionally unlocked on leaving this function, simplify the exit
    path.

    Addresses-Coverity-ID: 1497531 ("Code maintainability issues")
    Fixes: 701e48a43e15 ("ath11k: add packet log support for QCA6390")
    Signed-off-by: Alex Dewar
    Signed-off-by: Kalle Valo
    Link: https://lore.kernel.org/r/20201004100218.311653-1-alex.dewar90@gmail.com
    Signed-off-by: Sasha Levin

    Alex Dewar
     
  • [ Upstream commit 9db946284e07bb27309dd546b7fee528664ba82a ]

    There are missig brcmf_free() for brcmf_alloc(). Fix memory leak
    by adding missed brcmf_free().

    Reported-by: Jaehoon Chung
    Fixes: a1f5aac1765a ("brcmfmac: don't realloc wiphy during PCIe reset")
    Signed-off-by: Seung-Woo Kim
    Reviewed-by: Arend van Spriel
    Signed-off-by: Kalle Valo
    Link: https://lore.kernel.org/r/1603849967-22817-1-git-send-email-sw0312.kim@samsung.com
    Signed-off-by: Sasha Levin

    Seung-Woo Kim
     
  • [ Upstream commit 36c7c640ffeb87168e5ff79b7a36ae3a020bd378 ]

    Assign the correct hw_op ath11k_init_wmi_config_ipq8074 to
    the hw IPQ8074. Also update the correct TWT radio count.
    Incorrect TWT radio count cause TWT feature fails on radio2
    because physical device count is hardcoded to 2. so set
    the value dynamically.

    Found this during code review.

    Tested-on: IPQ8074 hw2.0 AHB WLAN.HK.2.1.0.1-01238-QCAHKSWPL_SILICONZ-2

    Fixes: 2d4bcbed5b7d53e1 ("ath11k: initialize wmi config based on hw_params")
    Signed-off-by: Karthikeyan Periyasamy
    Signed-off-by: Kalle Valo
    Link: https://lore.kernel.org/r/1604512020-25197-1-git-send-email-periyasa@codeaurora.org
    Signed-off-by: Sasha Levin

    Karthikeyan Periyasamy
     
  • [ Upstream commit 6189be7d145c3a2d48514eb8755483602ff5a4b4 ]

    The ath11k code will try to insert wheather rader related limits when the
    DFS region is set to ETSI. For this reason, it will add two more entries in
    the array of reg_rules. But the 2.4.0.1 firmware is prefiltering the list
    of reg rules it returns for 2.4GHz PHYs. They will then not contain the
    list of 5GHz rules and thus no wheather radar band rules were inserted by
    this code.

    But the code didn't fix the n_reg_rules for this regulatory domain and PHY
    when this happened. This resulted in a rejection by is_valid_rd because it
    found rules which start and end at 0khz. This resulted in a splat like:

    Invalid regulatory domain detected
    ------------[ cut here ]------------
    WARNING: at backports-20200628-4.4.60-9a94b73e75/net/wireless/reg.c:3721
    [...]
    ath11k c000000.wifi1: failed to perform regd update : -22

    The number of rules must therefore be saved after they were converted from
    the ath11k format to the ieee80211_regdomain format and not before.

    Tested with IPQ8074 WLAN.HK.2.4.0.1.r1-00019-QCAHKSWPL_SILICONZ-1

    Fixes: d5c65159f289 ("ath11k: driver for Qualcomm IEEE 802.11ax devices")
    Signed-off-by: Sven Eckelmann
    Signed-off-by: Kalle Valo
    Link: https://lore.kernel.org/r/20201030101940.2387952-1-sven@narfation.org
    Signed-off-by: Sasha Levin

    Sven Eckelmann
     
  • [ Upstream commit 383a32cde4172db19d4743d4c782c00af39ff275 ]

    The function ath11k_wmi_send_init_country_cmd is taking 3 byte from alpha2
    of the structure wmi_init_country_params. But the function
    ath11k_reg_notifier is only initializing 2 bytes. The third byte is
    therefore always an uninitialized value.

    The command can happen to look like

    0c 00 87 02 01 00 00 00 00 00 00 00 43 41 f8 00

    instead of

    0c 00 87 02 01 00 00 00 00 00 00 00 43 41 00 00

    Tested-on: IPQ8074 hw2.0 WLAN.HK.2.1.0.1-01161-QCAHKSWPL_SILICONZ-1
    Tested-on: IPQ8074 hw2.0 WLAN.HK.2.1.0.1-01228-QCAHKSWPL_SILICONZ-1
    Tested-on: IPQ8074 hw2.0 WLAN.HK.2.1.0.1-01238-QCAHKSWPL_SILICONZ-2
    Tested-on: IPQ8074 hw2.0 WLAN.HK.2.4.0.1.r1-00019-QCAHKSWPL_SILICONZ-1
    Tested-on: IPQ8074 hw2.0 WLAN.HK.2.4.0.1.r1-00026-QCAHKSWPL_SILICONZ-2

    Fixes: d5c65159f289 ("ath11k: driver for Qualcomm IEEE 802.11ax devices")
    Signed-off-by: Sven Eckelmann
    Signed-off-by: Kalle Valo
    Link: https://lore.kernel.org/r/20201021140555.4114715-1-sven@narfation.org
    Signed-off-by: Sasha Levin

    Sven Eckelmann
     

09 Dec, 2020

1 commit


04 Dec, 2020

1 commit

  • This code does not ensure that the whole buffer is initialized and none
    of the callers check for errors so potentially none of the buffer is
    initialized. Add a memset to eliminate this bug.

    Fixes: e3037485c68e ("rtw88: new Realtek 802.11ac driver")
    Signed-off-by: Dan Carpenter
    Signed-off-by: Kalle Valo
    Link: https://lore.kernel.org/r/X8ilOfVz3pf0T5ec@mwanda

    Dan Carpenter