Linux/linux 3cdb455arch/s390/kernel entry.S, drivers/s390/cio qdio_main.c device.c

Merge tag 's390-6.9-4' of git://git.kernel.org/pub/scm/linux/kernel/git/s390/linux

Pull s390 updates from Alexander Gordeev:

 - Fix NULL pointer dereference in program check handler

 - Fake IRBs are important events relevant for problem analysis. Add
   traces when queueing and delivering

 - Fix a race condition in ccw_device_set_online() that can cause the
   online process to fail

 - Deferred condition code 1 response indicates that I/O was not started
   and should be retried. The current QDIO implementation handles a cc1
   response as an error, resulting in a failed QDIO setup. Fix that by
   retrying the setup when a cc1 response is received

* tag 's390-6.9-4' of git://git.kernel.org/pub/scm/linux/kernel/git/s390/linux:
  s390/mm: Fix NULL pointer dereference

    [3 lines not shown]
DeltaFile
+23-5drivers/s390/cio/qdio_main.c
+8-5drivers/s390/cio/device.c
+8-0drivers/s390/cio/device_ops.c
+5-0drivers/s390/cio/device_fsm.c
+2-1arch/s390/kernel/entry.S
+46-115 files

Linux/linux 9c6e84einclude/linux bootconfig.h, init main.c

Merge tag 'bootconfig-fixes-v6.9-rc4' of git://git.kernel.org/pub/scm/linux/kernel/git/trace/linux-trace

Pull bootconfig fixes from Masami Hiramatsu:

 - Fix potential static_command_line buffer overrun.

   Currently we allocate the memory for static_command_line based on
   "boot_command_line", but it will copy "command_line" into it. So we
   use the length of "command_line" instead of "boot_command_line" (as
   we previously did)

 - Use memblock_free_late() in xbc_exit() instead of memblock_free()
   after the buddy system is initialized

 - Fix a kerneldoc warning

* tag 'bootconfig-fixes-v6.9-rc4' of git://git.kernel.org/pub/scm/linux/kernel/git/trace/linux-trace:
  bootconfig: Fix the kerneldoc of _xbc_exit()
  bootconfig: use memblock_free_late to free xbc memory to buddy
  init/main.c: Fix potential static_command_line memory overflow
DeltaFile
+13-9lib/bootconfig.c
+6-1include/linux/bootconfig.h
+2-0init/main.c
+21-103 files

Linux/linux dbe0a7bdrivers/thermal thermal_debugfs.c

Merge tag 'thermal-6.9-rc5' of git://git.kernel.org/pub/scm/linux/kernel/git/rafael/linux-pm

Pull thermal control fix from Rafael Wysocki:
 "This prevents the thermal debug code from attempting to divide by zero
  and corrects trip point statistics (Rafael Wysocki)"

* tag 'thermal-6.9-rc5' of git://git.kernel.org/pub/scm/linux/kernel/git/rafael/linux-pm:
  thermal/debugfs: Add missing count increment to thermal_debug_tz_trip_up()
DeltaFile
+1-0drivers/thermal/thermal_debugfs.c
+1-01 files

Linux/linux 3c08ab6sound/core/seq seq_ump_convert.c, sound/pci/hda patch_realtek.c tas2781_hda_i2c.c

Merge tag 'sound-6.9-rc5' of git://git.kernel.org/pub/scm/linux/kernel/git/tiwai/sound

Pull sound fixes from Takashi Iwai:
 "Things look calm and normal, we got handful HD-audio-related small
  fixes and a fix for MIDI 2.0 UMP handling"

* tag 'sound-6.9-rc5' of git://git.kernel.org/pub/scm/linux/kernel/git/tiwai/sound:
  ALSA: seq: ump: Fix conversion from MIDI2 to MIDI1 UMP messages
  ALSA: hda/realtek - Enable audio jacks of Haier Boyue G42 with ALC269VC
  ALSA: hda/realtek: Add quirks for Huawei Matebook D14 NBLB-WAX9N
  ALSA: hda/realtek: Fix volumn control of ThinkBook 16P Gen4
  ALSA: hda/realtek: Fixes for Asus GU605M and GA403U sound
  ALSA: hda/tas2781: Add new vendor_id and subsystem_id to support ThinkPad ICE-1
  ALSA: hda/tas2781: correct the register for pow calibrated data
  ALSA: hda/realtek: Add quirk for HP SnowWhite laptops
