merge-upstream/v6.6.51 from branch/tag: upstream/v6.6.51 into branch: cos-6.6

Changelog:
-------------------------------------------------------------

Aaradhana Sahu (1):
      wifi: ath12k: fix uninitialize symbol error on ath12k_peer_assoc_h_he()

Ajith C (1):
      wifi: ath12k: fix firmware crash due to invalid peer nss

Aleksandr Mishin (2):
      platform/x86: dell-smbios: Fix error path in dell_smbios_init()
      staging: iio: frequency: ad9834: Validate frequency parameter value

Alex Deucher (1):
      Revert "drm/amdgpu: align pp_power_profile_mode with kernel docs"

Alex Hung (3):
      drm/amd/display: Run DC_LOG_DC after checking link->link_enc
      drm/amd/display: Check HDCP returned status
      drm/amd/display: Check denominator pbn_div before used

Alexandre Ghiti (5):
      riscv: Use WRITE_ONCE() when setting page table entries
      mm: Introduce pudp/p4dp/pgdp_get() functions
      riscv: mm: Only compile pgtable.c if MMU
      riscv: Use accessors to page table entries instead of direct dereference
      riscv: Do not restrict memory size because of linear mapping on nommu

Alexey Dobriyan (1):
      ELF: fix kernel.randomize_va_space double read

Alison Schofield (1):
      cxl/region: Verify target positions using the ordered target list

Amadeusz Sławiński (1):
      ASoC: topology: Properly initialize soc_enum values

Andrea Parri (1):
      membarrier: riscv: Add full memory barrier in switch_mm()

Andreas Hindborg (1):
      rust: kbuild: fix export of bss symbols

Andreas Ziegler (1):
      libbpf: Add NULL checks to bpf_object__{prev_map,next_map}

Andy Shevchenko (3):
      leds: spi-byte: Call of_node_put() on error path
      drm/i915/fence: Mark debug_fence_init_onstack() with __maybe_unused
      drm/i915/fence: Mark debug_fence_free() with __maybe_unused

Anton Blanchard (1):
      riscv: Fix toolchain vector detection

Arend van Spriel (1):
      wifi: brcmsmac: advertise MFP_CAPABLE to enable WPA3

Armin Wolf (1):
      hwmon: (hp-wmi-sensors) Check if WMI event data exists

Arnd Bergmann (1):
      regmap: maple: work around gcc-14.1 false-positive warning

Aurabindo Pillai (1):
      drm/amd: Add gfx12 swizzle mode defs

Baokun Li (1):
      fscache: delete fscache_cookie_lru_timer when fscache exits to avoid UAF

Benjamin Marzinski (1):
      dm init: Handle minors larger than 255

Boqun Feng (2):
      rust: types: Make Opaque::get const
      rust: macros: provide correct provenance when constructing THIS_MODULE

Breno Leitao (4):
      bpf: Add sockptr support for getsockopt
      bpf: Add sockptr support for setsockopt
      net/socket: Break down __sys_setsockopt
      net/socket: Break down __sys_getsockopt

Brian Johannesmeyer (1):
      x86/kmsan: Fix hook for unaligned accesses

Brian Norris (1):
      spi: rockchip: Resolve unbalanced runtime PM / system PM handling

Camila Alvarez (1):
      HID: cougar: fix slab-out-of-bounds Read in cougar_report_fixup

Carlos Llamas (1):
      binder: fix UAF caused by offsets overwrite

Carlos Song (1):
      spi: spi-fsl-lpspi: limit PRESCALE bit in TCR register

Chen Ni (1):
      media: qcom: camss: Add check for v4l2_fwnode_endpoint_parse

Chen-Yu Tsai (1):
      ASoc: SOF: topology: Clear SOF link platform name upon unload

ChenXiaoSong (1):
      smb/server: fix potential null-ptr-deref of lease_ctx_info in smb2_open()

Christian König (1):
      drm/amdgpu: reject gang submit on reserved VMIDs

Christoffer Sandberg (1):
      ALSA: hda/conexant: Add pincfg quirk to enable top speakers on Sirius devices

