Commit Graph

28545 Commits

Author SHA1 Message Date
Nathan Chancellor 9b4205b38d UPSTREAM: usb: gadget: uvc: Fix argument to sizeof() in uvc_register_video()
When building s390 allmodconfig after commit 9b91a65230 ("usb: gadget:
uvc: increase worker prio to WQ_HIGHPRI"), the following error occurs:

  In file included from ../include/linux/string.h:253,
                   from ../include/linux/bitmap.h:11,
                   from ../include/linux/cpumask.h:12,
                   from ../include/linux/smp.h:13,
                   from ../include/linux/lockdep.h:14,
                   from ../include/linux/rcupdate.h:29,
                   from ../include/linux/rculist.h:11,
                   from ../include/linux/pid.h:5,
                   from ../include/linux/sched.h:14,
                   from ../include/linux/ratelimit.h:6,
                   from ../include/linux/dev_printk.h:16,
                   from ../include/linux/device.h:15,
                   from ../drivers/usb/gadget/function/f_uvc.c:9:
  In function ‘fortify_memset_chk’,
      inlined from ‘uvc_register_video’ at ../drivers/usb/gadget/function/f_uvc.c:424:2:
  ../include/linux/fortify-string.h:301:25: error: call to ‘__write_overflow_field’ declared with attribute warning: detected write beyond size of field (1st parameter); maybe use struct_group()? [-Werror=attribute-warning]
    301 |                         __write_overflow_field(p_size_field, size);
        |                         ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~

This points to the memset() in uvc_register_video(). It is clear that
the argument to sizeof() is incorrect, as uvc->vdev (a 'struct
video_device') is being zeroed out but the size of uvc->video (a 'struct
uvc_video') is being used as the third arugment to memset().

pahole shows that prior to commit 9b91a65230 ("usb: gadget: uvc:
increase worker prio to WQ_HIGHPRI"), 'struct video_device' and
'struct ucv_video' had the same size, meaning that the argument to
sizeof() is incorrect semantically but there is no visible issue:

  $ pahole -s build/drivers/usb/gadget/function/f_uvc.o | grep -E "(uvc_video|video_device)\s+"
  video_device    1400    4
  uvc_video       1400    3

After that change, uvc_video becomes slightly larger, meaning that the
memset() will overwrite by 8 bytes:

  $ pahole -s build/drivers/usb/gadget/function/f_uvc.o | grep -E "(uvc_video|video_device)\s+"
  video_device    1400    4
  uvc_video       1408    3

Fix the arugment to sizeof() so that there is no overwrite.

Cc: stable@vger.kernel.org
Fixes: e4ce9ed835 ("usb: gadget: uvc: ensure the vdev is unset")
Signed-off-by: Nathan Chancellor <nathan@kernel.org>
Reviewed-by: Laurent Pinchart <laurent.pinchart@ideasonboard.com>
Reviewed-by: Kees Cook <keescook@chromium.org>
Link: https://lore.kernel.org/r/20220928201921.3152163-1-nathan@kernel.org
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
Signed-off-by: William Wu <william.wu@rock-chips.com>
(cherry picked from commit a15e17acce)
Change-Id: Id7fe8570ae7f3998593f33c01ffb63c8c89f0716
2023-12-26 15:21:18 +08:00
Michael Grzeschik de7ec95b44 UPSTREAM: usb: gadget: uvc: increase worker prio to WQ_HIGHPRI
This patch is changing the simple workqueue in the gadget driver to be
allocated as async_wq with a higher priority. The pump worker, that is
filling the usb requests, will have a higher priority and will not be
scheduled away so often while the video stream is handled. This will
lead to fewer streaming underruns.

Signed-off-by: Michael Grzeschik <m.grzeschik@pengutronix.de>
Link: https://lore.kernel.org/r/20220907215818.2670097-1-m.grzeschik@pengutronix.de
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
Signed-off-by: William Wu <william.wu@rock-chips.com>
(cherry picked from commit 9b91a65230)
Change-Id: I3a70591f53a4040c50d723784f5e520cf2d53d99
2023-12-26 15:21:18 +08:00
Michael Grzeschik 3afe252aa9 UPSTREAM: usb: gadget: uvc: ensure the vdev is unset
Since the uvc video device is created on demand, we have to ensure
that the struct is always zeroed. Otherwise the previous settings
might collide with the new values.

Reviewed-by: Laurent Pinchart <laurent.pinchart@ideasonboard.com>
Reviewed-by: Paul Elder <paul.elder@ideasonboard.com>
Signed-off-by: Michael Grzeschik <m.grzeschik@pengutronix.de>
Link: https://lore.kernel.org/r/20211017215017.18392-7-m.grzeschik@pengutronix.de
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
Signed-off-by: William Wu <william.wu@rock-chips.com>
(cherry picked from commit e4ce9ed835)
Change-Id: I4ecb8c85a4d838254b68ea23284e35b04b9678af
2023-12-26 15:21:18 +08:00
Tao Huang 0a9e86dc1f Merge commit 'f40707abde2eb5cd21cf8848f33aefb7e394ad1a' of https://android.googlesource.com/kernel/common
* commit 'f40707abde2eb5cd21cf8848f33aefb7e394ad1a': (1250 commits)
  ANDROID: GKI: Update symbols to symbol list
  ANDROID: Add Interrupt Hook for madvise Compression
  UPSTREAM: netfilter: ipset: add the missing IP_SET_HASH_WITH_NET0 macro for ip_set_hash_netportnet.c
  BACKPORT: ravb: Fix use-after-free issue in ravb_tx_timeout_work()
  UPSTREAM: ravb: Fix up dma_free_coherent() call in ravb_remove()
  Revert "netfilter: handle the connecting collision properly in nf_conntrack_proto_sctp"
  Revert "net: bridge: use DEV_STATS_INC()"
  Revert "configfs: fix a race in configfs_lookup()"
  UPSTREAM: netfilter: ipset: Fix race between IPSET_CMD_CREATE and IPSET_CMD_SWAP
  UPSTREAM: net: xfrm: Fix xfrm_address_filter OOB read
  UPSTREAM: igb: set max size RX buffer when store bad packet is enabled
  UPSTREAM: netfilter: nfnetlink_osf: avoid OOB read
  ANDROID: abi_gki_aarch64_qcom: Add wait_for_device_probe symbol
  UPSTREAM: netfilter: xt_sctp: validate the flag_info count
  UPSTREAM: netfilter: xt_u32: validate user space input
  UPSTREAM: net/sched: Retire rsvp classifier
  UPSTREAM: ipv4: fix null-deref in ipv4_link_failure
  UPSTREAM: netfilter: nf_tables: disallow rule removal from chain binding
  UPSTREAM: netfilter: nf_tables: report use refcount overflow
  FROMLIST: lib/test_meminit: fix off-by-one error in test_pages()
  ...

Change-Id: I78c7dc68c56008361ff7365d2ef2e59359f2e3fe
2023-11-07 19:03:05 +08:00
Tao Huang 1253eedfbf Merge tag 'ASB-2023-10-06_12-5.10' of https://android.googlesource.com/kernel/common
https://source.android.com/docs/security/bulletin/2023-10-01

* tag 'ASB-2023-10-06_12-5.10': (4345 commits)
  ANDROID: ABI: Update oplus symbol list
  ANDROID: vendor_hooks: Add hooks for oem percpu-rwsem optimaton
  UPSTREAM: net: sched: sch_qfq: Fix UAF in qfq_dequeue()
  UPSTREAM: net/sched: sch_hfsc: Ensure inner classes have fsc curve
  FROMGIT: f2fs: split initial and dynamic conditions for extent_cache
  ANDROID: GKI:  Update moto symbols list
  ANDROID: vendor_hook: Add hook to skip swapcache
  ANDROID: GKI: Update symbols to symbol list
  ANDROID: add vendor hook of add/delete/iterate node for swap_avail_heads
  UPSTREAM: tty: n_gsm: fix the UAF caused by race condition in gsm_cleanup_mux
  UPSTREAM: netfilter: nf_tables: prevent OOB access in nft_byteorder_eval
  UPSTREAM: net/sched: sch_qfq: account for stab overhead in qfq_enqueue
  ANDROID: GKI update xiaomi symbols list
  UPSTREAM: af_unix: Fix null-ptr-deref in unix_stream_sendpage().
  UPSTREAM: USB: dwc3: fix use-after-free on core driver unbind
  UPSTREAM: xhci: Fix incorrect tracking of free space on transfer rings
  UPSTREAM: kfence: avoid passing -g for test
  UPSTREAM: coresight: etm4x: Do not access TRCIDR1 for identification
  UPSTREAM: usb: typec: tcpm: fix warning when handle discover_identity message
  UPSTREAM: f2fs: fix to update age extent in f2fs_do_zero_range()
  ...

Change-Id: I629b30e89c59280f9fd1073d160b74de1d8b04b1

Conflicts:
	arch/arm/boot/dts/rk3288.dtsi
	drivers/crypto/Kconfig
	drivers/dma/pl330.c
	drivers/gpu/drm/rockchip/rockchip_drm_vop.c
	drivers/gpu/drm/rockchip/rockchip_lvds.c
	drivers/pci/controller/pcie-rockchip.c
	drivers/phy/rockchip/phy-rockchip-inno-usb2.c
	drivers/phy/rockchip/phy-rockchip-typec.c
	drivers/pinctrl/pinctrl-rockchip.c
	drivers/tty/serial/8250/8250_dma.c
	drivers/tty/serial/8250/8250_port.c
	drivers/usb/dwc2/platform.c
	drivers/usb/dwc3/core.c
	drivers/usb/dwc3/gadget.c
	drivers/usb/gadget/udc/core.c
	drivers/usb/host/xhci.h
	drivers/usb/storage/unusual_uas.h
	drivers/usb/typec/altmodes/displayport.c
	drivers/usb/typec/tcpm/tcpm.c
	kernel/sched/fair.c
	sound/soc/rockchip/rockchip_pdm.c
2023-11-07 19:01:23 +08:00
Tao Huang c575feaee9 Revert "usb: typec: typec_port_register_altmodes() depends on CONFIG_NO_GKI"
This reverts commit afaeb74a36.

Signed-off-by: Tao Huang <huangtao@rock-chips.com>
2023-11-07 18:57:40 +08:00
Greg Kroah-Hartman 1289e04b48 Merge tag 'android12-5.10.198_r00' into android12-5.10
This merges catches the android12-5.10 branch up with the 5.10.198 LTS
release.  Included in here are the following commits:

* 9db823a19d Revert "netfilter: handle the connecting collision properly in nf_conntrack_proto_sctp"
* f95f372cf9 Revert "net: bridge: use DEV_STATS_INC()"
*   3e7bedcc0e Merge 5.10.198 into android12-5.10-lts
|\
| * a8d812240f Linux 5.10.198
| * 660627c71b xen/events: replace evtchn_rwlock with RCU
| * 1e3d016a95 mmc: renesas_sdhi: only reset SCC when its pointer is populated
| * a7d86a77c3 netfilter: nftables: exthdr: fix 4-byte stack OOB write
| * 84f6b686df netfilter: nf_tables: fix kdoc warnings after gc rework
| * c17446c008 parisc: Restore __ldcw_align for PA-RISC 2.0 processors
| * cfc333393a RDMA/mlx5: Fix NULL string error
| * 0d520cdb0c RDMA/siw: Fix connection failure handling
| * 5a4a6a47e0 RDMA/uverbs: Fix typo of sizeof argument
| * 626868282c RDMA/cma: Fix truncation compilation warning in make_cma_ports
| * 7de0e42444 RDMA/cma: Initialize ib_sa_multicast structure to 0 when join
| * 36953b4da7 gpio: pxa: disable pinctrl calls for MMP_GPIO
| * 6ad972e668 gpio: aspeed: fix the GPIO number passed to pinctrl_gpio_set_config()
| * d7d8f1a679 IB/mlx4: Fix the size of a buffer in add_port_entries()
| * 204c2d485f of: dynamic: Fix potential memory leak in of_changeset_action()
| * b74f12f98b RDMA/core: Require admin capabilities to set system parameters
| * ccd87fe7a0 dm zoned: free dmz->ddev array in dmz_put_zoned_devices
| * 82d87c944e cpupower: add Makefile dependencies for install targets
| * 492241613c sctp: update hb timer immediately after users change hb_interval
| * f876584938 sctp: update transport state when processing a dupcook packet
| * ff346b01eb tcp: fix delayed ACKs for MSS boundary condition
| * 677aaa261e tcp: fix quick-ack counting to count actual ACKs of new data
| * 6a24d0661f tipc: fix a potential deadlock on &tx->lock
| * b9f1568ba3 net: stmmac: dwmac-stm32: fix resume on STM32 MCU
| * 3a5142f017 netfilter: nf_tables: nft_set_rbtree: fix spurious insertion failure
| * 0ba9348532 netfilter: handle the connecting collision properly in nf_conntrack_proto_sctp
| * b212f361a5 net: ethernet: ti: am65-cpsw: Fix error code in am65_cpsw_nuss_init_tx_chns()
| * dba849cc98 net: nfc: llcp: Add lock when modifying device list
| * 30bc4d7aeb net: usb: smsc75xx: Fix uninit-value access in __smsc75xx_read_reg
| * d44346dda7 net: dsa: mv88e6xxx: Avoid EEPROM timeout when EEPROM is absent
| * 96b2e10903 ipv4, ipv6: Fix handling of transhdrlen in __ip{,6}_append_data()
| * 2ea52a2fb8 net: fix possible store tearing in neigh_periodic_work()
| * 6e3d9e5cab modpost: add missing else to the "of" check
| * 225cd4f67b NFSv4: Fix a nfs4_state_manager() race
| * d8f2ba9ec3 ima: rework CONFIG_IMA dependency block
| * 77f82df960 scsi: target: core: Fix deadlock due to recursive locking
| * a9430129d8 ima: Finish deprecation of IMA_TRUSTED_KEYRING Kconfig
| * 725fd20805 regmap: rbtree: Fix wrong register marked as in-cache when creating new node
| * 666cdc43df wifi: mt76: mt76x02: fix MT76x0 external LNA gain handling
| * 54a4faab2b drivers/net: process the result of hdlc_open() and add call of hdlc_close() in uhdlc_close()
| * 93dd471d3a bpf: Fix tr dereferencing
| * 10a18c8bac wifi: mwifiex: Fix oob check condition in mwifiex_process_rx_packet
| * 8c15c1bcc5 wifi: iwlwifi: dbg_ini: fix structure packing
| * a5f643ab11 ubi: Refuse attaching if mtd's erasesize is 0
| * 33420a8206 arm64: Add Cortex-A520 CPU part definition
| * 81d03e2518 net: prevent rewrite of msg_name in sock_sendmsg()
| * 72fc02ebfc net: replace calls to sock->ops->connect() with kernel_connect()
| * 1aeff207e2 wifi: mwifiex: Fix tlv_buf_left calculation
| * f6f25930fa qed/red_ll2: Fix undefined behavior bug in struct qed_ll2_info
| * b9c4b3ca90 scsi: zfcp: Fix a double put in zfcp_port_enqueue()
| * 04b6b67a3e Revert "PCI: qcom: Disable write access to read only registers for IP v2.3.3"
| * c2cf152e8b Revert "clk: imx: pll14xx: dynamically configure PLL for 393216000/361267200Hz"
| * f94471c0cc block: fix use-after-free of q->q_usage_counter
| * 0d6987d4a3 rbd: take header_rwsem in rbd_dev_refresh() only when updating
| * d3d170c5fc rbd: decouple parent info read-in from updating rbd_dev
| * 3ceb306f9b rbd: decouple header read-in from updating rbd_dev->header
| * 7c4f11d73b rbd: move rbd_dev_refresh() definition
| * d0952ce316 drm/mediatek: Fix backport issue in mtk_drm_gem_prime_vmap()
| * c33d75a57a ring-buffer: Fix bytes info in per_cpu buffer stats
| * 0ecde7dd76 ring-buffer: remove obsolete comment for free_buffer_page()
| * 2ad1a1d3d6 NFSv4: Fix a state manager thread deadlock regression
| * ec4325e806 NFS: rename nfs_client_kset to nfs_kset
| * 598539f38c NFS: Cleanup unused rpc_clnt variable
| * 19f3d5d13b spi: zynqmp-gqspi: fix clock imbalance on probe failure
| * 2cdec9c13f spi: spi-zynqmp-gqspi: Fix runtime PM imbalance in zynqmp_qspi_probe
| * ae03dafc37 fs: binfmt_elf_efpic: fix personality for ELF-FDPIC
| * 8ec1abb59a ata: libata-sata: increase PMP SRST timeout to 10s
| * dc0bd0f2da ata: libata-core: Do not register PM operations for SAS ports
| * 531d9f6dbf ata: libata-core: Fix port and device removal
| * 99d308c319 ata: libata-core: Fix ata_port_request_pm() locking
| * eaf4496662 net: thunderbolt: Fix TCPv6 GSO checksum calculation
| * 72595dbfca bpf: Fix BTF_ID symbol generation collision in tools/
| * 6a80578bd4 bpf: Fix BTF_ID symbol generation collision
| * cbbfdb4bab btrfs: properly report 0 avail for very full file systems
| * ef47f25e98 ring-buffer: Update "shortest_full" in polling
| * b7a0df4c08 proc: nommu: /proc/<pid>/maps: release mmap read lock
| * acc7fc82d0 Revert "SUNRPC dont update timeout value on connection reset"
| * e3b8c9e0fc i2c: i801: unregister tco_pdev in i801_probe() error path
| * b664e9db8d ata: libata-scsi: ignore reserved bits for REPORT SUPPORTED OPERATION CODES
| * 25872c67de ALSA: hda: Disable power save for solving pop issue on Lenovo ThinkCentre M70q
| * 5a03b42ae1 netfilter: nf_tables: disallow rule removal from chain binding
| * 7130a87ca3 nilfs2: fix potential use after free in nilfs_gccache_submit_read_data()
| * e14afa4450 serial: 8250_port: Check IRQ data before use
| * 6d5c886293 Revert "tty: n_gsm: fix UAF in gsm_cleanup_mux"
| * 14443223e0 Smack:- Use overlay inode label in smack_inode_copy_up()
| * 297c51c63f smack: Retrieve transmuting information in smack_inode_getsecurity()
| * 41de7a6b95 smack: Record transmuting in smk_transmuted
| * 831f18c735 nvme-pci: always return an ERR_PTR from nvme_pci_alloc_dev
| * fb28f89d50 netfilter: nft_exthdr: Fix for unsafe packet data read
| * e18216cd0e netfilter: nft_exthdr: Search chunks in SCTP packets only
| * 152b8ac839 watchdog: iTCO_wdt: Set NO_REBOOT if the watchdog is not already running
| * 13b7d49f33 watchdog: iTCO_wdt: No need to stop the timer in probe
| * 0d599a3f57 nvme-pci: do not set the NUMA node of device if it has none
| * 97e148dcb9 nvme-pci: factor out a nvme_pci_alloc_dev helper
| * 71357c751f nvme-pci: factor the iod mempool creation into a helper
| * 38f82cf860 ACPI: Check StorageD3Enable _DSD property in ACPI code
| * 67025d5654 cgroup: Fix suspicious rcu_dereference_check() usage warning
| * b2788f6d49 sched/cpuacct: Optimize away RCU read lock
| * 82756d8a23 sched/cpuacct: Fix charge percpu cpuusage
| * f8e8e72c58 sched/cpuacct: Fix user/system in shown cpuacct.usage*
| * ef3c728ca0 perf build: Define YYNOMEM as YYNOABORT for bison < 3.81
| * da91481c5d fbdev/sh7760fb: Depend on FB=y
| * ffc459a930 ncsi: Propagate carrier gain/loss events to the NCSI controller
| * 8c2500228b powerpc/watchpoints: Disable preemption in thread_change_pc()
| * f5bdbed036 media: vb2: frame_vector.c: replace WARN_ONCE with a comment
| * ebc9184806 bpf: Clarify error expectations from bpf_clone_redirect
| * 0118244848 spi: nxp-fspi: reset the FLSHxCR1 registers
| * f6cf19c1b3 ata: libata-eh: do not clear ATA_PFLAG_EH_PENDING in ata_eh_reset()
| * 2afd8fcee0 scsi: pm80xx: Avoid leaking tags when processing OPC_INB_SET_CONTROLLER_CONFIG command
| * 0decc581e1 scsi: pm80xx: Use phy-specific SAS address when sending PHY_START command
| * f44e66447c platform/mellanox: mlxbf-bootctl: add NET dependency into Kconfig
| * cee5151c54 ring-buffer: Do not attempt to read past "commit"
| * 2956e33fb4 selftests: fix dependency checker script
| * 9ccce21bd7 ring-buffer: Avoid softlockup in ring_buffer_resize()
| * 5dfcb92905 selftests/ftrace: Correctly enable event in instance-event.tc
| * 38ef4b2e4d scsi: qedf: Add synchronization between I/O completions and abort
| * 2081b2a15b parisc: irq: Make irq_stack_union static to avoid sparse warning
| * f47efdffdc parisc: drivers: Fix sparse warning
| * d967a9472b parisc: iosapic.c: Fix sparse warnings
| * 7b2440c2d6 parisc: sba: Fix compile warning wrt list of SBA devices
| * c793005999 dma-debug: don't call __dma_entry_alloc_check_leak() under free_entries_lock
| * 061f402753 i2c: npcm7xx: Fix callback completion ordering
| * dd81e91b2e gpio: pmic-eic-sprd: Add can_sleep flag for PMIC EIC chip
| * b317f69871 xtensa: boot/lib: fix function prototypes
| * be17dfdcc8 xtensa: boot: don't add include-dirs
| * a10bfbe599 xtensa: iss/network: make functions static
| * 608af5511a xtensa: add default definition for XCHAL_HAVE_DIV32
| * 3696261859 power: supply: ucs1002: fix error code in ucs1002_get_property()
| * eff55feb8b bus: ti-sysc: Fix SYSC_QUIRK_SWSUP_SIDLE_ACT handling for uart wake-up
| * 1bc8867196 ARM: dts: ti: omap: motorola-mapphone: Fix abe_clkctrl warning on boot
| * a2a592adad ARM: dts: Unify pwm-omap-dmtimer node names
| * 2d9c9589da ARM: dts: am335x: Guardian: Update beeper label
| * ef83f35ced ARM: dts: motorola-mapphone: Drop second ti,wlcore compatible value
| * 12a28c379e ARM: dts: motorola-mapphone: Add 1.2GHz OPP
| * afdc40a74a ARM: dts: motorola-mapphone: Configure lower temperature passive cooling
| * 093a9a02d4 ARM: dts: ti: omap: Fix bandgap thermal cells addressing for omap3/4
| * 28e5423ad8 ARM: dts: omap: correct indentation
| * 50789f3723 clk: tegra: fix error return case for recalc_rate
| * 0fd5839e25 bus: ti-sysc: Fix missing AM35xx SoC matching
| * 1d4d846e2a bus: ti-sysc: Use fsleep() instead of usleep_range() in sysc_reset()
| * a8ee76d727 MIPS: Alchemy: only build mmc support helpers if au1xmmc is enabled
| * d678c078f3 btrfs: reset destination buffer when read_extent_buffer() gets invalid range
| * a1f85bc9bc ata: ahci: Add Elkhart Lake AHCI controller
| * 51d190cc98 ata: ahci: Rename board_ahci_mobile
| * 8061c399c8 ata: ahci: Add support for AMD A85 FCH (Hudson D4)
| * 0156cce71f ata: libata: Rename link flag ATA_LFLAG_NO_DB_DELAY
| * 9f0d346630 netfilter: nft_exthdr: Fix non-linear header modification
| * ed60b8014c netfilter: exthdr: add support for tcp option removal
| * 10670abe11 netfilter: nft_exthdr: break evaluation if setting TCP option fails
| * 45b3eb6afc netfilter: nf_tables: add and use nft_thoff helper
| * 39546418b8 netfilter: nf_tables: add and use nft_sk helper
| * af844ba799 netfilter: nft_exthdr: Support SCTP chunks
| * 858ca19216 netfilter: use actual socket sk for REJECT action
| * 2d9ea86f3c media: venus: hfi_venus: Write to VIDC_CTRL_INIT after unmasking interrupts
| * c4cc1f690f media: venus: hfi: Add a 6xx boot logic
| * 4596fece3c media: venus: core: Add differentiator IS_V6(core)
| * 3ed9d3dc24 media: venus: hfi: Define additional 6xx registers
| * ebccb53232 media: venus: hfi,pm,firmware: Convert to block relative addressing
| * 4ccdeb68da media: venus: core: Add io base variables for each block
| * 6d3745bbc3 mmc: renesas_sdhi: register irqs before registering controller
| * 995ef65e4b mmc: tmio: support custom irq masks
| * 97eb045386 mmc: renesas_sdhi: populate SCC pointer at the proper place
| * 7217ceb61a mmc: renesas_sdhi: probe into TMIO after SCC parameters have been setup
| * e492f81251 Input: i8042 - add quirk for TUXEDO Gemini 17 Gen1/Clevo PD70PN
| * 677bff659f Input: i8042 - rename i8042-x86ia64io.h to i8042-acpipnpio.h
| * 3fac8ce48f netfilter: nf_tables: double hook unregistration in netns path
| * e51f30826b netfilter: nf_tables: unregister flowtable hooks on netns exit
| * 5e95c88e90 i2c: mux: demux-pinctrl: check the return value of devm_kstrdup()
| * 0a78bcc2d5 gpio: tb10x: Fix an error handling path in tb10x_gpio_probe()
| * f515112e83 net: rds: Fix possible NULL-pointer dereference
| * 466e88548e bnxt_en: Flush XDP for bnxt_poll_nitroa0()'s NAPI
| * 78106529b3 locking/seqlock: Do the lockdep annotation before locking in do_write_seqcount_begin_nested()
| * a8dd21118b seqlock: Prefix internal seqcount_t-only macros with a "do_"
| * ac01a0dd79 seqlock: Rename __seqprop() users
| * a8460ee6c8 seqlock: avoid -Wshadow warnings
| * f1893feb20 netfilter: ipset: Fix race between IPSET_CMD_CREATE and IPSET_CMD_SWAP
| * b44dd92e2a team: fix null-ptr-deref when team device type is changed
| * 04cc361f02 net: bridge: use DEV_STATS_INC()
| * 1671dc1b25 net: hns3: add 5ms delay before clear firmware reset irq source
| * 309af4a39b net: hns3: only enable unicast promisc when mac table full
| * ae806c74c0 x86/srso: Fix SBPB enablement for spec_rstack_overflow=off
| * 423ba1b3a5 x86/srso: Fix srso_show_state() side effect
| * 1ec40ef6f7 platform/x86: intel_scu_ipc: Fail IPC send if still busy
| * 4c5eaf6d8b platform/x86: intel_scu_ipc: Don't override scu in intel_scu_ipc_dev_simple_command()
| * 441b61d742 platform/x86: intel_scu_ipc: Check status upon timeout in ipc_wait_for_interrupt()
| * c463898b6e platform/x86: intel_scu_ipc: Check status after timeout in busy_loop()
| * 60d73c62e3 dccp: fix dccp_v4_err()/dccp_v6_err() again
| * 09a1c790e1 powerpc/perf/hv-24x7: Update domain value check
| * 8689c9ace9 ipv4: fix null-deref in ipv4_link_failure
| * 47907ebeb7 i40e: Fix VF VLAN offloading when port VLAN is configured
| * a91861446f ASoC: imx-audmix: Fix return error with devm_clk_get()
| * c4ecedf980 selftests: tls: swap the TX and RX sockets in some tests
| * 78ef69b6e7 selftests/tls: Add {} to avoid static checker warning
| * 388c9d3eef bpf: Avoid deadlock when using queue and stack maps from NMI
| * 6dc85d848c netfilter: nf_tables: disallow element removal on anonymous sets
| * a45632f997 ASoC: meson: spdifin: start hw on dai probe
| * 09c85f2d21 netfilter: nf_tables: fix memleak when more than 255 elements expired
| * 4deaf1316b netfilter: nft_set_hash: try later when GC hits EAGAIN on iteration
| * 26d0e4d632 netfilter: nft_set_pipapo: stop GC iteration if GC transaction allocation fails
| * b796c4e4bf netfilter: nft_set_rbtree: use read spinlock to avoid datapath contention
| * c323ed65f6 netfilter: nft_set_rbtree: skip sync GC for new elements in this transaction
| * 09f2dda1e5 netfilter: nf_tables: defer gc run if previous batch is still pending
| * b71dcee2fc netfilter: nf_tables: use correct lock to protect gc_list
| * 23292bdfda netfilter: nf_tables: GC transaction race with abort path
| * dc0b1f0195 netfilter: nf_tables: GC transaction race with netns dismantle
| * 4046f2b56e netfilter: nf_tables: fix GC transaction races with netns and netlink event exit path
| * 891ca5dfe3 netfilter: nf_tables: don't fail inserts if duplicate has expired
| * 911dd3cdf1 netfilter: nf_tables: remove busy mark and gc batch API
| * 77046cb008 netfilter: nft_set_hash: mark set element as dead when deleting from packet path
| * 146c768667 netfilter: nf_tables: adapt set backend to use GC transaction API
| * 448be07748 netfilter: nf_tables: GC transaction API to avoid race with control plane
| * b15ea4017a netfilter: nf_tables: don't skip expired elements during walk
| * f8bf770615 netfilter: nf_tables: integrate pipapo into commit protocol
| * 9b65bff30a tracing: Have event inject files inc the trace array ref count
| * f8a86ab3c4 ext4: do not let fstrim block system suspend
| * c502b09d9b ext4: move setting of trimmed bit into ext4_try_to_trim_range()
| * e78e9f08a2 ext4: replace the traditional ternary conditional operator with with max()/min()
| * cbf6a0f654 ext4: mark group as trimmed only if it was fully scanned
| * 5eaf4a1e06 ext4: change s_last_trim_minblks type to unsigned long
| * 24a86315a3 ext4: scope ret locally in ext4_try_to_trim_range()
| * da1895f731 ext4: add new helper interface ext4_try_to_trim_range()
| * 6f5fc957df ext4: remove the 'group' parameter of ext4_trim_extent
| * 69c9665830 ata: libahci: clear pending interrupt status
| * 11d15a115c ata: ahci: Drop pointless VPRINTK() calls and convert the remaining ones
| * 407bf1c140 tracing: Increase trace array ref count on enable and filter files
| * 3f7df02fa0 SUNRPC: Mark the cred for revalidation if the server rejects it
| * 25ae2b2fdb NFS/pNFS: Report EINVAL errors from connect() to the server
| * 26db22a639 NFS: Use the correct commit info in nfs_join_page_group()
* | 3414e62421 Merge 5.10.197 into android12-5.10-lts
|\|
| * 393e225fe8 Linux 5.10.197
| * 242c5740dd ext4: fix rec_len verify error
| * 8768583b25 scsi: pm8001: Setup IRQs on resume
| * f4fffa1abb scsi: megaraid_sas: Fix deadlock on firmware crashdump
| * 3753e568d6 ata: libata: disallow dev-initiated LPM transitions to unsupported states
| * 993bb01d22 i2c: aspeed: Reset the i2c controller when timeout occurs
| * f5e303fce3 tracefs: Add missing lockdown check to tracefs_create_dir()
| * 96afb318ae nfsd: fix change_info in NFSv4 RENAME replies
| * b3183f5f05 tracing: Have option files inc the trace array ref count
| * ec7eb8b064 tracing: Have current_trace inc the trace array ref count
| * bb3e295a38 drm/amd/display: enable cursor degamma for DCN3+ DRM legacy gamma
| * 2cdcf6481c mm/filemap: fix infinite loop in generic_file_buffered_read()
| * 0c5d5f8e0d proc: fix a dentry lock race between release_task and lookup
| * 8db844077e net/sched: Retire rsvp classifier
| * 7a8f285cb5 drm/amdgpu: fix amdgpu_cs_p1_user_fence
| * 7390bb377b btrfs: release path before inode lookup during the ino lookup ioctl
| * 3d379dd109 btrfs: fix lockdep splat and potential deadlock after failure running delayed items
| * c6422e6f17 ovl: fix incorrect fdput() on aio completion
| * 68308b0a33 attr: block mode changes of symlinks
| * 634444dea8 md/raid1: fix error: ISO C90 forbids mixed declarations
| * 7be3a38f0e samples/hw_breakpoint: fix building without module unloading
| * d20beafaa6 x86/boot/compressed: Reserve more memory for page tables
| * 7635020b9b scsi: lpfc: Fix the NULL vs IS_ERR() bug for debugfs_create_file()
| * f990052376 selftests: tracing: Fix to unmount tracefs for recovering environment
| * ae889fffae scsi: qla2xxx: Fix NULL vs IS_ERR() bug for debugfs_create_dir()
| * 82910aa550 drm: gm12u320: Fix the timeout usage for usb_bulk_msg()
| * df380d6f5c btrfs: compare the correct fsid/metadata_uuid in btrfs_validate_super
| * ab90a3930d btrfs: add a helper to read the superblock metadata_uuid
| * cc87d2bb39 btrfs: move btrfs_pinned_by_swapfile prototype into volumes.h
| * e16f5f8cab perf tools: Add an option to build without libbfd
| * c560958127 perf jevents: Make build dependency on test JSONs
| * 4954c5a054 mtd: rawnand: brcmnand: Fix ECC level field setting for v7.2 controller
| * b87d03ed6a mtd: rawnand: brcmnand: Allow SoC to provide I/O operations
| * 5df5829158 kobject: Add sanity check for kset->kobj.ktype in kset_register()
| * a3efb2b57e media: pci: ipu3-cio2: Initialise timing struct to avoid a compiler warning
| * f354456f8d serial: cpm_uart: Avoid suspicious locking
| * bbe3ff47bf scsi: target: iscsi: Fix buffer overflow in lio_target_nacl_info_show()
| * 6d3a1dd105 usb: gadget: fsl_qe_udc: validate endpoint index for ch9 udc
| * 890d10e6b7 media: pci: cx23885: replace BUG with error return
| * 2ae53dd15e media: tuners: qt1010: replace BUG_ON with a regular error
| * 578b67614a media: dvb-usb-v2: gl861: Fix null-ptr-deref in gl861_i2c_master_xfer
| * a9def3e971 media: az6007: Fix null-ptr-deref in az6007_i2c_xfer()
| * 4a9763d2bc media: anysee: fix null-ptr-deref in anysee_master_xfer
| * c7e5ac737d media: af9005: Fix null-ptr-deref in af9005_i2c_xfer
| * 97fdbdb750 media: dw2102: Fix null-ptr-deref in dw2102_i2c_transfer()
| * 6c01ef65de media: dvb-usb-v2: af9035: Fix null-ptr-deref in af9035_i2c_master_xfer
| * 9f3b2b6668 powerpc/pseries: fix possible memory leak in ibmebus_bus_init()
| * 756747d4b4 jfs: fix invalid free of JFS_IP(ipimap)->i_imap in diUnmount
| * 6f8b344589 fs/jfs: prevent double-free in dbUnmount() after failed jfs_remount()
| * 4bff1d95ba ext2: fix datatype of block number in ext2_xattr_set2()
| * 7993cfc041 md: raid1: fix potential OOB in raid1_remove_disk()
| * 5933cd6139 bus: ti-sysc: Configure uart quirks for k3 SoC
| * 5475b8bea1 drm/exynos: fix a possible null-pointer dereference due to data race in exynos_drm_crtc_atomic_disable()
| * d51d6c42d1 ALSA: hda: intel-dsp-cfg: add LunarLake support
| * fcfb71848e samples/hw_breakpoint: Fix kernel BUG 'invalid opcode: 0000'
| * 9726e8dcab drm/bridge: tc358762: Instruct DSI host to generate HSE packets
| * 672205c6f2 wifi: mac80211_hwsim: drop short frames
| * 5bf52e431c netfilter: ebtables: fix fortify warnings in size_entry_mwt()
| * f6f0a68754 alx: fix OOB-read compiler warning
| * acf0019b93 mmc: sdhci-esdhc-imx: improve ESDHC_FLAG_ERR010450
| * c7a8813d91 tpm_tis: Resend command to recover from data transfer errors
| * 0fc7147c69 crypto: lib/mpi - avoid null pointer deref in mpi_cmp_ui()
| * 03385b243b wifi: wil6210: fix fortify warnings
| * 269eb4e1d5 wifi: mwifiex: fix fortify warning
| * 08fdbe3790 wifi: ath9k: fix printk specifier
| * 268a10c9eb wifi: ath9k: fix fortify warnings
| * 8c19ddc215 crypto: lrw,xts - Replace strlcpy with strscpy
| * cfca20009b devlink: remove reload failed checks in params get/set callbacks
| * 020ecfa7b6 hw_breakpoint: fix single-stepping when using bpf_overflow_handler
| * bfc747fe07 ACPI: video: Add backlight=native DMI quirk for Apple iMac12,1 and iMac12,2
| * dc01bfdc3d perf/smmuv3: Enable HiSilicon Erratum 162001900 quirk for HIP08/09
| * 560014aefb ACPI: video: Add backlight=native DMI quirk for Lenovo Ideapad Z470
| * 3f72fdb20f scftorture: Forgive memory-allocation failure if KASAN
| * 55887adc76 rcuscale: Move rcu_scale_writer() schedule_timeout_uninterruptible() to _idle()
| * f8bab887a4 kernel/fork: beware of __put_task_struct() calling context
| * 625c12dc04 ACPICA: Add AML_NO_OPERAND_RESOLVE flag to Timer
| * a6f4129378 locks: fix KASAN: use-after-free in trace_event_raw_event_filelock_lock
| * b7c3cf2f6c btrfs: output extra debug info if we failed to find an inline backref
| * 69ddafc7a7 autofs: fix memory leak of waitqueues in autofs_catatonic_mode
* | 16aeda0b7d Merge 5.10.196 into android12-5.10-lts
|\|
| * ff0bfa8f23 Linux 5.10.196
| * 2cc1f49862 Revert "configfs: fix a race in configfs_lookup()"
* | 5b4fcff944 Revert "configfs: fix a race in configfs_lookup()"
* | 84ae70e787 FROMLIST: lib/test_meminit: fix off-by-one error in test_pages()
* | a8b0203a91 FROMLIST: drm/mediatek: Fix backport issue in mtk_drm_gem_prime_vmap()
* | cb5f0587c6 Revert "scsi: core: Use 32-bit hostnum in scsi_host_lookup()"
* | 734d166d62 Revert "fs/nls: make load_nls() take a const parameter"
* | db08d2cf82 Revert "tracing: Introduce pipe_cpumask to avoid race on trace_pipes"
* | 73c7cc0b1e Revert "tracing: Zero the pipe cpumask on alloc to avoid spurious -EBUSY"
* | 2b40885cdc Revert "crypto: api - Use work queue in crypto_destroy_instance"
* | 92ecfcb0af Revert "ip_tunnels: use DEV_STATS_INC()"
* | 8026d5839b Merge 5.10.195 into android12-5.10-lts
|\|
| * 5452d1be67 Linux 5.10.195
| * d653c35de0 parisc: Drop loops_per_jiffy from per_cpu struct
| * 1d02ef8c8a drm/amd/display: Fix a bug when searching for insert_above_mpcc
| * 2e18493c42 kcm: Fix error handling for SOCK_DGRAM in kcm_sendmsg().
| * 606a0d8ff6 ixgbe: fix timestamp configuration code
| * 6edf82223f ipv6: fix ip6_sock_set_addr_preferences() typo
| * a5096cc6e7 net/tls: do not free tls_rec on async operation in bpf_exec_tx_verdict()
| * 03be4412d3 platform/mellanox: mlxbf-tmfifo: Drop jumbo frames
| * 687031788f platform/mellanox: mlxbf-tmfifo: Drop the Rx packet if no more descriptors
| * 33db24ad81 kcm: Fix memory leak in error path of kcm_sendmsg()
| * ed584f1e72 r8152: check budget for r8152_poll()
| * 1e90a93ac4 hsr: Fix uninit-value access in fill_frame_info()
| * 75f2de75c1 net: ethernet: mtk_eth_soc: fix possible NULL pointer dereference in mtk_hwlro_get_fdir_all()
| * 61054a8ddb net: ethernet: mvpp2_main: fix possible OOB write in mvpp2_ethtool_get_rxnfc()
| * d1c6c93c27 net/smc: use smc_lgr_list.lock to protect smc_lgr_list.list iterate in smcr_port_add
| * fcb9e879a5 kselftest/runner.sh: Propagate SIGTERM to runner child
| * d94aac13a1 selftests/kselftest/runner/run_one(): allow running non-executable files
| * 7c8ddcdab1 net: ipv4: fix one memleak in __inet_del_ifa()
| * 15dabd02a9 bus: mhi: host: Skip MHI reset if device is in RDDM
| * de20747ee6 ARM: dts: BCM5301X: Extend RAM to full 256MB for Linksys EA6500 V2
| * 81d06d1919 ARM: dts: samsung: exynos4210-i9100: Fix LCD screen's physical size
| * 61fa6a16bb scsi: qla2xxx: Flush mailbox commands on chip reset
| * b5775b8530 scsi: qla2xxx: Fix crash in PCIe error handling
| * 41a660c204 scsi: qla2xxx: Consolidate zio threshold setting for both FCP & NVMe
| * 5c069bce2d scsi: qla2xxx: If fcport is undergoing deletion complete I/O with retry
| * e7ed3585d0 arm64: sdei: abort running SDEI handlers during crash
| * 0b55460c31 ACPI: APEI: explicit init of HEST and GHES in apci_init()
| * c6dc2a2e11 perf hists browser: Fix the number of entries for 'e' key
| * c07e4a4ef3 perf tools: Handle old data in PERF_RECORD_ATTR
| * b52a33a907 perf hists browser: Fix hierarchy mode header
| * d72b01d9f9 drm/amd/display: prevent potential division by zero errors
| * d68f639dde mtd: rawnand: brcmnand: Fix potential false time out warning
| * d00b031266 mtd: rawnand: brcmnand: Fix potential out-of-bounds access in oob write
| * c839a24d6e mtd: rawnand: brcmnand: Fix crash during the panic_write
| * e76cef3dcd btrfs: use the correct superblock to compare fsid in btrfs_validate_super
| * f2873a18c2 btrfs: don't start transaction when joining with TRANS_JOIN_NOSTART
| * 3856e7b118 fuse: nlookup missing decrement in fuse_direntplus_link
| * 1d21b03f77 ata: pata_ftide010: Add missing MODULE_DESCRIPTION
| * 35a3dec703 ata: sata_gemini: Add missing MODULE_DESCRIPTION
| * b1d63e2bbd ext4: add correct group descriptors and reserved GDT blocks to system zone
| * 6612d5b535 sh: boards: Fix CEU buffer size passed to dma_declare_coherent_memory()
| * 97ef9ba7df net: hns3: fix the port information display when sfp is absent
| * 780f60dde2 netfilter: nfnetlink_osf: avoid OOB read
| * e89a361d99 net: dsa: sja1105: fix -ENOSPC when replacing the same tc-cbs too many times
| * 94a3117eff net: dsa: sja1105: fix bandwidth discrepancy between tc-cbs software and offload
| * e90e70343b ip_tunnels: use DEV_STATS_INC()
| * 2539b28a2b idr: fix param name in idr_alloc_cyclic() doc
| * 0878052579 s390/zcrypt: don't leak memory if dev_set_name() fails
| * d878011b5d igb: Change IGB_MIN to allow set rx/tx value between 64 and 80
| * 417b11433e igbvf: Change IGBVF_MIN to allow set rx/tx value between 64 and 80
| * 9444881a37 igc: Change IGC_MIN to allow set rx/tx value between 64 and 80
| * 46f02fc7f6 kcm: Destroy mutex in kcm_exit_net()
| * 746a8df5e4 net: sched: sch_qfq: Fix UAF in qfq_dequeue()
| * 31e08e7fa6 af_unix: Fix data race around sk->sk_err.
| * 90e32f81f9 af_unix: Fix data-races around sk->sk_shutdown.
| * cf29b42766 af_unix: Fix data-race around unix_tot_inflight.
| * b401d7e485 af_unix: Fix data-races around user->unix_inflight.
| * 98e12d075c net: ipv6/addrconf: avoid integer underflow in ipv6_create_tempaddr
| * d47bc5023e veth: Fixing transmit return status for dropped packets
| * ab9796f43c igb: disable virtualization features on 82580
| * 160fdb4116 ipv4: ignore dst hint for multipath routes
| * 29039819c6 drm/i915/gvt: Drop unused helper intel_vgpu_reset_gtt()
| * 23d2651372 drm/i915/gvt: Save/restore HW status to support GVT suspend/resume
| * 895dc4c471 net: read sk->sk_family once in sk_mc_loop()
| * 8edced38db ipv4: annotate data-races around fi->fib_dead
| * ab5c26dc53 sctp: annotate data-races around sk->sk_wmem_queued
| * 94d527c375 net/sched: fq_pie: avoid stalls in fq_pie_timer()
| * a2d9d884e8 pwm: lpc32xx: Remove handling of PWM channels
| * 6909e28cf3 watchdog: intel-mid_wdt: add MODULE_ALIAS() to allow auto-load
| * aec02fba99 perf top: Don't pass an ERR_PTR() directly to perf_session__delete()
| * 28df38af32 x86/virt: Drop unnecessary check on extended CPUID level in cpu_has_svm()
| * 23ec6fc52c perf annotate bpf: Don't enclose non-debug code with an assert()
| * 934d29b9fa backlight: gpio_backlight: Drop output GPIO direction check for initial power state
| * 84f9953215 kconfig: fix possible buffer overflow
| * 6cc6f79b93 NFSv4/pnfs: minor fix for cleanup path in nfs4_get_device_info
| * 4185605cd0 NFS: Fix a potential data corruption
| * 2ccab9f827 soc: qcom: qmi_encdec: Restrict string length in decode
| * bf27518fb9 clk: qcom: gcc-mdm9615: use proper parent for pll0_vote clock
| * 972acd701b clk: imx: pll14xx: dynamically configure PLL for 393216000/361267200Hz
| * 9214536728 dt-bindings: clock: xlnx,versal-clk: drop select:false
| * 690a22d6c5 pinctrl: cherryview: fix address_space_handler() argument
| * b02d1fb74e parisc: led: Reduce CPU overhead for disk & lan LED computation
| * 3add85c962 parisc: led: Fix LAN receive and transmit LEDs
| * 2a1cf9fe09 lib/test_meminit: allocate pages up to order MAX_ORDER
| * 6bfa28f441 drm/ast: Fix DRAM init on AST2200
| * 4aade6c910 fbdev/ep93xx-fb: Do not assign to struct fb_info.dev
| * db8b5a2254 scsi: qla2xxx: Remove unsupported ql2xenabledif option
| * fd48544f3e scsi: qla2xxx: Turn off noisy message log
| * 931fadf972 scsi: qla2xxx: Fix erroneous link up failure
| * 3694f18bea scsi: qla2xxx: fix inconsistent TMF timeout
| * 4d7da12483 scsi: qla2xxx: Fix deletion race condition
| * f271e3d64b io_uring: break iopolling on signal
| * 9faa6d0677 io_uring: break out of iowq iopoll on teardown
| * 208858d4b0 io_uring: always lock in io_apoll_task_func
| * 6ffab754d2 net/ipv6: SKB symmetric hash should incorporate transport ports
| * 26f9ccb7a0 udf: initialize newblock to 0
| * 06494cd473 md/md-bitmap: remove unnecessary local variable in backlog_store()
| * 5103216b86 tracing: Zero the pipe cpumask on alloc to avoid spurious -EBUSY
| * 1c4c9191b3 usb: typec: tcpci: clear the fault status bit
| * beba5051dd USB: core: Fix oversight in SuperSpeed initialization
| * 9d241c5d9a USB: core: Fix race by not overwriting udev->descriptor in hub_port_init()
| * 6ceffc2ecf USB: core: Change usb_get_device_descriptor() API
| * 3cef18d13f USB: core: Unite old scheme and new scheme descriptor reads
| * 38e1f2ee82 usb: typec: bus: verify partner exists in typec_altmode_attention
| * b97e3c5e97 cpufreq: brcmstb-avs-cpufreq: Fix -Warray-bounds bug
| * a1d2e2c670 crypto: stm32 - fix loop iterating through scatterlist for DMA
| * 54d03dc5d1 s390/ipl: add missing secure/has_secure file to ipl type 'unknown'
| * dc2f60de9a pstore/ram: Check start of empty przs during init
| * 5b1f71c0b9 fsverity: skip PKCS#7 parser when keyring is empty
| * a9864e126b net: handle ARPHRD_PPP in dev_is_mac_header_xmit()
| * c681d477c0 X.509: if signature is unsupported skip validation
| * 4b8a938e32 dccp: Fix out of bounds access in DCCP error handler
| * a4f4a5b41a dlm: fix plock lookup when using multiple lockspaces
| * 9f73fd6972 parisc: Fix /proc/cpuinfo output for lscpu
| * 1f03e6dd19 procfs: block chmod on /proc/thread-self/comm
| * 9a0b35dc3a Revert "PCI: Mark NVIDIA T4 GPUs to avoid bus reset"
| * 3d8d13a174 ntb: Fix calculation ntb_transport_tx_free_entry()
| * c028e90e0d ntb: Clean up tx tail index on link down
| * 3cfdc448e8 ntb: Drop packets when qp link is down
| * ffed0c8fcf scsi: mpt3sas: Perform additional retries if doorbell read returns 0
| * bf67d43f07 Revert "scsi: qla2xxx: Fix buffer overrun"
| * 27dfaf2ee0 media: dvb: symbol fixup for dvb_attach()
| * 5a85727239 arm64: csum: Fix OoB access in IP checksum code for negative lengths
| * b24bebcea5 xtensa: PMU: fix base address for the newer hardware
| * 8594605a04 backlight/lv5207lp: Compare against struct fb_info.device
| * e2c77841cd backlight/bd6107: Compare against struct fb_info.device
| * 35c56c4873 backlight/gpio_backlight: Compare against struct fb_info.device
| * 13264260eb ARM: OMAP2+: Fix -Warray-bounds warning in _pwrdm_state_switch()
| * 5c5f02e16b ipmi_si: fix a memleak in try_smi_init()
| * 5d27baee6c scsi: core: Fix the scsi_set_resid() documentation
| * 8c90c4e619 printk: ringbuffer: Fix truncating buffer size min_t cast
| * 61b918dfb6 ALSA: pcm: Fix missing fixup call in compat hw_refine ioctl
| * ab192e5e5d PM / devfreq: Fix leak in devfreq_dev_release()
| * 3e39008e9e igb: set max size RX buffer when store bad packet is enabled
| * 8836c26620 skbuff: skb_segment, Call zero copy functions before using skbuff frags
| * 5541827d13 netfilter: xt_sctp: validate the flag_info count
| * a1b711c370 netfilter: xt_u32: validate user space input
| * 83091f8ac0 netfilter: ipset: add the missing IP_SET_HASH_WITH_NET0 macro for ip_set_hash_netportnet.c
| * 1186eaffd8 igmp: limit igmpv3_newpack() packet size to IP_MAX_MTU
| * 504bb3fc66 virtio_ring: fix avail_wrap_counter in virtqueue_add_packed
| * ea374bdf23 cpufreq: Fix the race condition while updating the transition_task of policy
| * 27b75c7203 dmaengine: ste_dma40: Add missing IRQ check in d40_probe
| * cfe215a04a um: Fix hostaudio build errors
| * eb33921806 mtd: rawnand: fsmc: handle clk prepare error in fsmc_nand_resume()
| * 40d8f9bffe mtd: spi-nor: Check bus width while setting QE bit
| * 71ac2ffd7f rpmsg: glink: Add check for kstrdup
| * 268fce6ec2 phy/rockchip: inno-hdmi: do not power on rk3328 post pll on reg write
| * 6739746f4b phy/rockchip: inno-hdmi: round fractal pixclock in rk3328 recalc_rate
| * 88813bd9bb phy/rockchip: inno-hdmi: use correct vco_div_5 macro on rk3328
| * 3a890f993b mtd: rawnand: brcmnand: Fix mtd oobsize
| * c5d30d6aa8 tracing: Fix race issue between cpu buffer write and swap
| * ee519526d5 x86/speculation: Mark all Skylake CPUs as vulnerable to GDS
| * 15ec7cb55e HID: multitouch: Correct devm device reference for hidinput input_dev name
| * e38a6f1268 HID: logitech-dj: Fix error handling in logi_dj_recv_switch_to_dj_mode()
| * bdb3cd9dff RDMA/siw: Correct wrong debug message
| * d006f2cb3c RDMA/siw: Balance the reference of cep->kref in the error path
| * aa950b9835 Revert "IB/isert: Fix incorrect release of isert connection"
| * 9baf2278b3 amba: bus: fix refcount leak
| * 0c6c0280f7 serial: tegra: handle clk prepare error in tegra_uart_hw_init()
| * 9cce8ef7a6 scsi: fcoe: Fix potential deadlock on &fip->ctlr_lock
| * 356da2d5c0 scsi: core: Use 32-bit hostnum in scsi_host_lookup()
| * 629079f502 cgroup:namespace: Remove unused cgroup_namespaces_init()
| * 3534ae5f17 media: ov2680: Fix regulators being left enabled on ov2680_power_on() errors
| * a427ce197e media: ov2680: Fix vflip / hflip set functions
| * cd7a0e391e media: ov2680: Fix ov2680_bayer_order()
| * faf1408a68 media: ov2680: Remove auto-gain and auto-exposure controls
| * e1552a0b99 media: i2c: ov2680: Set V4L2_CTRL_FLAG_MODIFY_LAYOUT on flips
| * 2d29ce41de media: ov5640: Enable MIPI interface in ov5640_set_power_mipi()
| * 44c71cbe7c USB: gadget: f_mass_storage: Fix unused variable warning
| * 8f7de82158 media: go7007: Remove redundant if statement
| * 3183b0cab7 iommu/vt-d: Fix to flush cache of PASID directory table
| * 4136094df5 iommu/qcom: Disable and reset context bank before programming
| * b374b039e0 fsi: aspeed: Reset master errors after CFAM reset
| * f8949c06c7 IB/uverbs: Fix an potential error pointer dereference
| * 10bd5f8ceb driver core: test_async: fix an error code
| * 19138f8cc6 dma-buf/sync_file: Fix docs syntax
| * e621dbeb9f coresight: tmc: Explicit type conversions to prevent integer overflow
| * d7f21ef741 scsi: qedf: Do not touch __user pointer in qedf_dbg_fp_int_cmd_read() directly
| * 1198a0e935 scsi: qedf: Do not touch __user pointer in qedf_dbg_debug_cmd_read() directly
| * d86d85e23e scsi: qedf: Do not touch __user pointer in qedf_dbg_stop_io_on_error_cmd_read() directly
| * 4ede2ee95b x86/APM: drop the duplicate APM_MINOR_DEV macro
| * 9a26aaea6c serial: sprd: Fix DMA buffer leak issue
| * 6232bd4dca serial: sprd: Assign sprd_port after initialized to avoid wrong access
| * 6d65079c69 scsi: qla4xxx: Add length check when parsing nlattrs
| * b65b13d01b scsi: be2iscsi: Add length check when parsing nlattrs
| * 4df82c6d6e scsi: iscsi: Add strlen() check in iscsi_if_set{_host}_param()
| * 18d49266dd scsi: iscsi: Add length check for nlattr payload
| * 3ef17ca476 scsi: iscsi: Rename iscsi_set_param() to iscsi_if_set_param()
| * 8356a3ba10 scsi: RDMA/srp: Fix residual handling
| * cc2d5cdb19 usb: phy: mxs: fix getting wrong state with mxs_phy_is_otg_host()
| * 5a6f480b2e media: mediatek: vcodec: Return NULL if no vdec_fb is found
| * 43c69dc9a3 media: rkvdec: increase max supported height for H.264
| * 1e5eac0022 scsi: hisi_sas: Fix normally completed I/O analysed as failed
| * b6aca9f5ab scsi: hisi_sas: Fix warnings detected by sparse
| * 0d383e555f scsi: hisi_sas: Modify v3 HW SATA completion error processing
| * 6342206051 scsi: hisi_sas: Modify v3 HW SSP underflow error processing
| * d84e5d445a scsi: libsas: Introduce more SAM status code aliases in enum exec_status
| * 519b9e3e5c scsi: hisi_sas: Print SAS address for v3 hw erroneous completion print
| * 5e5a528c29 media: cx24120: Add retval check for cx24120_message_send()
| * d13a84874a media: dvb-usb: m920x: Fix a potential memory leak in m920x_i2c_xfer()
| * 656423cc56 media: dib7000p: Fix potential division by zero
| * 61bc9293da drivers: usb: smsusb: fix error handling code in smsusb_init_device
| * d8a8f75fce media: v4l2-core: Fix a potential resource leak in v4l2_fwnode_parse_link()
| * 5865926da2 media: i2c: tvp5150: check return value of devm_kasprintf()
| * 6dff92b3fe media: ad5820: Drop unsupported ad5823 from i2c_ and of_device_id tables
| * 9d82a58d2a NFSv4.2: fix handling of COPY ERR_OFFLOAD_NO_REQ
| * 7bc36ac671 NFS: Guard against READDIR loop when entry names exceed MAXNAMELEN
| * 3f1a2b0b2d NFSD: da_addr_body field missing in some GETDEVICEINFO replies
| * aaeac3a6b1 fs: lockd: avoid possible wrong NULL parameter
| * 6d53616189 jfs: validate max amount of blocks before allocation.
| * f08944e3c6 powerpc/iommu: Fix notifiers being shared by PCI and VIO buses
| * 46ff3bd14b nfs/blocklayout: Use the passed in gfp flags
| * 953c54dfdc powerpc/pseries: Rework lppaca_shared_proc() to avoid DEBUG_PREEMPT
| * e46cc0e42f powerpc: Don't include lppaca.h in paca.h
| * 9837d6a483 wifi: ath10k: Use RMW accessors for changing LNKCTL
| * 924d1ab987 net/mlx5: Use RMW accessors for changing LNKCTL
| * 37eecd5085 drm/radeon: Use RMW accessors for changing LNKCTL
| * ead3dbc92b drm/amdgpu: Use RMW accessors for changing LNKCTL
| * 2f8269ca80 powerpc/perf: Convert fsl_emb notifier to state machine callbacks
| * d45bf1528b powerpc/fadump: reset dump area size if fadump memory reserve fails
| * ad83d83dd8 vfio/type1: fix cap_migration information leak
| * d8f5613c5c clk: imx: composite-8m: fix clock pauses when set_rate would be a no-op
| * 0d81a0546b clk: imx8mp: fix sai4 clock
| * 69795c689e PCI/ASPM: Use RMW accessors for changing LNKCTL
| * f647b8fe55 PCI: pciehp: Use RMW accessors for changing LNKCTL
| * ae52f8ba45 pinctrl: mcp23s08: check return value of devm_kasprintf()
| * ef8e561ddb PCI: Mark NVIDIA T4 GPUs to avoid bus reset
| * 344c16a844 clk: qcom: reset: Use the correct type of sleep/delay based on length
| * 289f5a88f1 clk: qcom: gcc-sm8250: Fix gcc_sdcc2_apps_clk_src
| * b3a80429b1 clk: qcom: gcc-sm8250: use ARRAY_SIZE instead of specifying num_parents
| * 245759d987 ext4: correct grp validation in ext4_mb_good_group
| * 2aefe3ae09 clk: qcom: gcc-sc7180: Fix up gcc_sdcc2_apps_clk_src
| * 74a5f9755a clk: qcom: gcc-sc7180: use ARRAY_SIZE instead of specifying num_parents
| * 2640d3be82 clk: sunxi-ng: Modify mismatched function name
| * c1ff788f73 drivers: clk: keystone: Fix parameter judgment in _of_pll_clk_init()
| * 13623b966b ipmi:ssif: Fix a memory leak when scanning for an adapter
| * 6128288d8f ipmi:ssif: Add check for kstrdup
| * 8917591d72 ALSA: ac97: Fix possible error value of *rac97
| * cd062ebe0c of: unittest: Fix overlay type in apply/revert check
| * ca7634e549 bus: ti-sysc: Fix cast to enum warning
| * 43f561e809 drm/mediatek: Fix potential memory leak if vmap() fail
| * 2655155486 bus: ti-sysc: Fix build warning for 64-bit build
| * 98ef243d59 audit: fix possible soft lockup in __audit_inode_child()
| * 69800bc5d7 drm/msm/a2xx: Call adreno_gpu_init() earlier
| * 7fcbaf4bdb drm/amd/pm: fix variable dereferenced issue in amdgpu_device_attr_create()
| * 9b89db24c6 smackfs: Prevent underflow in smk_set_cipso()
| * 9f4017cac7 firmware: meson_sm: fix to avoid potential NULL pointer dereference
| * 815e42029f drm/msm/mdp5: Don't leak some plane state
| * a21e73a6d8 drm: xlnx: zynqmp_dpsub: Add missing check for dma_set_mask
| * 524f23b082 ima: Remove deprecated IMA_TRUSTED_KEYRING Kconfig
| * e2d1c9b397 drm/panel: simple: Add missing connector type and pixel format for AUO T215HVN01
| * c02917e70a drm/armada: Fix off-by-one error in armada_overlay_get_property()
| * f41c65f8d0 of: unittest: fix null pointer dereferencing in of_unittest_find_node_by_name()
| * 883fdbbdbe drm/tegra: dpaux: Fix incorrect return value of platform_get_irq
| * 5f0994e3f2 drm/tegra: Remove superfluous error messages around platform_get_irq()
| * 4a61d72585 md/md-bitmap: hold 'reconfig_mutex' in backlog_store()
| * 8563d52a4f md/bitmap: don't set max_write_behind if there is no write mostly device
| * a15f309eb9 drm/amdgpu: Update min() to min_t() in 'amdgpu_info_ioctl'
| * 8e766a94ec arm64: dts: qcom: sdm845: Fix the min frequency of "ice_core_clk"
| * 36d3e4dedb arm64: dts: qcom: sdm845: Add missing RPMh power domain to GCC
| * 0eea279e01 ARM: dts: BCM53573: Fix Ethernet info for Luxul devices
| * ed4e48de89 drm: adv7511: Fix low refresh rate register for ADV7533/5
| * 61ccdd2167 ARM: dts: samsung: s5pv210-smdkv210: correct ethernet reg addresses (split)
| * e9875d2f25 ARM: dts: s5pv210: add dummy 5V regulator for backlight on SMDKv210
| * c4c72bf42f ARM: dts: s5pv210: adjust node names to DT spec
| * bbcea0924b ARM: dts: samsung: s3c6410-mini6410: correct ethernet reg addresses (split)
| * a2d6c5e8e7 ARM: dts: s3c64xx: align pinctrl with dtschema
| * 3f0d83994e x86/mm: Fix PAT bit missing from page protection modify mask
| * b56309c77d drm/etnaviv: fix dumping of active MMU context
| * 8303282409 ARM: dts: BCM53573: Use updated "spi-gpio" binding properties
| * 031ab0f10e ARM: dts: BCM53573: Add cells sizes to PCIe node
| * 8415d803d8 ARM: dts: BCM53573: Drop nonexistent #usb-cells
| * cfc4a78e70 ARM: dts: BCM53573: Describe on-SoC BCM53125 rev 4 switch
| * 36d958ad40 ARM: dts: BCM5301X: Harmonize EHCI/OHCI DT nodes name
| * 826ef15769 drm/amdgpu: avoid integer overflow warning in amdgpu_device_resize_fb_bar()
| * 967cbc8a23 arm64: dts: qcom: msm8996: Add missing interrupt to the USB2 controller
| * 71d2d9aa2b soc: qcom: ocmem: Fix NUM_PORTS & NUM_MACROS macros
| * 1356531e92 soc: qcom: ocmem: Add OCMEM hardware version print
| * 4bf179f536 ASoC: stac9766: fix build errors with REGMAP_AC97
| * 86d89987f0 quota: fix dqput() to follow the guarantees dquot_srcu should provide
| * af4ff47489 quota: add new helper dquot_active()
| * 905e316e5e quota: rename dquot_active() to inode_quota_active()
| * a5da2849db quota: factor out dquot_write_dquot()
| * 53805176ec drm/bridge: tc358764: Fix debug print parameter order
| * abd1c17ef4 netrom: Deny concurrent connect().
| * b08cc6c039 net/sched: sch_hfsc: Ensure inner classes have fsc curve
| * ab04c731a1 hwmon: (tmp513) Fix the channel number in tmp51x_is_visible()
| * db7a353166 mlxsw: i2c: Limit single transaction buffer size
| * 3d36ba3f7e mlxsw: i2c: Fix chunk size setting in output mailbox buffer
| * 7cc9e1dcc1 net: arcnet: Do not call kfree_skb() under local_irq_disable()
| * d4f79aa9ee wifi: ath9k: use IS_ERR() with debugfs_create_dir()
| * 50f89daf9e Bluetooth: btusb: Do not call kfree_skb() under spin_lock_irqsave()
| * bef85d58f7 wifi: mwifiex: avoid possible NULL skb pointer dereference
| * cfce1973ff wifi: ath9k: protect WMI command response buffer replacement with a lock
| * ee72b2b1f5 wifi: ath9k: fix races between ath9k_wmi_cmd and ath9k_wmi_ctrl_rx
| * 91d92d8975 samples/bpf: fix broken map lookup probe
| * 08a6e99a33 wifi: mwifiex: Fix missed return in oob checks failed path
| * 0c4240d23d wifi: mwifiex: fix memory leak in mwifiex_histogram_read()
| * 0fe11dd3fe fs: ocfs2: namei: check return value of ocfs2_add_entry()
| * d8f5415d4d lwt: Check LWTUNNEL_XMIT_CONTINUE strictly
| * a97f221651 lwt: Fix return values of BPF xmit ops
| * 97ccf9f195 hwrng: iproc-rng200 - Implement suspend and resume calls
| * 49729fc472 crypto: caam - fix unchecked return value error
| * 7a97044477 ice: ice_aq_check_events: fix off-by-one check when filling buffer
| * 9b812dcf2b selftests/bpf: Clean up fmod_ret in bench_rename test script
| * 88bc7122db net: tcp: fix unexcepted socket die when snd_wnd is 0
| * e87da6a0ac Bluetooth: Fix potential use-after-free when clear keys
| * 6668886ebe Bluetooth: nokia: fix value check in nokia_bluetooth_serdev_probe()
| * 625bf86bf5 crypto: api - Use work queue in crypto_destroy_instance
| * 7545292d87 crypto: stm32 - Properly handle pm_runtime_get failing
| * 323084d77d selftests/bpf: fix static assert compilation issue for test_cls_*.c
| * a8d6965843 wifi: mwifiex: fix error recovery in PCIE buffer descriptor management
| * 3fe3923d09 wifi: mwifiex: Fix OOB and integer underflow when rx packets
| * 5120d93c24 can: gs_usb: gs_usb_receive_bulk_callback(): count RX overflow errors also in case of OOM
| * 1d6c3017ce spi: tegra20-sflash: fix to check return value of platform_get_irq() in tegra_sflash_probe()
| * ca7ee1b75c wifi: mt76: testmode: add nla_policy for MT76_TM_ATTR_TX_LENGTH
| * 791a12102e bpf: reject unhashed sockets in bpf_sk_assign
| * 4d271804f5 udp: re-score reuseport groups when connected sockets are present
| * e6e11cbaa1 regmap: rbtree: Use alloc_flags for memory allocations
| * 1d210321de hwrng: nomadik - keep clock enabled while hwrng is registered
| * f24152c209 tcp: tcp_enter_quickack_mode() should be static
| * b275f0ae35 bpf: Clear the probe_addr for uprobe
| * 514116de91 bpftool: Use a local bpf_perf_event_value to fix accessing its fields
| * 920b2f99bc cpufreq: powernow-k8: Use related_cpus instead of cpus in driver.exit()
| * 133a1f45b9 x86/efistub: Fix PCI ROM preservation in mixed mode
| * 3de36b8b9b s390/paes: fix PKEY_TYPE_EP11_AES handling for secure keyblobs
| * e06326ff3a s390/pkey: fix/harmonize internal keyblob headers
| * 08b1803bfc perf/imx_ddr: don't enable counter0 if none of 4 counters are used
| * c0e1f9bddc x86/decompressor: Don't rely on upper 32 bits of GPRs being preserved
| * 0682fc175c selftests/resctrl: Close perf value read fd on errors
| * f399938a91 selftests/resctrl: Unmount resctrl FS if child fails to run benchmark
| * bf1f7aeb57 selftests/resctrl: Don't leak buffer in fill_cache()
| * 3ee719b3a0 OPP: Fix passing 0 to PTR_ERR in _opp_attach_genpd()
| * 066fbd8bc9 refscale: Fix uninitalized use of wait_queue_head_t
| * ac96370db7 selftests/harness: Actually report SKIP for signal tests
| * ac5a73b5d9 tmpfs: verify {g,u}id mount options correctly
| * 644e93a790 fs: Fix error checking for d_hash_and_lookup()
| * 731f39e4a1 eventfd: prevent underflow for eventfd semaphores
| * 755e86f28a eventfd: Export eventfd_ctx_do_read()
| * 6b5d585e23 reiserfs: Check the return value from __getblk()
| * 5101e2c8a5 Revert "net: macsec: preserve ingress frame ordering"
| * ca8f04553e udf: Handle error when adding extent to a file
| * 4ac54312f6 udf: Check consistency of Space Bitmap Descriptor
| * 42714d3d70 net: Avoid address overwrite in kernel_connect
| * 4ded72985b platform/mellanox: Fix mlxbf-tmfifo not handling all virtio CONSOLE notifications
| * 0c0547d2a6 tracing: Introduce pipe_cpumask to avoid race on trace_pipes
| * 99d8d419dd ALSA: seq: oss: Fix racy open/close of MIDI devices
| * 21f47cc15a scsi: storvsc: Always set no_report_opcodes
| * 5cbc749d11 sctp: handle invalid error codes without calling BUG()
| * 2bdd081a7d bnx2x: fix page fault following EEH recovery
| * d11a454288 netlabel: fix shift wrapping bug in netlbl_catmap_setlong()
| * 7dd6ef1ced scsi: qedi: Fix potential deadlock on &qedi_percpu->p_work_lock
| * 7a1a7f40ad idmaengine: make FSL_EDMA and INTEL_IDMA64 depends on HAS_IOMEM
| * d399b6ce1a net: usb: qmi_wwan: add Quectel EM05GV2
| * bb8a4a3632 vmbus_testing: fix wrong python syntax for integer value comparison
| * 0ff30413a7 clk: fixed-mmio: make COMMON_CLK_FIXED_MMIO depend on HAS_IOMEM
| * 0111b7bb51 kprobes: Prohibit probing on CFI preamble symbol
| * 654e3d2779 security: keys: perform capable check only on privileged operations
| * b23cbd3c25 ata: pata_arasan_cf: Use dev_err_probe() instead dev_err() in data_xfer()
| * 331d85f0bc ovl: Always reevaluate the file signature for IMA
| * 357badc01a drm/amd/display: Exit idle optimizations before attempt to access PHY
| * de0cdcceaa platform/x86: huawei-wmi: Silence ambient light sensor
| * 8964b32a67 platform/x86: intel: hid: Always call BTNL ACPI method
| * 6b953ee81a ASoC: atmel: Fix the 8K sample parameter in I2SC master
| * 37121461dd ASoc: codecs: ES8316: Fix DMIC config
| * bc2b0d4d37 fs/nls: make load_nls() take a const parameter
| * 0a584c0779 s390/dasd: fix hanging device after request requeue
| * 0c96df6913 s390/dasd: use correct number of retries for ERP requests
| * a5fd143673 m68k: Fix invalid .section syntax
| * f7700e987f vxlan: generalize vxlan_parse_gpe_hdr and remove unused args
| * b7cd83cfff ethernet: atheros: fix return value check in atl1c_tso_csum()
| * 16c1134267 ASoC: da7219: Check for failure reading AAD IRQ events
| * afa2dbd7d1 ASoC: da7219: Flush pending AAD IRQ when suspending
| * efa372af6b 9p: virtio: make sure 'offs' is initialized in zc_request
| * 2f13007fbe media: pci: cx23885: fix error handling for cx23885 ATSC boards
| * 92704dd055 media: pulse8-cec: handle possible ping error
| * 9d9cdc32bf phy: qcom-snps-femto-v2: use qcom_snps_hsphy_suspend/resume error code
| * a8ba2b6959 ARM: dts: imx: Set default tuning step for imx7d usdhc
| * 678a88ac02 ARM: dts: imx: Adjust dma-apbh node name
| * 6895499b22 ARM: dts: imx7s: Drop dma-apb interrupt-names
| * 614c27dfde ARM: dts: imx: update sdma node name format
| * d45e2a3d2e ASoC: rt5682: Fix a problem with error handling in the io init function of the soundwire
| * 977baccbbd pinctrl: amd: Don't show `Invalid config param` errors
| * f1d637b63d nilfs2: fix WARNING in mark_buffer_dirty due to discarded buffer reuse
| * 0e11bb5ad3 nilfs2: fix general protection fault in nilfs_lookup_dirty_data_buffers()
| * 734c6d3dc7 fsi: master-ast-cf: Add MODULE_FIRMWARE macro
| * da5dc81ed2 firmware: stratix10-svc: Fix an NULL vs IS_ERR() bug in probe
| * 9fda231901 serial: sc16is7xx: fix bug when first setting GPIO direction
| * 2f982ce208 serial: sc16is7xx: fix broken port 0 uart init
| * bd0ed45dd6 serial: qcom-geni: fix opp vote on shutdown
| * c709c7ca02 configfs: fix a race in configfs_lookup()
| * 746b363bef Bluetooth: btsdio: fix use after free bug in btsdio_remove due to race condition
| * b074fb0fa0 staging: rtl8712: fix race condition
| * 65bfaf5f9d HID: wacom: remove the battery when the EKR is off
| * 542c614707 usb: chipidea: imx: improve logic if samsung,picophy-* parameter is 0
| * 5c4996c229 usb: dwc3: meson-g12a: do post init to fix broken usb after resumption
| * d44fa38193 USB: serial: option: add FOXCONN T99W368/T99W373 product
| * df6696e42e USB: serial: option: add Quectel EM05G variant (0x030e)
| * f71b0b4a49 modules: only allow symbol_get of EXPORT_SYMBOL_GPL modules
| * 92de8497c3 rtc: ds1685: use EXPORT_SYMBOL_GPL for ds1685_rtc_poweroff
| * 1aeb76ffdf net: enetc: use EXPORT_SYMBOL_GPL for enetc_phc_index
| * d90e5956c0 mmc: au1xmmc: force non-modular build and remove symbol_get usage
| * c1112a2b54 ARM: pxa: remove use of symbol_get()
| * 8c599aa78c erofs: ensure that the post-EOF tails are all zeroed
* | 397f70b65c Merge 5.10.194 into android12-5.10-lts
|\|
| * 006d584764 Linux 5.10.194
| * d93ba6e46e rcu-tasks: Add trc_inspect_reader() checks for exiting critical section
| * 3e22624f8f rcu-tasks: Wait for trc_read_check_handler() IPIs
| * 9190c1f0ae rcu-tasks: Fix IPI failure handling in trc_wait_for_one_reader
| * ad4f8c117b rcu: Prevent expedited GP from enabling tick on offline CPU
| * 268e922522 Revert "MIPS: Alchemy: fix dbdma2"
| * 79ea9eb723 Revert "drm/amdgpu: install stub fence into potential unused fence pointers"
| * be4ccafc07 mhi: pci_generic: Fix implicit conversion warning
| * df3427204f ARM: module: Use module_init_layout_section() to spot init sections
| * b59cfee8d8 arm64: module: Use module_init_layout_section() to spot init sections
| * 943ed7dc5e arm64: module-plts: inline linux/moduleloader.h
| * ecd62c8512 module: Expose module_init_layout_section()
* | feb0269d54 Revert "drm/display/dp: Fix the DP DSC Receiver cap size"
* | 3acf914de4 Merge 5.10.193 into android12-5.10-lts
|\|
| * 4566606fe3 Linux 5.10.193
| * b3ac2c1d72 mm,hwpoison: fix printing of page flags
| * 7f92be110c ASoC: Intel: sof_sdw: include rt711.h for RT711 JD mode
| * 32f71ef627 mm: memory-failure: fix unexpected return value in soft_offline_page()
| * 20c2db79f1 mm: memory-failure: kill soft_offline_free_page()
| * 406166a3ac mm: fix page reference leak in soft_offline_page()
| * 749630ce91 mm,hwpoison: refactor get_any_page
| * 0df5eaab03 dma-buf/sw_sync: Avoid recursive lock during fence signal
| * 7592a392b3 pinctrl: renesas: rza2: Add lock around pinctrl_generic{{add,remove}_group,{add,remove}_function}
| * 91cbf41a9d clk: Fix undefined reference to `clk_rate_exclusive_{get,put}'
| * 148a86651c scsi: core: raid_class: Remove raid_component_add()
| * 5d02f4320a scsi: snic: Fix double free in snic_tgt_create()
| * d643d3f322 ASoC: rt711: add two jack detection modes
| * c7b26063fc drm/i915: Fix premature release of request's reusable memory
| * 2d69f68ad4 cgroup/cpuset: Free DL BW in case can_attach() fails
| * 4603c2a104 sched/deadline: Create DL BW alloc, free & check overflow interface
| * c9546921a4 cgroup/cpuset: Iterate only if DEADLINE tasks are present
| * 5ac05ce568 sched/cpuset: Keep track of SCHED_DEADLINE task in cpusets
| * b950133d9a sched/cpuset: Bring back cpuset_mutex
| * 312713e3ea cgroup/cpuset: Rename functions dealing with DEADLINE accounting
| * b2125926ba timers/nohz: Switch to ONESHOT_STOPPED in the low-res handler when the tick is stopped
| * ae4f109b95 tick: Detect and fix jiffies update stall
| * c7e91047d3 torture: Fix hang during kthread shutdown phase
| * 4bc6a4fca1 x86/fpu: Set X86_FEATURE_OSXSAVE feature after enabling OSXSAVE in CR4
| * 9e0c0b4ce5 drm/display/dp: Fix the DP DSC Receiver cap size
| * 8735d1c66c drm/vmwgfx: Fix shader stage validation
| * ff0639b222 PCI: acpiphp: Use pci_assign_unassigned_bridge_resources() only for non-root bus
| * da4e9eff0f media: vcodec: Fix potential array out-of-bounds in encoder queue_setup
| * d2540b5f5a of: dynamic: Refactor action prints to not use "%pOF" inside devtree_lock
| * 851f686ed0 radix tree: remove unused variable
| * 3b9a61570b lib/clz_ctz.c: Fix __clzdi2() and __ctzdi2() for 32-bit kernels
| * 72e4a5a28e batman-adv: Hold rtnl lock during MTU update via netlink
| * ee1d443eef batman-adv: Fix batadv_v_ogm_aggr_send memory leak
| * 0c6da1d849 batman-adv: Fix TT global entry leak when client roamed back
| * 6f5d10c0ac batman-adv: Do not get eth header before batadv_check_management_packet
| * 7c09590883 batman-adv: Don't increase MTU when set by user
| * 480f2a129d batman-adv: Trigger events for auto adjusted MTU
| * 0dbedf9afe selinux: set next pointer before attaching to list
| * a54c2048cd nfsd: Fix race to FREE_STATEID and cl_revoked
| * 7c262127d2 NFS: Fix a use after free in nfs_direct_join_group()
| * f3c5697aae mm: add a call to flush_cache_vmap() in vmap_pfn()
| * c9a0e31d92 clk: Fix slab-out-of-bounds error in devm_clk_release()
| * f979b92db1 NFSv4: Fix dropped lock for racing OPEN and delegation return
| * 0a809e0157 ibmveth: Use dcbf rather than dcbfl
| * ffde5f9e88 bonding: fix macvlan over alb bond support
| * 615ea2603d net: remove bond_slave_has_mac_rcu()
| * c8e1e17dee rtnetlink: Reject negative ifindexes in RTM_NEWLINK
| * 7b79dabd63 rtnetlink: return ENODEV when ifname does not exist and group is given
| * d64cdb9cb6 netfilter: nf_tables: fix out of memory error handling
| * 5db1249c70 net/sched: fix a qdisc modification with ambiguous command request
| * 3847137cd1 igb: Avoid starting unnecessary workqueues
| * fa7d7a7f00 ice: fix receive buffer size miscalculation
| * 70dfdbba30 net: validate veth and vxcan peer ifindexes
| * 67c8d7ef54 net: bcmgenet: Fix return value check for fixed_phy_register()
| * 92b20b1569 net: bgmac: Fix return value check for fixed_phy_register()
| * 0b39e3070a ipvlan: Fix a reference count leak warning in ipvlan_ns_exit()
| * 8162b73eef dccp: annotate data-races in dccp_poll()
| * 403cc3e625 sock: annotate data-races around prot->memory_pressure
| * 005b6572d0 octeontx2-af: SDP: fix receive link config
| * b8205dfed6 tracing: Fix memleak due to race between current_tracer and trace
| * 9c2ceffd4e tracing: Fix cpu buffers unavailable due to 'record_disabled' missed
| * 0498107394 rbd: prevent busy loop when requesting exclusive lock
| * 5f16975233 rbd: retrieve and check lock owner twice before blocklisting
| * 2547026bb8 rbd: make get_lock_owner_info() return a single locker or NULL
| * 145248ebe0 libceph, rbd: ignore addr->type while comparing in some cases
| * 61c303cfb1 drm/amd/display: check TG is non-null before checking if enabled
| * b964eb37c0 drm/amd/display: do not wait for mpc idle if tg is disabled
| * 7e11c58b26 ALSA: pcm: Fix potential data race at PCM memory allocation helpers
| * 8c3a4c3b64 dm integrity: reduce vmalloc space footprint on 32-bit architectures
| * 4fdfd3d2f0 dm integrity: increase RECALC_SECTORS to improve recalculate speed
| * 570f52137e fbdev: fix potential OOB read in fast_imageblit()
| * 31131cce24 fbdev: Fix sys_imageblit() for arbitrary image widths
| * 209a84a14c fbdev: Improve performance of sys_imageblit()
| * 188edaaaad MIPS: cpu-features: Use boot_cpu_type for CPU type based features
| * 61913b303b MIPS: cpu-features: Enable octeon_cache by cpu_type
| * bda55fb5ca fs: dlm: fix mismatch of plock results from userspace
| * c3a1c4d996 fs: dlm: use dlm_plock_info for do_unlock_close
| * d503919895 fs: dlm: change plock interrupted message to debug again
| * 1652bcbf9e fs: dlm: add pid to debug log
| * e850cd32df dlm: replace usage of found with dedicated list iterator variable
| * 7b44c1f383 dlm: improve plock logging if interrupted
| * cd689b5912 PCI: acpiphp: Reassign resources on bridge if necessary
| * e827572152 xprtrdma: Remap Receive buffers after a reconnect
| * 8a64aadc29 NFSv4: fix out path in __nfs4_get_acl_uncached
| * c6aecc29d2 objtool/x86: Fix SRSO mess
* | 4d68de3b8c UPSTREAM: mhi: pci_generic: Fix implicit conversion warning
* | 9577f310ce Revert "macsec: Fix traffic counters/statistics"
* | 13fda7dc0e Revert "macsec: use DEV_STATS_INC()"
* | 63caeeae27 Revert "xfrm: add forgotten nla_policy for XFRMA_MTIMER_THRESH"
* | b23fd871be Merge 5.10.192 into android12-5.10-lts
|\|
| * 1599cb60ba Linux 5.10.192
| * 0e8139f923 x86/srso: Correct the mitigation status when SMT is disabled
| * 23e5987465 objtool/x86: Fixup frame-pointer vs rethunk
| * 26e3f7690c x86/retpoline,kprobes: Fix position of thunk sections with CONFIG_LTO_CLANG
| * 88e16ce7f8 x86/srso: Disable the mitigation on unaffected configurations
| * 69712baf24 x86/CPU/AMD: Fix the DIV(0) initial fix attempt
| * 62ebfeb0dc x86/retpoline: Don't clobber RFLAGS during srso_safe_ret()
| * 91b349289e x86/static_call: Fix __static_call_fixup()
| * d2be58f921 x86/srso: Explain the untraining sequences a bit more
| * 06597b650b x86/cpu: Cleanup the untrain mess
| * e0f50b0e41 x86/cpu: Rename srso_(.*)_alias to srso_alias_\1
| * 0676a39253 x86/cpu: Rename original retbleed methods
| * 8b0ff83e8a x86/cpu: Clean up SRSO return thunk mess
| * 20e24c8b4c x86/ibt: Add ANNOTATE_NOENDBR
| * bbbe1b23c7 objtool: Add frame-pointer-specific function ignore
| * bd3d12e6fd x86/alternative: Make custom return thunk unconditional
| * 043d3bfe0a x86/cpu: Fix up srso_safe_ret() and __x86_return_thunk()
| * d5b3c88d15 x86/cpu: Fix __x86_return_thunk symbol type
| * 5962f64ed2 mmc: f-sdh30: fix order of function calls in sdhci_f_sdh30_remove
| * 98c7fe38c4 net: fix the RTO timer retransmitting skb every 1ms if linear option is enabled
| * 9aead733f5 virtio-net: set queues after driver_ok
| * c080cee930 af_unix: Fix null-ptr-deref in unix_stream_sendpage().
| * 7aa165d761 netfilter: set default timeout to 3 secs for sctp shutdown send and recv state
| * e62de63c63 mmc: block: Fix in_flight[issue_type] value error
| * 9022e9e62d mmc: wbsd: fix double mmc_free_host() in wbsd_init()
| * 6e74926ede cifs: Release folio lock on fscache read hit.
| * a04ac0c318 ALSA: usb-audio: Add support for Mythware XA001AU capture and playback interfaces.
| * bd70d0b280 serial: 8250: Fix oops for port->pm on uart_change_pm()
| * 03a7f213af ALSA: hda/realtek - Remodified 3k pull low procedure
| * b7d1c71984 ASoC: meson: axg-tdm-formatter: fix channel slot allocation
| * e761b7e90a ASoC: rt5665: add missed regulator_bulk_disable
| * d23dd85903 arm64: dts: rockchip: Disable HS400 for eMMC on ROCK Pi 4
| * 70626b93d6 arm64: dts: rockchip: sort nodes/properties on rk3399-rock-4
| * 7ba9ac0b5a arm64: dts: rockchip: fix regulator name on rk3399-rock-4
| * fba59a4b55 arm64: dts: rockchip: add SPDIF node for ROCK Pi 4
| * 77806f63c3 arm64: dts: rockchip: add ES8316 codec for ROCK Pi 4
| * 1411c3e86e arm64: dts: rockchip: use USB host by default on rk3399-rock-pi-4
| * eb5b1e932c arm64: dts: rockchip: fix supplies on rk3399-rock-pi-4
| * 73990370d6 bus: ti-sysc: Flush posted write on enable before reset
| * 0a593e8a9d net: do not allow gso_size to be set to GSO_BY_FRAGS
| * 51bc052db8 sock: Fix misuse of sk_under_memory_pressure()
| * 773075d38a net: dsa: mv88e6xxx: Wait for EEPROM done before HW reset
| * 0a9040dede i40e: fix misleading debug logs
| * abe68922d7 team: Fix incorrect deletion of ETH_P_8021AD protocol vid from slaves
| * 526d42c558 net: phy: broadcom: stub c45 read/write for 54810
| * a7653eaea0 netfilter: nft_dynset: disallow object maps
| * 49f57a9087 ipvs: fix racy memcpy in proc_do_sync_threshold
| * c8d0d3811e drm/panel: simple: Fix AUO G121EAN01 panel timings according to the docs
| * 86517421f4 selftests: mirror_gre_changes: Tighten up the TTL test match
| * 614811692e xfrm: add forgotten nla_policy for XFRMA_MTIMER_THRESH
| * bd30aa9c7f xfrm: add NULL check in xfrm_update_ae_params
| * 0b4d69539f ip_vti: fix potential slab-use-after-free in decode_session6
| * ec23b25e56 ip6_vti: fix slab-use-after-free in decode_session6
| * bafa236380 xfrm: fix slab-use-after-free in decode_session6
| * 0f89909c80 net: xfrm: Amend XFRMA_SEC_CTX nla_policy structure
| * 8b92d03cfc net: af_key: fix sadb_x_filter validation
| * 7e50815d29 net: xfrm: Fix xfrm_address_filter OOB read
| * 549e4e167a i2c: designware: Handle invalid SMBus block data response length value
| * bd7bef82ce btrfs: fix BUG_ON condition in btrfs_cancel_balance
| * 483d713ba2 tty: serial: fsl_lpuart: Clear the error flags by writing 1 for lpuart32 platforms
| * 869ce5e598 tty: n_gsm: fix the UAF caused by race condition in gsm_cleanup_mux
| * 0ba7f969be powerpc/rtas_flash: allow user copy to flash block cache objects
| * c5f59de362 fbdev: mmp: fix value check in mmphw_probe()
| * 268cc9bc54 i2c: bcm-iproc: Fix bcm_iproc_i2c_isr deadlock issue
| * 3ff54d904f virtio-mmio: don't break lifecycle of vm_dev
| * b1fe05cc51 virtio-mmio: Use to_virtio_mmio_device() to simply code
| * 3b76d92636 tracing/probes: Fix to update dynamic data counter if fetcharg uses it
| * 265a979ded tracing/probes: Have process_fetch_insn() take a void * instead of pt_regs
| * a890545353 mmc: meson-gx: fix deferred probing
| * e8a41b4a50 mmc: meson-gx: use devm_mmc_alloc_host
| * 50ed76c9e0 mmc: core: add devm_mmc_alloc_host
| * d523ce6f51 mmc: sunxi: fix deferred probing
| * 939a12f29a mmc: bcm2835: fix deferred probing
| * 01dfc61f72 USB: dwc3: qcom: fix NULL-deref on suspend
| * 3e2b5d66e9 usb: cdns3: fix NCM gadget RX speed 20x slow than expection at iMX8QM
| * f5c11b45f3 usb: cdns3: allocate TX FIFO size according to composite EP number
| * a461bcfb36 usb: gadget: udc: core: Introduce check_config to verify USB configuration
| * a64f5fe493 irqchip/mips-gic: Use raw spinlock for gic_lock
| * 0704666c57 irqchip/mips-gic: Get rid of the reliance on irq_cpu_online()
| * 372f1752b7 bus: mhi: host: Range check CHDBOFF and ERDBOFF
| * 77944a6f3c bus: mhi: Move host MHI code to "host" directory
| * f738912615 bus: mhi: Add MMIO region length to controller structure
| * 1cacbb711e bus: mhi: Add MHI PCI support for WWAN modems
| * 436b423253 iio: addac: stx104: Fix race condition when converting analog-to-digital
| * aeecd8d97d iio: addac: stx104: Fix race condition for stx104_write_raw()
| * f6576d4851 iio: adc: stx104: Implement and utilize register structures
| * 9d16098245 iio: adc: stx104: Utilize iomap interface
| * d2ba1f40fc dt-bindings: iio: add AD74413R
| * c5e580831b iio: add addac subdirectory
| * bb70fdbfa2 IMA: allow/fix UML builds
| * 66a3b2a121 ring-buffer: Do not swap cpu_buffer during resize process
| * dd5a12cdf2 powerpc/kasan: Disable KCOV in KASAN code
| * 9f9eed4511 ALSA: hda: fix a possible null-pointer dereference due to data race in snd_hdac_regmap_sync()
| * 7a21c2e474 ALSA: hda/realtek: Add quirks for Unis H3C Desktop B760 & Q760
| * b870b9a47f drm/amdgpu: Fix potential fence use-after-free v2
| * f19add5c77 Bluetooth: btusb: Add MT7922 bluetooth ID for the Asus Ally
| * 2958cf9f80 Bluetooth: L2CAP: Fix use-after-free
| * 04bb8af40a pcmcia: rsrc_nonstatic: Fix memory leak in nonstatic_release_resource_db()
| * 7c5b2649f6 gfs2: Fix possible data races in gfs2_show_options()
| * e8f3d96051 usb: chipidea: imx: add missing USB PHY DPDM wakeup setting
| * 7a3a7c6fa0 usb: chipidea: imx: don't request QoS for imx8ulp
| * 2caeb722f0 media: platform: mediatek: vpu: fix NULL ptr dereference
| * 99d6afa19d usb: gadget: u_serial: Avoid spinlock recursion in __gs_console_push
| * e52de26cb3 media: v4l2-mem2mem: add lock to protect parameter num_rdy
| * 5c094ca994 FS: JFS: Check for read-only mounted filesystem in txBegin
| * 2a3f20efe6 FS: JFS: Fix null-ptr-deref Read in txBegin
| * e778c8b0a9 MIPS: dec: prom: Address -Warray-bounds warning
| * 911b48eec4 fs: jfs: Fix UBSAN: array-index-out-of-bounds in dbAllocDmapLev
| * 4503f6fc95 udf: Fix uninitialized array access for some pathnames
| * a2966e0436 ovl: check type and offset of struct vfsmount in ovl_entry
| * 73311dd831 RDMA/mlx5: Return the firmware result upon destroying QP/RQ
| * 19312bc3ff HID: add quirk for 03f0:464a HP Elite Presenter Mouse
| * 04bd3a362d drm/amdgpu: install stub fence into potential unused fence pointers
| * 04e774fb67 dma-remap: use kvmalloc_array/kvfree for larger dma memory remap
| * cbaebbba72 quota: fix warning in dqgrab()
| * 8a4f4d47b8 quota: Properly disable quotas when add_dquot_ref() fails
| * df907501ba iopoll: Call cpu_relax() in busy loops
| * 940ccc291c ASoC: Intel: sof_sdw: Add support for Rex soundwire
| * b2882c51e6 ARM: dts: imx6dl: prtrvt, prtvt7, prti6q, prtwd2: fix USB related warnings
| * dbe0f607f8 PCI: tegra194: Fix possible array out of bounds access
| * 10459ffd56 ASoC: Intel: sof_sdw: add quirk for LNL RVP
| * 9f4dd39696 ASoC: Intel: sof_sdw: add quirk for MTL RVP
| * 751c5b6a23 ALSA: emu10k1: roll up loops in DSP setup code for Audigy
| * e6825b30d3 drm/radeon: Fix integer overflow in radeon_cs_parser_init
| * e6c0a9728e net/mlx5: Skip clock update work when device is in error state
| * 81cc91bba4 net/mlx5: Move all internal timer metadata into a dedicated struct
| * ba2e27e510 net/mlx5: Refactor init clock function
| * e77ef78741 macsec: use DEV_STATS_INC()
| * ecf0e627fb macsec: Fix traffic counters/statistics
| * b630367a60 mmc: sdhci-f-sdh30: Replace with sdhci_pltfm
* | 412095349f Merge 5.10.191 into android12-5.10-lts
|\|
| * da742ebfa0 Linux 5.10.191
| * 3b55ce96ef sch_netem: fix issues in netem_change() vs get_dist_table()
| * db9d161a04 alpha: remove __init annotation from exported page_is_ram()
| * 4af122b5d7 scsi: qedf: Fix firmware halt over suspend and resume
| * 3bb05745ca scsi: qedi: Fix firmware halt over suspend and resume
| * aa9a76d5ff scsi: core: Fix possible memory leak if device_add() fails
| * 58889d5ad7 scsi: snic: Fix possible memory leak if device_add() fails
| * a370e2d653 scsi: 53c700: Check that command slot is not NULL
| * 1678408d08 scsi: storvsc: Fix handling of virtual Fibre Channel timeouts
| * 267ad381c2 scsi: core: Fix legacy /proc parsing buffer overflow
| * 039ce5eb6b netfilter: nf_tables: report use refcount overflow
| * 93b3195d37 nvme-rdma: fix potential unbalanced freeze & unfreeze
| * 9ad83e3e61 nvme-tcp: fix potential unbalanced freeze & unfreeze
| * 200ae5fa0b btrfs: set cache_block_group_error if we find an error
| * bd3175f9d5 btrfs: don't stop integrity writeback too early
| * c91d822127 ibmvnic: Handle DMA unmapping of login buffs in release functions
| * 9024873b94 ibmvnic: Unmap DMA login rsp buffer on send login fail
| * d4750cea76 ibmvnic: Enforce stronger sanity checks on login response
| * 879750c6a7 net/mlx5: Allow 0 for total host VFs
| * f8510dfa95 dmaengine: mcf-edma: Fix a potential un-allocated memory access
| * e8d349408a net: hns3: add wait until mac link down
| * 70660e6faa net: hns3: refactor hclge_mac_link_status_wait for interface reuse
| * b564f32fb3 net: phy: at803x: remove set/get wol callbacks for AR8032
| * 0d35738118 wifi: cfg80211: fix sband iftype data lookup for AP_VLAN
| * 33c677d1e0 IB/hfi1: Fix possible panic during hotplug remove
| * 13f7752f4a drivers: net: prevent tun_build_skb() to exceed the packet size limit
| * 6d701c95ee dccp: fix data-race around dp->dccps_mss_cache
| * 6d0bd7b7b3 bonding: Fix incorrect deletion of ETH_P_8021AD protocol vid from slaves
| * 5850c391fd tunnels: fix kasan splat when generating ipv4 pmtu error
| * b3b6b9331a net/packet: annotate data-races around tp->status
| * cafe399d4d mISDN: Update parameter type of dsp_cmx_send()
| * 4f1d1cc16a selftests: forwarding: tc_flower: Relax success criterion
| * 501e3de09a selftests: forwarding: Switch off timeout
| * fe8fac37aa selftests: forwarding: Skip test when no interfaces are specified
| * 44a47be97c selftests: forwarding: ethtool_extended_state: Skip when using veth pairs
| * 0a93fa240d selftests: forwarding: ethtool: Skip when using veth pairs
| * 7e6af9c133 selftests: forwarding: Add a helper to skip test when using veth pairs
| * e731ad5221 selftests/rseq: Fix build with undefined __weak
| * cba47d0c95 drm/nouveau/disp: Revert a NULL check inside nouveau_connector_get_modes
| * 98eaa12c96 x86: Move gds_ucode_mitigated() declaration to header
| * 09f78fc442 x86/speculation: Add cpu_show_gds() prototype
| * 5258281a93 x86/mm: Fix VDSO and VVAR placement on 5-level paging machines
| * eda9f8ffca x86/cpu/amd: Enable Zenbleed fix for AMD Custom APU 0405
| * cb1eefc046 x86/srso: Fix build breakage with the LLVM linker
| * df8d390a21 usb: common: usb-conn-gpio: Prevent bailing out if initial role is none
| * 598ccdb92d usb: dwc3: Properly handle processing of pending events
| * fe7c3a445d usb-storage: alauda: Fix uninit-value in alauda_check_media()
| * d7e5e2b87f binder: fix memory leak in binder_init()
| * 0439ce5aef iio: cros_ec: Fix the allocation size for cros_ec_command
| * aa425ee227 io_uring: correct check for O_TMPFILE
| * 3720724087 nilfs2: fix use-after-free of nilfs_root in dirtying inodes via iput
| * a16c66baa4 x86/pkeys: Revert a5eff72597 ("x86/pkeys: Add PKRU value to init_fpstate")
| * 04499d2c97 radix tree test suite: fix incorrect allocation size for pthreads
| * db0e1e2abd hwmon: (pmbus/bel-pfe) Enable PMBUS_SKIP_STATUS_CHECK for pfe1100
| * a73d999fdf drm/amd/display: check attr flag before set cursor degamma on DCN3+
| * 188e8e25ae drm/shmem-helper: Reset vma->vm_ops before calling dma_buf_mmap()
| * 6b6839e440 drm/nouveau/gr: enable memory loads on helper invocation on all channels
| * 002cde0b78 riscv,mmio: Fix readX()-to-delay() ordering
| * 8362ad5367 dmaengine: pl330: Return DMA_PAUSED when transaction is paused
| * 7328c5319e selftests/bpf: Fix sk_assign on s390x
| * b1a3e27d6b selftests/bpf: Workaround verification failure for fexit_bpf2bpf/func_replace_return_code
| * 4af2d9ddb7 selftests/bpf: make test_align selftest more robust
| * 1952a4d5e4 bpf: aggressively forget precise markings during state checkpointing
| * 7ca3e7459f bpf: stop setting precise in current state
| * 2474ec58b9 bpf: allow precision tracking for programs with subprogs
| * 6796c2a0c5 ipv6: adjust ndisc_is_useropt() to also return true for PIO
| * f327f463c7 mmc: moxart: read scr register without changing byte order
| * 890ac460b0 wireguard: allowedips: expand maximum node depth
* | e06ad3b48e Revert "drm/ttm: add ttm_bo_pin()/ttm_bo_unpin() v2"
* | 918b4c2c76 Revert "drm/ttm: make ttm_bo_unpin more defensive"
* | 1c80a01fc2 Revert "drm/ttm: never consider pinned BOs for eviction&swap"
* | 70435a8ac9 Revert "drm/ttm: check null pointer before accessing when swapping"
* | 0dd121e0e6 Revert "tracing: Show real address for trace event arguments"
* | 06fab437d7 Revert "tracing: Fix sleeping while atomic in kdb ftdump"
* | df0f5bd7a8 Merge 5.10.190 into android12-5.10-lts
|/
* ec585727b6 Linux 5.10.190
* b6fc2fbf89 x86/CPU/AMD: Do not leak quotient data after a division by 0
* 98b7ab5e8d ARM: dts: nxp/imx6sll: fix wrong property name in usbphy node
* 14f2e2ac73 ARM: dts: imx6sll: fixup of operating points
* f1c928496d ARM: dts: imx: add usb alias
* c0e7123e89 wifi: mt76: mt7615: do not advertise 5 GHz on first phy of MT7615D (DBDC)
* 37fad83ae5 mt76: mt7615: Fix fall-through warnings for Clang
* b85c7882fd mt76: move band capabilities in mt76_phy
* 381f7df0f3 exfat: check if filename entries exceeds max filename length
* bd3bdb9e0d exfat: support dynamic allocate bh for exfat_entry_set_cache
* e0d192a402 exfat: speed up iterate/lookup by fixing start point of traversing cluster chain
* 86e4e949ea PM: sleep: wakeirq: fix wake irq arming
* 9a320469ad PM / wakeirq: support enabling wake-up irq after runtime_suspend called
* 48d1d0ce07 soundwire: fix enumeration completion
* 7d949774e7 soundwire: bus: pm_runtime_request_resume on peripheral attachment
* 662735bc11 soundwire: bus: add better dev_dbg to track complete() calls
* 173d9c7090 selftests/rseq: Play nice with binaries statically linked against glibc 2.35+
* c08de20e70 selftests/rseq: check if libc rseq support is registered
* fbb6657037 powerpc/mm/altmap: Fix altmap boundary check
* 1f09d67d39 mtd: rawnand: fsl_upm: Fix an off-by one test in fun_exec_op()
* 027710952b mtd: rawnand: omap_elm: Fix incorrect type in assignment
* d328849fb6 ext2: Drop fragment support
* 7e4e87ec56 fs: Protect reconfiguration of sb read-write from racing writes
* ec0d0be417 net: usbnet: Fix WARNING in usbnet_start_xmit/usb_submit_urb
* 06f87c9621 Bluetooth: L2CAP: Fix use-after-free in l2cap_sock_ready_cb
* 7f740bc696 fs/sysv: Null check to prevent null-ptr-deref bug
* 426656e8dd tracing: Fix sleeping while atomic in kdb ftdump
* 4f86da9abe file: reinstate f_pos locking optimization for regular files
* d39971d902 drm/ttm: check null pointer before accessing when swapping
* c9c78b91c7 open: make RESOLVE_CACHED correctly test for O_TMPFILE
* 3048cb0dc0 bpf: Disable preemption in bpf_event_output
* 33a339e717 net: tap_open(): set sk_uid from current_fsuid()
* 5ea23f1cb6 net: tun_chr_open(): set sk_uid from current_fsuid()
* 8d104bfd41 arm64: dts: stratix10: fix incorrect I2C property for SCL signal
* 8625802a1b mtd: rawnand: meson: fix OOB available bytes for ECC
* 82dc2bffea mtd: spinand: toshiba: Fix ecc_get_status
* ddf7cc7029 exfat: release s_lock before calling dir_emit()
* 79d16a84ea exfat: use kvmalloc_array/kvfree instead of kmalloc_array/kfree
* a4b2673e3c ceph: defer stopping mdsc delayed_work
* b5b39ff691 USB: zaurus: Add ID for A-300/B-500/C-700
* 513bfdde8a libceph: fix potential hang in ceph_osdc_notify()
* 181274d2f3 scsi: zfcp: Defer fc_rport blocking until after ADISC response
* 6d9f5f3d89 tcp_metrics: fix data-race in tcpm_suck_dst() vs fastopen
* 05d1dc88c4 tcp_metrics: annotate data-races around tm->tcpm_net
* 079afb1815 tcp_metrics: annotate data-races around tm->tcpm_vals[]
* 57bcbbb208 tcp_metrics: annotate data-races around tm->tcpm_lock
* 289091eef3 tcp_metrics: annotate data-races around tm->tcpm_stamp
* 420aad608f tcp_metrics: fix addr_same() helper
* 80e9488ece net/mlx5: fs_core: Skip the FTs in the same FS_TYPE_PRIO_CHAINS fs_prio
* 7a634336a0 net/mlx5: fs_core: Make find_closest_ft more generic
* c650597647 vxlan: Fix nexthop hash size
* 1683124129 ip6mr: Fix skb_under_panic in ip6mr_cache_report()
* c33d5a5c5b s390/qeth: Don't call dev_close/dev_open (DOWN/UP)
* 8e309f43d0 net: dcb: choose correct policy to parse DCB_ATTR_BCN
* 6d4f24736d net: netsec: Ignore 'phy-mode' on SynQuacer in DT mode
* 216092963c net: ll_temac: fix error checking of irq_of_parse_and_map()
* 20fe059c1d net: ll_temac: Switch to use dev_err_probe() helper
* a0e42f4bd4 bpf: sockmap: Remove preempt_disable in sock_map_sk_acquire
* aaa71c4e8a net/sched: cls_route: No longer copy tcf_result on update to avoid use-after-free
* a8d478200b net/sched: cls_fw: No longer copy tcf_result on update to avoid use-after-free
* b4256c99a7 net/sched: cls_u32: No longer copy tcf_result on update to avoid use-after-free
* 268b29ef19 net: add missing data-race annotation for sk_ll_usec
* ad417bab9d net: add missing data-race annotations around sk->sk_peek_off
* 11e0590af3 net: add missing READ_ONCE(sk->sk_rcvbuf) annotation
* dc20f7bada net: add missing READ_ONCE(sk->sk_sndbuf) annotation
* 427c611d84 net: add missing READ_ONCE(sk->sk_rcvlowat) annotation
* c7ebe08f40 net: annotate data-races around sk->sk_max_pacing_rate
* 14db69381d mISDN: hfcpci: Fix potential deadlock on &hc->lock
* d163337bef net: sched: cls_u32: Fix match key mis-addressing
* e68929f11b perf test uprobe_from_different_cu: Skip if there is no gcc
* eb8031b7ce net: dsa: fix value check in bcm_sf2_sw_probe()
* abb0172fa8 rtnetlink: let rtnl_bridge_setlink checks IFLA_BRIDGE_MODE length
* 6b93c51068 bpf: Add length check for SK_DIAG_BPF_STORAGE_REQ_MAP_FD parsing
* 2cf6791207 net/mlx5e: fix return value check in mlx5e_ipsec_remove_trailer()
* 1651598547 net/mlx5: DR, fix memory leak in mlx5dr_cmd_create_reformat_ctx
* ef3d0a732d wifi: cfg80211: Fix return value in scan logic
* b4bdcbc0e3 KVM: s390: fix sthyi error handling
* 4241cfc973 word-at-a-time: use the same return type for has_zero regardless of endianness
* 94f8447ab8 arm64: dts: imx8mn-var-som: add missing pull-up for onboard PHY reset pinmux
* 832a4d4cdb loop: Select I/O scheduler 'none' from inside add_disk()
* 3f7395c382 perf: Fix function pointer case
* a883b98dc7 io_uring: gate iowait schedule on having pending requests
* 058c0cbd25 x86/kprobes: Fix JNG/JNLE emulation
* edc2ac7c72 x86/kprobes: Update kcb status flag after singlestepping
* f07f3938c8 x86/kprobes: Move 'inline' to the beginning of the kprobe_is_ss() declaration
* 2b5afe25f5 x86/kprobes: Fix to identify indirect jmp and others using range case
* ba7d1dae9f x86/kprobes: Use int3 instead of debug trap for single-step
* 2c57553a77 x86/kprobes: Identify far indirect JMP correctly
* 41db23bad9 x86/kprobes: Retrieve correct opcode for group instruction
* ff97a14c8a x86/kprobes: Do not decode opcode in resume_execution()
* 5601d812c8 kprobes/x86: Fix fall-through warnings for Clang
* 7a413fa047 ASoC: cs42l51: fix driver to properly autoload with automatic module loading
* 4d360a8194 io_uring: treat -EAGAIN for REQ_F_NOWAIT as final for io-wq
* 9164e27c5a selftests: mptcp: depend on SYN_COOKIES
* f0acd6c3a2 cpufreq: intel_pstate: Drop ACPI _PSS states table patching
* a241fc02f1 ACPI: processor: perflib: Avoid updating frequency QoS unnecessarily
* ad938dd2af ACPI: processor: perflib: Use the "no limit" frequency QoS
* 4148f28f98 drm/ttm: make ttm_bo_unpin more defensive
* c0f2b2b020 dm cache policy smq: ensure IO doesn't prevent cleaner policy progress
* aae65b1793 ceph: never send metrics if disable_send_metrics is set
* 4f669618c9 ASoC: wm8904: Fill the cache for WM8904_ADC_TEST_0 register
* c837f121bc s390/dasd: fix hanging device after quiesce/resume
* 276738b382 virtio-net: fix race between set queues and probe
* 3d10481a90 btrfs: check if the transaction was aborted at btrfs_wait_for_commit()
* fc511ae405 staging: r8712: Fix memory leak in _r8712_init_xmit_priv()
* 223ecf871b staging: rtl8712: Use constants from <linux/ieee80211.h>
* 836b131683 KVM: VMX: Don't fudge CR0 and CR4 for restricted L2 guest
* c710ff0612 KVM: nVMX: Do not clear CR3 load/store exiting bits if L1 wants 'em
* 7fc51da40b KVM: VMX: Fold ept_update_paging_mode_cr0() back into vmx_set_cr0()
* 96c73bc9ef KVM: VMX: Invert handling of CR0.WP for EPT without unrestricted guest
* 90cd5ab951 irqchip/gic-v4.1: Properly lock VPEs when doing a directLPI invalidation
* 57b8db5800 irq-bcm6345-l1: Do not assume a fixed block to cpu mapping
* b1867cddd7 tpm_tis: Explicitly check for error code
* 5be81139d2 nfsd: Remove incorrect check in nfsd4_validate_stateid
* 4a871fcebc file: always lock position for FMODE_ATOMIC_POS
* c5c797ccc3 btrfs: check for commit error at btrfs_attach_transaction_barrier()
* 5e0e4e72ca hwmon: (nct7802) Fix for temp6 (PECI1) processed even if PECI1 disabled
* 7c6df7f0fc ALSA: hda/relatek: Enable Mute LED on HP 250 G8
* 8fc0eabaa7 tty: n_gsm: fix UAF in gsm_cleanup_mux
* caac4b6c15 staging: ks7010: potential buffer overflow in ks_wlan_set_encode_ext()
* baef414b1c Documentation: security-bugs.rst: clarify CVE handling
* 0d5b23743b Documentation: security-bugs.rst: update preferences when dealing with the linux-distros group
* 65cd02e3c3 Revert "usb: xhci: tegra: Fix error check"
* b0fd110578 usb: xhci-mtk: set the dma max_seg_size
* d0b588bbe4 USB: quirks: add quirk for Focusrite Scarlett
* 66a622275a usb: ohci-at91: Fix the unhandle interrupt when resume
* 96c433aff5 usb: dwc3: don't reset device side if dwc3 was configured as host-only
* 05b201de44 usb: dwc3: pci: skip BYT GPIO lookup table for hardwired phy
* 75ad45cef6 Revert "usb: dwc3: core: Enable AutoRetry feature in the controller"
* bf468806b6 can: gs_usb: gs_can_close(): add missing set of CAN state to CAN_STATE_STOPPED
* d5db33a667 USB: serial: simple: sort driver entries
* 81c54eef1d USB: serial: simple: add Kaufmann RKS+CAN VCP
* fca2a74eee USB: serial: option: add Quectel EC200A module support
* c704cb2113 USB: serial: option: support Quectel EM060K_128
* 1037ee1dbf serial: sifive: Fix sifive_serial_console_setup() section
* 6209a7383d serial: 8250_dw: Preserve original value of DLF register
* 9e671a6116 serial: qcom-geni: drop bogus runtime pm state update
* 68e6287ac6 USB: gadget: Fix the memory leak in raw_gadget driver
* da1b105dc6 Revert "usb: gadget: tegra-xudc: Fix error check in tegra_xudc_powerdomain_init()"
* a6d2fd1703 tracing: Fix warning in trace_buffered_event_disable()
* 0efbdbc453 ring-buffer: Fix wrong stat of cpu_buffer->read
* e410839c0c ata: pata_ns87415: mark ns87560_tf_read static
* 82ce0ae87a dm raid: protect md_stop() with 'reconfig_mutex'
* d6a1cf4ee5 dm raid: clean up four equivalent goto tags in raid_ctr()
* a43c761a7e dm raid: fix missing reconfig_mutex unlock in raid_ctr() error paths
* d82bfe9686 block: Fix a source code comment in include/uapi/linux/blkzoned.h
* ab6d14bc40 ASoC: fsl_spdif: Silence output on stop
* 94bac776cd drm/msm: Fix IS_ERR_OR_NULL() vs NULL check in a5xx_submit_in_rb()
* b0100bdb9d RDMA/mthca: Fix crash when polling CQ for shared QPs
* 62a8a4cafa drm/msm/adreno: Fix snapshot BINDLESS_DATA size
* 5c9e03b867 drm/msm/dpu: drop enum dpu_core_perf_data_bus_id
* 08aa5a5297 RDMA/mlx4: Make check for invalid flags stricter
* 9d1fd118bc tipc: stop tipc crypto on failure in tipc_node_create
* d03de93776 tipc: check return value of pskb_trim()
* 3661bab5af benet: fix return value check in be_lancer_xmit_workarounds()
* f40f7a858b net/sched: mqprio: Add length check for TCA_MQPRIO_{MAX/MIN}_RATE64
* 3ed3729a6a net/sched: mqprio: add extack to mqprio_parse_nlattr()
* 6227b46154 net/sched: mqprio: refactor nlattr parsing to a separate function
* 308a43f152 netfilter: nf_tables: disallow rule addition to bound chain via NFTA_RULE_CHAIN_ID
* ab5a97a94b netfilter: nf_tables: skip immediate deactivate in _PREPARE_ERROR
* 7782ce022f netfilter: nftables: add helper function to validate set element data
* 893cb3c351 netfilter: nft_set_rbtree: fix overlap expiration walk
* 89060b831c platform/x86: msi-laptop: Fix rfkill out-of-sync on MSI Wind U100
* 75f57acda3 team: reset team's flags when down link is P2P device
* de982f46be bonding: reset bond's flags when down link is P2P device
* b2712c4bfc ice: Fix memory management in ice_ethtool_fdir.c
* 0cd74fbd3b tcp: Reduce chance of collisions in inet6_hashfn().
* b55a2b34b1 ipv6 addrconf: fix bug where deleting a mngtmpaddr can create a new temporary address
* 5a3c929682 ethernet: atheros: fix return value check in atl1e_tso_csum()
* ad249aa3c3 phy: hisilicon: Fix an out of bounds check in hisi_inno_phy_probe()
* 6f26f14573 vxlan: calculate correct header length for GPE
* d2741769d5 vxlan: move to its own directory
* 076f786f04 net: hns3: fix wrong bw weight of disabled tc issue
* 344b7c0003 net: hns3: reconstruct function hclge_ets_validate()
* 111b699300 net: phy: marvell10g: fix 88x3310 power up
* 8a6cc852f6 i40e: Fix an NULL vs IS_ERR() bug for debugfs_create_dir()
* 39c789c957 media: staging: atomisp: select V4L2_FWNODE
* fb1db97904 phy: qcom-snps-femto-v2: properly enable ref clock
* ffebc22bdd phy: qcom-snps-femto-v2: keep cfg_ahb_clk enabled during runtime suspend
* f34090579a phy: qcom-snps: correct struct qcom_snps_hsphy kerneldoc
* ceba255a79 phy: qcom-snps: Use dev_err_probe() to simplify code
* ed3d841f2f ext4: fix to check return value of freeze_bdev() in ext4_shutdown()
* e3454b438c pwm: meson: fix handling of period/duty if greater than UINT_MAX
* b306d09967 pwm: meson: Simplify duplicated per-channel tracking
* 840ce9cfc8 tracing: Show real address for trace event arguments
* 8996b13051 drm/ttm: never consider pinned BOs for eviction&swap
* 5f6d5b58c5 drm/ttm: add ttm_bo_pin()/ttm_bo_unpin() v2
* 1815d9bf02 fs: dlm: interrupt posix locks only when process is killed
* 0f6741acfd dlm: rearrange async condition return
* 7931233310 dlm: cleanup plock_op vs plock_xop
* 838d6e86ec PCI/ASPM: Avoid link retraining race
* 9f283ca643 PCI/ASPM: Factor out pcie_wait_for_retrain()
* ffc0ee491f PCI/ASPM: Return 0 or -ETIMEDOUT from pcie_retrain_link()
* 9fd349c885 i2c: nomadik: Remove a useless call in the remove function
* a7ab5d7943 i2c: nomadik: Use devm_clk_get_enabled()
* ec954a4ab0 i2c: nomadik: Remove unnecessary goto label
* 04b1140678 i2c: Improve size determinations
* 41e90f0e50 i2c: Delete error messages for failed memory allocations
* 52df40a5c7 btrfs: fix extent buffer leak after tree mod log failure at split_node()
* 52403c3dad btrfs: fix race between quota disable and relocation
* 3069fc0326 gpio: tps68470: Make tps68470_gpio_output() always set the initial value
* 22786d5381 io_uring: don't audit the capability check in io_uring_create()
* 8e635da0e0 KVM: s390: pv: fix index value of replaced ASCE

Change-Id: I0a0bef19a2542dd337e01594e091619a1e35698a
Signed-off-by: Greg Kroah-Hartman <gregkh@google.com>
2023-10-31 10:18:41 +00:00
Bin Yang e797ca0abf ANDROID: usb: gadget: fix cannot create multiple android instances
Cannot use android_device to get multiple android instances.
The cdev will not be freed by the set_gadget_data(gadget, NULL),
so we can do not use the spinlock of gadget item to prevent
the condition.

Bug: 298603473
Fixes: dd139186ef ("ANDROID: usb: gadget: fix NULL pointer dereference in android_setup")
Signed-off-by: William Wu <william.wu@rock-chips.com>
Signed-off-by: Bin Yang <yangbin@rock-chips.com>
Change-Id: Ic0c72971051401d218e2eba75c40194933290e16
2023-10-30 09:44:40 +08:00
Greg Kroah-Hartman 3414e62421 Merge 5.10.197 into android12-5.10-lts
Changes in 5.10.197
	autofs: fix memory leak of waitqueues in autofs_catatonic_mode
	btrfs: output extra debug info if we failed to find an inline backref
	locks: fix KASAN: use-after-free in trace_event_raw_event_filelock_lock
	ACPICA: Add AML_NO_OPERAND_RESOLVE flag to Timer
	kernel/fork: beware of __put_task_struct() calling context
	rcuscale: Move rcu_scale_writer() schedule_timeout_uninterruptible() to _idle()
	scftorture: Forgive memory-allocation failure if KASAN
	ACPI: video: Add backlight=native DMI quirk for Lenovo Ideapad Z470
	perf/smmuv3: Enable HiSilicon Erratum 162001900 quirk for HIP08/09
	ACPI: video: Add backlight=native DMI quirk for Apple iMac12,1 and iMac12,2
	hw_breakpoint: fix single-stepping when using bpf_overflow_handler
	devlink: remove reload failed checks in params get/set callbacks
	crypto: lrw,xts - Replace strlcpy with strscpy
	wifi: ath9k: fix fortify warnings
	wifi: ath9k: fix printk specifier
	wifi: mwifiex: fix fortify warning
	wifi: wil6210: fix fortify warnings
	crypto: lib/mpi - avoid null pointer deref in mpi_cmp_ui()
	tpm_tis: Resend command to recover from data transfer errors
	mmc: sdhci-esdhc-imx: improve ESDHC_FLAG_ERR010450
	alx: fix OOB-read compiler warning
	netfilter: ebtables: fix fortify warnings in size_entry_mwt()
	wifi: mac80211_hwsim: drop short frames
	drm/bridge: tc358762: Instruct DSI host to generate HSE packets
	samples/hw_breakpoint: Fix kernel BUG 'invalid opcode: 0000'
	ALSA: hda: intel-dsp-cfg: add LunarLake support
	drm/exynos: fix a possible null-pointer dereference due to data race in exynos_drm_crtc_atomic_disable()
	bus: ti-sysc: Configure uart quirks for k3 SoC
	md: raid1: fix potential OOB in raid1_remove_disk()
	ext2: fix datatype of block number in ext2_xattr_set2()
	fs/jfs: prevent double-free in dbUnmount() after failed jfs_remount()
	jfs: fix invalid free of JFS_IP(ipimap)->i_imap in diUnmount
	powerpc/pseries: fix possible memory leak in ibmebus_bus_init()
	media: dvb-usb-v2: af9035: Fix null-ptr-deref in af9035_i2c_master_xfer
	media: dw2102: Fix null-ptr-deref in dw2102_i2c_transfer()
	media: af9005: Fix null-ptr-deref in af9005_i2c_xfer
	media: anysee: fix null-ptr-deref in anysee_master_xfer
	media: az6007: Fix null-ptr-deref in az6007_i2c_xfer()
	media: dvb-usb-v2: gl861: Fix null-ptr-deref in gl861_i2c_master_xfer
	media: tuners: qt1010: replace BUG_ON with a regular error
	media: pci: cx23885: replace BUG with error return
	usb: gadget: fsl_qe_udc: validate endpoint index for ch9 udc
	scsi: target: iscsi: Fix buffer overflow in lio_target_nacl_info_show()
	serial: cpm_uart: Avoid suspicious locking
	media: pci: ipu3-cio2: Initialise timing struct to avoid a compiler warning
	kobject: Add sanity check for kset->kobj.ktype in kset_register()
	mtd: rawnand: brcmnand: Allow SoC to provide I/O operations
	mtd: rawnand: brcmnand: Fix ECC level field setting for v7.2 controller
	perf jevents: Make build dependency on test JSONs
	perf tools: Add an option to build without libbfd
	btrfs: move btrfs_pinned_by_swapfile prototype into volumes.h
	btrfs: add a helper to read the superblock metadata_uuid
	btrfs: compare the correct fsid/metadata_uuid in btrfs_validate_super
	drm: gm12u320: Fix the timeout usage for usb_bulk_msg()
	scsi: qla2xxx: Fix NULL vs IS_ERR() bug for debugfs_create_dir()
	selftests: tracing: Fix to unmount tracefs for recovering environment
	scsi: lpfc: Fix the NULL vs IS_ERR() bug for debugfs_create_file()
	x86/boot/compressed: Reserve more memory for page tables
	samples/hw_breakpoint: fix building without module unloading
	md/raid1: fix error: ISO C90 forbids mixed declarations
	attr: block mode changes of symlinks
	ovl: fix incorrect fdput() on aio completion
	btrfs: fix lockdep splat and potential deadlock after failure running delayed items
	btrfs: release path before inode lookup during the ino lookup ioctl
	drm/amdgpu: fix amdgpu_cs_p1_user_fence
	net/sched: Retire rsvp classifier
	proc: fix a dentry lock race between release_task and lookup
	mm/filemap: fix infinite loop in generic_file_buffered_read()
	drm/amd/display: enable cursor degamma for DCN3+ DRM legacy gamma
	tracing: Have current_trace inc the trace array ref count
	tracing: Have option files inc the trace array ref count
	nfsd: fix change_info in NFSv4 RENAME replies
	tracefs: Add missing lockdown check to tracefs_create_dir()
	i2c: aspeed: Reset the i2c controller when timeout occurs
	ata: libata: disallow dev-initiated LPM transitions to unsupported states
	scsi: megaraid_sas: Fix deadlock on firmware crashdump
	scsi: pm8001: Setup IRQs on resume
	ext4: fix rec_len verify error
	Linux 5.10.197

Change-Id: Ic8626d7d13ec54d438c4d80efe1f8b6bddeb84a8
Signed-off-by: Greg Kroah-Hartman <gregkh@google.com>
2023-10-26 17:52:15 +00:00
William Wu fa63778a21 usb: host: ohci-platform: enable async suspend for rk3588
The rk3588 has two ohci controllers, and the ohci_resume()
takes a long time when system resume. Considering that the
delay time in the ohci_resume() is related to controller
hardware, we should not modify the delay time.

This patch enable async suspend for rk3588 ohci controllers,
then they can do asynchronous resume. Note that it generally
is unsafe to permit the asynchronous suspend/resume for ohci
because we can't certain that the PM dependencies of the ohci.
However, for rk3588, we have add device_link between the ohci
and ehci with the commit 68850661b5 ("usb: host: ehci-platform:
Add device_link between the ehci and companion"), so we can
safely enable async suspend/resume for rk3588 ohci.

Signed-off-by: William Wu <william.wu@rock-chips.com>
Change-Id: Ia74fc59c2c75a4bdc34d0de0a7bd047c178e9971
2023-10-18 15:25:26 +08:00
Basavaraj Natikar e7893cb391 BACKPORT: xhci: Improve the XHCI system resume time
Avoid extra 120ms delay during system resume.

The xHC controller may signal wake up to 120ms before showing which usb
device caused the wake on the xHC port registers.

The xhci driver therefore checks for port activity up to 120ms during
resume, making sure that the hub driver can see the port change, and
won't immediately runtime suspend back due to no port activity.

This is however only needed for runtime resume as system resume will
resume all child hubs and other child usb devices anyway.

Fixes: 253f588c70 ("xhci: Improve detection of device initiated wake signal.")
Signed-off-by: Basavaraj Natikar <Basavaraj.Natikar@amd.com>
Acked-by: Mathias Nyman <mathias.nyman@linux.intel.com>
Link: https://lore.kernel.org/r/20230428140056.1318981-3-Basavaraj.Natikar@amd.com
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
Signed-off-by: William Wu <william.wu@rock-chips.com>
(cherry picked from commit 1c024241d0)
Change-Id: Icf4e8c97b3d5f6e9550fcad0e748c7badf1b22df
2023-10-07 15:03:09 +08:00
Krishna Kurapati 99d2841c81 UPSTREAM: usb: gadget: ncm: Handle decoding of multiple NTB's in unwrap call
When NCM is used with hosts like Windows PC, it is observed that there are
multiple NTB's contained in one usb request giveback. Since the driver
unwraps the obtained request data assuming only one NTB is present, we
loose the subsequent NTB's present resulting in data loss.

Fix this by checking the parsed block length with the obtained data
length in usb request and continue parsing after the last byte of current
NTB.

Cc: stable@vger.kernel.org
Fixes: 9f6ce4240a ("usb: gadget: f_ncm.c added")
Signed-off-by: Krishna Kurapati <quic_kriskura@quicinc.com>
Reviewed-by: Maciej Żenczykowski <maze@google.com>
Link: https://lore.kernel.org/r/20230927105858.12950-1-quic_kriskura@quicinc.com
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>

Bug: 303180260
(cherry picked from commit 427694cfaa)
Change-Id: I86deb62ba12ab683ec8f311e15d90700e0b9902e
Signed-off-by: Uttkarsh Aggarwal <quic_uaggarwa@quicinc.com>
2023-10-03 16:50:57 +05:30
Todd Kjos 3cf9365660 Merge tag 'android12-5.10.189_r00' into android12-5.10
This is the merge of 5.10.189 into the android12-5.10 branch.

It contains the following commits:

*   f50fa8d8ce Merge 5.10.189 into android12-5.10-lts
|\
| * de5f63612d Linux 5.10.189
| * 2ae9a73819 x86: fix backwards merge of GDS/SRSO bit
| * f9167a2d6b xen/netback: Fix buffer overrun triggered by unusual packet
| * 8457fb5740 x86/srso: Tie SBPB bit setting to microcode patch detection
| * 4873939c0e x86/srso: Fix return thunks in generated code
| * 384d41bea9 x86/srso: Add IBPB on VMEXIT
| * 4acaea47e3 x86/srso: Add IBPB
| * e47af0c255 x86/srso: Add SRSO_NO support
| * df76a59feb x86/srso: Add IBPB_BRTYPE support
| * 3f9b7101be x86/srso: Add a Speculative RAS Overflow mitigation
| * 34f23ba8a3 x86/cpu, kvm: Add support for CPUID_80000021_EAX
| * 073a28a9b5 x86/bugs: Increase the x86 bugs vector size to two u32s
| * 9b7fe7c6fb tools headers cpufeatures: Sync with the kernel sources
| * 437fa179f2 x86/cpufeatures: Assign dedicated feature word for CPUID_0x8000001F[EAX]
| * baf6d6c39e x86/cpu: Add VM page flush MSR availablility as a CPUID feature
| * 6750468784 Documentation/x86: Fix backwards on/off logic about YMM support
| * 79972c2b95 x86/mm: Initialize text poking earlier
| * 1ff14defdf mm: Move mm_cachep initialization to mm_init()
| * 6ee042fd24 x86/mm: Use mm_alloc() in poking_init()
| * f076d08178 x86/mm: fix poking_init() for Xen PV guests
| * 583016037a x86/xen: Fix secondary processors' FPU initialization
| * eb13cce488 KVM: Add GDS_NO support to KVM
| * 7db4ddcb8d x86/speculation: Add Kconfig option for GDS
| * 363c98f9cf x86/speculation: Add force option to GDS mitigation
| * 288a2f6bc1 x86/speculation: Add Gather Data Sampling mitigation
| * 4ae1cbb730 x86/fpu: Move FPU initialization into arch_cpu_finalize_init()
| * 2462bc3ef0 x86/fpu: Mark init functions __init
| * 7a2f42bce9 x86/fpu: Remove cpuinfo argument from init functions
| * 18fcd72da1 init, x86: Move mem_encrypt_init() into arch_cpu_finalize_init()
| * 09658b81d1 init: Invoke arch_cpu_finalize_init() earlier
| * bf2fa3a9d0 init: Remove check_bugs() leftovers
| * b05031c2bc um/cpu: Switch to arch_cpu_finalize_init()
| * 2edb3b39ca sparc/cpu: Switch to arch_cpu_finalize_init()
| * 3c45134b38 sh/cpu: Switch to arch_cpu_finalize_init()
| * 75bb54c951 mips/cpu: Switch to arch_cpu_finalize_init()
| * 1cd3fc18eb m68k/cpu: Switch to arch_cpu_finalize_init()
| * 12d93c6c98 ia64/cpu: Switch to arch_cpu_finalize_init()
| * c0fff20d4e ARM: cpu: Switch to arch_cpu_finalize_init()
| * e5eb18e164 x86/cpu: Switch to arch_cpu_finalize_init()
| * 6e606e6818 init: Provide arch_cpu_finalize_init()
* | 49c25af89c Revert "bpf: Remove extra lock_sock for TCP_ZEROCOPY_RECEIVE"
* | 117f73f9a7 Revert "sctp: add bpf_bypass_getsockopt proto callback"
* | 64414277da Revert "net: Introduce net.ipv4.tcp_migrate_req."
* | 2afed824a4 Revert "tcp: Fix data-races around sysctl_tcp_syn(ack)?_retries."
* | 08315eedaa Revert "tcp: annotate data-races around icsk->icsk_syn_retries"
* | 938b8658b9 Revert "posix-timers: Ensure timer ID search-loop limit is valid"
* | 986fd89af0 Revert "Revert "8250: add support for ASIX devices with a FIFO bug""
* | 477f5e6b9e Merge 5.10.188 into android12-5.10-lts
|\|
| * 3602dbc57b Linux 5.10.188
| * edce5fba78 ftrace: Fix possible warning on checking all pages used in ftrace_process_locs()
| * 115b19f893 ftrace: Store the order of pages allocated in ftrace_page
| * 1a1e793e02 tracing: Fix memory leak of iter->temp when reading trace_pipe
| * 43e786aa51 tracing/histograms: Return an error if we fail to add histogram to hist_vars list
| * e3da59f428 net: phy: prevent stale pointer dereference in phy_init()
| * e0ac63e194 tcp: annotate data-races around fastopenq.max_qlen
| * d01afbfc2f tcp: annotate data-races around icsk->icsk_user_timeout
| * 3cf0a0f11d tcp: annotate data-races around tp->notsent_lowat
| * 9c786d5faf tcp: annotate data-races around rskq_defer_accept
| * f891375eba tcp: annotate data-races around tp->linger2
| * 9168bd8f54 tcp: annotate data-races around icsk->icsk_syn_retries
| * 7b0084918c tcp: Fix data-races around sysctl_tcp_syn(ack)?_retries.
| * cf6c06ac74 net: Introduce net.ipv4.tcp_migrate_req.
| * a5c30a5187 tcp: annotate data-races around tp->keepalive_probes
| * 93715448f1 tcp: annotate data-races around tp->keepalive_intvl
| * 7b52a78a91 tcp: annotate data-races around tp->keepalive_time
| * 1d4f2c4be1 tcp: annotate data-races around tp->tcp_tx_delay
| * 30e5460d69 netfilter: nf_tables: skip bound chain on rule flush
| * 94c10c0fa5 netfilter: nf_tables: skip bound chain in netns release path
| * 3a91099ecd netfilter: nft_set_pipapo: fix improper element removal
| * 9c2df17e3c netfilter: nf_tables: can't schedule in nft_chain_validate
| * 533193a239 netfilter: nf_tables: fix spurious set element insertion failure
| * a6f1988780 llc: Don't drop packet from non-root netns.
| * 49e435ca02 fbdev: au1200fb: Fix missing IRQ check in au1200fb_drv_probe
| * bc9d4d432f Revert "tcp: avoid the lookup process failing to get sk in ehash table"
| * d06fc7b391 net:ipv6: check return value of pskb_trim()
| * 1a478ad129 net: ipv4: Use kfree_sensitive instead of kfree
| * 937105d2b0 tcp: annotate data-races around tcp_rsk(req)->ts_recent
| * 41b0023869 octeontx2-pf: Dont allocate BPIDs for LBK interfaces
| * 5bc78ba889 security: keys: Modify mismatched function name
| * b92defe4e8 iavf: Fix out-of-bounds when setting channels on remove
| * a4635f190f iavf: Fix use-after-free in free_netdev
| * b37bc3b07e bridge: Add extack warning when enabling STP in netns.
| * f6d311b953 net: ethernet: ti: cpsw_ale: Fix cpsw_ale_get_field()/cpsw_ale_set_field()
| * 54aa4c0386 pinctrl: amd: Use amd_pinconf_set() for all config options
| * 7041605e85 fbdev: imxfb: warn about invalid left/right margin
| * 6e88cc510f spi: bcm63xx: fix max prepend length
| * 994c2ceb70 igb: Fix igb_down hung on surprise removal
| * a956c3af70 wifi: iwlwifi: mvm: avoid baid size integer overflow
| * 85cf0d5f45 wifi: wext-core: Fix -Wstringop-overflow warning in ioctl_standard_iw_point()
| * 2864cc9a1f devlink: report devlink_port_type_warn source device
| * b6d9a4062c bpf: Address KCSAN report on bpf_lru_list
| * 532f8bac60 wifi: ath11k: fix registration of 6Ghz-only phy without the full channel range
| * 6b0c79aa33 sched/fair: Don't balance task to its current running CPU
| * 32020fc2a8 arm64: mm: fix VA-range sanity check
| * c71d6934c6 arm64: set __exception_irq_entry with __irq_entry as a default
| * 71e3f23540 ACPI: video: Add backlight=native DMI quirk for Lenovo ThinkPad X131e (3371 AMD version)
| * 776a72f612 ACPI: video: Add backlight=native DMI quirk for Apple iMac11,3
| * e090f70ae4 ACPI: button: Add lid disable DMI quirk for Nextbook Ares 8A
| * ae51eb90bc btrfs: add xxhash to fast checksum implementations
| * 322377cc90 posix-timers: Ensure timer ID search-loop limit is valid
| * 634daf6b2c md/raid10: prevent soft lockup while flush writes
| * b02939413e md: fix data corruption for raid456 when reshape restart while grow up
| * 4a2c62c8d6 nbd: Add the maximum limit of allocated index in nbd_dev_add
| * 5f84a34b64 debugobjects: Recheck debug_objects_enabled before reporting
| * 5d5aa5b648 ext4: correct inline offset when handling xattrs in inode body
| * 48aa539375 ASoC: fsl_sai: Disable bit clock with transmitter
| * 5f2a12f643 drm/client: Fix memory leak in drm_client_modeset_probe
| * 105275879a drm/client: Fix memory leak in drm_client_target_cloned
| * cf254b4f68 can: bcm: Fix UAF in bcm_proc_show()
| * 3e412b6e2b regmap: Account for register length in SMBus I/O limits
| * 8b3dd8d23f regmap: Drop initial version of maximum transfer length fixes
| * 4935761daa selftests: tc: add 'ct' action kconfig dep
| * 1ab5aa1846 selftests: tc: set timeout to 15 minutes
| * dad97c205a fuse: revalidate: don't invalidate if interrupted
| * d2c667cc18 btrfs: fix warning when putting transaction with qgroups enabled after abort
| * 4410f4a938 perf probe: Add test for regression introduced by switch to die_get_decl_file()
| * 0a6b0ca586 keys: Fix linking a duplicate key to a keyring's assoc_array
| * a26208e184 ALSA: hda/realtek: Enable Mute LED on HP Laptop 15s-eq2xxx
| * ce2a7e7b50 ALSA: hda/realtek - remove 3k pull low procedure
| * f09c0ac142 drm/atomic: Fix potential use-after-free in nonblocking commits
| * 9a085fa9b7 RDMA/cma: Ensure rdma_addr_cancel() happens before issuing more requests
| * 73e72a5380 net/sched: sch_qfq: reintroduce lmax bound check for MTU
| * 0b1ce92fab scsi: qla2xxx: Remove unused nvme_ls_waitq wait queue
| * 5addd62586 scsi: qla2xxx: Pointer may be dereferenced
| * e8de73238d scsi: qla2xxx: Correct the index of array
| * 921d684462 scsi: qla2xxx: Check valid rport returned by fc_bsg_to_rport()
| * 2bea9c1c98 scsi: qla2xxx: Fix potential NULL pointer dereference
| * eecb8a491c scsi: qla2xxx: Fix buffer overrun
| * bcd773969a scsi: qla2xxx: Array index may go out of bound
| * a9fe97fb7b scsi: qla2xxx: Wait for io return on terminate rport
| * 6ea2a408d3 tracing/probes: Fix not to count error code to total length
| * 7060e5aac6 tracing: Fix null pointer dereference in tracing_err_log_open()
| * 81fb8a58d4 xtensa: ISS: fix call to split_if_spec
| * 5e68f1f3a2 ring-buffer: Fix deadloop issue on reading trace_pipe
| * 1e760b2d18 net: ena: fix shift-out-of-bounds in exponential backoff
| * 1f2a8f0835 samples: ftrace: Save required argument registers in sample trampolines
| * 1576f0df7b tracing/histograms: Add histograms to hist_vars if they have referenced variables
| * 07edd294b1 s390/decompressor: fix misaligned symbol build error
| * 5f4a1111ad Revert "8250: add support for ASIX devices with a FIFO bug"
| * 7f2f0e6ec5 meson saradc: fix clock divider mask length
| * 790e4e82c5 xhci: Show ZHAOXIN xHCI root hub speed correctly
| * c52e04c58d xhci: Fix TRB prefetch issue of ZHAOXIN hosts
| * b56a07c2a5 xhci: Fix resume issue of some ZHAOXIN hosts
| * 8e807eadf0 ceph: don't let check_caps skip sending responses for revoke msgs
| * c04ed61ebf firmware: stratix10-svc: Fix a potential resource leak in svc_create_memory_pool()
| * 1962717c46 tty: serial: samsung_tty: Fix a memory leak in s3c24xx_serial_getclk() when iterating clk
| * a49e5a0512 tty: serial: samsung_tty: Fix a memory leak in s3c24xx_serial_getclk() in case of error
| * 08673739ed serial: atmel: don't enable IRQs prematurely
| * 4016d36fec drm/amd/display: Correct `DMUB_FW_VERSION` macro
| * d89bd2ecd3 drm/rockchip: vop: Leave vblank enabled in self-refresh
| * b9ec9372a4 drm/atomic: Allow vblank-enabled + self-refresh "disable"
| * 23d5004ee7 fs: dlm: return positive pid value for F_GETLK
| * 5e9aff5b10 md/raid0: add discard support for the 'original' layout
| * 8e3c777640 misc: pci_endpoint_test: Re-init completion for every test
| * cdf9a7e2cd misc: pci_endpoint_test: Free IRQs before removing the device
| * 8c90c466e3 PCI: rockchip: Set address alignment for endpoint mode
| * f1986416cf PCI: rockchip: Use u32 variable to access 32-bit registers
| * 36eb130312 PCI: rockchip: Fix legacy IRQ generation for RK3399 PCIe endpoint core
| * c417a4c7de PCI: rockchip: Add poll and timeout to wait for PHY PLLs to be locked
| * ddda61419a PCI: rockchip: Write PCI Device ID to correct register
| * bec3e0f7f2 PCI: rockchip: Assert PCI Configuration Enable bit after probe
| * 48e11e7c81 PCI: qcom: Disable write access to read only registers for IP v2.3.3
| * aca71b004a PCI: Add function 1 DMA alias quirk for Marvell 88SE9235
| * d3bab5de91 PCI/PM: Avoid putting EloPOS E2/S2/H2 PCIe Ports in D3cold
| * 5a89a5cc81 hwrng: imx-rngc - fix the timeout for init and self check
| * 47b7eaae08 jfs: jfs_dmap: Validate db_l2nbperpage while mounting
| * 84293af545 ext4: only update i_reserved_data_blocks on successful block allocation
| * 0a5d12e710 ext4: fix wrong unit use in ext4_mb_new_blocks
| * 514220246a ext4: get block from bh in ext4_free_blocks for fast commit replay
| * d054422eb6 ext4: fix wrong unit use in ext4_mb_clear_bb
| * be99faf0c4 ext4: Fix reusing stale buffer heads from last failed mounting
| * 8fbe951d65 MIPS: Loongson: Fix cpu_probe_loongson() again
| * 8c723eef98 erofs: fix compact 4B support for 16k block size
| * 3bd4d316b1 misc: fastrpc: Create fastrpc scalar with correct buffer count
| * 3d1d037f27 powerpc: Fail build if using recordmcount with binutils v2.37
| * fe1ae1fb50 net: bcmgenet: Ensure MDIO unregistration has clocks enabled
| * 21d5d3eb36 mtd: rawnand: meson: fix unaligned DMA buffers handling
| * 9ff7fcb3a2 tpm: tpm_vtpm_proxy: fix a race condition in /dev/vtpmx creation
| * 59490249c2 pinctrl: amd: Only use special debounce behavior for GPIO 0
| * 4f77a87ce9 pinctrl: amd: Detect internal GPIO0 debounce handling
| * 3674b9c056 pinctrl: amd: Fix mistake in handling clearing pins at startup
| * b39ef5b52f f2fs: fix to avoid NULL pointer dereference f2fs_write_end_io()
| * f4ff379812 nvme-pci: fix DMA direction of unmapping integrity data
| * 8359ee85fd net/sched: sch_qfq: account for stab overhead in qfq_enqueue
| * 5bef780e06 net/sched: sch_qfq: refactor parsing of netlink parameters
| * 1d7ae38daa net/sched: make psched_mtu() RTNL-less safe
| * d5ca61b764 netdevsim: fix uninitialized data in nsim_dev_trap_fa_cookie_write()
| * 9b69cdb6e5 net/sched: flower: Ensure both minimum and maximum ports are specified
| * 934c85b8ec wifi: airo: avoid uninitialized warning in airo_get_rate()
| * 4511499138 erofs: avoid infinite loop in z_erofs_do_read_page() when reading beyond EOF
| * bbc500ff3f riscv, bpf: Fix inconsistent JIT image generation
| * a976adc3bc bpf, riscv: Support riscv jit to provide bpf_line_info
| * eb3d1d84f3 riscv: bpf: Avoid breaking W^X
| * 7c61643798 riscv: bpf: Move bpf_jit_alloc_exec() and bpf_jit_free_exec() to core
| * 83579a6261 igc: Fix inserting of empty frame for launchtime
| * c48e8ee81a igc: Fix launchtime before start of cycle
| * cdf5b9af92 platform/x86: wmi: Break possible infinite loop when parsing GUID
| * 7157ee0de5 platform/x86: wmi: move variables
| * 4bb2bb69bd platform/x86: wmi: use guid_t and guid_equal()
| * 88dfb592d2 platform/x86: wmi: remove unnecessary argument
| * 2ad31ce40e ipv6/addrconf: fix a potential refcount underflow for idev
| * 8271145523 NTB: ntb_tool: Add check for devm_kcalloc
| * 41c6d8ff71 NTB: ntb_transport: fix possible memory leak while device_register() fails
| * 03cfa06534 ntb: intel: Fix error handling in intel_ntb_pci_driver_init()
| * 23e09f0a86 NTB: amd: Fix error handling in amd_ntb_pci_driver_init()
| * 0bb2683b0c ntb: idt: Fix error handling in idt_pci_driver_init()
| * 3e8fed805c udp6: fix udp6_ehashfn() typo
| * d30ddd7ff1 icmp6: Fix null-ptr-deref of ip6_null_entry->rt6i_idev in icmp6_dev().
| * bc3ab5d2ab net: prevent skb corruption on frag list segmentation
| * cddd04f341 net: bgmac: postpone turning IRQs off to avoid SoC hangs
| * f8cc4fd99a ionic: remove WARN_ON to prevent panic_on_warn
| * 9085429821 gve: Set default duplex configuration to full
| * 80e0e8d5f5 net/sched: cls_fw: Fix improper refcount update leads to use-after-free
| * d341f24612 net: mvneta: fix txq_map in case of txq_number==1
| * c175603d84 scsi: qla2xxx: Fix error code in qla2x00_start_sp()
| * b687b78361 igc: set TP bit in 'supported' and 'advertising' fields of ethtool_link_ksettings
| * 30c281a77f net/mlx5e: Check for NOT_READY flag state after locking
| * de6e6b0797 net/mlx5e: fix double free in mlx5e_destroy_flow_table
| * 3d4bba694a igc: Remove delay during TX ring configuration
| * 2a587b71c5 drm/panel: simple: Add Powertip PH800480T013 drm_display_mode flags
| * 547ab8ea86 drm/panel: simple: Add connector_type for innolux_at043tn24
| * 13c353dc5c workqueue: clean up WORK_* constant types, clarify masking
| * fc359e5b45 net: lan743x: Don't sleep in atomic context
| * dc4a25fa75 io_uring: add reschedule point to handle_tw_list()
| * 297883bbca io_uring: Use io_schedule* in cqring wait
| * bb2f7e4bfe block/partition: fix signedness issue for Amiga partitions
| * 4f91de9a81 rcu-tasks: Simplify trc_read_check_handler() atomic operations
| * 3a64cd01cd rcu-tasks: Mark ->trc_reader_special.b.need_qs data races
| * 058f077d09 rcu-tasks: Mark ->trc_reader_nesting data races
| * 83be9fd784 tty: serial: fsl_lpuart: add earlycon for imx8ulp platform
| * 999f3b6104 wireguard: netlink: send staged packets when setting initial private key
| * 1b71070405 wireguard: queueing: use saner cpu selection wrapping
| * ea21392224 netfilter: nf_tables: prevent OOB access in nft_byteorder_eval
| * 4ae2e50133 netfilter: nf_tables: do not ignore genmask when looking up chain by id
| * 8289d422f5 netfilter: conntrack: Avoid nf_ct_helper_hash uses after free
| * be6478f5cc netfilter: nf_tables: fix scheduling-while-atomic splat
| * a07e415be3 netfilter: nf_tables: unbind non-anonymous set if rule construction fails
| * a136b7942a netfilter: nf_tables: drop map element references from preparation phase
| * 21cf0d66ef netfilter: nftables: rename set element data activation/deactivation functions
| * 237f37f7b9 netfilter: nf_tables: reject unbound chain set before commit phase
| * 0205dd16ed netfilter: nf_tables: reject unbound anonymous set before commit phase
| * 34d09fe49f netfilter: nf_tables: add NFT_TRANS_PREPARE_ERROR to deal with bound set/chain
| * d53c295c1f netfilter: nf_tables: fix chain binding transaction logic
| * 8180fc2fad netfilter: nf_tables: incorrect error path handling with NFT_MSG_NEWRULE
| * e546e6ebb1 netfilter: nf_tables: add rescheduling points during loop detection walks
| * 3f51f1157f netfilter: nf_tables: use net_generic infra for transaction data
| * 01248dd651 sh: pgtable-3level: Fix cast to pointer from integer of different size
| * 87410743b5 block: add overflow checks for Amiga partition support
| * f0aec6c403 selftests/bpf: Add verifier test for PTR_TO_MEM spill
| * 88bffb61bc tpm, tpm_tis: Claim locality in interrupt handler
| * 5bf73af8b3 fanotify: disallow mount/sb marks on kernel internal pseudo fs
| * 5cb46b80ec fs: no need to check source
| * 66a0647cdc leds: trigger: netdev: Recheck NETDEV_LED_MODE_LINKUP on dev rename
| * 5d6fbb6245 ARM: orion5x: fix d2net gpio initialization
| * 9b0f7940e2 ASoC: mediatek: mt8173: Fix snd_soc_component_initialize error path
| * 1dac8584be ASoC: mediatek: mt8173: Fix irq error path
| * 6819bb0b85 btrfs: fix race when deleting quota root from the dirty cow roots list
| * a3fbd156bd btrfs: add handling for RAID1C23/DUP to btrfs_reduce_alloc_profile
| * 59efb86711 fs: Lock moved directories
| * c5b5e72df1 fs: Establish locking order for unrelated directories
| * 4b03f503b7 Revert "f2fs: fix potential corruption when moving a directory"
| * 2b563acd2d ext4: Remove ext4 locking of moved directory
| * 5e7d18a52c fs: avoid empty option when generating legacy mount string
| * 988a5d7911 jffs2: reduce stack usage in jffs2_build_xattr_subsystem()
| * 5fada37511 shmem: use ramfs_kill_sb() for kill_sb method of ramfs-based tmpfs
| * 79bef379d5 autofs: use flexible array in ioctl structure
| * 8bf91a8d48 integrity: Fix possible multiple allocation in integrity_inode_get()
| * 9658a03f80 um: Use HOST_DIR for mrproper
| * a4405f6ee0 bcache: Fix __bch_btree_node_alloc to make the failure behavior consistent
| * db9439cef0 bcache: Remove unnecessary NULL point check in node allocations
| * bcb295778a bcache: fixup btree_cache_wait list damage
| * dc3287206a mmc: sdhci: fix DMA configure compatibility issue when 64bit DMA mode is used.
| * 191628e2d9 mmc: mmci: Set PROBE_PREFER_ASYNCHRONOUS
| * 02c8c2b5f6 mmc: core: disable TRIM on Micron MTFC4GACAJCN-1M
| * 6f9708e5c1 mmc: core: disable TRIM on Kingston EMMC04G-M627
| * 28e649dc99 io_uring: wait interruptibly for request completions on exit
| * 8482ac2e5a NFSD: add encoding of op_recall flag for write delegation
| * 8d36cb6d1a i2c: qup: Add missing unwind goto in qup_i2c_probe()
| * e41a8e4615 ALSA: jack: Fix mutex call in snd_jack_report()
| * e71714ad24 i2c: xiic: Don't try to handle more interrupt events after error
| * b6eefa7a27 i2c: xiic: Defer xiic_wakeup() and __xiic_start_xfer() in xiic_process()
| * 023bd9dc41 apparmor: fix missing error check for rhashtable_insert_fast
| * d1c946552a sh: dma: Fix DMA channel offset calculation
| * 37750131d2 s390/qeth: Fix vipa deletion
| * 9f5548e421 net: dsa: tag_sja1105: fix MAC DA patching from meta frames
| * 2758fb81bb pptp: Fix fib lookup calls.
| * 0b08ff091f net/sched: act_pedit: Add size check for TCA_PEDIT_PARMS_EX
| * 2434a6715f xsk: Honor SO_BINDTODEVICE on bind
| * b785ba0acc tcp: annotate data races in __tcp_oow_rate_limited()
| * 73f512bedf net: bridge: keep ports without IFF_UNICAST_FLT in BR_PROMISC mode
| * 9a9d468fdc powerpc: allow PPC_EARLY_DEBUG_CPM only when SERIAL_CPM=y
| * f970b05c9b octeontx2-af: Fix mapping for NIX block from CGX connection
| * 5ded9e8aa5 f2fs: fix error path handling in truncate_dnode()
| * 358145cc37 mailbox: ti-msgmgr: Fill non-message tx data fields with 0x0
| * 32b9c8f789 spi: bcm-qspi: return error if neither hif_mspi nor mspi is available
| * 1f3643f9cf net: dsa: vsc73xx: fix MTU configuration
| * c377451012 Add MODULE_FIRMWARE() for FIRMWARE_TG357766.
| * 6d2243ab78 sctp: fix potential deadlock on &net->sctp.addr_wq_lock
| * 620993d5ee media: cec: i2c: ch7322: also select REGMAP
| * f733a7bfe8 rtc: st-lpc: Release some resources in st_rtc_probe() in case of error
| * aa70e5dd72 pwm: sysfs: Do not apply state to already disabled PWMs
| * 8a0413be8a pwm: imx-tpm: force 'real_period' to be zero in suspend
| * e4845cdea7 phy: tegra: xusb: check return value of devm_kzalloc()
| * 442e1a98bd mfd: stmpe: Only disable the regulators if they are enabled
| * 724448d602 KVM: s390: vsie: fix the length of APCB bitmap
| * c5e2f6f2bb mfd: stmfx: Nullify stmfx->vdd in case of error
| * 30ead8b9bf mfd: stmfx: Fix error path in stmfx_chip_init
| * 4d24051473 test_firmware: return ENOMEM instead of ENOSPC on failed memory allocation
| * 5b31ac1d6d serial: 8250_omap: Use force_suspend and resume for system suspend
| * 8e00ae25a3 Revert "usb: common: usb-conn-gpio: Set last role to unknown before initial detection"
| * a81e1f22e1 mfd: intel-lpss: Add missing check for platform_get_resource
| * 1dc07edc01 usb: dwc3-meson-g12a: Fix an error handling path in dwc3_meson_g12a_probe()
| * 7ade555ac5 usb: common: usb-conn-gpio: Set last role to unknown before initial detection
| * 0e9e127835 usb: dwc3: qcom: Fix an error handling path in dwc3_qcom_probe()
| * a617145208 usb: dwc3: qcom: Release the correct resources in dwc3_qcom_remove()
| * 96898fb476 KVM: s390: fix KVM_S390_GET_CMMA_BITS for GFNs in memslot holes
| * 4e8e838fce media: atomisp: gmin_platform: fix out_len in gmin_get_config_dsm_var()
| * b754ea60e6 media: venus: helpers: Fix ALIGN() of non power of two
| * 02b2266023 mfd: rt5033: Drop rt5033-battery sub-device
| * e52019c095 coresight: Fix loss of connection info when a module is unloaded
| * 018eddcb6b kernfs: fix missing kernfs_idr_lock to remove an ID from the IDR
| * a59f64a835 serial: 8250: lock port for UART_IER access in omap8250_irq()
| * 8d65d0a2bf serial: 8250: lock port for stop_rx() in omap8250_irq()
| * d66ddb61fa usb: hide unused usbfs_notify_suspend/resume functions
| * 56901de563 usb: phy: phy-tahvo: fix memory leak in tahvo_usb_probe()
| * 6538e5d9f7 extcon: Fix kernel doc of property capability fields to avoid warnings
| * dac7d7efcb extcon: Fix kernel doc of property fields to avoid warnings
| * 2788a3553f usb: gadget: u_serial: Add null pointer check in gserial_suspend
| * 74f8606ddf usb: dwc3: qcom: Fix potential memory leak
| * bdce16c1e6 clk: qcom: ipq6018: fix networking resets
| * ee3f494cfc clk: qcom: reset: support resetting multiple bits
| * 35fd1a213f clk: qcom: reset: Allow specifying custom reset delay
| * d87ef4e857 media: usb: siano: Fix warning due to null work_func_t function pointer
| * 300388887c media: videodev2.h: Fix struct v4l2_input tuner index comment
| * 5f3f4aa673 media: usb: Check az6007_read() return value
| * 32809afb60 clk: qcom: gcc-ipq6018: Use floor ops for sdcc clocks
| * bb81ca33ac serial: 8250: omap: Fix freeing of resources on failed register
| * ed68e8e22e sh: j2: Use ioremap() to translate device tree address into kernel memory
| * a7890637b3 w1: fix loop in w1_fini()
| * a27aeae714 w1: w1_therm: fix locking behavior in convert_t
| * cd5ec3ee52 SUNRPC: Fix UAF in svc_tcp_listen_data_ready()
| * e4a9b3333e block: change all __u32 annotations to __be32 in affs_hardblocks.h
| * 54da6c4c14 block: fix signed int overflow in Amiga partition support
| * b6a107c520 phy: tegra: xusb: Clear the driver reference in usb-phy dev
| * fac7be49f1 usb: dwc3: gadget: Propagate core init errors to UDC during pullup
| * 8b0a55b592 USB: serial: option: add LARA-R6 01B PIDs
| * 810e401b34 io_uring: ensure IOPOLL locks around deferred work
| * cd5837564f hwrng: st - keep clock enabled while hwrng is registered
| * 557e528255 dax: Introduce alloc_dev_dax_id()
| * 94a85474f5 dax: Fix dax_mapping_release() use after free
| * 7c9f5a14d9 NFSv4.1: freeze the session table upon receiving NFS4ERR_BADSESSION
| * bab0bf5677 ARC: define ASM_NL and __ALIGN(_STR) outside #ifdef __ASSEMBLY__ guard
| * cb0cdca5c9 modpost: fix off by one in is_executable_section()
| * f0350516b9 crypto: marvell/cesa - Fix type mismatch warning
| * b540694455 modpost: fix section mismatch message for R_ARM_{PC24,CALL,JUMP24}
| * 88978ef7fd modpost: fix section mismatch message for R_ARM_ABS32
| * 31195ee328 crypto: nx - fix build warnings when DEBUG_FS is not enabled
| * 77471e4912 hwrng: virtio - Fix race on data_avail and actual data
| * e8f51401d6 hwrng: virtio - always add a pending request
| * ffc5ce9c27 hwrng: virtio - don't waste entropy
| * d13ea82bfe hwrng: virtio - don't wait on cleanup
| * 5f23dae018 hwrng: virtio - add an internal buffer
| * aba192bb31 powerpc/mm/dax: Fix the condition when checking if altmap vmemap can cross-boundary
| * 7afd0de0cc powerpc/book3s64/mm: Fix DirectMap stats in /proc/meminfo
| * 7289ca7a51 mm: rename p4d_page_vaddr to p4d_pgtable and make it return pud_t *
| * bfad110188 mm: rename pud_page_vaddr to pud_pgtable and make it return pmd_t *
| * 07c19c0ad4 powerpc/powernv/sriov: perform null check on iov before dereferencing iov
| * f3c7b95c99 pinctrl: at91-pio4: check return value of devm_kasprintf()
| * b7a38fc3f3 perf dwarf-aux: Fix off-by-one in die_get_varname()
| * 75a3cb1e23 perf script: Fix allocation of evsel->priv related to per-event dump files
| * 647c6d35cc perf script: Fixup 'struct evsel_script' method prefix
| * 958acb479e kcsan: Don't expect 64 bits atomic builtins from 32 bits architectures
| * 5533f0eb0a pinctrl: cherryview: Return correct value if pin in push-pull mode
| * 4b63caf86e perf bench: Add missing setlocale() call to allow usage of %'d style formatting
| * 345ee85216 perf bench: Use unbuffered output when pipe/tee'ing to a file
| * f0d2310f6b PCI: Add pci_clear_master() stub for non-CONFIG_PCI
| * b65fe59b2d PCI: ftpci100: Release the clock resources
| * cb389e8edf PCI: pciehp: Cancel bringup sequence if card is not present
| * b9895a4c95 scsi: 3w-xxxx: Add error handling for initialization failure in tw_probe()
| * 7badf4d6f4 PCI/ASPM: Disable ASPM on MFD function removal to avoid use-after-free
| * d27238fc83 pinctrl: bcm2835: Handle gpiochip_add_pin_range() errors
| * ac64019e4d scsi: qedf: Fix NULL dereference in error handling
| * 8e9907e921 PCI: cadence: Fix Gen2 Link Retraining process
| * 07be8e60f2 ASoC: imx-audmix: check return value of devm_kasprintf()
| * 714ba10a6d ovl: update of dentry revalidate flags after copy up
| * 47f4d875aa drivers: meson: secure-pwrc: always enable DMA domain
| * 5f149d0538 clk: ti: clkctrl: check return value of kasprintf()
| * fd9324fa4d clk: keystone: sci-clk: check return value of kasprintf()
| * 0b754f9cfd clk: si5341: free unused memory on probe failure
| * dc8d0178d5 clk: si5341: check return value of {devm_}kasprintf()
| * dc3eef6480 clk: si5341: return error if one synth clock registration fails
| * 0401139800 clk: si5341: Add sysfs properties to allow checking/resetting device faults
| * fc813d0573 clk: si5341: Allow different output VDD_SEL values
| * f64fcd3acf clk: cdce925: check return value of kasprintf()
| * 866d4340c6 clk: vc5: check memory returned by kasprintf()
| * c67a55f7cc drm/msm/dp: Free resources after unregistering them
| * c3b63584d8 drm/msm/dpu: do not enable color-management if DSPPs are not available
| * f923a58221 ALSA: ac97: Fix possible NULL dereference in snd_ac97_mixer
| * 404e9f741a clk: tegra: tegra124-emc: Fix potential memory leak
| * cb047c13bb clk: imx: clk-imx8mp: improve error handling in imx8mp_clocks_probe()
| * 294321349b clk: imx: clk-imx8mn: fix memory leak in imx8mn_clocks_probe
| * e749bc5a90 RDMA/bnxt_re: Avoid calling wake_up threads from spin_lock context
| * 9341501e2f RDMA/bnxt_re: wraparound mbox producer index
| * 968e27fd03 amdgpu: validate offset_in_bo of drm_amdgpu_gem_va
| * e070120e6d drm/radeon: fix possible division-by-zero errors
| * a77b80825b drm/amdkfd: Fix potential deallocation of previously deallocated memory.
| * 245aa7c023 ARM: dts: BCM5301X: fix duplex-full => full-duplex
| * 7e2edb84fe hwmon: (pmbus/adm1275) Fix problems with temperature monitoring on ADM1272
| * 580e9b987b hwmon: (adm1275) Allow setting sample averaging
| * a3c5d148b7 hwmon: (adm1275) enable adm1272 temperature reporting
| * 4610efa404 hwmon: (gsc-hwmon) fix fan pwm temperature scaling
| * 6e12311dce ARM: dts: stm32: fix i2s endpoint format property for stm32mp15xx-dkx
| * badeb7fe24 ARM: dts: stm32: Fix audio routing on STM32MP15xx DHCOM PDK2
| * 17cd31487d arm64: dts: ti: k3-j7200: Fix physical address of pin
| * ce6e0434e5 fbdev: omapfb: lcd_mipid: Fix an error handling path in mipid_spi_probe()
| * 34e1e2f3cf arm64: dts: renesas: ulcb-kf: Remove flow control for SCIF1
| * 6817914c67 ARM: dts: iwg20d-q7-common: Fix backlight pwm specifier
| * 220f86cc19 RDMA/hns: Fix hns_roce_table_get return value
| * 9196f44239 RDMA/hns: Clean the hardware related code for HEM
| * aa495b927f RDMA/hns: Use refcount_t APIs for HEM
| * de1049dd18 RDMA/hns: Fix coding style issues
| * cc1b04b699 RDMA: Remove uverbs_ex_cmd_mask values that are linked to functions
| * 7dcb9ea3ee IB/hfi1: Fix wrong mmu_node used for user SDMA packet after invalidate
| * 6cf8f3d690 IB/hfi1: Fix sdma.h tx->num_descs off-by-one errors
| * 2d38866a99 IB/hfi1: Use bitmap_zalloc() when applicable
| * 42b6865bf5 soc/fsl/qe: fix usb.c build errors
| * 9c14d14066 ARM: dts: meson8: correct uart_B and uart_C clock references
| * 684a2f180e ASoC: es8316: Do not set rate constraints for unsupported MCLKs
| * d883e16c7f ASoC: es8316: Increment max value for ALC Capture Target Volume control
| * 105af71974 memory: brcmstb_dpfe: fix testing array offset after use
| * ddc74d6ea3 ARM: dts: stm32: Shorten the AV96 HDMI sound card name
| * 392ee3cc99 arm64: dts: qcom: apq8096: fix fixed regulator name property
| * c85a076215 ARM: omap2: fix missing tick_broadcast() prototype
| * aec18da741 ARM: ep93xx: fix missing-prototype warnings
| * b574cd7e4d drm/panel: simple: fix active size for Ampire AM-480272H3TMQW-T01H
| * 02d8b008ff arm64: dts: qcom: msm8996: correct camss unit address
| * 6d103b1cc1 arm64: dts: qcom: msm8994: correct SPMI unit address
| * 160ac75a5a arm64: dts: qcom: msm8916: correct camss unit address
| * e8b131d216 ARM: dts: gta04: Move model property out of pinctrl node
| * b0b180a712 RDMA/bnxt_re: Fix to remove an unnecessary log
| * 446092f136 RDMA/bnxt_re: Remove a redundant check inside bnxt_re_update_gid
| * b54b26ac50 RDMA/bnxt_re: Use unique names while registering interrupts
| * 11bd3882c3 RDMA/bnxt_re: Fix to remove unnecessary return labels
| * 7080ef46ad RDMA/bnxt_re: Disable/kill tasklet only if it is enabled
| * 2a9895df80 arm64: dts: microchip: sparx5: do not use PSCI on reference boards
| * 726fdf47c1 bus: ti-sysc: Fix dispc quirk masking bool variables
| * 8ee24ddf45 ARM: dts: stm32: Move ethernet MAC EEPROM from SoM to carrier boards
| * 617a4da09d drm/panel: sharp-ls043t1le01: adjust mode settings
| * 3c87c98225 drm: sun4i_tcon: use devm_clk_get_enabled in `sun4i_tcon_init_clocks`
| * 39305592dc Input: adxl34x - do not hardcode interrupt trigger type
| * e629efc6d6 ARM: dts: meson8b: correct uart_B and uart_C clock references
| * bd46ade714 ARM: dts: BCM5301X: Drop "clock-names" from the SPI node
| * 20ecae1af5 drm/vram-helper: fix function names in vram helper doc
| * 46a34e1459 drm/bridge: tc358768: fix THS_TRAILCNT computation
| * f2f7d0a4a2 drm/bridge: tc358768: fix TXTAGOCNT computation
| * 8e47328fe0 drm/bridge: tc358768: fix THS_ZEROCNT computation
| * 6b9450723b drm/bridge: tc358768: fix TCLK_TRAILCNT computation
| * 33abcfbb17 drm/bridge: tc358768: Add atomic_get_input_bus_fmts() implementation
| * 43b2d11ccf drm/bridge: tc358768: fix TCLK_ZEROCNT computation
| * 46b7417189 drm/bridge: tc358768: fix PLL target frequency
| * 825b00c685 drm/bridge: tc358768: fix PLL parameters computation
| * 1b4f23fdf2 drm/bridge: tc358768: always enable HS video mode
| * 4e0fd4f54b Input: drv260x - sleep between polling GO bit
| * 2780d58448 drm/amd/display: Explicitly specify update type per plane info change
| * b2213fc60b radeon: avoid double free in ci_dpm_init()
| * 472a615e66 netlink: Add __sock_i_ino() for __netlink_diag_dump().
| * d10b380369 ipvlan: Fix return value of ipvlan_queue_xmit()
| * 5215c00968 netfilter: nf_conntrack_sip: fix the ct_sip_parse_numerical_param() return value.
| * 9bdcda7aba netfilter: conntrack: dccp: copy entire header to stack buffer, not just basic one
| * 36e07e8acf lib/ts_bm: reset initial match offset for every block of text
| * 96f2c6f272 net: nfc: Fix use-after-free caused by nfc_llcp_find_local
| * a3a1550c4d nfc: llcp: simplify llcp_sock_connect() error paths
| * cb1aa7cc56 sfc: fix crash when reading stats while NIC is resetting
| * 6ccfec84f0 net: axienet: Move reset before 64-bit DMA detection
| * bccc7ace12 gtp: Fix use-after-free in __gtp_encap_destroy().
| * 4d9cd4b330 selftests: rtnetlink: remove netdevsim device after ipsec offload test
| * 44db85c6e1 netlink: do not hard code device address lenth in fdb dumps
| * cde7b90e05 netlink: fix potential deadlock in netlink_set_err()
| * 0c9e48428f net: stmmac: fix double serdes powerdown
| * 1ba91ffa1a igc: Fix race condition in PTP tx code
| * 660d4e73ef wifi: ath9k: convert msecs to jiffies where needed
| * 150ca0768b wifi: cfg80211: rewrite merging of inherited elements
| * 4e321c18ef wifi: iwlwifi: pull from TXQs with softirqs disabled
| * 2715617c2a rtnetlink: extend RTEXT_FILTER_SKIP_STATS to IFLA_VF_INFO
| * 581401cd3c wifi: ath9k: Fix possible stall on ath9k_txq_list_has_key()
| * 6b22c2c649 memstick r592: make memstick_debug_get_tpc_name() static
| * 6cb477e722 kexec: fix a memory leak in crash_shrink_memory()
| * fdb07728d8 watchdog/perf: more properly prevent false positives with turbo modes
| * ac23d7f414 watchdog/perf: define dummy watchdog_update_hrtimer_threshold() on correct config
| * 22da8363e3 wifi: rsi: Do not set MMC_PM_KEEP_POWER in shutdown
| * b2aeb97fd4 wifi: rsi: Do not configure WoWlan in shutdown hook if not enabled
| * 1044187e72 wifi: ath9k: don't allow to overwrite ENDPOINT0 attributes
| * c10c6ea9b3 wifi: ray_cs: Fix an error handling path in ray_probe()
| * 8825991838 wifi: ray_cs: Drop useless status variable in parse_addr()
| * a66e3fd380 wifi: ray_cs: Utilize strnlen() in parse_addr()
| * 18d71562f7 wifi: wl3501_cs: Fix an error handling path in wl3501_probe()
| * b6f793de61 wl3501_cs: use eth_hw_addr_set()
| * cbd44a9e1c net: create netdev->dev_addr assignment helpers
| * 13cf0e3894 wl3501_cs: Fix misspelling and provide missing documentation
| * 5512db9bd4 wifi: atmel: Fix an error handling path in atmel_probe()
| * 86ebbcbdc7 wifi: orinoco: Fix an error handling path in orinoco_cs_probe()
| * fb7d78feb5 wifi: orinoco: Fix an error handling path in spectrum_cs_probe()
| * 8782dc2504 regulator: core: Streamline debugfs operations
| * 92bcd84941 regulator: core: Fix more error checking for debugfs_create_dir()
| * 78f390aa0e bpftool: JIT limited misreported as negative value on aarch64
| * 107e849f3c nfc: llcp: fix possible use of uninitialized variable in nfc_llcp_send_connect()
| * 0be9de2ea0 nfc: constify several pointers to u8, char and sk_buff
| * ef7fe1b5c4 libbpf: fix offsetof() and container_of() to work with CO-RE
| * b190ced50a sctp: add bpf_bypass_getsockopt proto callback
| * 08f61a3491 bpf: Remove extra lock_sock for TCP_ZEROCOPY_RECEIVE
| * c62e2ac02e wifi: mwifiex: Fix the size of a memory allocation in mwifiex_ret_802_11_scan()
| * 3ae910a375 wifi: wilc1000: fix for absent RSN capabilities WFA testcase
| * 795ef55030 spi: spi-geni-qcom: Correct CS_TOGGLE bit in SPI_TRANS_CFG
| * bd3e880dce samples/bpf: Fix buffer overflow in tcp_basertt
| * 250efb4d3f wifi: ath9k: avoid referencing uninit memory in ath9k_wmi_ctrl_rx
| * 0f3f41b475 wifi: ath9k: fix AR9003 mac hardware hang check register offset calculation
| * cbd0f41a53 igc: Enable and fix RX hash usage by netstack
| * a14cb30726 pstore/ram: Add check for kstrdup
| * 628709a057 ima: Fix build warnings
| * 16ec59c03a evm: Complete description of evm_inode_setattr()
| * cba85e1cb7 x86/mm: Fix __swp_entry_to_pte() for Xen PV guests
| * 365f546de5 perf/ibs: Fix interface via core pmu events
| * 604d6a5ff7 rcu/rcuscale: Stop kfree_scale_thread thread(s) after unloading rcuscale
| * d414e24d15 rcu/rcuscale: Move rcu_scale_*() after kfree_scale_cleanup()
| * ecc5e6dbc2 rcuscale: Move shutdown from wait_event() to wait_event_idle()
| * b62c816bdb rcuscale: Always log error message
| * 8cd9917c13 rcuscale: Console output claims too few grace periods
| * 456f783b83 thermal/drivers/sun8i: Fix some error handling paths in sun8i_ths_probe()
| * bacc49b2d5 cpufreq: intel_pstate: Fix energy_performance_preference for passive
| * a8bfe52755 ARM: 9303/1: kprobes: avoid missing-declaration warnings
| * a50b75c13d powercap: RAPL: Fix CONFIG_IOSF_MBI dependency
| * 23f6efd226 perf/arm-cmn: Fix DTC reset
| * b69868d50d PM: domains: fix integer overflow issues in genpd_parse_state()
| * ebdff09865 clocksource/drivers/cadence-ttc: Fix memory leak in ttc_timer_probe
| * a2f83a4c7c tracing/timer: Add missing hrtimer modes to decode_hrtimer_mode().
| * f1be1ed32d posix-timers: Prevent RT livelock in itimer_delete()
| * b315d57da4 irqchip/jcore-aic: Fix missing allocation of IRQ descriptors
| * 495cee0e14 irqchip/jcore-aic: Kill use of irq_create_strict_mappings()
| * 9d1cccdad0 md/raid10: fix io loss while replacement replace rdev
| * 2990e2ece1 md/raid10: fix null-ptr-deref of mreplace in raid10_sync_request
| * b1d8f38310 md/raid10: fix wrong setting of max_corr_read_errors
| * b3a0bc4a01 md/raid10: fix overflow of md/safe_mode_delay
| * 39fa14e824 md/raid10: check slab-out-of-bounds in md_bitmap_get_counter
| * 8563b58a43 blk-iocost: use spin_lock_irqsave in adjust_inuse_and_calc_cost
| * 3db97cc79b x86/resctrl: Only show tasks' pid in current pid namespace
| * 1a82005f3f fs: pipe: reveal missing function protoypes
| * f70407e8e0 nubus: Partially revert proc_create_single_data() conversion
| * 0336c8f072 drm/amdgpu: Validate VM ioctl flags.
| * c484b65f93 scripts/tags.sh: Resolve gtags empty index generation
| * 649104c834 Revert "thermal/drivers/mediatek: Use devm_of_iomap to avoid resource leak in mtk_thermal_probe"
| * 02a4c4e225 HID: logitech-hidpp: add HIDPP_QUIRK_DELAYED_INIT for the T651.
| * 9598a647ec HID: wacom: Use ktime_t rather than int when dealing with timestamps
| * 2bf70b88cc fbdev: imsttfb: Fix use after free bug in imsttfb_probe
| * 5b813734a0 video: imsttfb: check for ioremap() failures
| * 02fbf62df9 can: isotp: isotp_sendmsg(): fix return error fix on TX path
| * 8667f71131 x86/smp: Use dedicated cache-line for mwait_play_dead()
| * 1d0fe3fb5d media: atomisp: fix "variable dereferenced before check 'asd'"
* | 9710ae86ef Merge branch 'android12-5.10' into branch 'android12-5.10-lts'
* | db023c4bb0 Merge 5.10.187 into android12-5.10-lts
|\|
| * 140d69b4e4 Linux 5.10.187
| * 93df00f9d4 x86/cpu/amd: Add a Zenbleed fix
| * 191b8f9b0e x86/cpu/amd: Move the errata checking functionality up
| * 113ce5ed59 x86/microcode/AMD: Load late on both threads too
* | 44da38b39c ANDROID: GKI: fix up sysctl_vals ABI change.
* | c9606079a5 Revert "gpio: Allow per-parent interrupt data"
* | fc3985cbee Revert "gpiolib: Fix GPIO chip IRQ initialization restriction"
* | 02a1b32243 Merge 5.10.186 into android12-5.10-lts
|/
* 381518b4a9 Linux 5.10.186
* 29917a20be bpf/btf: Accept function names that contain dots
* 8b7454dd98 netfilter: nf_tables: hold mutex on netns pre_exit path
* 9e8d927cfa netfilter: nf_tables: validate registers coming from userspace.
* f19a4818a9 netfilter: nftables: statify nft_parse_register()
* 42997367cb i2c: imx-lpi2c: fix type char overflow issue when calculating the clock cycle
* 5a257f3553 x86/apic: Fix kernel panic when booting with intremap=off and x2apic_phys
* d8efc77f23 drm/radeon: fix race condition UAF in radeon_gem_set_domain_ioctl
* 485fe16508 drm/exynos: fix race condition UAF in exynos_g2d_exec_ioctl
* 0b0fdc43b2 drm/exynos: vidi: fix a wrong error return
* 32134e7a0f ARM: dts: Fix erroneous ADS touchscreen polarities
* 79cf5657be s390/purgatory: disable branch profiling
* a819de62ec ASoC: nau8824: Add quirk to active-high jack-detect
* fa08753c2d ASoC: simple-card: Add missing of_node_put() in case of error
* 9138ed7e2b spi: lpspi: disable lpspi module irq in DMA mode
* 97b6c4c1d1 s390/cio: unregister device when the only path is gone
* fe949c1662 Input: soc_button_array - add invalid acpi_index DMI quirk handling
* eaf1fa9452 usb: gadget: udc: fix NULL dereference in remove()
* 7d1a0733a5 nfcsim.c: Fix error checking for debugfs_create_dir
* dc357c0787 media: cec: core: don't set last_initiator if tx in progress
* c13573032b arm64: Add missing Set/Way CMO encodings
* 49a2b18f49 HID: wacom: Add error check to wacom_parse_and_register()
* 2b43198de0 scsi: target: iscsi: Prevent login threads from racing between each other
* 75aa3f255c gpiolib: Fix GPIO chip IRQ initialization restriction
* 304802e5b0 gpio: Allow per-parent interrupt data
* bc75968b49 sch_netem: acquire qdisc lock in netem_change()
* caddeadd0d Revert "net: phy: dp83867: perform soft reset and retain established link"
* 5702afa2c3 netfilter: nfnetlink_osf: fix module autoload
* 3d5c09c782 netfilter: nf_tables: disallow element updates of bound anonymous sets
* 2a90da8e0d netfilter: nft_set_pipapo: .walk does not deal with generations
* 792bfe26a6 be2net: Extend xmit workaround to BE3 chip
* cebb5cee09 net: dsa: mt7530: fix trapping frames on non-MT7621 SoC MT7530 switch
* 7a1ae00005 ipvs: align inner_mac_header for encapsulation
* f2547bc716 mmc: usdhi60rol0: fix deferred probing
* 4a99e35c5a mmc: sh_mmcif: fix deferred probing
* c2278de138 mmc: sdhci-acpi: fix deferred probing
* f6e176ef89 mmc: owl: fix deferred probing
* f29d0ab0e6 mmc: omap_hsmmc: fix deferred probing
* 65d9318e3d mmc: omap: fix deferred probing
* 9ad3c21fb6 mmc: mvsdio: fix deferred probing
* 9b0417fd40 mmc: mtk-sd: fix deferred probing
* ced13bc50e net: qca_spi: Avoid high load if QCA7000 is not available
* b1b9c81e29 xfrm: Linearize the skb after offloading if needed.
* 31cd0d4a44 selftests: net: fcnal-test: check if FIPS mode is enabled
* 2af75a36af selftests: net: vrf-xfrm-tests: change authentication and encryption algos
* 07fbbddae5 xfrm: fix inbound ipv4/udp/esp packets to UDPv6 dualstack sockets
* 562800447f bpf: Fix verifier id tracking of scalars on spill
* 3b0a96db67 bpf: track immediate values written to stack by BPF_ST instruction
* bff7824db6 xfrm: Ensure policies always checked on XFRM-I input path
* 01af67ed83 xfrm: interface: rename xfrm_interface.c to xfrm_interface_core.c
* cdaa6e1105 xfrm: Treat already-verified secpath entries as optional
* 47be2931c4 ieee802154: hwsim: Fix possible memory leaks
* 051d642133 memfd: check for non-NULL file_seals in memfd_create() syscall
* 1ac6e9ee84 sysctl: move some boundary constants from sysctl.c to sysctl_vals
* e1aa3fe3e2 mm/pagealloc: sysctl: change watermark_scale_factor max limit to 30%
* ad10dd2113 x86/mm: Avoid using set_pgd() outside of real PGD pages
* 4de2093674 nilfs2: prevent general protection fault in nilfs_clear_dirty_page()
* 3845c38417 io_uring/net: disable partial retries for recvmsg with cmsg
* 826ee9fa36 io_uring/net: clear msg_controllen on partial sendmsg retry
* 5fdea4468f io_uring/net: save msghdr->msg_control for retries
* 5a7101d8fa writeback: fix dereferencing NULL mapping->host on writeback_page_template
* f00cd687c2 regmap: spi-avmm: Fix regmap_bus max_raw_write
* bc35f93e4b regulator: pca9450: Fix LDO3OUT and LDO4OUT MASK
* 5938470f9c ip_tunnels: allow VXLAN/GENEVE to inherit TOS/TTL from VLAN
* 2e454015ca mmc: mmci: stm32: fix max busy timeout calculation
* 1be288fd3b mmc: meson-gx: remove redundant mmc_request_done() call from irq context
* 1b97630cd9 mmc: sdhci-msm: Disable broken 64-bit DMA on MSM8916
* 63608437a8 cgroup: Do not corrupt task iteration when rebinding subsystem
* 988d06f5eb PCI: hv: Fix a race condition in hv_irq_unmask() that can cause panic
* 8f2d5ebdfe PCI: hv: Remove the useless hv_pcichild_state from struct hv_pci_dev
* 8b74846769 Revert "PCI: hv: Fix a timing issue which causes kdump to fail occasionally"
* 79ceb758e3 PCI: hv: Fix a race condition bug in hv_pci_query_relations()
* 8b8c9812c0 Drivers: hv: vmbus: Fix vmbus_wait_for_unload() to scan present CPUs
* b435298349 nilfs2: fix buffer corruption due to concurrent device reads
* 524a2c0bcf selftests: mptcp: join: skip check if MIB counter not supported
* e508d9cef8 selftests: mptcp: pm nl: remove hardcoded default limits
* 4c4ca42418 selftests: mptcp: lib: skip if not below kernel version
* 6d20cfbc57 selftests: mptcp: lib: skip if missing symbol
* 3cc7935d32 tick/common: Align tick period during sched_timer setup
* db4ab0c97a tracing: Add tracing_reset_all_online_cpus_unlocked() function
* 9ced730490 net/sched: Refactor qdisc_graft() for ingress and clsact Qdiscs
* b1b42fff8a drm/amd/display: fix the system hang while disable PSR

Change-Id: I0c8675eb9b259cf7631e968dd66c31d3e16d31e9
Signed-off-by: Greg Kroah-Hartman <gregkh@google.com>
Signed-off-by: Todd Kjos <tkjos@google.com>
2023-09-27 19:46:11 +00:00
Ma Ke 6d3a1dd105 usb: gadget: fsl_qe_udc: validate endpoint index for ch9 udc
[ Upstream commit ce9daa2efc ]

We should verify the bound of the array to assure that host
may not manipulate the index to point past endpoint array.

Signed-off-by: Ma Ke <make_ruc2021@163.com>
Acked-by: Li Yang <leoyang.li@nxp.com>
Link: https://lore.kernel.org/r/20230628081511.186850-1-make_ruc2021@163.com
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
Signed-off-by: Sasha Levin <sashal@kernel.org>
2023-09-23 11:01:08 +02:00
Greg Kroah-Hartman 8026d5839b Merge 5.10.195 into android12-5.10-lts
Changes in 5.10.195
	erofs: ensure that the post-EOF tails are all zeroed
	ARM: pxa: remove use of symbol_get()
	mmc: au1xmmc: force non-modular build and remove symbol_get usage
	net: enetc: use EXPORT_SYMBOL_GPL for enetc_phc_index
	rtc: ds1685: use EXPORT_SYMBOL_GPL for ds1685_rtc_poweroff
	modules: only allow symbol_get of EXPORT_SYMBOL_GPL modules
	USB: serial: option: add Quectel EM05G variant (0x030e)
	USB: serial: option: add FOXCONN T99W368/T99W373 product
	usb: dwc3: meson-g12a: do post init to fix broken usb after resumption
	usb: chipidea: imx: improve logic if samsung,picophy-* parameter is 0
	HID: wacom: remove the battery when the EKR is off
	staging: rtl8712: fix race condition
	Bluetooth: btsdio: fix use after free bug in btsdio_remove due to race condition
	configfs: fix a race in configfs_lookup()
	serial: qcom-geni: fix opp vote on shutdown
	serial: sc16is7xx: fix broken port 0 uart init
	serial: sc16is7xx: fix bug when first setting GPIO direction
	firmware: stratix10-svc: Fix an NULL vs IS_ERR() bug in probe
	fsi: master-ast-cf: Add MODULE_FIRMWARE macro
	nilfs2: fix general protection fault in nilfs_lookup_dirty_data_buffers()
	nilfs2: fix WARNING in mark_buffer_dirty due to discarded buffer reuse
	pinctrl: amd: Don't show `Invalid config param` errors
	ASoC: rt5682: Fix a problem with error handling in the io init function of the soundwire
	ARM: dts: imx: update sdma node name format
	ARM: dts: imx7s: Drop dma-apb interrupt-names
	ARM: dts: imx: Adjust dma-apbh node name
	ARM: dts: imx: Set default tuning step for imx7d usdhc
	phy: qcom-snps-femto-v2: use qcom_snps_hsphy_suspend/resume error code
	media: pulse8-cec: handle possible ping error
	media: pci: cx23885: fix error handling for cx23885 ATSC boards
	9p: virtio: make sure 'offs' is initialized in zc_request
	ASoC: da7219: Flush pending AAD IRQ when suspending
	ASoC: da7219: Check for failure reading AAD IRQ events
	ethernet: atheros: fix return value check in atl1c_tso_csum()
	vxlan: generalize vxlan_parse_gpe_hdr and remove unused args
	m68k: Fix invalid .section syntax
	s390/dasd: use correct number of retries for ERP requests
	s390/dasd: fix hanging device after request requeue
	fs/nls: make load_nls() take a const parameter
	ASoc: codecs: ES8316: Fix DMIC config
	ASoC: atmel: Fix the 8K sample parameter in I2SC master
	platform/x86: intel: hid: Always call BTNL ACPI method
	platform/x86: huawei-wmi: Silence ambient light sensor
	drm/amd/display: Exit idle optimizations before attempt to access PHY
	ovl: Always reevaluate the file signature for IMA
	ata: pata_arasan_cf: Use dev_err_probe() instead dev_err() in data_xfer()
	security: keys: perform capable check only on privileged operations
	kprobes: Prohibit probing on CFI preamble symbol
	clk: fixed-mmio: make COMMON_CLK_FIXED_MMIO depend on HAS_IOMEM
	vmbus_testing: fix wrong python syntax for integer value comparison
	net: usb: qmi_wwan: add Quectel EM05GV2
	idmaengine: make FSL_EDMA and INTEL_IDMA64 depends on HAS_IOMEM
	scsi: qedi: Fix potential deadlock on &qedi_percpu->p_work_lock
	netlabel: fix shift wrapping bug in netlbl_catmap_setlong()
	bnx2x: fix page fault following EEH recovery
	sctp: handle invalid error codes without calling BUG()
	scsi: storvsc: Always set no_report_opcodes
	ALSA: seq: oss: Fix racy open/close of MIDI devices
	tracing: Introduce pipe_cpumask to avoid race on trace_pipes
	platform/mellanox: Fix mlxbf-tmfifo not handling all virtio CONSOLE notifications
	net: Avoid address overwrite in kernel_connect
	udf: Check consistency of Space Bitmap Descriptor
	udf: Handle error when adding extent to a file
	Revert "net: macsec: preserve ingress frame ordering"
	reiserfs: Check the return value from __getblk()
	eventfd: Export eventfd_ctx_do_read()
	eventfd: prevent underflow for eventfd semaphores
	fs: Fix error checking for d_hash_and_lookup()
	tmpfs: verify {g,u}id mount options correctly
	selftests/harness: Actually report SKIP for signal tests
	refscale: Fix uninitalized use of wait_queue_head_t
	OPP: Fix passing 0 to PTR_ERR in _opp_attach_genpd()
	selftests/resctrl: Don't leak buffer in fill_cache()
	selftests/resctrl: Unmount resctrl FS if child fails to run benchmark
	selftests/resctrl: Close perf value read fd on errors
	x86/decompressor: Don't rely on upper 32 bits of GPRs being preserved
	perf/imx_ddr: don't enable counter0 if none of 4 counters are used
	s390/pkey: fix/harmonize internal keyblob headers
	s390/paes: fix PKEY_TYPE_EP11_AES handling for secure keyblobs
	x86/efistub: Fix PCI ROM preservation in mixed mode
	cpufreq: powernow-k8: Use related_cpus instead of cpus in driver.exit()
	bpftool: Use a local bpf_perf_event_value to fix accessing its fields
	bpf: Clear the probe_addr for uprobe
	tcp: tcp_enter_quickack_mode() should be static
	hwrng: nomadik - keep clock enabled while hwrng is registered
	regmap: rbtree: Use alloc_flags for memory allocations
	udp: re-score reuseport groups when connected sockets are present
	bpf: reject unhashed sockets in bpf_sk_assign
	wifi: mt76: testmode: add nla_policy for MT76_TM_ATTR_TX_LENGTH
	spi: tegra20-sflash: fix to check return value of platform_get_irq() in tegra_sflash_probe()
	can: gs_usb: gs_usb_receive_bulk_callback(): count RX overflow errors also in case of OOM
	wifi: mwifiex: Fix OOB and integer underflow when rx packets
	wifi: mwifiex: fix error recovery in PCIE buffer descriptor management
	selftests/bpf: fix static assert compilation issue for test_cls_*.c
	crypto: stm32 - Properly handle pm_runtime_get failing
	crypto: api - Use work queue in crypto_destroy_instance
	Bluetooth: nokia: fix value check in nokia_bluetooth_serdev_probe()
	Bluetooth: Fix potential use-after-free when clear keys
	net: tcp: fix unexcepted socket die when snd_wnd is 0
	selftests/bpf: Clean up fmod_ret in bench_rename test script
	ice: ice_aq_check_events: fix off-by-one check when filling buffer
	crypto: caam - fix unchecked return value error
	hwrng: iproc-rng200 - Implement suspend and resume calls
	lwt: Fix return values of BPF xmit ops
	lwt: Check LWTUNNEL_XMIT_CONTINUE strictly
	fs: ocfs2: namei: check return value of ocfs2_add_entry()
	wifi: mwifiex: fix memory leak in mwifiex_histogram_read()
	wifi: mwifiex: Fix missed return in oob checks failed path
	samples/bpf: fix broken map lookup probe
	wifi: ath9k: fix races between ath9k_wmi_cmd and ath9k_wmi_ctrl_rx
	wifi: ath9k: protect WMI command response buffer replacement with a lock
	wifi: mwifiex: avoid possible NULL skb pointer dereference
	Bluetooth: btusb: Do not call kfree_skb() under spin_lock_irqsave()
	wifi: ath9k: use IS_ERR() with debugfs_create_dir()
	net: arcnet: Do not call kfree_skb() under local_irq_disable()
	mlxsw: i2c: Fix chunk size setting in output mailbox buffer
	mlxsw: i2c: Limit single transaction buffer size
	hwmon: (tmp513) Fix the channel number in tmp51x_is_visible()
	net/sched: sch_hfsc: Ensure inner classes have fsc curve
	netrom: Deny concurrent connect().
	drm/bridge: tc358764: Fix debug print parameter order
	quota: factor out dquot_write_dquot()
	quota: rename dquot_active() to inode_quota_active()
	quota: add new helper dquot_active()
	quota: fix dqput() to follow the guarantees dquot_srcu should provide
	ASoC: stac9766: fix build errors with REGMAP_AC97
	soc: qcom: ocmem: Add OCMEM hardware version print
	soc: qcom: ocmem: Fix NUM_PORTS & NUM_MACROS macros
	arm64: dts: qcom: msm8996: Add missing interrupt to the USB2 controller
	drm/amdgpu: avoid integer overflow warning in amdgpu_device_resize_fb_bar()
	ARM: dts: BCM5301X: Harmonize EHCI/OHCI DT nodes name
	ARM: dts: BCM53573: Describe on-SoC BCM53125 rev 4 switch
	ARM: dts: BCM53573: Drop nonexistent #usb-cells
	ARM: dts: BCM53573: Add cells sizes to PCIe node
	ARM: dts: BCM53573: Use updated "spi-gpio" binding properties
	drm/etnaviv: fix dumping of active MMU context
	x86/mm: Fix PAT bit missing from page protection modify mask
	ARM: dts: s3c64xx: align pinctrl with dtschema
	ARM: dts: samsung: s3c6410-mini6410: correct ethernet reg addresses (split)
	ARM: dts: s5pv210: adjust node names to DT spec
	ARM: dts: s5pv210: add dummy 5V regulator for backlight on SMDKv210
	ARM: dts: samsung: s5pv210-smdkv210: correct ethernet reg addresses (split)
	drm: adv7511: Fix low refresh rate register for ADV7533/5
	ARM: dts: BCM53573: Fix Ethernet info for Luxul devices
	arm64: dts: qcom: sdm845: Add missing RPMh power domain to GCC
	arm64: dts: qcom: sdm845: Fix the min frequency of "ice_core_clk"
	drm/amdgpu: Update min() to min_t() in 'amdgpu_info_ioctl'
	md/bitmap: don't set max_write_behind if there is no write mostly device
	md/md-bitmap: hold 'reconfig_mutex' in backlog_store()
	drm/tegra: Remove superfluous error messages around platform_get_irq()
	drm/tegra: dpaux: Fix incorrect return value of platform_get_irq
	of: unittest: fix null pointer dereferencing in of_unittest_find_node_by_name()
	drm/armada: Fix off-by-one error in armada_overlay_get_property()
	drm/panel: simple: Add missing connector type and pixel format for AUO T215HVN01
	ima: Remove deprecated IMA_TRUSTED_KEYRING Kconfig
	drm: xlnx: zynqmp_dpsub: Add missing check for dma_set_mask
	drm/msm/mdp5: Don't leak some plane state
	firmware: meson_sm: fix to avoid potential NULL pointer dereference
	smackfs: Prevent underflow in smk_set_cipso()
	drm/amd/pm: fix variable dereferenced issue in amdgpu_device_attr_create()
	drm/msm/a2xx: Call adreno_gpu_init() earlier
	audit: fix possible soft lockup in __audit_inode_child()
	bus: ti-sysc: Fix build warning for 64-bit build
	drm/mediatek: Fix potential memory leak if vmap() fail
	bus: ti-sysc: Fix cast to enum warning
	of: unittest: Fix overlay type in apply/revert check
	ALSA: ac97: Fix possible error value of *rac97
	ipmi:ssif: Add check for kstrdup
	ipmi:ssif: Fix a memory leak when scanning for an adapter
	drivers: clk: keystone: Fix parameter judgment in _of_pll_clk_init()
	clk: sunxi-ng: Modify mismatched function name
	clk: qcom: gcc-sc7180: use ARRAY_SIZE instead of specifying num_parents
	clk: qcom: gcc-sc7180: Fix up gcc_sdcc2_apps_clk_src
	ext4: correct grp validation in ext4_mb_good_group
	clk: qcom: gcc-sm8250: use ARRAY_SIZE instead of specifying num_parents
	clk: qcom: gcc-sm8250: Fix gcc_sdcc2_apps_clk_src
	clk: qcom: reset: Use the correct type of sleep/delay based on length
	PCI: Mark NVIDIA T4 GPUs to avoid bus reset
	pinctrl: mcp23s08: check return value of devm_kasprintf()
	PCI: pciehp: Use RMW accessors for changing LNKCTL
	PCI/ASPM: Use RMW accessors for changing LNKCTL
	clk: imx8mp: fix sai4 clock
	clk: imx: composite-8m: fix clock pauses when set_rate would be a no-op
	vfio/type1: fix cap_migration information leak
	powerpc/fadump: reset dump area size if fadump memory reserve fails
	powerpc/perf: Convert fsl_emb notifier to state machine callbacks
	drm/amdgpu: Use RMW accessors for changing LNKCTL
	drm/radeon: Use RMW accessors for changing LNKCTL
	net/mlx5: Use RMW accessors for changing LNKCTL
	wifi: ath10k: Use RMW accessors for changing LNKCTL
	powerpc: Don't include lppaca.h in paca.h
	powerpc/pseries: Rework lppaca_shared_proc() to avoid DEBUG_PREEMPT
	nfs/blocklayout: Use the passed in gfp flags
	powerpc/iommu: Fix notifiers being shared by PCI and VIO buses
	jfs: validate max amount of blocks before allocation.
	fs: lockd: avoid possible wrong NULL parameter
	NFSD: da_addr_body field missing in some GETDEVICEINFO replies
	NFS: Guard against READDIR loop when entry names exceed MAXNAMELEN
	NFSv4.2: fix handling of COPY ERR_OFFLOAD_NO_REQ
	media: ad5820: Drop unsupported ad5823 from i2c_ and of_device_id tables
	media: i2c: tvp5150: check return value of devm_kasprintf()
	media: v4l2-core: Fix a potential resource leak in v4l2_fwnode_parse_link()
	drivers: usb: smsusb: fix error handling code in smsusb_init_device
	media: dib7000p: Fix potential division by zero
	media: dvb-usb: m920x: Fix a potential memory leak in m920x_i2c_xfer()
	media: cx24120: Add retval check for cx24120_message_send()
	scsi: hisi_sas: Print SAS address for v3 hw erroneous completion print
	scsi: libsas: Introduce more SAM status code aliases in enum exec_status
	scsi: hisi_sas: Modify v3 HW SSP underflow error processing
	scsi: hisi_sas: Modify v3 HW SATA completion error processing
	scsi: hisi_sas: Fix warnings detected by sparse
	scsi: hisi_sas: Fix normally completed I/O analysed as failed
	media: rkvdec: increase max supported height for H.264
	media: mediatek: vcodec: Return NULL if no vdec_fb is found
	usb: phy: mxs: fix getting wrong state with mxs_phy_is_otg_host()
	scsi: RDMA/srp: Fix residual handling
	scsi: iscsi: Rename iscsi_set_param() to iscsi_if_set_param()
	scsi: iscsi: Add length check for nlattr payload
	scsi: iscsi: Add strlen() check in iscsi_if_set{_host}_param()
	scsi: be2iscsi: Add length check when parsing nlattrs
	scsi: qla4xxx: Add length check when parsing nlattrs
	serial: sprd: Assign sprd_port after initialized to avoid wrong access
	serial: sprd: Fix DMA buffer leak issue
	x86/APM: drop the duplicate APM_MINOR_DEV macro
	scsi: qedf: Do not touch __user pointer in qedf_dbg_stop_io_on_error_cmd_read() directly
	scsi: qedf: Do not touch __user pointer in qedf_dbg_debug_cmd_read() directly
	scsi: qedf: Do not touch __user pointer in qedf_dbg_fp_int_cmd_read() directly
	coresight: tmc: Explicit type conversions to prevent integer overflow
	dma-buf/sync_file: Fix docs syntax
	driver core: test_async: fix an error code
	IB/uverbs: Fix an potential error pointer dereference
	fsi: aspeed: Reset master errors after CFAM reset
	iommu/qcom: Disable and reset context bank before programming
	iommu/vt-d: Fix to flush cache of PASID directory table
	media: go7007: Remove redundant if statement
	USB: gadget: f_mass_storage: Fix unused variable warning
	media: ov5640: Enable MIPI interface in ov5640_set_power_mipi()
	media: i2c: ov2680: Set V4L2_CTRL_FLAG_MODIFY_LAYOUT on flips
	media: ov2680: Remove auto-gain and auto-exposure controls
	media: ov2680: Fix ov2680_bayer_order()
	media: ov2680: Fix vflip / hflip set functions
	media: ov2680: Fix regulators being left enabled on ov2680_power_on() errors
	cgroup:namespace: Remove unused cgroup_namespaces_init()
	scsi: core: Use 32-bit hostnum in scsi_host_lookup()
	scsi: fcoe: Fix potential deadlock on &fip->ctlr_lock
	serial: tegra: handle clk prepare error in tegra_uart_hw_init()
	amba: bus: fix refcount leak
	Revert "IB/isert: Fix incorrect release of isert connection"
	RDMA/siw: Balance the reference of cep->kref in the error path
	RDMA/siw: Correct wrong debug message
	HID: logitech-dj: Fix error handling in logi_dj_recv_switch_to_dj_mode()
	HID: multitouch: Correct devm device reference for hidinput input_dev name
	x86/speculation: Mark all Skylake CPUs as vulnerable to GDS
	tracing: Fix race issue between cpu buffer write and swap
	mtd: rawnand: brcmnand: Fix mtd oobsize
	phy/rockchip: inno-hdmi: use correct vco_div_5 macro on rk3328
	phy/rockchip: inno-hdmi: round fractal pixclock in rk3328 recalc_rate
	phy/rockchip: inno-hdmi: do not power on rk3328 post pll on reg write
	rpmsg: glink: Add check for kstrdup
	mtd: spi-nor: Check bus width while setting QE bit
	mtd: rawnand: fsmc: handle clk prepare error in fsmc_nand_resume()
	um: Fix hostaudio build errors
	dmaengine: ste_dma40: Add missing IRQ check in d40_probe
	cpufreq: Fix the race condition while updating the transition_task of policy
	virtio_ring: fix avail_wrap_counter in virtqueue_add_packed
	igmp: limit igmpv3_newpack() packet size to IP_MAX_MTU
	netfilter: ipset: add the missing IP_SET_HASH_WITH_NET0 macro for ip_set_hash_netportnet.c
	netfilter: xt_u32: validate user space input
	netfilter: xt_sctp: validate the flag_info count
	skbuff: skb_segment, Call zero copy functions before using skbuff frags
	igb: set max size RX buffer when store bad packet is enabled
	PM / devfreq: Fix leak in devfreq_dev_release()
	ALSA: pcm: Fix missing fixup call in compat hw_refine ioctl
	printk: ringbuffer: Fix truncating buffer size min_t cast
	scsi: core: Fix the scsi_set_resid() documentation
	ipmi_si: fix a memleak in try_smi_init()
	ARM: OMAP2+: Fix -Warray-bounds warning in _pwrdm_state_switch()
	backlight/gpio_backlight: Compare against struct fb_info.device
	backlight/bd6107: Compare against struct fb_info.device
	backlight/lv5207lp: Compare against struct fb_info.device
	xtensa: PMU: fix base address for the newer hardware
	arm64: csum: Fix OoB access in IP checksum code for negative lengths
	media: dvb: symbol fixup for dvb_attach()
	Revert "scsi: qla2xxx: Fix buffer overrun"
	scsi: mpt3sas: Perform additional retries if doorbell read returns 0
	ntb: Drop packets when qp link is down
	ntb: Clean up tx tail index on link down
	ntb: Fix calculation ntb_transport_tx_free_entry()
	Revert "PCI: Mark NVIDIA T4 GPUs to avoid bus reset"
	procfs: block chmod on /proc/thread-self/comm
	parisc: Fix /proc/cpuinfo output for lscpu
	dlm: fix plock lookup when using multiple lockspaces
	dccp: Fix out of bounds access in DCCP error handler
	X.509: if signature is unsupported skip validation
	net: handle ARPHRD_PPP in dev_is_mac_header_xmit()
	fsverity: skip PKCS#7 parser when keyring is empty
	pstore/ram: Check start of empty przs during init
	s390/ipl: add missing secure/has_secure file to ipl type 'unknown'
	crypto: stm32 - fix loop iterating through scatterlist for DMA
	cpufreq: brcmstb-avs-cpufreq: Fix -Warray-bounds bug
	usb: typec: bus: verify partner exists in typec_altmode_attention
	USB: core: Unite old scheme and new scheme descriptor reads
	USB: core: Change usb_get_device_descriptor() API
	USB: core: Fix race by not overwriting udev->descriptor in hub_port_init()
	USB: core: Fix oversight in SuperSpeed initialization
	usb: typec: tcpci: clear the fault status bit
	tracing: Zero the pipe cpumask on alloc to avoid spurious -EBUSY
	md/md-bitmap: remove unnecessary local variable in backlog_store()
	udf: initialize newblock to 0
	net/ipv6: SKB symmetric hash should incorporate transport ports
	io_uring: always lock in io_apoll_task_func
	io_uring: break out of iowq iopoll on teardown
	io_uring: break iopolling on signal
	scsi: qla2xxx: Fix deletion race condition
	scsi: qla2xxx: fix inconsistent TMF timeout
	scsi: qla2xxx: Fix erroneous link up failure
	scsi: qla2xxx: Turn off noisy message log
	scsi: qla2xxx: Remove unsupported ql2xenabledif option
	fbdev/ep93xx-fb: Do not assign to struct fb_info.dev
	drm/ast: Fix DRAM init on AST2200
	lib/test_meminit: allocate pages up to order MAX_ORDER
	parisc: led: Fix LAN receive and transmit LEDs
	parisc: led: Reduce CPU overhead for disk & lan LED computation
	pinctrl: cherryview: fix address_space_handler() argument
	dt-bindings: clock: xlnx,versal-clk: drop select:false
	clk: imx: pll14xx: dynamically configure PLL for 393216000/361267200Hz
	clk: qcom: gcc-mdm9615: use proper parent for pll0_vote clock
	soc: qcom: qmi_encdec: Restrict string length in decode
	NFS: Fix a potential data corruption
	NFSv4/pnfs: minor fix for cleanup path in nfs4_get_device_info
	kconfig: fix possible buffer overflow
	backlight: gpio_backlight: Drop output GPIO direction check for initial power state
	perf annotate bpf: Don't enclose non-debug code with an assert()
	x86/virt: Drop unnecessary check on extended CPUID level in cpu_has_svm()
	perf top: Don't pass an ERR_PTR() directly to perf_session__delete()
	watchdog: intel-mid_wdt: add MODULE_ALIAS() to allow auto-load
	pwm: lpc32xx: Remove handling of PWM channels
	net/sched: fq_pie: avoid stalls in fq_pie_timer()
	sctp: annotate data-races around sk->sk_wmem_queued
	ipv4: annotate data-races around fi->fib_dead
	net: read sk->sk_family once in sk_mc_loop()
	drm/i915/gvt: Save/restore HW status to support GVT suspend/resume
	drm/i915/gvt: Drop unused helper intel_vgpu_reset_gtt()
	ipv4: ignore dst hint for multipath routes
	igb: disable virtualization features on 82580
	veth: Fixing transmit return status for dropped packets
	net: ipv6/addrconf: avoid integer underflow in ipv6_create_tempaddr
	af_unix: Fix data-races around user->unix_inflight.
	af_unix: Fix data-race around unix_tot_inflight.
	af_unix: Fix data-races around sk->sk_shutdown.
	af_unix: Fix data race around sk->sk_err.
	net: sched: sch_qfq: Fix UAF in qfq_dequeue()
	kcm: Destroy mutex in kcm_exit_net()
	igc: Change IGC_MIN to allow set rx/tx value between 64 and 80
	igbvf: Change IGBVF_MIN to allow set rx/tx value between 64 and 80
	igb: Change IGB_MIN to allow set rx/tx value between 64 and 80
	s390/zcrypt: don't leak memory if dev_set_name() fails
	idr: fix param name in idr_alloc_cyclic() doc
	ip_tunnels: use DEV_STATS_INC()
	net: dsa: sja1105: fix bandwidth discrepancy between tc-cbs software and offload
	net: dsa: sja1105: fix -ENOSPC when replacing the same tc-cbs too many times
	netfilter: nfnetlink_osf: avoid OOB read
	net: hns3: fix the port information display when sfp is absent
	sh: boards: Fix CEU buffer size passed to dma_declare_coherent_memory()
	ext4: add correct group descriptors and reserved GDT blocks to system zone
	ata: sata_gemini: Add missing MODULE_DESCRIPTION
	ata: pata_ftide010: Add missing MODULE_DESCRIPTION
	fuse: nlookup missing decrement in fuse_direntplus_link
	btrfs: don't start transaction when joining with TRANS_JOIN_NOSTART
	btrfs: use the correct superblock to compare fsid in btrfs_validate_super
	mtd: rawnand: brcmnand: Fix crash during the panic_write
	mtd: rawnand: brcmnand: Fix potential out-of-bounds access in oob write
	mtd: rawnand: brcmnand: Fix potential false time out warning
	drm/amd/display: prevent potential division by zero errors
	perf hists browser: Fix hierarchy mode header
	perf tools: Handle old data in PERF_RECORD_ATTR
	perf hists browser: Fix the number of entries for 'e' key
	ACPI: APEI: explicit init of HEST and GHES in apci_init()
	arm64: sdei: abort running SDEI handlers during crash
	scsi: qla2xxx: If fcport is undergoing deletion complete I/O with retry
	scsi: qla2xxx: Consolidate zio threshold setting for both FCP & NVMe
	scsi: qla2xxx: Fix crash in PCIe error handling
	scsi: qla2xxx: Flush mailbox commands on chip reset
	ARM: dts: samsung: exynos4210-i9100: Fix LCD screen's physical size
	ARM: dts: BCM5301X: Extend RAM to full 256MB for Linksys EA6500 V2
	bus: mhi: host: Skip MHI reset if device is in RDDM
	net: ipv4: fix one memleak in __inet_del_ifa()
	selftests/kselftest/runner/run_one(): allow running non-executable files
	kselftest/runner.sh: Propagate SIGTERM to runner child
	net/smc: use smc_lgr_list.lock to protect smc_lgr_list.list iterate in smcr_port_add
	net: ethernet: mvpp2_main: fix possible OOB write in mvpp2_ethtool_get_rxnfc()
	net: ethernet: mtk_eth_soc: fix possible NULL pointer dereference in mtk_hwlro_get_fdir_all()
	hsr: Fix uninit-value access in fill_frame_info()
	r8152: check budget for r8152_poll()
	kcm: Fix memory leak in error path of kcm_sendmsg()
	platform/mellanox: mlxbf-tmfifo: Drop the Rx packet if no more descriptors
	platform/mellanox: mlxbf-tmfifo: Drop jumbo frames
	net/tls: do not free tls_rec on async operation in bpf_exec_tx_verdict()
	ipv6: fix ip6_sock_set_addr_preferences() typo
	ixgbe: fix timestamp configuration code
	kcm: Fix error handling for SOCK_DGRAM in kcm_sendmsg().
	drm/amd/display: Fix a bug when searching for insert_above_mpcc
	parisc: Drop loops_per_jiffy from per_cpu struct
	Linux 5.10.195

Change-Id: I4eef618f573b6d4201e05c9cf56088d77d712d97
Signed-off-by: Greg Kroah-Hartman <gregkh@google.com>
2023-09-19 11:32:32 +00:00
Marco Felsch 1c4c9191b3 usb: typec: tcpci: clear the fault status bit
[ Upstream commit 23e60c8daf ]

According the "USB Type-C Port Controller Interface Specification v2.0"
the TCPC sets the fault status register bit-7
(AllRegistersResetToDefault) once the registers have been reset to
their default values.

This triggers an alert(-irq) on PTN5110 devices albeit we do mask the
fault-irq, which may cause a kernel hang. Fix this generically by writing
a one to the corresponding bit-7.

Cc: stable@vger.kernel.org
Fixes: 74e656d6b0 ("staging: typec: Type-C Port Controller Interface driver (tcpci)")
Reported-by: "Angus Ainslie (Purism)" <angus@akkea.ca>
Closes: https://lore.kernel.org/all/20190508002749.14816-2-angus@akkea.ca/
Reported-by: Christian Bach <christian.bach@scs.ch>
Closes: https://lore.kernel.org/regressions/ZR0P278MB07737E5F1D48632897D51AC3EB329@ZR0P278MB0773.CHEP278.PROD.OUTLOOK.COM/t/
Signed-off-by: Marco Felsch <m.felsch@pengutronix.de>
Signed-off-by: Fabio Estevam <festevam@denx.de>
Reviewed-by: Guenter Roeck <linux@roeck-us.net>
Link: https://lore.kernel.org/r/20230816172502.1155079-1-festevam@gmail.com
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
Signed-off-by: Sasha Levin <sashal@kernel.org>
2023-09-19 12:20:23 +02:00
Alan Stern beba5051dd USB: core: Fix oversight in SuperSpeed initialization
commit 59cf445754 upstream.

Commit 85d07c5562 ("USB: core: Unite old scheme and new scheme
descriptor reads") altered the way USB devices are enumerated
following detection, and in the process it messed up the
initialization of SuperSpeed (or faster) devices:

[   31.650759] usb 2-1: new SuperSpeed Plus Gen 2x1 USB device number 2 using xhci_hcd
[   31.663107] usb 2-1: device descriptor read/8, error -71
[   31.952697] usb 2-1: new SuperSpeed Plus Gen 2x1 USB device number 3 using xhci_hcd
[   31.965122] usb 2-1: device descriptor read/8, error -71
[   32.080991] usb usb2-port1: attempt power cycle
...

The problem was caused by the commit forgetting that in SuperSpeed or
faster devices, the device descriptor uses a logarithmic encoding of
the bMaxPacketSize0 value.  (For some reason I thought the 255 case in
the switch statement was meant for these devices, but it isn't -- it
was meant for Wireless USB and is no longer needed.)

We can fix the oversight by testing for buf->bMaxPacketSize0 = 9
(meaning 512, the actual maxpacket size for ep0 on all SuperSpeed
devices) and straightening out the logic that checks and adjusts our
initial guesses of the maxpacket value.

Reported-and-tested-by: Thinh Nguyen <Thinh.Nguyen@synopsys.com>
Closes: https://lore.kernel.org/linux-usb/20230810002257.nadxmfmrobkaxgnz@synopsys.com/
Signed-off-by: Alan Stern <stern@rowland.harvard.edu>
Fixes: 85d07c5562 ("USB: core: Unite old scheme and new scheme descriptor reads")
Link: https://lore.kernel.org/r/8809e6c5-59d5-4d2d-ac8f-6d106658ad73@rowland.harvard.edu
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
2023-09-19 12:20:23 +02:00
Alan Stern 9d241c5d9a USB: core: Fix race by not overwriting udev->descriptor in hub_port_init()
commit ff33299ec8 upstream.

Syzbot reported an out-of-bounds read in sysfs.c:read_descriptors():

BUG: KASAN: slab-out-of-bounds in read_descriptors+0x263/0x280 drivers/usb/core/sysfs.c:883
Read of size 8 at addr ffff88801e78b8c8 by task udevd/5011

CPU: 0 PID: 5011 Comm: udevd Not tainted 6.4.0-rc6-syzkaller-00195-g40f71e7cd3c6 #0
Hardware name: Google Google Compute Engine/Google Compute Engine, BIOS Google 05/27/2023
Call Trace:
 <TASK>
 __dump_stack lib/dump_stack.c:88 [inline]
 dump_stack_lvl+0xd9/0x150 lib/dump_stack.c:106
 print_address_description.constprop.0+0x2c/0x3c0 mm/kasan/report.c:351
 print_report mm/kasan/report.c:462 [inline]
 kasan_report+0x11c/0x130 mm/kasan/report.c:572
 read_descriptors+0x263/0x280 drivers/usb/core/sysfs.c:883
...
Allocated by task 758:
...
 __do_kmalloc_node mm/slab_common.c:966 [inline]
 __kmalloc+0x5e/0x190 mm/slab_common.c:979
 kmalloc include/linux/slab.h:563 [inline]
 kzalloc include/linux/slab.h:680 [inline]
 usb_get_configuration+0x1f7/0x5170 drivers/usb/core/config.c:887
 usb_enumerate_device drivers/usb/core/hub.c:2407 [inline]
 usb_new_device+0x12b0/0x19d0 drivers/usb/core/hub.c:2545

As analyzed by Khazhy Kumykov, the cause of this bug is a race between
read_descriptors() and hub_port_init(): The first routine uses a field
in udev->descriptor, not expecting it to change, while the second
overwrites it.

Prior to commit 45bf39f8df ("USB: core: Don't hold device lock while
reading the "descriptors" sysfs file") this race couldn't occur,
because the routines were mutually exclusive thanks to the device
locking.  Removing that locking from read_descriptors() exposed it to
the race.

The best way to fix the bug is to keep hub_port_init() from changing
udev->descriptor once udev has been initialized and registered.
Drivers expect the descriptors stored in the kernel to be immutable;
we should not undermine this expectation.  In fact, this change should
have been made long ago.

So now hub_port_init() will take an additional argument, specifying a
buffer in which to store the device descriptor it reads.  (If udev has
not yet been initialized, the buffer pointer will be NULL and then
hub_port_init() will store the device descriptor in udev as before.)
This eliminates the data race responsible for the out-of-bounds read.

The changes to hub_port_init() appear more extensive than they really
are, because of indentation changes resulting from an attempt to avoid
writing to other parts of the usb_device structure after it has been
initialized.  Similar changes should be made to the code that reads
the BOS descriptor, but that can be handled in a separate patch later
on.  This patch is sufficient to fix the bug found by syzbot.

Reported-and-tested-by: syzbot+18996170f8096c6174d0@syzkaller.appspotmail.com
Closes: https://lore.kernel.org/linux-usb/000000000000c0ffe505fe86c9ca@google.com/#r
Signed-off-by: Alan Stern <stern@rowland.harvard.edu>
Cc: Khazhy Kumykov <khazhy@google.com>
Fixes: 45bf39f8df ("USB: core: Don't hold device lock while reading the "descriptors" sysfs file")
Cc: stable@vger.kernel.org
Link: https://lore.kernel.org/r/b958b47a-9a46-4c22-a9f9-e42e42c31251@rowland.harvard.edu
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
2023-09-19 12:20:23 +02:00
Alan Stern 6ceffc2ecf USB: core: Change usb_get_device_descriptor() API
commit de28e469da upstream.

The usb_get_device_descriptor() routine reads the device descriptor
from the udev device and stores it directly in udev->descriptor.  This
interface is error prone, because the USB subsystem expects in-memory
copies of a device's descriptors to be immutable once the device has
been initialized.

The interface is changed so that the device descriptor is left in a
kmalloc-ed buffer, not copied into the usb_device structure.  A
pointer to the buffer is returned to the caller, who is then
responsible for kfree-ing it.  The corresponding changes needed in the
various callers are fairly small.

Signed-off-by: Alan Stern <stern@rowland.harvard.edu>
Link: https://lore.kernel.org/r/d0111bb6-56c1-4f90-adf2-6cfe152f6561@rowland.harvard.edu
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
2023-09-19 12:20:23 +02:00
Alan Stern 3cef18d13f USB: core: Unite old scheme and new scheme descriptor reads
commit 85d07c5562 upstream.

In preparation for reworking the usb_get_device_descriptor() routine,
it is desirable to unite the two different code paths responsible for
initially determining endpoint 0's maximum packet size in a newly
discovered USB device.  Making this determination presents a
chicken-and-egg sort of problem, in that the only way to learn the
maxpacket value is to get it from the device descriptor retrieved from
the device, but communicating with the device to retrieve a descriptor
requires us to know beforehand the ep0 maxpacket size.

In practice this problem is solved in two different ways, referred to
in hub.c as the "old scheme" and the "new scheme".  The old scheme
(which is the approach recommended by the USB-2 spec) involves asking
the device to send just the first eight bytes of its device
descriptor.  Such a transfer uses packets containing no more than
eight bytes each, and every USB device must have an ep0 maxpacket size
>= 8, so this should succeed.  Since the bMaxPacketSize0 field of the
device descriptor lies within the first eight bytes, this is all we
need.

The new scheme is an imitation of the technique used in an early
Windows USB implementation, giving it the happy advantage of working
with a wide variety of devices (some of them at the time would not
work with the old scheme, although that's probably less true now).  It
involves making an initial guess of the ep0 maxpacket size, asking the
device to send up to 64 bytes worth of its device descriptor (which is
only 18 bytes long), and then resetting the device to clear any error
condition that might have resulted from the guess being wrong.  The
initial guess is determined by the connection speed; it should be
correct in all cases other than full speed, for which the allowed
values are 8, 16, 32, and 64 (in this case the initial guess is 64).

The reason for this patch is that the old- and new-scheme parts of
hub_port_init() use different code paths, one involving
usb_get_device_descriptor() and one not, for their initial reads of
the device descriptor.  Since these reads have essentially the same
purpose and are made under essentially the same circumstances, this is
illogical.  It makes more sense to have both of them use a common
subroutine.

This subroutine does basically what the new scheme's code did, because
that approach is more general than the one used by the old scheme.  It
only needs to know how many bytes to transfer and whether or not it is
being called for the first iteration of a retry loop (in case of
certain time-out errors).  There are two main differences from the
former code:

	We initialize the bDescriptorType field of the transfer buffer
	to 0 before performing the transfer, to avoid possibly
	accessing an uninitialized value afterward.

	We read the device descriptor into a temporary buffer rather
	than storing it directly into udev->descriptor, which the old
	scheme implementation used to do.

Since the whole point of this first read of the device descriptor is
to determine the bMaxPacketSize0 value, that is what the new routine
returns (or an error code).  The value is stored in a local variable
rather than in udev->descriptor.  As a side effect, this necessitates
moving a section of code that checks the bcdUSB field for SuperSpeed
devices until after the full device descriptor has been retrieved.

Signed-off-by: Alan Stern <stern@rowland.harvard.edu>
Cc: Oliver Neukum <oneukum@suse.com>
Link: https://lore.kernel.org/r/495cb5d4-f956-4f4a-a875-1e67e9489510@rowland.harvard.edu
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
2023-09-19 12:20:23 +02:00
RD Babiera 38e1f2ee82 usb: typec: bus: verify partner exists in typec_altmode_attention
commit f236433064 upstream.

Some usb hubs will negotiate DisplayPort Alt mode with the device
but will then negotiate a data role swap after entering the alt
mode. The data role swap causes the device to unregister all alt
modes, however the usb hub will still send Attention messages
even after failing to reregister the Alt Mode. type_altmode_attention
currently does not verify whether or not a device's altmode partner
exists, which results in a NULL pointer error when dereferencing
the typec_altmode and typec_altmode_ops belonging to the altmode
partner.

Verify the presence of a device's altmode partner before sending
the Attention message to the Alt Mode driver.

Fixes: 8a37d87d72 ("usb: typec: Bus type for alternate modes")
Cc: stable@vger.kernel.org
Signed-off-by: RD Babiera <rdbabiera@google.com>
Reviewed-by: Heikki Krogerus <heikki.krogerus@linux.intel.com>
Reviewed-by: Guenter Roeck <linux@roeck-us.net>
Link: https://lore.kernel.org/r/20230814180559.923475-1-rdbabiera@google.com
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
2023-09-19 12:20:23 +02:00
Alan Stern 44c71cbe7c USB: gadget: f_mass_storage: Fix unused variable warning
[ Upstream commit 55c3e571d2 ]

Fix a "variable set but not used" warning in f_mass_storage.c.  rc is
used if	verbose debugging is enabled but not otherwise.

Signed-off-by: Alan Stern <stern@rowland.harvard.edu>
Fixes: d5e2b67aae ("USB: g_mass_storage: template f_mass_storage.c file created")
Link: https://lore.kernel.org/r/cfed16c7-aa46-494b-ba84-b0e0dc99be3a@rowland.harvard.edu
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
Signed-off-by: Sasha Levin <sashal@kernel.org>
2023-09-19 12:20:18 +02:00
Xu Yang cc2d5cdb19 usb: phy: mxs: fix getting wrong state with mxs_phy_is_otg_host()
[ Upstream commit 5eda42aebb ]

The function mxs_phy_is_otg_host() will return true if OTG_ID_VALUE is
0 at USBPHY_CTRL register. However, OTG_ID_VALUE will not reflect the real
state if the ID pin is float, such as Host-only or Type-C cases. The value
of OTG_ID_VALUE is always 1 which means device mode.
This patch will fix the issue by judging the current mode based on
last_event. The controller will update last_event in time.

Fixes: 7b09e67639 ("usb: phy: mxs: refine mxs_phy_disconnect_line")
Signed-off-by: Xu Yang <xu.yang_2@nxp.com>
Acked-by: Peter Chen <peter.chen@kernel.org>
Link: https://lore.kernel.org/r/20230627110353.1879477-2-xu.yang_2@nxp.com
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
Signed-off-by: Sasha Levin <sashal@kernel.org>
2023-09-19 12:20:17 +02:00
Xu Yang 542c614707 usb: chipidea: imx: improve logic if samsung,picophy-* parameter is 0
commit 36668515d5 upstream.

In current driver, the value of tuning parameter will not take effect
if samsung,picophy-* is assigned as 0. Because 0 is also a valid value
acccording to the description of USB_PHY_CFG1 register, this will improve
the logic to let it work.

Fixes: 58a3cefb38 ("usb: chipidea: imx: add two samsung picophy parameters tuning implementation")
cc: <stable@vger.kernel.org>
Signed-off-by: Xu Yang <xu.yang_2@nxp.com>
Acked-by: Peter Chen <peter.chen@kernel.org>
Link: https://lore.kernel.org/r/20230627112126.1882666-1-xu.yang_2@nxp.com
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
2023-09-19 12:20:02 +02:00
Luke Lu 5c4996c229 usb: dwc3: meson-g12a: do post init to fix broken usb after resumption
commit 1fa206bb76 upstream.

Device connected to usb otg port of GXL-based boards can not be
recognised after resumption, doesn't recover even if disconnect and
reconnect the device. dmesg shows it disconnects during resumption.

[   41.492911] usb 1-2: USB disconnect, device number 3
[   41.499346] usb 1-2: unregistering device
[   41.511939] usb 1-2: unregistering interface 1-2:1.0

Calling usb_post_init() will fix this issue, and it's tested and
verified on libretech's aml-s905x-cc board.

Cc: stable@vger.kernel.org # v5.8+
Fixes: c99993376f ("usb: dwc3: Add Amlogic G12A DWC3 glue")
Signed-off-by: Luke Lu <luke.lu@libre.computer>
Acked-by: Neil Armstrong <neil.armstrong@linaro.org>
Link: https://lore.kernel.org/r/20230809212911.18903-1-luke.lu@libre.computer
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
2023-09-19 12:20:02 +02:00
Slark Xiao d44fa38193 USB: serial: option: add FOXCONN T99W368/T99W373 product
commit 4d9488b294 upstream.

The difference of T99W368 and T99W373 is the chip solution.
T99W368 is designed based on Qualcomm SDX65 and T99W373 is SDX62.

Test evidence as below:
T:  Bus=01 Lev=02 Prnt=05 Port=00 Cnt=01 Dev#=  7 Spd=480 MxCh= 0
D:  Ver= 2.10 Cls=ef(misc ) Sub=02 Prot=01 MxPS=64 #Cfgs=  1
P:  Vendor=0489 ProdID=e0f0 Rev=05.04
S:  Manufacturer=FII
S:  Product=OLYMPIC USB WWAN Adapter
S:  SerialNumber=78ada8c4
C:  #Ifs= 6 Cfg#= 1 Atr=a0 MxPwr=500mA
I:  If#=0x0 Alt= 0 #EPs= 1 Cls=02(commc) Sub=0e Prot=00 Driver=cdc_mbim
I:  If#=0x1 Alt= 1 #EPs= 2 Cls=0a(data ) Sub=00 Prot=02 Driver=cdc_mbim
I:  If#=0x2 Alt= 0 #EPs= 3 Cls=ff(vend.) Sub=ff Prot=40 Driver=option
I:  If#=0x3 Alt= 0 #EPs= 1 Cls=ff(vend.) Sub=ff Prot=ff Driver=(none)
I:  If#=0x4 Alt= 0 #EPs= 3 Cls=ff(vend.) Sub=ff Prot=40 Driver=option
I:  If#=0x5 Alt= 0 #EPs= 2 Cls=ff(vend.) Sub=ff Prot=30 Driver=option

T:  Bus=01 Lev=02 Prnt=05 Port=00 Cnt=01 Dev#=  8 Spd=480 MxCh= 0
D:  Ver= 2.10 Cls=ef(misc ) Sub=02 Prot=01 MxPS=64 #Cfgs=  1
P:  Vendor=0489 ProdID=e0ee Rev=05.04
S:  Manufacturer=FII
S:  Product=OLYMPIC USB WWAN Adapter
S:  SerialNumber=78ada8d5
C:  #Ifs= 6 Cfg#= 1 Atr=a0 MxPwr=500mA
I:  If#=0x0 Alt= 0 #EPs= 1 Cls=02(commc) Sub=0e Prot=00 Driver=cdc_mbim
I:  If#=0x1 Alt= 1 #EPs= 2 Cls=0a(data ) Sub=00 Prot=02 Driver=cdc_mbim
I:  If#=0x2 Alt= 0 #EPs= 3 Cls=ff(vend.) Sub=ff Prot=40 Driver=option
I:  If#=0x3 Alt= 0 #EPs= 1 Cls=ff(vend.) Sub=ff Prot=ff Driver=(none)
I:  If#=0x4 Alt= 0 #EPs= 3 Cls=ff(vend.) Sub=ff Prot=40 Driver=option
I:  If#=0x5 Alt= 0 #EPs= 2 Cls=ff(vend.) Sub=ff Prot=30 Driver=option

Both of them share the same port configuration:
0&1: MBIM, 2: Modem, 3:GNSS, 4:NMEA, 5:Diag
GNSS port don't use serial driver.

Signed-off-by: Slark Xiao <slark_xiao@163.com>
Cc: stable@vger.kernel.org
Signed-off-by: Johan Hovold <johan@kernel.org>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
2023-09-19 12:20:02 +02:00
Martin Kohn df6696e42e USB: serial: option: add Quectel EM05G variant (0x030e)
commit 873854c023 upstream.

Add Quectel EM05G with product ID 0x030e.
Interface 4 is used for qmi.

T:  Bus=01 Lev=01 Prnt=01 Port=00 Cnt=01 Dev#=  2 Spd=480  MxCh= 0
D:  Ver= 2.00 Cls=ef(misc ) Sub=02 Prot=01 MxPS=64 #Cfgs=  1
P:  Vendor=2c7c ProdID=030e Rev= 3.18
S:  Manufacturer=Quectel
S:  Product=Quectel EM05-G
C:* #Ifs= 5 Cfg#= 1 Atr=a0 MxPwr=500mA
I:* If#= 0 Alt= 0 #EPs= 2 Cls=ff(vend.) Sub=ff Prot=ff Driver=option
E:  Ad=81(I) Atr=02(Bulk) MxPS= 512 Ivl=0ms
E:  Ad=01(O) Atr=02(Bulk) MxPS= 512 Ivl=0ms
I:* If#= 1 Alt= 0 #EPs= 3 Cls=ff(vend.) Sub=00 Prot=00 Driver=option
E:  Ad=83(I) Atr=03(Int.) MxPS=  10 Ivl=32ms
E:  Ad=82(I) Atr=02(Bulk) MxPS= 512 Ivl=0ms
E:  Ad=02(O) Atr=02(Bulk) MxPS= 512 Ivl=0ms
I:* If#= 2 Alt= 0 #EPs= 3 Cls=ff(vend.) Sub=00 Prot=00 Driver=option
E:  Ad=85(I) Atr=03(Int.) MxPS=  10 Ivl=32ms
E:  Ad=84(I) Atr=02(Bulk) MxPS= 512 Ivl=0ms
E:  Ad=03(O) Atr=02(Bulk) MxPS= 512 Ivl=0ms
I:* If#= 3 Alt= 0 #EPs= 3 Cls=ff(vend.) Sub=00 Prot=00 Driver=option
E:  Ad=87(I) Atr=03(Int.) MxPS=  10 Ivl=32ms
E:  Ad=86(I) Atr=02(Bulk) MxPS= 512 Ivl=0ms
E:  Ad=04(O) Atr=02(Bulk) MxPS= 512 Ivl=0ms
I:* If#= 4 Alt= 0 #EPs= 3 Cls=ff(vend.) Sub=ff Prot=ff Driver=qmi_wwan
E:  Ad=89(I) Atr=03(Int.) MxPS=   8 Ivl=32ms
E:  Ad=88(I) Atr=02(Bulk) MxPS= 512 Ivl=0ms
E:  Ad=05(O) Atr=02(Bulk) MxPS= 512 Ivl=0ms

Signed-off-by: Martin Kohn <m.kohn@welotec.com>
Cc: stable@vger.kernel.org
Signed-off-by: Johan Hovold <johan@kernel.org>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
2023-09-19 12:20:02 +02:00
William Wu b5b456cf9a usb: dwc3: rockchip-inno: add Kconfig and Makefile
Change-Id: I123cea9cd3535b7fe112bc36767377ba796e036c
Signed-off-by: William Wu <william.wu@rock-chips.com>
Signed-off-by: Jianwei Zheng <jianwei.zheng@rock-chips.com>
2023-09-09 09:45:15 +08:00
Johan Hovold 37d958fa88 UPSTREAM: USB: dwc3: fix use-after-free on core driver unbind
Some dwc3 glue drivers are currently accessing the driver data of the
child core device directly, which is clearly a bad idea as the child may
not have probed yet or may have been unbound from its driver.

As a workaround until the glue drivers have been fixed, clear the driver
data pointer before allowing the glue parent device to runtime suspend
to prevent its driver from accessing data that has been freed during
unbind.

Bug: 254441685
Fixes: 6dd2565989 ("usb: dwc3: add imx8mp dwc3 glue layer driver")
Fixes: 6895ea55c3 ("usb: dwc3: qcom: Configure wakeup interrupts during suspend")
Cc: stable@vger.kernel.org      # 5.12
Cc: Li Jun <jun.li@nxp.com>
Cc: Sandeep Maheswaram <quic_c_sanm@quicinc.com>
Cc: Krishna Kurapati <quic_kriskura@quicinc.com>
Signed-off-by: Johan Hovold <johan+linaro@kernel.org>
Acked-by: Thinh Nguyen <Thinh.Nguyen@synopsys.com>
Reviewed-by: Manivannan Sadhasivam <manivannan.sadhasivam@linaro.org>
Message-ID: <20230607100540.31045-3-johan+linaro@kernel.org>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
(cherry picked from commit e3dbb65757)
Signed-off-by: Lee Jones <joneslee@google.com>
Change-Id: I9c546e159867e0a9271c56d8340daa1506436855
2023-09-08 12:39:57 +01:00
Mathias Nyman 6388400ba5 UPSTREAM: xhci: Fix incorrect tracking of free space on transfer rings
This incorrect tracking caused unnecessary ring expansion in some
usecases which over days of use consume a lot of memory.

xhci driver tries to keep track of free transfer blocks (TRBs) on the
ring buffer, but failed to add back some cancelled transfers that were
turned into no-op operations instead of just moving past them.

This can happen if there are several queued pending transfers which
then are cancelled in reverse order.

Solve this by counting the numer of steps we move the dequeue pointer
once we complete a transfer, and add it to the number of free trbs
instead of just adding the trb number of the current transfer.
This way we ensure we count the no-op trbs on the way as well.

Bug: 254441685
Fixes: 55f6153d8c ("xhci: remove extra loop in interrupt context")
Cc: stable@vger.kernel.org
Reported-by: Miller Hunter <MillerH@hearthnhome.com>
Closes: https://bugzilla.kernel.org/show_bug.cgi?id=217242
Tested-by: Miller Hunter <MillerH@hearthnhome.com>
Signed-off-by: Mathias Nyman <mathias.nyman@linux.intel.com>
Link: https://lore.kernel.org/r/20230515134059.161110-3-mathias.nyman@linux.intel.com
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
(cherry picked from commit fe82f16aaf)
Signed-off-by: Lee Jones <joneslee@google.com>
Change-Id: Iba6c2cfad83029fcd567b5064f8ce80ccda0a701
2023-09-08 12:39:57 +01:00
Xu Yang b155bf3086 UPSTREAM: usb: typec: tcpm: fix warning when handle discover_identity message
Since both source and sink device can send discover_identity message in
PD3, kernel may dump below warning:

------------[ cut here ]------------
WARNING: CPU: 0 PID: 169 at drivers/usb/typec/tcpm/tcpm.c:1446 tcpm_queue_vdm+0xe0/0xf0
Modules linked in:
CPU: 0 PID: 169 Comm: 1-0050 Not tainted 6.1.1-00038-g6a3c36cf1da2-dirty #567
Hardware name: NXP i.MX8MPlus EVK board (DT)
pstate: 20000005 (nzCv daif -PAN -UAO -TCO -DIT -SSBS BTYPE=--)
pc : tcpm_queue_vdm+0xe0/0xf0
lr : tcpm_queue_vdm+0x2c/0xf0
sp : ffff80000c19bcd0
x29: ffff80000c19bcd0 x28: 0000000000000001 x27: ffff0000d11c8ab8
x26: ffff0000d11cc000 x25: 0000000000000000 x24: 00000000ff008081
x23: 0000000000000001 x22: 00000000ff00a081 x21: ffff80000c19bdbc
x20: 0000000000000000 x19: ffff0000d11c8080 x18: ffffffffffffffff
x17: 0000000000000000 x16: 0000000000000000 x15: ffff0000d716f580
x14: 0000000000000001 x13: ffff0000d716f507 x12: 0000000000000001
x11: 0000000000000000 x10: 0000000000000020 x9 : 00000000000ee098
x8 : 00000000ffffffff x7 : 000000000000001c x6 : ffff0000d716f580
x5 : 0000000000000000 x4 : 0000000000000000 x3 : 0000000000000000
x2 : ffff80000c19bdbc x1 : 00000000ff00a081 x0 : 0000000000000004
Call trace:
tcpm_queue_vdm+0xe0/0xf0
tcpm_pd_rx_handler+0x340/0x1ab0
kthread_worker_fn+0xcc/0x18c
kthread+0x10c/0x110
ret_from_fork+0x10/0x20
---[ end trace 0000000000000000 ]---

Below sequences may trigger this warning:

tcpm_send_discover_work(work)
  tcpm_send_vdm(port, USB_SID_PD, CMD_DISCOVER_IDENT, NULL, 0);
   tcpm_queue_vdm(port, header, data, count);
    port->vdm_state = VDM_STATE_READY;

vdm_state_machine_work(work);
			<-- received discover_identity from partner
 vdm_run_state_machine(port);
  port->vdm_state = VDM_STATE_SEND_MESSAGE;
   mod_vdm_delayed_work(port, x);

tcpm_pd_rx_handler(work);
 tcpm_pd_data_request(port, msg);
  tcpm_handle_vdm_request(port, msg->payload, cnt);
   tcpm_queue_vdm(port, response[0], &response[1], rlen - 1);
--> WARN_ON(port->vdm_state > VDM_STATE_DONE);

For this case, the state machine could still send out discover
identity message later if we skip current discover_identity message.
So we should handle the received message firstly and override the pending
discover_identity message without warning in this case. Then, a delayed
send_discover work will send discover_identity message again.

Bug: 254441685
Fixes: e00943e916 ("usb: typec: tcpm: PD3.0 sinks can send Discover Identity even in device mode")
cc: <stable@vger.kernel.org>
Signed-off-by: Xu Yang <xu.yang_2@nxp.com>
Reviewed-by: Guenter Roeck <linux@roeck-us.net>
Reviewed-by: Heikki Krogerus <heikki.krogerus@linux.intel.com>
Link: https://lore.kernel.org/r/20230216031515.4151117-1-xu.yang_2@nxp.com
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
(cherry picked from commit abfc4fa28f)
Signed-off-by: Lee Jones <joneslee@google.com>
Change-Id: I6989a29a09a10393b97bc5a5d5e3c055bb397e05
2023-09-08 12:39:57 +01:00
Greg Kroah-Hartman b23fd871be Merge 5.10.192 into android12-5.10-lts
Changes in 5.10.192
	mmc: sdhci-f-sdh30: Replace with sdhci_pltfm
	macsec: Fix traffic counters/statistics
	macsec: use DEV_STATS_INC()
	net/mlx5: Refactor init clock function
	net/mlx5: Move all internal timer metadata into a dedicated struct
	net/mlx5: Skip clock update work when device is in error state
	drm/radeon: Fix integer overflow in radeon_cs_parser_init
	ALSA: emu10k1: roll up loops in DSP setup code for Audigy
	ASoC: Intel: sof_sdw: add quirk for MTL RVP
	ASoC: Intel: sof_sdw: add quirk for LNL RVP
	PCI: tegra194: Fix possible array out of bounds access
	ARM: dts: imx6dl: prtrvt, prtvt7, prti6q, prtwd2: fix USB related warnings
	ASoC: Intel: sof_sdw: Add support for Rex soundwire
	iopoll: Call cpu_relax() in busy loops
	quota: Properly disable quotas when add_dquot_ref() fails
	quota: fix warning in dqgrab()
	dma-remap: use kvmalloc_array/kvfree for larger dma memory remap
	drm/amdgpu: install stub fence into potential unused fence pointers
	HID: add quirk for 03f0:464a HP Elite Presenter Mouse
	RDMA/mlx5: Return the firmware result upon destroying QP/RQ
	ovl: check type and offset of struct vfsmount in ovl_entry
	udf: Fix uninitialized array access for some pathnames
	fs: jfs: Fix UBSAN: array-index-out-of-bounds in dbAllocDmapLev
	MIPS: dec: prom: Address -Warray-bounds warning
	FS: JFS: Fix null-ptr-deref Read in txBegin
	FS: JFS: Check for read-only mounted filesystem in txBegin
	media: v4l2-mem2mem: add lock to protect parameter num_rdy
	usb: gadget: u_serial: Avoid spinlock recursion in __gs_console_push
	media: platform: mediatek: vpu: fix NULL ptr dereference
	usb: chipidea: imx: don't request QoS for imx8ulp
	usb: chipidea: imx: add missing USB PHY DPDM wakeup setting
	gfs2: Fix possible data races in gfs2_show_options()
	pcmcia: rsrc_nonstatic: Fix memory leak in nonstatic_release_resource_db()
	Bluetooth: L2CAP: Fix use-after-free
	Bluetooth: btusb: Add MT7922 bluetooth ID for the Asus Ally
	drm/amdgpu: Fix potential fence use-after-free v2
	ALSA: hda/realtek: Add quirks for Unis H3C Desktop B760 & Q760
	ALSA: hda: fix a possible null-pointer dereference due to data race in snd_hdac_regmap_sync()
	powerpc/kasan: Disable KCOV in KASAN code
	ring-buffer: Do not swap cpu_buffer during resize process
	IMA: allow/fix UML builds
	iio: add addac subdirectory
	dt-bindings: iio: add AD74413R
	iio: adc: stx104: Utilize iomap interface
	iio: adc: stx104: Implement and utilize register structures
	iio: addac: stx104: Fix race condition for stx104_write_raw()
	iio: addac: stx104: Fix race condition when converting analog-to-digital
	bus: mhi: Add MHI PCI support for WWAN modems
	bus: mhi: Add MMIO region length to controller structure
	bus: mhi: Move host MHI code to "host" directory
	bus: mhi: host: Range check CHDBOFF and ERDBOFF
	irqchip/mips-gic: Get rid of the reliance on irq_cpu_online()
	irqchip/mips-gic: Use raw spinlock for gic_lock
	usb: gadget: udc: core: Introduce check_config to verify USB configuration
	usb: cdns3: allocate TX FIFO size according to composite EP number
	usb: cdns3: fix NCM gadget RX speed 20x slow than expection at iMX8QM
	USB: dwc3: qcom: fix NULL-deref on suspend
	mmc: bcm2835: fix deferred probing
	mmc: sunxi: fix deferred probing
	mmc: core: add devm_mmc_alloc_host
	mmc: meson-gx: use devm_mmc_alloc_host
	mmc: meson-gx: fix deferred probing
	tracing/probes: Have process_fetch_insn() take a void * instead of pt_regs
	tracing/probes: Fix to update dynamic data counter if fetcharg uses it
	virtio-mmio: Use to_virtio_mmio_device() to simply code
	virtio-mmio: don't break lifecycle of vm_dev
	i2c: bcm-iproc: Fix bcm_iproc_i2c_isr deadlock issue
	fbdev: mmp: fix value check in mmphw_probe()
	powerpc/rtas_flash: allow user copy to flash block cache objects
	tty: n_gsm: fix the UAF caused by race condition in gsm_cleanup_mux
	tty: serial: fsl_lpuart: Clear the error flags by writing 1 for lpuart32 platforms
	btrfs: fix BUG_ON condition in btrfs_cancel_balance
	i2c: designware: Handle invalid SMBus block data response length value
	net: xfrm: Fix xfrm_address_filter OOB read
	net: af_key: fix sadb_x_filter validation
	net: xfrm: Amend XFRMA_SEC_CTX nla_policy structure
	xfrm: fix slab-use-after-free in decode_session6
	ip6_vti: fix slab-use-after-free in decode_session6
	ip_vti: fix potential slab-use-after-free in decode_session6
	xfrm: add NULL check in xfrm_update_ae_params
	xfrm: add forgotten nla_policy for XFRMA_MTIMER_THRESH
	selftests: mirror_gre_changes: Tighten up the TTL test match
	drm/panel: simple: Fix AUO G121EAN01 panel timings according to the docs
	ipvs: fix racy memcpy in proc_do_sync_threshold
	netfilter: nft_dynset: disallow object maps
	net: phy: broadcom: stub c45 read/write for 54810
	team: Fix incorrect deletion of ETH_P_8021AD protocol vid from slaves
	i40e: fix misleading debug logs
	net: dsa: mv88e6xxx: Wait for EEPROM done before HW reset
	sock: Fix misuse of sk_under_memory_pressure()
	net: do not allow gso_size to be set to GSO_BY_FRAGS
	bus: ti-sysc: Flush posted write on enable before reset
	arm64: dts: rockchip: fix supplies on rk3399-rock-pi-4
	arm64: dts: rockchip: use USB host by default on rk3399-rock-pi-4
	arm64: dts: rockchip: add ES8316 codec for ROCK Pi 4
	arm64: dts: rockchip: add SPDIF node for ROCK Pi 4
	arm64: dts: rockchip: fix regulator name on rk3399-rock-4
	arm64: dts: rockchip: sort nodes/properties on rk3399-rock-4
	arm64: dts: rockchip: Disable HS400 for eMMC on ROCK Pi 4
	ASoC: rt5665: add missed regulator_bulk_disable
	ASoC: meson: axg-tdm-formatter: fix channel slot allocation
	ALSA: hda/realtek - Remodified 3k pull low procedure
	serial: 8250: Fix oops for port->pm on uart_change_pm()
	ALSA: usb-audio: Add support for Mythware XA001AU capture and playback interfaces.
	cifs: Release folio lock on fscache read hit.
	mmc: wbsd: fix double mmc_free_host() in wbsd_init()
	mmc: block: Fix in_flight[issue_type] value error
	netfilter: set default timeout to 3 secs for sctp shutdown send and recv state
	af_unix: Fix null-ptr-deref in unix_stream_sendpage().
	virtio-net: set queues after driver_ok
	net: fix the RTO timer retransmitting skb every 1ms if linear option is enabled
	mmc: f-sdh30: fix order of function calls in sdhci_f_sdh30_remove
	x86/cpu: Fix __x86_return_thunk symbol type
	x86/cpu: Fix up srso_safe_ret() and __x86_return_thunk()
	x86/alternative: Make custom return thunk unconditional
	objtool: Add frame-pointer-specific function ignore
	x86/ibt: Add ANNOTATE_NOENDBR
	x86/cpu: Clean up SRSO return thunk mess
	x86/cpu: Rename original retbleed methods
	x86/cpu: Rename srso_(.*)_alias to srso_alias_\1
	x86/cpu: Cleanup the untrain mess
	x86/srso: Explain the untraining sequences a bit more
	x86/static_call: Fix __static_call_fixup()
	x86/retpoline: Don't clobber RFLAGS during srso_safe_ret()
	x86/CPU/AMD: Fix the DIV(0) initial fix attempt
	x86/srso: Disable the mitigation on unaffected configurations
	x86/retpoline,kprobes: Fix position of thunk sections with CONFIG_LTO_CLANG
	objtool/x86: Fixup frame-pointer vs rethunk
	x86/srso: Correct the mitigation status when SMT is disabled
	Linux 5.10.192

Change-Id: Id6dcc6748bce39baa640b8f0c3764d1d95643016
Signed-off-by: Greg Kroah-Hartman <gregkh@google.com>
2023-08-28 17:10:38 +00:00
Greg Kroah-Hartman 412095349f Merge 5.10.191 into android12-5.10-lts
Changes in 5.10.191
	wireguard: allowedips: expand maximum node depth
	mmc: moxart: read scr register without changing byte order
	ipv6: adjust ndisc_is_useropt() to also return true for PIO
	bpf: allow precision tracking for programs with subprogs
	bpf: stop setting precise in current state
	bpf: aggressively forget precise markings during state checkpointing
	selftests/bpf: make test_align selftest more robust
	selftests/bpf: Workaround verification failure for fexit_bpf2bpf/func_replace_return_code
	selftests/bpf: Fix sk_assign on s390x
	dmaengine: pl330: Return DMA_PAUSED when transaction is paused
	riscv,mmio: Fix readX()-to-delay() ordering
	drm/nouveau/gr: enable memory loads on helper invocation on all channels
	drm/shmem-helper: Reset vma->vm_ops before calling dma_buf_mmap()
	drm/amd/display: check attr flag before set cursor degamma on DCN3+
	hwmon: (pmbus/bel-pfe) Enable PMBUS_SKIP_STATUS_CHECK for pfe1100
	radix tree test suite: fix incorrect allocation size for pthreads
	x86/pkeys: Revert a5eff72597 ("x86/pkeys: Add PKRU value to init_fpstate")
	nilfs2: fix use-after-free of nilfs_root in dirtying inodes via iput
	io_uring: correct check for O_TMPFILE
	iio: cros_ec: Fix the allocation size for cros_ec_command
	binder: fix memory leak in binder_init()
	usb-storage: alauda: Fix uninit-value in alauda_check_media()
	usb: dwc3: Properly handle processing of pending events
	usb: common: usb-conn-gpio: Prevent bailing out if initial role is none
	x86/srso: Fix build breakage with the LLVM linker
	x86/cpu/amd: Enable Zenbleed fix for AMD Custom APU 0405
	x86/mm: Fix VDSO and VVAR placement on 5-level paging machines
	x86/speculation: Add cpu_show_gds() prototype
	x86: Move gds_ucode_mitigated() declaration to header
	drm/nouveau/disp: Revert a NULL check inside nouveau_connector_get_modes
	selftests/rseq: Fix build with undefined __weak
	selftests: forwarding: Add a helper to skip test when using veth pairs
	selftests: forwarding: ethtool: Skip when using veth pairs
	selftests: forwarding: ethtool_extended_state: Skip when using veth pairs
	selftests: forwarding: Skip test when no interfaces are specified
	selftests: forwarding: Switch off timeout
	selftests: forwarding: tc_flower: Relax success criterion
	mISDN: Update parameter type of dsp_cmx_send()
	net/packet: annotate data-races around tp->status
	tunnels: fix kasan splat when generating ipv4 pmtu error
	bonding: Fix incorrect deletion of ETH_P_8021AD protocol vid from slaves
	dccp: fix data-race around dp->dccps_mss_cache
	drivers: net: prevent tun_build_skb() to exceed the packet size limit
	IB/hfi1: Fix possible panic during hotplug remove
	wifi: cfg80211: fix sband iftype data lookup for AP_VLAN
	net: phy: at803x: remove set/get wol callbacks for AR8032
	net: hns3: refactor hclge_mac_link_status_wait for interface reuse
	net: hns3: add wait until mac link down
	dmaengine: mcf-edma: Fix a potential un-allocated memory access
	net/mlx5: Allow 0 for total host VFs
	ibmvnic: Enforce stronger sanity checks on login response
	ibmvnic: Unmap DMA login rsp buffer on send login fail
	ibmvnic: Handle DMA unmapping of login buffs in release functions
	btrfs: don't stop integrity writeback too early
	btrfs: set cache_block_group_error if we find an error
	nvme-tcp: fix potential unbalanced freeze & unfreeze
	nvme-rdma: fix potential unbalanced freeze & unfreeze
	netfilter: nf_tables: report use refcount overflow
	scsi: core: Fix legacy /proc parsing buffer overflow
	scsi: storvsc: Fix handling of virtual Fibre Channel timeouts
	scsi: 53c700: Check that command slot is not NULL
	scsi: snic: Fix possible memory leak if device_add() fails
	scsi: core: Fix possible memory leak if device_add() fails
	scsi: qedi: Fix firmware halt over suspend and resume
	scsi: qedf: Fix firmware halt over suspend and resume
	alpha: remove __init annotation from exported page_is_ram()
	sch_netem: fix issues in netem_change() vs get_dist_table()
	Linux 5.10.191

Change-Id: Ice1868f0a7b328bb0e56985ac0bb5af9434fd073
Signed-off-by: Greg Kroah-Hartman <gregkh@google.com>
2023-08-28 16:37:52 +00:00
Johan Hovold 01dfc61f72 USB: dwc3: qcom: fix NULL-deref on suspend
[ Upstream commit d2d6935422 ]

The Qualcomm dwc3 glue driver is currently accessing the driver data of
the child core device during suspend and on wakeup interrupts. This is
clearly a bad idea as the child may not have probed yet or could have
been unbound from its driver.

The first such layering violation was part of the initial version of the
driver, but this was later made worse when the hack that accesses the
driver data of the grand child xhci device to configure the wakeup
interrupts was added.

Fixing this properly is not that easily done, so add a sanity check to
make sure that the child driver data is non-NULL before dereferencing it
for now.

Note that this relies on subtleties like the fact that driver core is
making sure that the parent is not suspended while the child is probing.

Reported-by: Manivannan Sadhasivam <manivannan.sadhasivam@linaro.org>
Link: https://lore.kernel.org/all/20230325165217.31069-4-manivannan.sadhasivam@linaro.org/
Fixes: d9152161b4 ("usb: dwc3: Add Qualcomm DWC3 glue layer driver")
Fixes: 6895ea55c3 ("usb: dwc3: qcom: Configure wakeup interrupts during suspend")
Cc: stable@vger.kernel.org	# 3.18: a872ab303d: "usb: dwc3: qcom: fix use-after-free on runtime-PM wakeup"
Cc: Sandeep Maheswaram <quic_c_sanm@quicinc.com>
Cc: Krishna Kurapati <quic_kriskura@quicinc.com>
Signed-off-by: Johan Hovold <johan+linaro@kernel.org>
Acked-by: Thinh Nguyen <Thinh.Nguyen@synopsys.com>
Reviewed-by: Manivannan Sadhasivam <manivannan.sadhasivam@linaro.org>
Message-ID: <20230607100540.31045-2-johan+linaro@kernel.org>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
Signed-off-by: Sasha Levin <sashal@kernel.org>
2023-08-26 15:26:49 +02:00
Frank Li 3e2b5d66e9 usb: cdns3: fix NCM gadget RX speed 20x slow than expection at iMX8QM
[ Upstream commit dbe678f619 ]

At iMX8QM platform, enable NCM gadget and run 'iperf3 -s'.
At host, run 'iperf3 -V -c fe80::6863:98ff:feef:3e0%enxc6e147509498'

[  5]   0.00-1.00   sec  1.55 MBytes  13.0 Mbits/sec   90   4.18 KBytes
[  5]   1.00-2.00   sec  1.44 MBytes  12.0 Mbits/sec   75   4.18 KBytes
[  5]   2.00-3.00   sec  1.48 MBytes  12.4 Mbits/sec   75   4.18 KBytes

Expected speed should be bigger than 300Mbits/sec.

The root cause of this performance drop was found to be data corruption
happening at 4K borders in some Ethernet packets, leading to TCP
checksum errors. This corruption occurs from the position
(4K - (address & 0x7F)) to 4K. The u_ether function's allocation of
skb_buff reserves 64B, meaning all RX addresses resemble 0xXXXX0040.

Force trb_burst_size to 16 can fix this problem.

Cc: stable@vger.kernel.org
Fixes: 7733f6c32e ("usb: cdns3: Add Cadence USB3 DRD Driver")
Signed-off-by: Frank Li <Frank.Li@nxp.com>
Link: https://lore.kernel.org/r/20230518154946.3666662-1-Frank.Li@nxp.com
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
Signed-off-by: Sasha Levin <sashal@kernel.org>
2023-08-26 15:26:48 +02:00
Frank Li f5c11b45f3 usb: cdns3: allocate TX FIFO size according to composite EP number
[ Upstream commit dce49449e0 ]

Some devices have USB compositions which may require multiple endpoints.
To get better performance, need bigger CDNS3_EP_BUF_SIZE.

But bigger CDNS3_EP_BUF_SIZE may exceed total hardware FIFO size when
multiple endpoints.

By introducing the check_config() callback, calculate CDNS3_EP_BUF_SIZE.

Move CDNS3_EP_BUF_SIZE into cnds3_device: ep_buf_size
Combine CDNS3_EP_ISO_SS_BURST and CDNS3_EP_ISO_HS_MULT into
cnds3_device:ep_iso_burst

Using a simple algorithm to calculate ep_buf_size.
ep_buf_size = ep_iso_burst = (onchip_buffers - 2k) / (number of IN EP +
1).

Test at 8qxp:

	Gadget			ep_buf_size

	RNDIS:				5
	RNDIS+ACM:			3
	Mass Storage + NCM + ACM	2

Previous CDNS3_EP_BUF_SIZE is 4, RNDIS + ACM will be failure because
exceed FIFO memory.

Acked-by: Peter Chen <peter.chen@kernel.org>
Signed-off-by: Frank Li <Frank.Li@nxp.com>
Link: https://lore.kernel.org/r/20220509164055.1815081-1-Frank.Li@nxp.com
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
Stable-dep-of: dbe678f619 ("usb: cdns3: fix NCM gadget RX speed 20x slow than expection at iMX8QM")
Signed-off-by: Sasha Levin <sashal@kernel.org>
2023-08-26 15:26:48 +02:00
Wesley Cheng a461bcfb36 usb: gadget: udc: core: Introduce check_config to verify USB configuration
[ Upstream commit ce7d0008c2 ]

Some UDCs may have constraints on how many high bandwidth endpoints it can
support in a certain configuration.  This API allows for the composite
driver to pass down the total number of endpoints to the UDC so it can verify
it has the required resources to support the configuration.

Signed-off-by: Wesley Cheng <wcheng@codeaurora.org>
Link: https://lore.kernel.org/r/1625908395-5498-2-git-send-email-wcheng@codeaurora.org
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
Stable-dep-of: dbe678f619 ("usb: cdns3: fix NCM gadget RX speed 20x slow than expection at iMX8QM")
Signed-off-by: Sasha Levin <sashal@kernel.org>
2023-08-26 15:26:48 +02:00
Xu Yang e8f3d96051 usb: chipidea: imx: add missing USB PHY DPDM wakeup setting
[ Upstream commit 53d061c19d ]

USB PHY DPDM wakeup bit is enabled by default, when USB wakeup
is not required(/sys/.../wakeup is disabled), this bit should be
disabled, otherwise we will have unexpected wakeup if do USB device
connect/disconnect while system sleep.
This bit can be enabled for both host and device mode.

Signed-off-by: Li Jun <jun.li@nxp.com>
Signed-off-by: Xu Yang <xu.yang_2@nxp.com>
Acked-by: Peter Chen <peter.chen@kernel.org>
Message-ID: <20230517081907.3410465-3-xu.yang_2@nxp.com>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
Signed-off-by: Sasha Levin <sashal@kernel.org>
2023-08-26 15:26:45 +02:00
Xu Yang 7a3a7c6fa0 usb: chipidea: imx: don't request QoS for imx8ulp
[ Upstream commit 9a070e8e20 ]

Use dedicated imx8ulp usb compatible to remove QoS request
since imx8ulp has no such limitation of imx7ulp: DMA will
not work if system enters idle.

Signed-off-by: Xu Yang <xu.yang_2@nxp.com>
Signed-off-by: Li Jun <jun.li@nxp.com>
Acked-by: Peter Chen <peter.chen@kernel.org>
Message-ID: <20230530104007.1294702-2-xu.yang_2@nxp.com>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
Signed-off-by: Sasha Levin <sashal@kernel.org>
2023-08-26 15:26:45 +02:00
Prashanth K 99d6afa19d usb: gadget: u_serial: Avoid spinlock recursion in __gs_console_push
[ Upstream commit e599046994 ]

When serial console over USB is enabled, gs_console_connect
queues gs_console_work, where it acquires the spinlock and
queues the usb request, and this request goes to gadget layer.
Now consider a situation where gadget layer prints something
to dmesg, this will eventually call gs_console_write() which
requires cons->lock. And this causes spinlock recursion. Avoid
this by excluding usb_ep_queue from the spinlock.

 spin_lock_irqsave //needs cons->lock
 gs_console_write
	.
	.
 _printk
 __warn_printk
 dev_warn/pr_err
	.
	.
 [USB Gadget Layer]
	.
	.
 usb_ep_queue
 gs_console_work
 __gs_console_push // acquires cons->lock
 process_one_work

Signed-off-by: Prashanth K <quic_prashk@quicinc.com>
Link: https://lore.kernel.org/r/1683638872-6885-1-git-send-email-quic_prashk@quicinc.com
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
Signed-off-by: Sasha Levin <sashal@kernel.org>
2023-08-26 15:26:45 +02:00
Greg Kroah-Hartman df0f5bd7a8 Merge 5.10.190 into android12-5.10-lts
Changes in 5.10.190
	KVM: s390: pv: fix index value of replaced ASCE
	io_uring: don't audit the capability check in io_uring_create()
	gpio: tps68470: Make tps68470_gpio_output() always set the initial value
	btrfs: fix race between quota disable and relocation
	btrfs: fix extent buffer leak after tree mod log failure at split_node()
	i2c: Delete error messages for failed memory allocations
	i2c: Improve size determinations
	i2c: nomadik: Remove unnecessary goto label
	i2c: nomadik: Use devm_clk_get_enabled()
	i2c: nomadik: Remove a useless call in the remove function
	PCI/ASPM: Return 0 or -ETIMEDOUT from pcie_retrain_link()
	PCI/ASPM: Factor out pcie_wait_for_retrain()
	PCI/ASPM: Avoid link retraining race
	dlm: cleanup plock_op vs plock_xop
	dlm: rearrange async condition return
	fs: dlm: interrupt posix locks only when process is killed
	drm/ttm: add ttm_bo_pin()/ttm_bo_unpin() v2
	drm/ttm: never consider pinned BOs for eviction&swap
	tracing: Show real address for trace event arguments
	pwm: meson: Simplify duplicated per-channel tracking
	pwm: meson: fix handling of period/duty if greater than UINT_MAX
	ext4: fix to check return value of freeze_bdev() in ext4_shutdown()
	phy: qcom-snps: Use dev_err_probe() to simplify code
	phy: qcom-snps: correct struct qcom_snps_hsphy kerneldoc
	phy: qcom-snps-femto-v2: keep cfg_ahb_clk enabled during runtime suspend
	phy: qcom-snps-femto-v2: properly enable ref clock
	media: staging: atomisp: select V4L2_FWNODE
	i40e: Fix an NULL vs IS_ERR() bug for debugfs_create_dir()
	net: phy: marvell10g: fix 88x3310 power up
	net: hns3: reconstruct function hclge_ets_validate()
	net: hns3: fix wrong bw weight of disabled tc issue
	vxlan: move to its own directory
	vxlan: calculate correct header length for GPE
	phy: hisilicon: Fix an out of bounds check in hisi_inno_phy_probe()
	ethernet: atheros: fix return value check in atl1e_tso_csum()
	ipv6 addrconf: fix bug where deleting a mngtmpaddr can create a new temporary address
	tcp: Reduce chance of collisions in inet6_hashfn().
	ice: Fix memory management in ice_ethtool_fdir.c
	bonding: reset bond's flags when down link is P2P device
	team: reset team's flags when down link is P2P device
	platform/x86: msi-laptop: Fix rfkill out-of-sync on MSI Wind U100
	netfilter: nft_set_rbtree: fix overlap expiration walk
	netfilter: nftables: add helper function to validate set element data
	netfilter: nf_tables: skip immediate deactivate in _PREPARE_ERROR
	netfilter: nf_tables: disallow rule addition to bound chain via NFTA_RULE_CHAIN_ID
	net/sched: mqprio: refactor nlattr parsing to a separate function
	net/sched: mqprio: add extack to mqprio_parse_nlattr()
	net/sched: mqprio: Add length check for TCA_MQPRIO_{MAX/MIN}_RATE64
	benet: fix return value check in be_lancer_xmit_workarounds()
	tipc: check return value of pskb_trim()
	tipc: stop tipc crypto on failure in tipc_node_create
	RDMA/mlx4: Make check for invalid flags stricter
	drm/msm/dpu: drop enum dpu_core_perf_data_bus_id
	drm/msm/adreno: Fix snapshot BINDLESS_DATA size
	RDMA/mthca: Fix crash when polling CQ for shared QPs
	drm/msm: Fix IS_ERR_OR_NULL() vs NULL check in a5xx_submit_in_rb()
	ASoC: fsl_spdif: Silence output on stop
	block: Fix a source code comment in include/uapi/linux/blkzoned.h
	dm raid: fix missing reconfig_mutex unlock in raid_ctr() error paths
	dm raid: clean up four equivalent goto tags in raid_ctr()
	dm raid: protect md_stop() with 'reconfig_mutex'
	ata: pata_ns87415: mark ns87560_tf_read static
	ring-buffer: Fix wrong stat of cpu_buffer->read
	tracing: Fix warning in trace_buffered_event_disable()
	Revert "usb: gadget: tegra-xudc: Fix error check in tegra_xudc_powerdomain_init()"
	USB: gadget: Fix the memory leak in raw_gadget driver
	serial: qcom-geni: drop bogus runtime pm state update
	serial: 8250_dw: Preserve original value of DLF register
	serial: sifive: Fix sifive_serial_console_setup() section
	USB: serial: option: support Quectel EM060K_128
	USB: serial: option: add Quectel EC200A module support
	USB: serial: simple: add Kaufmann RKS+CAN VCP
	USB: serial: simple: sort driver entries
	can: gs_usb: gs_can_close(): add missing set of CAN state to CAN_STATE_STOPPED
	Revert "usb: dwc3: core: Enable AutoRetry feature in the controller"
	usb: dwc3: pci: skip BYT GPIO lookup table for hardwired phy
	usb: dwc3: don't reset device side if dwc3 was configured as host-only
	usb: ohci-at91: Fix the unhandle interrupt when resume
	USB: quirks: add quirk for Focusrite Scarlett
	usb: xhci-mtk: set the dma max_seg_size
	Revert "usb: xhci: tegra: Fix error check"
	Documentation: security-bugs.rst: update preferences when dealing with the linux-distros group
	Documentation: security-bugs.rst: clarify CVE handling
	staging: ks7010: potential buffer overflow in ks_wlan_set_encode_ext()
	tty: n_gsm: fix UAF in gsm_cleanup_mux
	ALSA: hda/relatek: Enable Mute LED on HP 250 G8
	hwmon: (nct7802) Fix for temp6 (PECI1) processed even if PECI1 disabled
	btrfs: check for commit error at btrfs_attach_transaction_barrier()
	file: always lock position for FMODE_ATOMIC_POS
	nfsd: Remove incorrect check in nfsd4_validate_stateid
	tpm_tis: Explicitly check for error code
	irq-bcm6345-l1: Do not assume a fixed block to cpu mapping
	irqchip/gic-v4.1: Properly lock VPEs when doing a directLPI invalidation
	KVM: VMX: Invert handling of CR0.WP for EPT without unrestricted guest
	KVM: VMX: Fold ept_update_paging_mode_cr0() back into vmx_set_cr0()
	KVM: nVMX: Do not clear CR3 load/store exiting bits if L1 wants 'em
	KVM: VMX: Don't fudge CR0 and CR4 for restricted L2 guest
	staging: rtl8712: Use constants from <linux/ieee80211.h>
	staging: r8712: Fix memory leak in _r8712_init_xmit_priv()
	btrfs: check if the transaction was aborted at btrfs_wait_for_commit()
	virtio-net: fix race between set queues and probe
	s390/dasd: fix hanging device after quiesce/resume
	ASoC: wm8904: Fill the cache for WM8904_ADC_TEST_0 register
	ceph: never send metrics if disable_send_metrics is set
	dm cache policy smq: ensure IO doesn't prevent cleaner policy progress
	drm/ttm: make ttm_bo_unpin more defensive
	ACPI: processor: perflib: Use the "no limit" frequency QoS
	ACPI: processor: perflib: Avoid updating frequency QoS unnecessarily
	cpufreq: intel_pstate: Drop ACPI _PSS states table patching
	selftests: mptcp: depend on SYN_COOKIES
	io_uring: treat -EAGAIN for REQ_F_NOWAIT as final for io-wq
	ASoC: cs42l51: fix driver to properly autoload with automatic module loading
	kprobes/x86: Fix fall-through warnings for Clang
	x86/kprobes: Do not decode opcode in resume_execution()
	x86/kprobes: Retrieve correct opcode for group instruction
	x86/kprobes: Identify far indirect JMP correctly
	x86/kprobes: Use int3 instead of debug trap for single-step
	x86/kprobes: Fix to identify indirect jmp and others using range case
	x86/kprobes: Move 'inline' to the beginning of the kprobe_is_ss() declaration
	x86/kprobes: Update kcb status flag after singlestepping
	x86/kprobes: Fix JNG/JNLE emulation
	io_uring: gate iowait schedule on having pending requests
	perf: Fix function pointer case
	loop: Select I/O scheduler 'none' from inside add_disk()
	arm64: dts: imx8mn-var-som: add missing pull-up for onboard PHY reset pinmux
	word-at-a-time: use the same return type for has_zero regardless of endianness
	KVM: s390: fix sthyi error handling
	wifi: cfg80211: Fix return value in scan logic
	net/mlx5: DR, fix memory leak in mlx5dr_cmd_create_reformat_ctx
	net/mlx5e: fix return value check in mlx5e_ipsec_remove_trailer()
	bpf: Add length check for SK_DIAG_BPF_STORAGE_REQ_MAP_FD parsing
	rtnetlink: let rtnl_bridge_setlink checks IFLA_BRIDGE_MODE length
	net: dsa: fix value check in bcm_sf2_sw_probe()
	perf test uprobe_from_different_cu: Skip if there is no gcc
	net: sched: cls_u32: Fix match key mis-addressing
	mISDN: hfcpci: Fix potential deadlock on &hc->lock
	net: annotate data-races around sk->sk_max_pacing_rate
	net: add missing READ_ONCE(sk->sk_rcvlowat) annotation
	net: add missing READ_ONCE(sk->sk_sndbuf) annotation
	net: add missing READ_ONCE(sk->sk_rcvbuf) annotation
	net: add missing data-race annotations around sk->sk_peek_off
	net: add missing data-race annotation for sk_ll_usec
	net/sched: cls_u32: No longer copy tcf_result on update to avoid use-after-free
	net/sched: cls_fw: No longer copy tcf_result on update to avoid use-after-free
	net/sched: cls_route: No longer copy tcf_result on update to avoid use-after-free
	bpf: sockmap: Remove preempt_disable in sock_map_sk_acquire
	net: ll_temac: Switch to use dev_err_probe() helper
	net: ll_temac: fix error checking of irq_of_parse_and_map()
	net: netsec: Ignore 'phy-mode' on SynQuacer in DT mode
	net: dcb: choose correct policy to parse DCB_ATTR_BCN
	s390/qeth: Don't call dev_close/dev_open (DOWN/UP)
	ip6mr: Fix skb_under_panic in ip6mr_cache_report()
	vxlan: Fix nexthop hash size
	net/mlx5: fs_core: Make find_closest_ft more generic
	net/mlx5: fs_core: Skip the FTs in the same FS_TYPE_PRIO_CHAINS fs_prio
	tcp_metrics: fix addr_same() helper
	tcp_metrics: annotate data-races around tm->tcpm_stamp
	tcp_metrics: annotate data-races around tm->tcpm_lock
	tcp_metrics: annotate data-races around tm->tcpm_vals[]
	tcp_metrics: annotate data-races around tm->tcpm_net
	tcp_metrics: fix data-race in tcpm_suck_dst() vs fastopen
	scsi: zfcp: Defer fc_rport blocking until after ADISC response
	libceph: fix potential hang in ceph_osdc_notify()
	USB: zaurus: Add ID for A-300/B-500/C-700
	ceph: defer stopping mdsc delayed_work
	exfat: use kvmalloc_array/kvfree instead of kmalloc_array/kfree
	exfat: release s_lock before calling dir_emit()
	mtd: spinand: toshiba: Fix ecc_get_status
	mtd: rawnand: meson: fix OOB available bytes for ECC
	arm64: dts: stratix10: fix incorrect I2C property for SCL signal
	net: tun_chr_open(): set sk_uid from current_fsuid()
	net: tap_open(): set sk_uid from current_fsuid()
	bpf: Disable preemption in bpf_event_output
	open: make RESOLVE_CACHED correctly test for O_TMPFILE
	drm/ttm: check null pointer before accessing when swapping
	file: reinstate f_pos locking optimization for regular files
	tracing: Fix sleeping while atomic in kdb ftdump
	fs/sysv: Null check to prevent null-ptr-deref bug
	Bluetooth: L2CAP: Fix use-after-free in l2cap_sock_ready_cb
	net: usbnet: Fix WARNING in usbnet_start_xmit/usb_submit_urb
	fs: Protect reconfiguration of sb read-write from racing writes
	ext2: Drop fragment support
	mtd: rawnand: omap_elm: Fix incorrect type in assignment
	mtd: rawnand: fsl_upm: Fix an off-by one test in fun_exec_op()
	powerpc/mm/altmap: Fix altmap boundary check
	selftests/rseq: check if libc rseq support is registered
	selftests/rseq: Play nice with binaries statically linked against glibc 2.35+
	soundwire: bus: add better dev_dbg to track complete() calls
	soundwire: bus: pm_runtime_request_resume on peripheral attachment
	soundwire: fix enumeration completion
	PM / wakeirq: support enabling wake-up irq after runtime_suspend called
	PM: sleep: wakeirq: fix wake irq arming
	exfat: speed up iterate/lookup by fixing start point of traversing cluster chain
	exfat: support dynamic allocate bh for exfat_entry_set_cache
	exfat: check if filename entries exceeds max filename length
	mt76: move band capabilities in mt76_phy
	mt76: mt7615: Fix fall-through warnings for Clang
	wifi: mt76: mt7615: do not advertise 5 GHz on first phy of MT7615D (DBDC)
	ARM: dts: imx: add usb alias
	ARM: dts: imx6sll: fixup of operating points
	ARM: dts: nxp/imx6sll: fix wrong property name in usbphy node
	x86/CPU/AMD: Do not leak quotient data after a division by 0
	Linux 5.10.190

Fix up build problem in ext4 due to merge of ed3d841f2f ("ext4: fix to
check return value of freeze_bdev() in ext4_shutdown()") conflicting
with a previous block layer core change coming in through the f2fs tree
in the past, that is not upstream, but ANDROID specific.

Change-Id: Ib95e59ce8ba653bcc791802735afafcd26bd996f
Signed-off-by: Greg Kroah-Hartman <gregkh@google.com>
2023-08-25 12:26:58 +00:00
Tao Huang 7e9467d1d2 usb: dwc3: core: parkmode_disable_hs_quirk depends on CONFIG_NO_GKI
Fixes: 35db5a9e94 ("UPSTREAM: usb: dwc3: core: add support for disabling High-speed park mode")
Signed-off-by: Tao Huang <huangtao@rock-chips.com>
Change-Id: Ife342a9339c731828d9677d110494fdd7862fe49
2023-08-25 16:50:03 +08:00
Krishna Kurapati f2545eebf0 BACKPORT: UPSTREAM: usb: dwc3: gadget: Execute gadget stop after halting the controller
Do not call gadget stop until the poll for controller halt is
completed.  DEVTEN is cleared as part of gadget stop, so the intention to
allow ep0 events to continue while waiting for controller halt is not
happening.

Fixes: c96683798e ("usb: dwc3: ep0: Don't prepare beyond Setup stage")
Cc: stable@vger.kernel.org
Acked-by: Thinh Nguyen <Thinh.Nguyen@synopsys.com>
Signed-off-by: Wesley Cheng <quic_wcheng@quicinc.com>
Link: https://lore.kernel.org/r/20230420212759.29429-2-quic_wcheng@quicinc.com
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>

Bug: 280741172
Bug: 277690231
Bug: 296168017
[ugoswami: Modified the function dwc3_gadget_run_stop to remove dependency from cleanup patch.]
(cherry picked from commit 39674be56f usb-linus)

Change-Id: I2a8a42e938a680cefc0d1a56274caf155a4f99cd
Signed-off-by: Wesley Cheng <quic_wcheng@quicinc.com>
Signed-off-by: Udipto Goswami <quic_ugoswami@quicinc.com>
Signed-off-by: Krishna Kurapati <quic_kriskura@quicinc.com>
(cherry picked from commit 45902380021d3fe742f9e6d49337ad3746f00d64)
(cherry picked from commit 1ce1603175dafecd3e19ed7b8422c16b538a849b)
2023-08-21 21:36:43 +00:00
Wesley Cheng 6d38ae2f4c UPSTREAM: usb: dwc3: gadget: Stall and restart EP0 if host is unresponsive
It was observed that there are hosts that may complete pending SETUP
transactions before the stop active transfers and controller halt occurs,
leading to lingering endxfer commands on DEPs on subsequent pullup/gadget
start iterations.

  dwc3_gadget_ep_disable   name=ep8in flags=0x3009  direction=1
  dwc3_gadget_ep_disable   name=ep4in flags=1  direction=1
  dwc3_gadget_ep_disable   name=ep3out flags=1  direction=0
  usb_gadget_disconnect   deactivated=0  connected=0  ret=0

The sequence shows that the USB gadget disconnect (dwc3_gadget_pullup(0))
routine completed successfully, allowing for the USB gadget to proceed with
a USB gadget connect.  However, if this occurs the system runs into an
issue where:

  BUG: spinlock already unlocked on CPU
  spin_bug+0x0
  dwc3_remove_requests+0x278
  dwc3_ep0_out_start+0xb0
  __dwc3_gadget_start+0x25c

This is due to the pending endxfers, leading to gadget start (w/o lock
held) to execute the remove requests, which will unlock the dwc3
spinlock as part of giveback.

To mitigate this, resolve the pending endxfers on the pullup disable
path by re-locating the SETUP phase check after stop active transfers, since
that is where the DWC3_EP_DELAY_STOP is potentially set.  This also allows
for handling of a host that may be unresponsive by using the completion
timeout to trigger the stall and restart for EP0.

Fixes: c96683798e ("usb: dwc3: ep0: Don't prepare beyond Setup stage")
Signed-off-by: Wesley Cheng <quic_wcheng@quicinc.com>

Fixes: c96683798e ("usb: dwc3: ep0: Don't prepare beyond Setup stage")
Cc: stable@vger.kernel.org
Acked-by: Thinh Nguyen <Thinh.Nguyen@synopsys.com>
Signed-off-by: Wesley Cheng <quic_wcheng@quicinc.com>
Link: https://lore.kernel.org/r/20230413195742.11821-2-quic_wcheng@quicinc.com
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>

Bug: 280741172
Bug: 277690231
Bug: 296168017
(cherry picked from commit 02435a739b usb-linus)

Change-Id: Ifa9aeab01a4f45feaae59c2d393e6712f5370f08
Signed-off-by: Wesley Cheng <quic_wcheng@quicinc.com>
Signed-off-by: Udipto Goswami <quic_ugoswami@quicinc.com>
(cherry picked from commit 5dd4405fee1bf7505d4211c083c695a2cf7adaea)
(cherry picked from commit 82aad30f43743df34ce5b31be89ba8fc64233fa0)
2023-08-21 20:14:28 +00:00
Prashanth K df8d390a21 usb: common: usb-conn-gpio: Prevent bailing out if initial role is none
commit 8e21a620c7 upstream.

Currently if we bootup a device without cable connected, then
usb-conn-gpio won't call set_role() because last_role is same
as current role. This happens since last_role gets initialised
to zero during the probe.

To avoid this, add a new flag initial_detection into struct
usb_conn_info, which prevents bailing out during initial
detection.

Cc: <stable@vger.kernel.org> # 5.4
Fixes: 4602f3bff2 ("usb: common: add USB GPIO based connection detection driver")
Signed-off-by: Prashanth K <quic_prashk@quicinc.com>
Tested-by: AngeloGioacchino Del Regno <angelogioacchino.delregno@collabora.com>
Reviewed-by: Heikki Krogerus <heikki.krogerus@linux.intel.com>
Link: https://lore.kernel.org/r/1690880632-12588-1-git-send-email-quic_prashk@quicinc.com
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
2023-08-16 18:21:00 +02:00
Elson Roy Serrao 598ccdb92d usb: dwc3: Properly handle processing of pending events
commit 3ddaa6a274 upstream.

If dwc3 is runtime suspended we defer processing the event buffer
until resume, by setting the pending_events flag. Set this flag before
triggering resume to avoid race with the runtime resume callback.

While handling the pending events, in addition to checking the event
buffer we also need to process it. Handle this by explicitly calling
dwc3_thread_interrupt(). Also balance the runtime pm get() operation
that triggered this processing.

Cc: stable@vger.kernel.org
Fixes: fc8bb91bc8 ("usb: dwc3: implement runtime PM")
Signed-off-by: Elson Roy Serrao <quic_eserrao@quicinc.com>
Acked-by: Thinh Nguyen <Thinh.Nguyen@synopsys.com>
Reviewed-by: Roger Quadros <rogerq@kernel.org>
Link: https://lore.kernel.org/r/20230801192658.19275-1-quic_eserrao@quicinc.com
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
2023-08-16 18:21:00 +02:00
Alan Stern fe7c3a445d usb-storage: alauda: Fix uninit-value in alauda_check_media()
commit a6ff6e7a9d upstream.

Syzbot got KMSAN to complain about access to an uninitialized value in
the alauda subdriver of usb-storage:

BUG: KMSAN: uninit-value in alauda_transport+0x462/0x57f0
drivers/usb/storage/alauda.c:1137
CPU: 0 PID: 12279 Comm: usb-storage Not tainted 5.3.0-rc7+ #0
Hardware name: Google Google Compute Engine/Google Compute Engine, BIOS
Google 01/01/2011
Call Trace:
  __dump_stack lib/dump_stack.c:77 [inline]
  dump_stack+0x191/0x1f0 lib/dump_stack.c:113
  kmsan_report+0x13a/0x2b0 mm/kmsan/kmsan_report.c:108
  __msan_warning+0x73/0xe0 mm/kmsan/kmsan_instr.c:250
  alauda_check_media+0x344/0x3310 drivers/usb/storage/alauda.c:460

The problem is that alauda_check_media() doesn't verify that its USB
transfer succeeded before trying to use the received data.  What
should happen if the transfer fails isn't entirely clear, but a
reasonably conservative approach is to pretend that no media is
present.

A similar problem exists in a usb_stor_dbg() call in
alauda_get_media_status().  In this case, when an error occurs the
call is redundant, because usb_stor_ctrl_transfer() already will print
a debugging message.

Finally, unrelated to the uninitialized memory access, is the fact
that alauda_check_media() performs DMA to a buffer on the stack.
Fortunately usb-storage provides a general purpose DMA-able buffer for
uses like this.  We'll use it instead.

Reported-and-tested-by: syzbot+e7d46eb426883fb97efd@syzkaller.appspotmail.com
Closes: https://lore.kernel.org/all/0000000000007d25ff059457342d@google.com/T/
Suggested-by: Christophe JAILLET <christophe.jaillet@wanadoo.fr>
Signed-off-by: Alan Stern <stern@rowland.harvard.edu>
Fixes: e80b0fade0 ("[PATCH] USB Storage: add alauda support")
Cc: <stable@vger.kernel.org>
Link: https://lore.kernel.org/r/693d5d5e-f09b-42d0-8ed9-1f96cd30bcce@rowland.harvard.edu
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
2023-08-16 18:21:00 +02:00
Stanley Chang 35db5a9e94 UPSTREAM: usb: dwc3: core: add support for disabling High-speed park mode
Setting the PARKMODE_DISABLE_HS bit in the DWC3_USB3_GUCTL1.
When this bit is set to '1' all HS bus instances in park mode are disabled

For some USB wifi devices, if enable this feature it will reduce the
performance. Therefore, add an option for disabling HS park mode by
device-tree.

In Synopsys's dwc3 data book:
In a few high speed devices when an IN request is sent within 900ns of the
ACK of the previous packet, these devices send a NAK. When connected to
these devices, if required, the software can disable the park mode if you
see performance drop in your system. When park mode is disabled,
pipelining of multiple packet is disabled and instead one packet at a time
is requested by the scheduler. This allows up to 12 NAKs in a micro-frame
and improves performance of these slow devices.

Acked-by: Thinh Nguyen <Thinh.Nguyen@synopsys.com>
Signed-off-by: Stanley Chang <stanley_chang@realtek.com>
Link: https://lore.kernel.org/r/20230419020044.15475-1-stanley_chang@realtek.com
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
Signed-off-by: William Wu <william.wu@rock-chips.com>
(cherry-pick from commit d21a797a3e)
Change-Id: I43ee416e54779a073a0ba4057edf4be8bd7886de
2023-08-16 15:27:25 +08:00
Dan Carpenter 65cd02e3c3 Revert "usb: xhci: tegra: Fix error check"
commit 288b4fa179 upstream.

This reverts commit 18fc7c435b.

The reverted commit was based on static analysis and a misunderstanding
of how PTR_ERR() and NULLs are supposed to work.  When a function
returns both pointer errors and NULL then normally the NULL means
"continue operating without a feature because it was deliberately
turned off".  The NULL should not be treated as a failure.  If a driver
cannot work when that feature is disabled then the KConfig should
enforce that the function cannot return NULL.  We should not need to
test for it.

In this code, the patch means that certain tegra_xusb_probe() will
fail if the firmware supports power-domains but CONFIG_PM is disabled.

Signed-off-by: Dan Carpenter <dan.carpenter@linaro.org>
Fixes: 18fc7c435b ("usb: xhci: tegra: Fix error check")
Cc: stable <stable@kernel.org>
Link: https://lore.kernel.org/r/8baace8d-fb4b-41a4-ad5f-848ae643a23b@moroto.mountain
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
2023-08-11 11:57:41 +02:00
Ricardo Ribalda b0fd110578 usb: xhci-mtk: set the dma max_seg_size
commit 9fd10829a9 upstream.

Allow devices to have dma operations beyond 64K, and avoid warnings such
as:

DMA-API: xhci-mtk 11200000.usb: mapping sg segment longer than device claims to support [len=98304] [max=65536]

Fixes: 0cbd4b34cd ("xhci: mediatek: support MTK xHCI host controller")
Cc: stable <stable@kernel.org>
Tested-by: Zubin Mithra <zsm@chromium.org>
Reported-by: Zubin Mithra <zsm@chromium.org>
Signed-off-by: Ricardo Ribalda <ribalda@chromium.org>
Link: https://lore.kernel.org/r/20230628-mtk-usb-v2-1-c8c34eb9f229@chromium.org
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
2023-08-11 11:57:41 +02:00