DeltaFile
+45-4sound/pci/hda/patch_realtek.c
+2-2sound/pci/hda/tas2781_hda_i2c.c
+1-1sound/core/seq/seq_ump_convert.c
+48-73 files

Linux/linux ce944f3drivers/gpu/drm/amd/amdgpu amdgpu_ttm.c amdgpu_vm.c, drivers/gpu/drm/ttm ttm_pool.c

Merge tag 'drm-fixes-2024-04-19' of https://gitlab.freedesktop.org/drm/kernel

Pull drm fixes from Dave Airlie:
 "Regular week of fixes, seems to be about right for this time in the
  release cycle, amdgpu, and nouveau are the main one with some
  scattered fixes otherwise.

  ttm:
   - Stop pooling cached NUMA pages

  amdgpu:
   - Fix invalid resource->start check
   - USB-C DSC fix
   - Fix a potential UAF in VA IOCTL
   - Fix visible VRAM handling during faults

  amdkfd:
   - Fix memory leak in create_process failure


    [40 lines not shown]
DeltaFile
+44-33drivers/gpu/drm/amd/amdgpu/amdgpu_ttm.c
+46-26drivers/gpu/drm/amd/amdgpu/amdgpu_vm.c
+30-14drivers/gpu/drm/vmwgfx/vmwgfx_ttm_buffer.c
+28-10drivers/gpu/drm/ttm/ttm_pool.c
+32-3drivers/gpu/drm/vmwgfx/vmwgfx_blit.c
+32-0drivers/gpu/drm/vmwgfx/vmwgfx_gem.c
+212-8624 files not shown
+326-17830 files

Linux/linux 54c2354Documentation/mm page_owner.rst, include/linux swapops.h

Merge tag 'mm-hotfixes-stable-2024-04-18-14-41' of git://git.kernel.org/pub/scm/linux/kernel/git/akpm/mm