Christophe Leroy (2):
      powerpc/64e: Define mmu_pte_psize static
      powerpc/vdso: Don't discard rela sections

Cong Wang (1):
      tcp_bpf: fix return value of tcp_bpf_sendmsg()

Daiwei Li (1):
      igb: Fix not clearing TimeSync interrupts for 82580

Dan Carpenter (2):
      ksmbd: Unlock on in ksmbd_tcp_set_interfaces()
      igc: Unlock on error in igc_io_resume()

Dan Williams (1):
      PCI: Add missing bridge lock to pci_bus_lock()

Daniel Lezcano (1):
      clocksource/drivers/timer-of: Remove percpu irq related code

Daniele Ceraolo Spurio (1):
      drm/i915: Do not attempt to load the GSC multiple times

Danijel Slivka (1):
      drm/amdgpu: clear RB_OVERFLOW bit when enabling interrupts

David Fernandez Gonzalez (1):
      VMCI: Fix use-after-free when removing resource in vmci_resource_remove()

David Howells (2):
      cifs: Fix FALLOC_FL_ZERO_RANGE to preflush buffered part of target region
      vfs: Fix potential circular locking through setxattr() and removexattr()

David Lechner (1):
      iio: buffer-dmaengine: fix releasing dma channel on error

David Sterba (1):
      btrfs: initialize location to fix -Wmaybe-uninitialized in btrfs_lookup_dentry()

Dawid Osuchowski (1):
      ice: Add netif_device_attach/detach into PF reset flow

Devyn Liu (1):
      spi: hisi-kunpeng: Add verification for the max_frequency provided by the firmware

Dmitry Torokhov (2):
      Input: ili210x - use kvmalloc() to allocate buffer for firmware update
      Input: uinput - reject requests with unreasonable number of slots

Douglas Anderson (2):
      regulator: core: Stub devm_regulator_bulk_get_const() if !CONFIG_REGULATOR
      Bluetooth: qca: If memdump doesn't work, re-enable IBS

Dumitru Ceclan (2):
      iio: adc: ad7124: fix config comparison
      iio: adc: ad7124: fix chip ID mismatch

Eric Dumazet (1):
      ila: call nf_unregister_net_hooks() sooner

Eric Joyner (1):
      ice: Check all ice_vsi_rebuild() errors in function

Faisal Hassan (1):
      usb: dwc3: core: update LC timer as per USB Spec V3.2

Filipe Manana (2):
      btrfs: replace BUG_ON() with error handling at update_ref_for_cow()
      btrfs: fix race between direct IO write and fsync when using same fd

Frank Li (1):
      i3c: master: svc: resend target address when get NACK

Geert Uytterhoeven (1):
      nvmem: Fix return type of devm_nvmem_device_get() in kerneldoc

Georg Gottleuber (1):
      nvme-pci: Add sleep quirk for Samsung 990 Evo

Greg Kroah-Hartman (1):
      Linux 6.6.51

Guenter Roeck (4):
      hwmon: (adc128d818) Fix underflows seen when writing limit attributes
      hwmon: (lm95234) Fix underflows seen when writing limit attributes
      hwmon: (nct6775-core) Fix underflows seen when writing limit attributes
      hwmon: (w83627ehf) Fix underflows seen when writing limit attributes

Guillaume Nault (1):
      bareudp: Fix device stats updates.

Guillaume Stols (1):
      iio: adc: ad7606: remove frstdata check for serial mode

Hans Verkuil (2):
      media: vivid: fix wrong sizeimage value for mplane
      media: vivid: don't set HDMI TX controls if there are no HDMI outputs

Hareshx Sankar Raj (1):
      crypto: qat - fix unintentional re-enabling of error interrupts

Hawking Zhang (1):
      drm/amdgpu: Fix smatch static checker warning

Hayes Wang (1):
      r8152: fix the firmware doesn't work

Heiko Carstens (1):
      s390/vmlinux.lds.S: Move ro_after_init section behind rodata section

Huacai Chen (1):
      LoongArch: Use correct API to map cmdline in relocate_kernel()

Igor Pylypiv (3):
      scsi: pm80xx: Set phy->enable_completion only when we wait for it
      ata: libata-scsi: Remove redundant sense_buffer memsets
      ata: libata-scsi: Check ATA_QCFLAG_RTF_FILLED before using result_tf

Jacky Bai (2):
      clocksource/drivers/imx-tpm: Fix return -ETIME when delta exceeds INT_MAX
      clocksource/drivers/imx-tpm: Fix next event not taking effect sometime

Jacob Pan (1):
      iommu/vt-d: Handle volatile descriptor status read

James Morse (1):
      arm64: acpi: Move get_cpu_for_acpi_id() to a header

Jamie Bainbridge (1):
      selftests: net: enable bind tests

Jan Kara (1):
      udf: Avoid excessive partition lengths

Jann Horn (3):
      fuse: use unsigned type for getxattr/listxattr size truncation
      userfaultfd: don't BUG_ON() if khugepaged yanks our page table
      userfaultfd: fix checks for huge PMDs

Jarkko Nikula (1):
      i3c: mipi-i3c-hci: Error out instead on BUG_ON() in IBI DMA setup

Jens Emil Schulz Østergaard (1):
      net: microchip: vcap: Fix use-after-free error in kunit test

Jernej Skrabec (1):
      iommu: sun50i: clear bypass register

Jia Jie Ho (2):
      crypto: starfive - Align rsa input data to 32-bit
      crypto: starfive - Fix nent assignment in rsa dec

Jiaxun Yang (1):
      MIPS: cevt-r4k: Don't call get_c0_compare_int if timer irq is installed

Jinjie Ruan (1):
      net: phy: Fix missing of_node_put() for leds

Joanne Koong (1):
      fuse: update stats for pages in dropped aux writeback list

Johannes Berg (2):
      wifi: iwlwifi: mvm: use IWL_FW_CHECK for link ID check
      um: line: always fill *error_out in setup_one_line()

Jonas Dreßler (3):
      Bluetooth: hci_event: Use HCI error defines instead of magic values
      Bluetooth: hci_conn: Only do ACL connections sequentially
      Bluetooth: Remove pending ACL connection attempts

Jonas Gorski (1):
      net: bridge: br_fdb_external_learn_add(): always set EXT_LEARN

Jonathan Bell (1):
      mmc: core: apply SD quirks earlier during probe

Jonathan Cameron (3):
      ACPI: processor: Return an error if acpi_processor_get_info() fails in processor_add()
      ACPI: processor: Fix memory leaks in error paths of processor_add()
      arm64: acpi: Harden get_cpu_for_acpi_id() against missing CPU entry

Josef Bacik (2):
      btrfs: replace BUG_ON with ASSERT in walk_down_proc()
      btrfs: clean up our handling of refs == 0 in snapshot delete

Jules Irenge (1):
      pcmcia: Use resource_size function on resource object

Kan Liang (1):
      perf/x86/intel: Limit the period on Haswell

Keith Busch (1):
      nvme-pci: allocate tagset on reset if necessary

Kent Overstreet (1):
      lib/generic-radix-tree.c: Fix rare race in __genradix_ptr_alloc()

Kirill A. Shutemov (1):
      x86/tdx: Fix data leak in mmio_read()

Kishon Vijay Abraham I (1):
      PCI: keystone: Add workaround for Errata #i2037 (AM65x SR 1.0)

Konstantin Andreev (1):
      smack: unix sockets: fix accept()ed socket label

Konstantin Komarov (2):
      fs/ntfs3: One more reason to mark inode bad
      fs/ntfs3: Check more cases when directory is corrupted

Krishna Kumar (1):
      pci/hotplug/pnv_php: Fix hotplug driver crash on Powernv

Krzysztof Kozlowski (1):
      gpio: rockchip: fix OF node leak in probe()

Kuniyuki Iwashima (4):
      af_unix: Remove put_pid()/put_cred() in copy_peercred().
      can: bcm: Remove proc entry when dev is unregistered.
      fou: Fix null-ptr-deref in GRO.
      tcp: Don't drop SYN+ACK for simultaneous connect().

Kyoungrul Kim (1):
      scsi: ufs: core: Remove SCSI host only if added