Pull misc fixes from Andrew Morton:
 "15 hotfixes. 9 are cc:stable and the remainder address post-6.8 issues
  or aren't considered suitable for backporting.

  There are a significant number of fixups for this cycle's page_owner
  changes (series "page_owner: print stacks and their outstanding
  allocations"). Apart from that, singleton changes all over, mainly in
  MM"

* tag 'mm-hotfixes-stable-2024-04-18-14-41' of git://git.kernel.org/pub/scm/linux/kernel/git/akpm/mm:
  nilfs2: fix OOB in nilfs_set_de_type
  MAINTAINERS: update Naoya Horiguchi's email address
  fork: defer linking file vma until vma is fully initialized
  mm/shmem: inline shmem_is_huge() for disabled transparent hugepages
  mm,page_owner: defer enablement of static branch
  Squashfs: check the inode number is not the invalid value of zero
  mm,swapops: update check in is_pfn_swap_entry for hwpoison entries

    [8 lines not shown]
DeltaFile
+110-80mm/page_owner.c
+38-35Documentation/mm/page_owner.rst
+33-32include/linux/swapops.h
+32-22mm/gup.c
+17-16kernel/fork.c
+15-3mm/memory-failure.c
+245-18810 files not shown
+280-22316 files

Linux/linux b552f63drivers/thermal thermal_debugfs.c

thermal/debugfs: Add missing count increment to thermal_debug_tz_trip_up()

The count field in struct trip_stats, representing the number of times
the zone temperature was above the trip point, needs to be incremented
in thermal_debug_tz_trip_up(), for two reasons.

First, if a trip point is crossed on the way up for the first time,
thermal_debug_update_temp() called from update_temperature() does
not see it because it has not been added to trips_crossed[] array
in the thermal zone's struct tz_debugfs object yet.  Therefore, when
thermal_debug_tz_trip_up() is called after that, the trip point's
count value is 0, and the attempt to divide by it during the average
temperature computation leads to a divide error which causes the kernel
to crash.  Setting the count to 1 before the division by incrementing it
fixes this problem.

Second, if a trip point is crossed on the way up, but it has been
crossed on the way up already before, its count value needs to be
incremented to make a record of the fact that the zone temperature is

    [9 lines not shown]
DeltaFile
+1-0drivers/thermal/thermal_debugfs.c
+1-01 files

Linux/linux f25f17dsound/core/seq seq_ump_convert.c

ALSA: seq: ump: Fix conversion from MIDI2 to MIDI1 UMP messages

The conversion from MIDI2 to MIDI1 UMP messages had a leftover
artifact (superfluous bit shift), and this resulted in the bogus type
check, leading to empty outputs.  Let's fix it.

Fixes: e9e02819a98a ("ALSA: seq: Automatic conversion of UMP events")
Cc: <stable at vger.kernel.org>
Link: https://github.com/alsa-project/alsa-utils/issues/262
Message-ID: <20240419100442.14806-1-tiwai at suse.de>
Signed-off-by: Takashi Iwai <tiwai at suse.de>
DeltaFile
+1-1sound/core/seq/seq_ump_convert.c
+1-11 files

Linux/linux 7ee5faasound/pci/hda patch_realtek.c

ALSA: hda/realtek - Enable audio jacks of Haier Boyue G42 with ALC269VC

The Haier Boyue G42 with ALC269VC cannot detect the MIC of headset,
the line out and internal speaker until
ALC269VC_FIXUP_ACER_VCOPPERBOX_PINS quirk applied.

Signed-off-by: Ai Chao <aichao at kylinos.cn>
Cc: <stable at vger.kernel.org>
Message-ID: <20240419082159.476879-1-aichao at kylinos.cn>
Signed-off-by: Takashi Iwai <tiwai at suse.de>
DeltaFile
+1-0sound/pci/hda/patch_realtek.c
+1-01 files

Linux/linux 52c8b6edrivers/gpu/drm/xe xe_vm.c, drivers/gpu/drm/xe/display intel_fb_bo.c

Merge tag 'drm-xe-fixes-2024-04-18' of https://gitlab.freedesktop.org/drm/xe/kernel into drm-fixes

- Fix bo leak on error path during fb init
- Fix use-after-free due to order vm is put and destroyed

Signed-off-by: Dave Airlie <airlied at redhat.com>

From: Lucas De Marchi <lucas.demarchi at intel.com>
Link: https://patchwork.freedesktop.org/patch/msgid/xjguifyantaibyrnymuiotxws6akiexi6r7tqyieqxgquovubc@kkrtbe24hjjr
DeltaFile
+11-10drivers/gpu/drm/xe/xe_vm.c
+6-2drivers/gpu/drm/xe/display/intel_fb_bo.c
+17-122 files

Linux/linux 5493bf2drivers/gpu/drm/nouveau nouveau_dp.c, drivers/gpu/drm/ttm ttm_pool.c

Merge tag 'drm-misc-fixes-2024-04-18' of https://gitlab.freedesktop.org/drm/misc/kernel into drm-fixes

Short summary of fixes pull:

nouveau:
- dp: Don't probe DP ports twice
- nv04: Fix OOB access
- nv50: Disable AUX bus for disconnected DP ports
- nvkm: Fix race condition

panel:
- Don't unregister DSI devices in several drivers

ttm:
- Stop pooling cached NUMA pages

v3d:
- Fix enabled_ns increment


    [9 lines not shown]
DeltaFile
+30-14drivers/gpu/drm/vmwgfx/vmwgfx_ttm_buffer.c
+28-10drivers/gpu/drm/ttm/ttm_pool.c
+32-3drivers/gpu/drm/vmwgfx/vmwgfx_blit.c
+32-0drivers/gpu/drm/vmwgfx/vmwgfx_gem.c
+18-5drivers/gpu/drm/nouveau/nouveau_dp.c
+13-2drivers/gpu/drm/vmwgfx/vmwgfx_prime.c
+153-3411 files not shown
+186-5717 files

Linux/linux 58292f5drivers/gpu/drm/amd/amdgpu amdgpu_ttm.c amdgpu_vm.c, drivers/gpu/drm/radeon pptable.h radeon_atombios.c

Merge tag 'amd-drm-fixes-6.9-2024-04-17' of https://gitlab.freedesktop.org/agd5f/linux into drm-fixes

amd-drm-fixes-6.9-2024-04-17:

amdgpu:
- Fix invalid resource->start check
- USB-C DSC fix
- Fix a potential UAF in VA IOCTL
- Fix visible VRAM handling during faults

amdkfd:
- Fix memory leak in create_process failure

radeon:
- Silence UBSAN warnings from variable sized arrays

Signed-off-by: Dave Airlie <airlied at redhat.com>

From: Alex Deucher <alexander.deucher at amd.com>
Link: https://patchwork.freedesktop.org/patch/msgid/20240417194959.3716998-1-alexander.deucher@amd.com
DeltaFile
+44-33drivers/gpu/drm/amd/amdgpu/amdgpu_ttm.c
+46-26drivers/gpu/drm/amd/amdgpu/amdgpu_vm.c
+11-11drivers/gpu/drm/amd/amdgpu/amdgpu_object.c
+0-22drivers/gpu/drm/amd/amdgpu/amdgpu_object.h
+5-5drivers/gpu/drm/radeon/pptable.h
+6-2drivers/gpu/drm/radeon/radeon_atombios.c
+112-995 files not shown
+123-10911 files

Linux/linux 2668e3adrivers/scsi scsi_lib.c, drivers/ufs/host ufs-qcom.c

Merge tag 'scsi-fixes' of git://git.kernel.org/pub/scm/linux/kernel/git/jejb/scsi

Pull SCSI fixes from James Bottomley:
 "Two minor fixes: one in the core to improve the handling of warnings
  and unconditionally clear the command flags when ending a request and
  the other to add missing table values needed for bandwidth scaling in
  qualcomm ufs"

* tag 'scsi-fixes' of git://git.kernel.org/pub/scm/linux/kernel/git/jejb/scsi:
  scsi: core: Fix handling of SCMD_FAIL_IF_RECOVERING
  scsi: ufs: qcom: Add missing interconnect bandwidth values for Gear 5
DeltaFile
+7-1drivers/ufs/host/ufs-qcom.c
+3-4drivers/scsi/scsi_lib.c
+10-52 files

Linux/linux 7586c85drivers/net/ethernet/mellanox/mlx5/core en_arfs.c, drivers/net/ethernet/microchip/sparx5 sparx5_tc_flower.c

Merge tag 'net-6.9-rc5' of git://git.kernel.org/pub/scm/linux/kernel/git/netdev/net

Pull networking fixes from Jakub Kicinski:
 "A little calmer than usual, probably just the timing of sub-tree PRs.

  Including fixes from netfilter.

  Current release - regressions:

   - inet: bring NLM_DONE out to a separate recv() again, fix user space
     which assumes multiple recv()s will happen and gets blocked forever

   - drv: mlx5:
       - restore mistakenly dropped parts in register devlink flow
       - use channel mdev reference instead of global mdev instance for
         coalescing
       - acquire RTNL lock before RQs/SQs activation/deactivation

  Previous releases - regressions:

    [50 lines not shown]
DeltaFile
+72-10net/netfilter/nf_tables_api.c
+32-36drivers/net/ethernet/renesas/ravb_main.c
+40-21drivers/net/ethernet/microchip/sparx5/sparx5_tc_flower.c
+28-9drivers/s390/net/ism_drv.c
+11-18drivers/net/ethernet/stmicro/stmmac/stmmac_main.c
+16-11drivers/net/ethernet/mellanox/mlx5/core/en_arfs.c
+199-10550 files not shown
+438-21956 files

Linux/linux 360a348drivers/gpio gpio-crystalcove.c gpio-wcove.c, include/linux/gpio property.h

Merge tag 'gpio-fixes-for-v6.9-rc5' of git://git.kernel.org/pub/scm/linux/kernel/git/brgl/linux

Pull gpio fixes from Bartosz Golaszewski:

 - use -ENOTSUPP consistently in Intel GPIO drivers

 - don't include dt-bindings headers in gpio-swnode code

 - add missing of device table to gpio-lpc32xx and fix autoloading

* tag 'gpio-fixes-for-v6.9-rc5' of git://git.kernel.org/pub/scm/linux/kernel/git/brgl/linux:
  gpiolib: swnode: Remove wrong header inclusion
  gpio: lpc32xx: fix module autoloading
  gpio: crystalcove: Use -ENOTSUPP consistently
  gpio: wcove: Use -ENOTSUPP consistently
DeltaFile
+1-1drivers/gpio/gpio-crystalcove.c
+1-1drivers/gpio/gpio-wcove.c
+1-0drivers/gpio/gpio-lpc32xx.c
+0-1include/linux/gpio/property.h
+3-34 files

Linux/linux c24cd67drivers/net/ethernet/ti am65-cpsw-nuss.c

net: ethernet: ti: am65-cpsw-nuss: cleanup DMA Channels before using them

The TX and RX DMA Channels used by the driver to exchange data with CPSW
are not guaranteed to be in a clean state during driver initialization.
The Bootloader could have used the same DMA Channels without cleaning them
up in the event of failure. Thus, reset and disable the DMA Channels to
ensure that they are in a clean state before using them.

Fixes: 93a76530316a ("net: ethernet: ti: introduce am65x/j721e gigabit eth subsystem driver")
Reported-by: Schuyler Patton <spatton at ti.com>
Signed-off-by: Siddharth Vadapalli <s-vadapalli at ti.com>
Reviewed-by: Roger Quadros <rogerq at kernel.org>
Link: https://lore.kernel.org/r/20240417095425.2253876-1-s-vadapalli@ti.com
Signed-off-by: Jakub Kicinski <kuba at kernel.org>
DeltaFile
+18-0drivers/net/ethernet/ti/am65-cpsw-nuss.c
+18-01 files

Linux/linux 56f7861drivers/net/usb ax88179_178a.c

net: usb: ax88179_178a: avoid writing the mac address before first reading

After the commit d2689b6a86b9 ("net: usb: ax88179_178a: avoid two
consecutive device resets"), reset operation, in which the default mac
address from the device is read, is not executed from bind operation and
the random address, that is pregenerated just in case, is direclty written
the first time in the device, so the default one from the device is not
even read. This writing is not dangerous because is volatile and the
default mac address is not missed.

In order to avoid this and keep the simplification to have only one
reset and reduce the delays, restore the reset from bind operation and
remove the reset that is commanded from open operation. The behavior is
the same but everything is ready for usbnet_probe.

Tested with ASIX AX88179 USB Gigabit Ethernet devices.
Restore the old behavior for the rest of possible devices because I don't
have the hardware to test.


    [6 lines not shown]
DeltaFile
+2-2drivers/net/usb/ax88179_178a.c
+2-21 files

Linux/linux e4add02drivers/char random.c, drivers/virt vmgenid.c

Merge tag 'random-6.9-rc5-for-linus' of git://git.kernel.org/pub/scm/linux/kernel/git/crng/random

Pull random number generator fixes from Jason Donenfeld:

 - The input subsystem contributes entropy in some places where a
   spinlock is held, but the entropy accounting code only handled
   callers being in an interrupt or non-atomic process context, but not
   atomic process context. We fix this by removing an optimization and
   just calling queue_work() unconditionally.

 - Greg accidently sent up a patch not intended for his tree and that
   had been nack'd, so that's now reverted.

* tag 'random-6.9-rc5-for-linus' of git://git.kernel.org/pub/scm/linux/kernel/git/crng/random:
  Revert "vmgenid: emit uevent when VMGENID updates"
  random: handle creditable entropy from atomic process context
DeltaFile
+5-5drivers/char/random.c
+0-2drivers/virt/vmgenid.c
+5-72 files

Linux/linux c2d8855drivers/platform/x86/amd/pmc pmc-quirks.c, drivers/platform/x86/amd/pmf pmf-quirks.c acpi.c

Merge tag 'platform-drivers-x86-v6.9-3' of git://git.kernel.org/pub/scm/linux/kernel/git/pdx86/platform-drivers-x86

Pull x86 platform driver fixes from Ilpo Järvinen:

 - amd/pmf: Add SPS notifications quirk (+ quirk support)

 - amd/pmf: Lower Smart PC check message severity

 - x86/ISST: New HW support

 - x86/intel-uncore-freq: Bump minor version to avoid "unsupported" message

 - amd/pmc: New BIOS version still needs Spurious IRQ1 quirk

* tag 'platform-drivers-x86-v6.9-3' of git://git.kernel.org/pub/scm/linux/kernel/git/pdx86/platform-drivers-x86:
  platform/x86/amd/pmc: Extend Framework 13 quirk to more BIOSes
  platform/x86/intel-uncore-freq: Increase minor number support
  platform/x86: ISST: Add Granite Rapids-D to HPM CPU list
  platform/x86/amd: pmf: Add quirk for ROG Zephyrus G14

    [2 lines not shown]
DeltaFile
+51-0drivers/platform/x86/amd/pmf/pmf-quirks.c
+9-0drivers/platform/x86/amd/pmc/pmc-quirks.c
+5-2drivers/platform/x86/amd/pmf/acpi.c
+2-2drivers/platform/x86/intel/uncore-frequency/uncore-frequency-tpmi.c
+3-0drivers/platform/x86/amd/pmf/pmf.h
+1-1drivers/platform/x86/amd/pmf/Makefile
+71-52 files not shown
+73-58 files

Linux/linux 3aadf10drivers/virt vmgenid.c

Revert "vmgenid: emit uevent when VMGENID updates"

This reverts commit ad6bcdad2b6724e113f191a12f859a9e8456b26d. I had
nak'd it, and Greg said on the thread that it links that he wasn't going
to take it either, especially since it's not his code or his tree, but
then, seemingly accidentally, it got pushed up some months later, in
what looks like a mistake, with no further discussion in the linked
thread. So revert it, since it's clearly not intended.

Fixes: ad6bcdad2b67 ("vmgenid: emit uevent when VMGENID updates")
Cc: stable at vger.kernel.org
Acked-by: Greg Kroah-Hartman <gregkh at linuxfoundation.org>
Link: https://lore.kernel.org/r/20230531095119.11202-2-bchalios@amazon.es
Signed-off-by: Jason A. Donenfeld <Jason at zx2c4.com>
DeltaFile
+0-2drivers/virt/vmgenid.c
+0-21 files

Linux/linux ac1a21dnet/netfilter nf_tables_api.c nft_set_hash.c

Merge tag 'nf-24-04-18' of git://git.kernel.org/pub/scm/linux/kernel/git/netfilter/nf

Pablo Neira Ayuso says:

====================
Netfilter fixes for net

The following patchset contains Netfilter fixes for net:

Patch #1 amends a missing spot where the set iterator type is unset.
         This is fixing a issue in the previous pull request.

Patch #2 fixes the delete set command abort path by restoring state
         of the elements. Reverse logic for the activate (abort) case
         otherwise element state is not restored, this requires to move
         the check for active/inactive elements to the set iterator
         callback. From the deactivate path, toggle the next generation
         bit and from the activate (abort) path, clear the next generation
         bitmask.

    [16 lines not shown]
DeltaFile
+54-6net/netfilter/nf_tables_api.c
+2-6net/netfilter/nft_set_hash.c
+3-5net/netfilter/nft_set_pipapo.c
+1-3net/netfilter/nft_set_rbtree.c
+1-3net/netfilter/nft_set_bitmap.c
+1-0net/netfilter/nft_lookup.c
+62-236 files

Linux/linux d10a7f5drivers/net/ethernet/renesas ravb_main.c

Merge branch 'ravb-ethernet-driver-bugfixes'

Paul Barker says:

====================
ravb Ethernet driver bugfixes

These patches fix bugs found during recent work on the ravb driver.

Patches 1 & 2 affect the R-Car code paths so have been tested on an
R-Car M3N Salvator-XS board - this is the only R-Car board I currently
have access to.

Patches 2, 3 & 4 affect the GbEth code paths so have been tested on
RZ/G2L and RZ/G2UL SMARC EVK boards.

Changes v2->v3:
  * Incorporate feedback from Niklas and add Reviewed-by tag to patch
    "net: ravb: Count packets instead of descriptors in R-Car RX path".

    [13 lines not shown]
DeltaFile
+32-36drivers/net/ethernet/renesas/ravb_main.c
+32-361 files

Linux/linux 2e36c9fdrivers/net/ethernet/renesas ravb_main.c

net: ravb: Fix RX byte accounting for jumbo packets

The RX byte accounting for jumbo packets was changed to fix a potential
use-after-free bug. However, that fix used the wrong variable and so
only accounted for the number of bytes in the final descriptor, not the
number of bytes in the whole packet.

To fix this, we can simply update our stats with the correct number of
bytes before calling napi_gro_receive().

Also rename pkt_len to desc_len in ravb_rx_gbeth() to avoid any future
confusion. The variable name pkt_len is correct in ravb_rx_rcar() as
that function does not handle packets spanning multiple descriptors.

Fixes: 5a5a3e564de6 ("ravb: Fix potential use-after-free in ravb_rx_gbeth()")
Signed-off-by: Paul Barker <paul.barker.ct at bp.renesas.com>
Reviewed-by: Sergey Shtylyov <s.shtylyov at omp.ru>
Signed-off-by: Paolo Abeni <pabeni at redhat.com>
DeltaFile
+11-11drivers/net/ethernet/renesas/ravb_main.c
+11-111 files

Linux/linux a892493drivers/net/ethernet/renesas ravb_main.c

net: ravb: Allow RX loop to move past DMA mapping errors

The RX loops in ravb_rx_gbeth() and ravb_rx_rcar() skip to the next loop
iteration if a zero-length descriptor is seen (indicating a DMA mapping
error). However, the current RX descriptor index `priv->cur_rx[q]` was
incremented at the end of the loop and so would not be incremented when
we skip to the next loop iteration. This would cause the loop to keep
seeing the same zero-length descriptor instead of moving on to the next
descriptor.

As the loop counter `i` still increments, the loop would eventually
terminate so there is no risk of being stuck here forever - but we
should still fix this to avoid wasting cycles.

To fix this, the RX descriptor index is incremented at the top of the
loop, in the for statement itself. The assignments of `entry` and `desc`
are brought into the loop to avoid the need for duplication.

Fixes: d8b48911fd24 ("ravb: fix ring memory allocation")

    [3 lines not shown]
DeltaFile
+13-12drivers/net/ethernet/renesas/ravb_main.c
+13-121 files

Linux/linux c7c4495drivers/net/ethernet/renesas ravb_main.c

net: ravb: Fix GbEth jumbo packet RX checksum handling

Sending a 7kB ping packet to the RZ/G2L in v6.9-rc2 causes the following
backtrace:

        WARNING: CPU: 0 PID: 0 at include/linux/skbuff.h:3127 skb_trim+0x30/0x38
        Hardware name: Renesas SMARC EVK based on r9a07g044l2 (DT)
        pc : skb_trim+0x30/0x38
        lr : ravb_rx_csum_gbeth+0x40/0x90
        Call trace:
         skb_trim+0x30/0x38
         ravb_rx_gbeth+0x56c/0x5cc
         ravb_poll+0xa0/0x204
         __napi_poll+0x38/0x17c

This is caused by ravb_rx_gbeth() calling ravb_rx_csum_gbeth() with the
wrong skb for a packet which spans multiple descriptors. To fix this,
use the correct skb.


    [4 lines not shown]
DeltaFile
+1-1drivers/net/ethernet/renesas/ravb_main.c
+1-11 files

Linux/linux def52dbdrivers/net/ethernet/renesas ravb_main.c

net: ravb: Count packets instead of descriptors in R-Car RX path

The units of "work done" in the RX path should be packets instead of
descriptors.

Descriptors which are used by the hardware to record error conditions or
are empty in the case of a DMA mapping error should not count towards
our RX work budget.

Also make the limit variable unsigned as it can never be negative.

Fixes: c156633f1353 ("Renesas Ethernet AVB driver proper")
Signed-off-by: Paul Barker <paul.barker.ct at bp.renesas.com>
Reviewed-by: Sergey Shtylyov <s.shtylyov at omp.ru>
Reviewed-by: Niklas Söderlund <niklas.soderlund+renesas at ragnatech.se>
Signed-off-by: Paolo Abeni <pabeni at redhat.com>
DeltaFile
+8-13drivers/net/ethernet/renesas/ravb_main.c
+8-131 files

Linux/linux 7caf3dasound/pci/hda patch_realtek.c

ALSA: hda/realtek: Add quirks for Huawei Matebook D14 NBLB-WAX9N

The headset mic requires a fixup to be properly detected/used.

As a reference, this specific model from 2021 reports
the following devices:
        https://alsa-project.org/db/?f=1a5ddeb0b151db8fe051407f5bb1c075b7dd3e4a

Signed-off-by: Mauro Carvalho Chehab <mchehab at kernel.org>
Cc: <stable at vger.kernel.org>
Message-ID: <b92a9e49fb504eec8416bcc6882a52de89450102.1713370457.git.mchehab at kernel.org>
Signed-off-by: Takashi Iwai <tiwai at suse.de>
DeltaFile
+1-0sound/pci/hda/patch_realtek.c
+1-01 files

Linux/linux dca5f4dsound/pci/hda patch_realtek.c

ALSA: hda/realtek: Fix volumn control of ThinkBook 16P Gen4

change HDA & AMP configuration from ALC287_FIXUP_CS35L41_I2C_2 to
ALC287_FIXUP_MG_RTKC_CSAMP_CS35L41_I2C_THINKPAD for ThinkBook 16P Gen4
models to fix volumn control issue (cannot fully mute).

Signed-off-by: Huayu Zhang <zhanghuayu1233 at qq.com>
Fixes: 6214e24cae9b ("ALSA: hda/realtek: Add quirks for Lenovo Thinkbook 16P laptops")
Message-ID: <tencent_37EB880C5E5BD99D21C16B288115C4545F06 at qq.com>
Signed-off-by: Takashi Iwai <tiwai at suse.de>
DeltaFile
+2-2sound/pci/hda/patch_realtek.c
+2-21 files

Linux/linux 0672b01sound/pci/hda patch_realtek.c

ALSA: hda/realtek: Fixes for Asus GU605M and GA403U sound

Added the correct pin table for Asus GU605M and GA403U, enabling all
speakers to be controlled with the master.
Updated quirks for GU605M and GA403U by including the pin table patch
in the chain.

Co-developed-by: Luke D. Jones <luke at ljones.dev>
Signed-off-by: Luke D. Jones <luke at ljones.dev>
Signed-off-by: Vitalii Torshyn <vitaly.torshyn at gmail.com>
Message-ID: <20240411125803.18539-1-vitaly.torshyn at gmail.com>
Signed-off-by: Takashi Iwai <tiwai at suse.de>
DeltaFile
+38-2sound/pci/hda/patch_realtek.c
+38-21 files

Linux/linux f74ab0csound/pci/hda patch_realtek.c

ALSA: hda/tas2781: Add new vendor_id and subsystem_id to support ThinkPad ICE-1

Add new vendor_id and subsystem_id to support new Lenovo laptop
ThinkPad ICE-1

Signed-off-by: Shenghao Ding <shenghao-ding at ti.com>
Cc: <stable at vger.kernel.org>
Message-ID: <20240411091823.1644-1-shenghao-ding at ti.com>
Signed-off-by: Takashi Iwai <tiwai at suse.de>
DeltaFile
+1-0sound/pci/hda/patch_realtek.c
+1-01 files