Larysa Zaremba (2):
      ice: protect XDP configuration with a mutex
      ice: do not bring the VSI up, if it was down before the XDP setup

Leon Hwang (1):
      bpf, verifier: Correct tail_call_reachable for bpf prog

Li Nan (1):
      ublk_drv: fix NULL pointer dereference in ublk_ctrl_start_recovery()

Liao Chen (2):
      mmc: sdhci-of-aspeed: fix module autoloading
      gpio: modepin: Enable module autoloading

Luis Henriques (SUSE) (1):
      ext4: fix possible tid_t sequence overflows

Luiz Augusto von Dentz (10):
      Revert "Bluetooth: MGMT/SMP: Fix address type when using SMP over BREDR/LE"
      Bluetooth: MGMT: Ignore keys being loaded with invalid type
      Bluetooth: hci_conn: Fix UAF Write in __hci_acl_create_connection_sync
      Bluetooth: hci_sync: Add helper functions to manipulate cmd_sync queue
      Bluetooth: hci_sync: Attempt to dequeue connection attempt
      Bluetooth: hci_sync: Introduce hci_cmd_sync_run/hci_cmd_sync_run_once
      Bluetooth: MGMT: Fix not generating command complete for MGMT_OP_DISCONNECT
      Bluetooth: hci_sync: Fix UAF in hci_acl_create_conn_sync
      Bluetooth: hci_sync: Fix UAF on create_le_conn_complete
      Bluetooth: hci_sync: Fix UAF on hci_abort_conn_sync

Ma Ke (2):
      irqchip/gic-v2m: Fix refcount leak in gicv2m_of_init()
      usb: gadget: aspeed_udc: validate endpoint index for ast udc

Marc Kleine-Budde (5):
      can: mcp251xfd: fix ring configuration when switching from CAN-CC to CAN-FD mode
      can: mcp251xfd: mcp251xfd_handle_rxif_ring_uinc(): factor out in separate function
      can: mcp251xfd: rx: prepare to workaround broken RX FIFO head index erratum
      can: mcp251xfd: clarify the meaning of timestamp
      can: mcp251xfd: rx: add workaround for erratum DS80000789E 6 of mcp2518fd

Marcin Ślusarz (1):
      wifi: rtw88: usb: schedule rx work after everything is set up

Marek Olšák (2):
      drm/amdgpu: check for LINEAR_ALIGNED correctly in check_tiling_flags_gfx6
      drm/amdgpu: handle gfx12 in amdgpu_display_verify_sizes

Martin Jocic (5):
      can: kvaser_pciefd: Skip redundant NULL pointer check in ISR
      can: kvaser_pciefd: Remove unnecessary comment
      can: kvaser_pciefd: Rename board_irq to pci_irq
      can: kvaser_pciefd: Move reset of DMA RX buffers to the end of the ISR
      can: kvaser_pciefd: Use a single write when releasing RX buffers

Matt Johnston (1):
      net: mctp-serial: Fix missing escapes on transmit

Matteo Martelli (2):
      iio: fix scale application in iio_convert_raw_to_processed_unlocked
      ASoC: sunxi: sun4i-i2s: fix LRCLK polarity in i2s mode

Matthew Maurer (1):
      rust: Use awk instead of recent xargs

Matthieu Baerts (NGI0) (1):
      tcp: process the 3rd ACK with sk_socket for TFO/MPTCP

Maurizio Lombardi (1):
      nvmet-tcp: fix kernel crash if commands allocation fails

Maxim Levitsky (1):
      KVM: SVM: fix emulation of msr reads/writes of MSR_FS_BASE and MSR_GS_BASE

Maximilien Perreault (1):
      ALSA: hda/realtek: Support mute LED on HP Laptop 14-dq2xxx

Meng Li (2):
      ACPI: CPPC: Add helper to get the highest performance value
      cpufreq: amd-pstate: Enable amd-pstate preferred core support

Michael Ellerman (3):
      ata: pata_macio: Use WARN instead of BUG
      powerpc/64e: remove unused IBM HTW code
      powerpc/64e: split out nohash Book3E 64-bit code

Mitchell Levy (1):
      x86/fpu: Avoid writing LBR bit to IA32_XSS unless supported

Mohan Kumar (1):
      ASoC: tegra: Fix CBB error during probe()

Naman Jain (1):
      Drivers: hv: vmbus: Fix rescind handling in uio_hv_generic

Namjae Jeon (1):
      ksmbd: unset the binding mark of a reused connection

Neeraj Sanjay Kale (1):
      Bluetooth: btnxpuart: Fix Null pointer dereference in btnxpuart_flush()

Nicholas Piggin (2):
      workqueue: wq_watchdog_touch is always called with valid CPU
      workqueue: Improve scalability of workqueue watchdog touch

Nysal Jan K.A. (1):
      powerpc/qspinlock: Fix deadlock in MCS queue

Oliver Neukum (2):
      usbnet: modern method to get random MAC
      usbnet: ipheth: race between ipheth_close and error handling

Olivier Sobrie (1):
      HID: amd_sfh: free driver_data after destroying hid device

Pali Rohár (1):
      irqchip/armada-370-xp: Do not allow mapping IRQ 0 and 1

Paulo Alcantara (2):
      smb: client: fix double put of @cfile in smb2_set_path_size()
      smb: client: fix double put of @cfile in smb2_rename_path()

Pawel Dembicki (1):
      net: dsa: vsc73xx: fix possible subblocks range of CAPT block

Pawel Laszczak (1):
      usb: cdns2: Fix controller reset issue

Perry Yuan (1):
      cpufreq: amd-pstate: fix the highest frequency issue which limits performance

Peter Zijlstra (1):
      perf/aux: Fix AUX buffer serialization

Petr Tesarik (1):
      kexec_file: fix elfcorehdr digest exclusion when CONFIG_CRASH_HOTPLUG=y

Phillip Lougher (1):
      Squashfs: sanity check symbolic link size

Prashanth K (1):
      usb: dwc3: Avoid waking up gadget during startxfer

Rakesh Ughreja (1):
      accel/habanalabs/gaudi2: unsecure edma max outstanding register

Ravi Bangoria (1):
      KVM: SVM: Don't advertise Bus Lock Detect to guest if SVM support is missing

Richard Fitzgerald (1):
      firmware: cs_dsp: Don't allow writes to read-only controls

Roland Xu (1):
      rtmutex: Drop rt_mutex::wait_lock before scheduling

Ryusuke Konishi (3):
      nilfs2: fix missing cleanup on rollforward recovery error
      nilfs2: protect references to superblock parameters exposed in sysfs
      nilfs2: fix state management in error path of log writing function

Sam Protsenko (1):
      mmc: dw_mmc: Fix IDMAC operation with pages bigger than 4K

Samuel Holland (1):
      riscv: kprobes: Use patch_text_nosync() for insn slots

Sascha Hauer (1):
      wifi: mwifiex: Do not return unused priv in mwifiex_get_priv_by_id()

Sasha Neftin (1):
      intel: legacy: Partial revert of field get conversion

Satya Priya Kakitapalli (2):
      clk: qcom: clk-alpha-pll: Fix the pll post div mask
      clk: qcom: clk-alpha-pll: Fix the trion pll postdiv set rate API

Saurabh Sengar (1):
      uio_hv_generic: Fix kernel NULL pointer dereference in hv_uio_rescind

Sean Anderson (1):
      phy: zynqmp: Take the phy mutex in xlate

Sean Christopherson (1):
      KVM: x86: Acquire kvm->srcu when handling KVM_SET_VCPU_EVENTS

Seunghwan Baek (1):
      mmc: cqhci: Fix checking of CQHCI_HALT state

Shantanu Goel (1):
      usb: uas: set host status byte on data completion error

Shenghao Ding (1):
      ASoc: TAS2781: replace beXX_to_cpup with get_unaligned_beXX for potentially broken alignment

Shivaprasad G Bhat (1):
      vfio/spapr: Always clear TCEs before unsetting the window

Simon Arlott (1):
      can: mcp251x: fix deadlock if an interrupt occurs during mcp251x_open

Simon Horman (1):
      can: m_can: Release irq on error in m_can_open

Souradeep Chakrabarti (1):
      net: mana: Fix error handling in mana_create_txq/rxq's NAPI cleanup

Stefan Wahren (1):
      spi: spi-fsl-lpspi: Fix off-by-one in prescale max

Stefan Wiehler (1):
      of/irq: Prevent device address out-of-bounds read in interrupt map walk

Stephen Boyd (2):
      clk: qcom: gcc-sm8550: Don't use parking clk_ops for QUPs
      clk: qcom: gcc-sm8550: Don't park the USB RCG at registration time

Stephen Hemminger (1):
      sch/netem: fix use after free in netem_dequeue

Steven Rostedt (4):
      tracing/osnoise: Use a cpumask to know what threads are kthreads
      tracing/timerlat: Only clear timer if a kthread exists
      tracing/timerlat: Add interface_lock around clearing of kthread in stop_kthread()
      eventfs: Use list_del_rcu() for SRCU protected list variable

Sukrut Bellary (1):
      misc: fastrpc: Fix double free of 'buf' in error path

Sven Schnelle (1):
      uprobes: Use kzalloc to allocate xol area

Takashi Iwai (2):
      ALSA: control: Apply sanity check of input values for user elements
      ALSA: hda: Add input value sanity checks to HDMI channel map controls

Terry Cheong (1):
      ALSA: hda/realtek: add patch for internal mic in Lenovo V145

Thomas Gleixner (2):
      x86/kaslr: Expose and use the end of the physical memory address space
      x86/mm: Fix PTI for i386 some more

Toke Høiland-Jørgensen (1):
      sched: sch_cake: fix bulk flow accounting logic for host fairness

Trond Myklebust (1):
      NFSv4: Add missing rescheduling points in nfs_client_return_marked_delegations

Tze-nan Wu (1):
      bpf, net: Fix a potential race in do_sock_getsockopt()

Usama Arif (1):
      Revert "mm: skip CMA pages when they are not available"

Vern Hao (1):
      mm/vmscan: use folio_migratetype() instead of get_pageblock_migratetype()

Viresh Kumar (1):
      xen: privcmd: Fix possible access to a freed kirqfd instance

Vladimir Oltean (1):
      net: dpaa: avoid on-stack arrays of NR_CPUS elements

Waiman Long (1):
      cgroup: Protect css->cgroup write under css_set_lock

Will Deacon (1):
      mm: vmalloc: ensure vmap_block is initialised before adding to queue

Xingyu Wu (1):
      clk: starfive: jh7110-sys: Add notifier for PLL0 clock

Xuan Zhuo (1):
      virtio_ring: fix KMSAN error for premapped mode

Ye Bin (1):
      jbd2: avoid mount failed when commit block is partial submitted

Yicong Yang (1):
      dma-mapping: benchmark: Don't starve others when doing the test

Yifan Zha (1):
      drm/amdgpu: Set no_hw_access when VF request full GPU fails

Yunjian Wang (1):
      netfilter: nf_conncount: fix wrong variable type

Yuntao Wang (1):
      x86/apic: Make x2apic_disable() work correctly

Zenghui Yu (1):
      kselftests: dmabuf-heaps: Ensure the driver name is null-terminated

Zheng Qixing (1):
      ata: libata: Fix memory leak for error path in ata_host_alloc()

Zheng Yejian (1):
      tracing: Avoid possible softlockup in tracing_iter_reset()

Zijun Hu (1):
      devres: Initialize an uninitialized struct member

Zqiang (1):
      smp: Add missing destroy_work_on_stack() call in smp_call_on_cpu()

devi priya (1):
      clk: qcom: ipq9574: Update the alpha PLL type for GPLLs

robelin (1):
      ASoC: dapm: Fix UAF for snd_soc_pcm_runtime object

yang.zhang (1):
      riscv: set trap vector earlier

yangyun (1):
      fuse: fix memory leak in fuse_create_open

BUG=b/366377233
TEST=tryjob, validation and K8s e2e
RELEASE_NOTE=Updated the Linux kernel to v6.6.51.

Change-Id: Id01cf2f0edce14da3fd643cd64c261ffeb266cbf
Signed-off-by: COS Kernel Merge Bot <cloud-image-merge-automation@prod.google.com>