]> git.ipfire.org Git - thirdparty/kernel/stable-queue.git/commitdiff
5.15-stable patches
authorGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Fri, 15 Aug 2025 15:35:43 +0000 (17:35 +0200)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Fri, 15 Aug 2025 15:35:43 +0000 (17:35 +0200)
added patches:
alsa-usb-audio-validate-uac3-cluster-segment-descriptors.patch
alsa-usb-audio-validate-uac3-power-domain-descriptors-too.patch
gpio-virtio-fix-config-space-reading.patch
io_uring-don-t-use-int-for-abi.patch
net-dpaa-fix-device-leak-when-querying-time-stamp-info.patch
net-gianfar-fix-device-leak-when-querying-time-stamp-info.patch
net-usb-asix_devices-add-phy_mask-for-ax88772-mdio-bus.patch
netlink-avoid-infinite-retry-looping-in-netlink_unicast.patch

queue-5.15/alsa-usb-audio-validate-uac3-cluster-segment-descriptors.patch [new file with mode: 0644]
queue-5.15/alsa-usb-audio-validate-uac3-power-domain-descriptors-too.patch [new file with mode: 0644]
queue-5.15/gpio-virtio-fix-config-space-reading.patch [new file with mode: 0644]
queue-5.15/io_uring-don-t-use-int-for-abi.patch [new file with mode: 0644]
queue-5.15/net-dpaa-fix-device-leak-when-querying-time-stamp-info.patch [new file with mode: 0644]
queue-5.15/net-gianfar-fix-device-leak-when-querying-time-stamp-info.patch [new file with mode: 0644]
queue-5.15/net-usb-asix_devices-add-phy_mask-for-ax88772-mdio-bus.patch [new file with mode: 0644]
queue-5.15/netlink-avoid-infinite-retry-looping-in-netlink_unicast.patch [new file with mode: 0644]
queue-5.15/series

diff --git a/queue-5.15/alsa-usb-audio-validate-uac3-cluster-segment-descriptors.patch b/queue-5.15/alsa-usb-audio-validate-uac3-cluster-segment-descriptors.patch
new file mode 100644 (file)
index 0000000..c2f78ff
--- /dev/null
@@ -0,0 +1,91 @@
+From ecfd41166b72b67d3bdeb88d224ff445f6163869 Mon Sep 17 00:00:00 2001
+From: Takashi Iwai <tiwai@suse.de>
+Date: Thu, 14 Aug 2025 10:12:43 +0200
+Subject: ALSA: usb-audio: Validate UAC3 cluster segment descriptors
+
+From: Takashi Iwai <tiwai@suse.de>
+
+commit ecfd41166b72b67d3bdeb88d224ff445f6163869 upstream.
+
+UAC3 class segment descriptors need to be verified whether their sizes
+match with the declared lengths and whether they fit with the
+allocated buffer sizes, too.  Otherwise malicious firmware may lead to
+the unexpected OOB accesses.
+
+Fixes: 11785ef53228 ("ALSA: usb-audio: Initial Power Domain support")
+Reported-and-tested-by: Youngjun Lee <yjjuny.lee@samsung.com>
+Cc: <stable@vger.kernel.org>
+Link: https://patch.msgid.link/20250814081245.8902-2-tiwai@suse.de
+Signed-off-by: Takashi Iwai <tiwai@suse.de>
+Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
+---
+ sound/usb/stream.c |   25 ++++++++++++++++++++++---
+ 1 file changed, 22 insertions(+), 3 deletions(-)
+
+--- a/sound/usb/stream.c
++++ b/sound/usb/stream.c
+@@ -341,20 +341,28 @@ snd_pcm_chmap_elem *convert_chmap_v3(str
+       len = le16_to_cpu(cluster->wLength);
+       c = 0;
+-      p += sizeof(struct uac3_cluster_header_descriptor);
++      p += sizeof(*cluster);
++      len -= sizeof(*cluster);
+-      while (((p - (void *)cluster) < len) && (c < channels)) {
++      while (len > 0 && (c < channels)) {
+               struct uac3_cluster_segment_descriptor *cs_desc = p;
+               u16 cs_len;
+               u8 cs_type;
++              if (len < sizeof(*p))
++                      break;
+               cs_len = le16_to_cpu(cs_desc->wLength);
++              if (len < cs_len)
++                      break;
+               cs_type = cs_desc->bSegmentType;
+               if (cs_type == UAC3_CHANNEL_INFORMATION) {
+                       struct uac3_cluster_information_segment_descriptor *is = p;
+                       unsigned char map;
++                      if (cs_len < sizeof(*is))
++                              break;
++
+                       /*
+                        * TODO: this conversion is not complete, update it
+                        * after adding UAC3 values to asound.h
+@@ -456,6 +464,7 @@ snd_pcm_chmap_elem *convert_chmap_v3(str
+                       chmap->map[c++] = map;
+               }
+               p += cs_len;
++              len -= cs_len;
+       }
+       if (channels < c)
+@@ -876,7 +885,7 @@ snd_usb_get_audioformat_uac3(struct snd_
+       u64 badd_formats = 0;
+       unsigned int num_channels;
+       struct audioformat *fp;
+-      u16 cluster_id, wLength;
++      u16 cluster_id, wLength, cluster_wLength;
+       int clock = 0;
+       int err;
+@@ -1003,6 +1012,16 @@ snd_usb_get_audioformat_uac3(struct snd_
+                       iface_no, altno);
+               kfree(cluster);
+               return ERR_PTR(-EIO);
++      }
++
++      cluster_wLength = le16_to_cpu(cluster->wLength);
++      if (cluster_wLength < sizeof(*cluster) ||
++          cluster_wLength > wLength) {
++              dev_err(&dev->dev,
++                      "%u:%d : invalid Cluster Descriptor size\n",
++                      iface_no, altno);
++              kfree(cluster);
++              return ERR_PTR(-EIO);
+       }
+       num_channels = cluster->bNrChannels;
diff --git a/queue-5.15/alsa-usb-audio-validate-uac3-power-domain-descriptors-too.patch b/queue-5.15/alsa-usb-audio-validate-uac3-power-domain-descriptors-too.patch
new file mode 100644 (file)
index 0000000..cf5680e
--- /dev/null
@@ -0,0 +1,51 @@
+From d832ccbc301fbd9e5a1d691bdcf461cdb514595f Mon Sep 17 00:00:00 2001
+From: Takashi Iwai <tiwai@suse.de>
+Date: Thu, 14 Aug 2025 10:12:42 +0200
+Subject: ALSA: usb-audio: Validate UAC3 power domain descriptors, too
+
+From: Takashi Iwai <tiwai@suse.de>
+
+commit d832ccbc301fbd9e5a1d691bdcf461cdb514595f upstream.
+
+UAC3 power domain descriptors need to be verified with its variable
+bLength for avoiding the unexpected OOB accesses by malicious
+firmware, too.
+
+Fixes: 9a2fe9b801f5 ("ALSA: usb: initial USB Audio Device Class 3.0 support")
+Reported-and-tested-by: Youngjun Lee <yjjuny.lee@samsung.com>
+Cc: <stable@vger.kernel.org>
+Link: https://patch.msgid.link/20250814081245.8902-1-tiwai@suse.de
+Signed-off-by: Takashi Iwai <tiwai@suse.de>
+Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
+---
+ sound/usb/validate.c |   12 ++++++++++++
+ 1 file changed, 12 insertions(+)
+
+--- a/sound/usb/validate.c
++++ b/sound/usb/validate.c
+@@ -221,6 +221,17 @@ static bool validate_uac3_feature_unit(c
+       return d->bLength >= sizeof(*d) + 4 + 2;
+ }
++static bool validate_uac3_power_domain_unit(const void *p,
++                                          const struct usb_desc_validator *v)
++{
++      const struct uac3_power_domain_descriptor *d = p;
++
++      if (d->bLength < sizeof(*d))
++              return false;
++      /* baEntities[] + wPDomainDescrStr */
++      return d->bLength >= sizeof(*d) + d->bNrEntities + 2;
++}
++
+ static bool validate_midi_out_jack(const void *p,
+                                  const struct usb_desc_validator *v)
+ {
+@@ -285,6 +296,7 @@ static const struct usb_desc_validator a
+             struct uac3_clock_multiplier_descriptor),
+       /* UAC_VERSION_3, UAC3_SAMPLE_RATE_CONVERTER: not implemented yet */
+       /* UAC_VERSION_3, UAC3_CONNECTORS: not implemented yet */
++      FUNC(UAC_VERSION_3, UAC3_POWER_DOMAIN, validate_uac3_power_domain_unit),
+       { } /* terminator */
+ };
diff --git a/queue-5.15/gpio-virtio-fix-config-space-reading.patch b/queue-5.15/gpio-virtio-fix-config-space-reading.patch
new file mode 100644 (file)
index 0000000..4c1b44e
--- /dev/null
@@ -0,0 +1,52 @@
+From 4740e1e2f320061c2f0dbadc0dd3dfb58df986d5 Mon Sep 17 00:00:00 2001
+From: Harald Mommer <harald.mommer@oss.qualcomm.com>
+Date: Thu, 24 Jul 2025 16:36:53 +0200
+Subject: gpio: virtio: Fix config space reading.
+
+From: Harald Mommer <harald.mommer@oss.qualcomm.com>
+
+commit 4740e1e2f320061c2f0dbadc0dd3dfb58df986d5 upstream.
+
+Quote from the virtio specification chapter 4.2.2.2:
+
+"For the device-specific configuration space, the driver MUST use 8 bit
+wide accesses for 8 bit wide fields, 16 bit wide and aligned accesses
+for 16 bit wide fields and 32 bit wide and aligned accesses for 32 and
+64 bit wide fields."
+
+Signed-off-by: Harald Mommer <harald.mommer@oss.qualcomm.com>
+Cc: stable@vger.kernel.org
+Fixes: 3a29355a22c0 ("gpio: Add virtio-gpio driver")
+Acked-by: Viresh Kumar <viresh.kumar@linaro.org>
+Link: https://lore.kernel.org/r/20250724143718.5442-2-harald.mommer@oss.qualcomm.com
+Signed-off-by: Bartosz Golaszewski <bartosz.golaszewski@linaro.org>
+Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
+---
+ drivers/gpio/gpio-virtio.c |    9 +++++----
+ 1 file changed, 5 insertions(+), 4 deletions(-)
+
+--- a/drivers/gpio/gpio-virtio.c
++++ b/drivers/gpio/gpio-virtio.c
+@@ -275,7 +275,6 @@ static const char **virtio_gpio_get_name
+ static int virtio_gpio_probe(struct virtio_device *vdev)
+ {
+-      struct virtio_gpio_config config;
+       struct device *dev = &vdev->dev;
+       struct virtio_gpio *vgpio;
+       u32 gpio_names_size;
+@@ -287,9 +286,11 @@ static int virtio_gpio_probe(struct virt
+               return -ENOMEM;
+       /* Read configuration */
+-      virtio_cread_bytes(vdev, 0, &config, sizeof(config));
+-      gpio_names_size = le32_to_cpu(config.gpio_names_size);
+-      ngpio = le16_to_cpu(config.ngpio);
++      gpio_names_size =
++              virtio_cread32(vdev, offsetof(struct virtio_gpio_config,
++                                            gpio_names_size));
++      ngpio =  virtio_cread16(vdev, offsetof(struct virtio_gpio_config,
++                                             ngpio));
+       if (!ngpio) {
+               dev_err(dev, "Number of GPIOs can't be zero\n");
+               return -EINVAL;
diff --git a/queue-5.15/io_uring-don-t-use-int-for-abi.patch b/queue-5.15/io_uring-don-t-use-int-for-abi.patch
new file mode 100644 (file)
index 0000000..32e36f3
--- /dev/null
@@ -0,0 +1,35 @@
+From cf73d9970ea4f8cace5d8f02d2565a2723003112 Mon Sep 17 00:00:00 2001
+From: Pavel Begunkov <asml.silence@gmail.com>
+Date: Wed, 2 Jul 2025 21:31:54 +0100
+Subject: io_uring: don't use int for ABI
+
+From: Pavel Begunkov <asml.silence@gmail.com>
+
+commit cf73d9970ea4f8cace5d8f02d2565a2723003112 upstream.
+
+__kernel_rwf_t is defined as int, the actual size of which is
+implementation defined. It won't go well if some compiler / archs
+ever defines it as i64, so replace it with __u32, hoping that
+there is no one using i16 for it.
+
+Cc: stable@vger.kernel.org
+Fixes: 2b188cc1bb857 ("Add io_uring IO interface")
+Signed-off-by: Pavel Begunkov <asml.silence@gmail.com>
+Link: https://lore.kernel.org/r/47c666c4ee1df2018863af3a2028af18feef11ed.1751412511.git.asml.silence@gmail.com
+Signed-off-by: Jens Axboe <axboe@kernel.dk>
+Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
+---
+ include/uapi/linux/io_uring.h |    2 +-
+ 1 file changed, 1 insertion(+), 1 deletion(-)
+
+--- a/include/uapi/linux/io_uring.h
++++ b/include/uapi/linux/io_uring.h
+@@ -29,7 +29,7 @@ struct io_uring_sqe {
+       };
+       __u32   len;            /* buffer size or number of iovecs */
+       union {
+-              __kernel_rwf_t  rw_flags;
++              __u32           rw_flags;
+               __u32           fsync_flags;
+               __u16           poll_events;    /* compatibility */
+               __u32           poll32_events;  /* word-reversed for BE */
diff --git a/queue-5.15/net-dpaa-fix-device-leak-when-querying-time-stamp-info.patch b/queue-5.15/net-dpaa-fix-device-leak-when-querying-time-stamp-info.patch
new file mode 100644 (file)
index 0000000..f0c3f8c
--- /dev/null
@@ -0,0 +1,41 @@
+From 3fa840230f534385b34a4f39c8dd313fbe723f05 Mon Sep 17 00:00:00 2001
+From: Johan Hovold <johan@kernel.org>
+Date: Fri, 25 Jul 2025 19:12:09 +0200
+Subject: net: dpaa: fix device leak when querying time stamp info
+
+From: Johan Hovold <johan@kernel.org>
+
+commit 3fa840230f534385b34a4f39c8dd313fbe723f05 upstream.
+
+Make sure to drop the reference to the ptp device taken by
+of_find_device_by_node() when querying the time stamping capabilities.
+
+Note that holding a reference to the ptp device does not prevent its
+driver data from going away.
+
+Fixes: 17ae0b0ee9db ("dpaa_eth: add the get_ts_info interface for ethtool")
+Cc: stable@vger.kernel.org     # 4.19
+Cc: Yangbo Lu <yangbo.lu@nxp.com>
+Signed-off-by: Johan Hovold <johan@kernel.org>
+Reviewed-by: Simon Horman <horms@kernel.org>
+Link: https://patch.msgid.link/20250725171213.880-2-johan@kernel.org
+Signed-off-by: Jakub Kicinski <kuba@kernel.org>
+Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
+---
+ drivers/net/ethernet/freescale/dpaa/dpaa_ethtool.c |    4 +++-
+ 1 file changed, 3 insertions(+), 1 deletion(-)
+
+--- a/drivers/net/ethernet/freescale/dpaa/dpaa_ethtool.c
++++ b/drivers/net/ethernet/freescale/dpaa/dpaa_ethtool.c
+@@ -499,8 +499,10 @@ static int dpaa_get_ts_info(struct net_d
+               of_node_put(ptp_node);
+       }
+-      if (ptp_dev)
++      if (ptp_dev) {
+               ptp = platform_get_drvdata(ptp_dev);
++              put_device(&ptp_dev->dev);
++      }
+       if (ptp)
+               info->phc_index = ptp->phc_index;
diff --git a/queue-5.15/net-gianfar-fix-device-leak-when-querying-time-stamp-info.patch b/queue-5.15/net-gianfar-fix-device-leak-when-querying-time-stamp-info.patch
new file mode 100644 (file)
index 0000000..a453baf
--- /dev/null
@@ -0,0 +1,41 @@
+From da717540acd34e5056e3fa35791d50f6b3303f55 Mon Sep 17 00:00:00 2001
+From: Johan Hovold <johan@kernel.org>
+Date: Fri, 25 Jul 2025 19:12:11 +0200
+Subject: net: gianfar: fix device leak when querying time stamp info
+
+From: Johan Hovold <johan@kernel.org>
+
+commit da717540acd34e5056e3fa35791d50f6b3303f55 upstream.
+
+Make sure to drop the reference to the ptp device taken by
+of_find_device_by_node() when querying the time stamping capabilities.
+
+Note that holding a reference to the ptp device does not prevent its
+driver data from going away.
+
+Fixes: 7349a74ea75c ("net: ethernet: gianfar_ethtool: get phc index through drvdata")
+Cc: stable@vger.kernel.org     # 4.18
+Cc: Yangbo Lu <yangbo.lu@nxp.com>
+Signed-off-by: Johan Hovold <johan@kernel.org>
+Reviewed-by: Simon Horman <horms@kernel.org>
+Link: https://patch.msgid.link/20250725171213.880-4-johan@kernel.org
+Signed-off-by: Jakub Kicinski <kuba@kernel.org>
+Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
+---
+ drivers/net/ethernet/freescale/gianfar_ethtool.c |    4 +++-
+ 1 file changed, 3 insertions(+), 1 deletion(-)
+
+--- a/drivers/net/ethernet/freescale/gianfar_ethtool.c
++++ b/drivers/net/ethernet/freescale/gianfar_ethtool.c
+@@ -1461,8 +1461,10 @@ static int gfar_get_ts_info(struct net_d
+       if (ptp_node) {
+               ptp_dev = of_find_device_by_node(ptp_node);
+               of_node_put(ptp_node);
+-              if (ptp_dev)
++              if (ptp_dev) {
+                       ptp = platform_get_drvdata(ptp_dev);
++                      put_device(&ptp_dev->dev);
++              }
+       }
+       if (ptp)
diff --git a/queue-5.15/net-usb-asix_devices-add-phy_mask-for-ax88772-mdio-bus.patch b/queue-5.15/net-usb-asix_devices-add-phy_mask-for-ax88772-mdio-bus.patch
new file mode 100644 (file)
index 0000000..f013cf0
--- /dev/null
@@ -0,0 +1,42 @@
+From 4faff70959d51078f9ee8372f8cff0d7045e4114 Mon Sep 17 00:00:00 2001
+From: Xu Yang <xu.yang_2@nxp.com>
+Date: Mon, 11 Aug 2025 17:29:31 +0800
+Subject: net: usb: asix_devices: add phy_mask for ax88772 mdio bus
+
+From: Xu Yang <xu.yang_2@nxp.com>
+
+commit 4faff70959d51078f9ee8372f8cff0d7045e4114 upstream.
+
+Without setting phy_mask for ax88772 mdio bus, current driver may create
+at most 32 mdio phy devices with phy address range from 0x00 ~ 0x1f.
+DLink DUB-E100 H/W Ver B1 is such a device. However, only one main phy
+device will bind to net phy driver. This is creating issue during system
+suspend/resume since phy_polling_mode() in phy_state_machine() will
+directly deference member of phydev->drv for non-main phy devices. Then
+NULL pointer dereference issue will occur. Due to only external phy or
+internal phy is necessary, add phy_mask for ax88772 mdio bus to workarnoud
+the issue.
+
+Closes: https://lore.kernel.org/netdev/20250806082931.3289134-1-xu.yang_2@nxp.com
+Fixes: e532a096be0e ("net: usb: asix: ax88772: add phylib support")
+Cc: stable@vger.kernel.org
+Signed-off-by: Xu Yang <xu.yang_2@nxp.com>
+Tested-by: Oleksij Rempel <o.rempel@pengutronix.de>
+Reviewed-by: Oleksij Rempel <o.rempel@pengutronix.de>
+Link: https://patch.msgid.link/20250811092931.860333-1-xu.yang_2@nxp.com
+Signed-off-by: Paolo Abeni <pabeni@redhat.com>
+Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
+---
+ drivers/net/usb/asix_devices.c |    1 +
+ 1 file changed, 1 insertion(+)
+
+--- a/drivers/net/usb/asix_devices.c
++++ b/drivers/net/usb/asix_devices.c
+@@ -669,6 +669,7 @@ static int ax88772_init_mdio(struct usbn
+       priv->mdio->read = &asix_mdio_bus_read;
+       priv->mdio->write = &asix_mdio_bus_write;
+       priv->mdio->name = "Asix MDIO Bus";
++      priv->mdio->phy_mask = ~(BIT(priv->phy_addr) | BIT(AX_EMBD_PHY_ADDR));
+       /* mii bus name is usb-<usb bus number>-<usb device number> */
+       snprintf(priv->mdio->id, MII_BUS_ID_SIZE, "usb-%03d:%03d",
+                dev->udev->bus->busnum, dev->udev->devnum);
diff --git a/queue-5.15/netlink-avoid-infinite-retry-looping-in-netlink_unicast.patch b/queue-5.15/netlink-avoid-infinite-retry-looping-in-netlink_unicast.patch
new file mode 100644 (file)
index 0000000..b0daecd
--- /dev/null
@@ -0,0 +1,80 @@
+From 759dfc7d04bab1b0b86113f1164dc1fec192b859 Mon Sep 17 00:00:00 2001
+From: Fedor Pchelkin <pchelkin@ispras.ru>
+Date: Mon, 28 Jul 2025 11:06:47 +0300
+Subject: netlink: avoid infinite retry looping in netlink_unicast()
+
+From: Fedor Pchelkin <pchelkin@ispras.ru>
+
+commit 759dfc7d04bab1b0b86113f1164dc1fec192b859 upstream.
+
+netlink_attachskb() checks for the socket's read memory allocation
+constraints. Firstly, it has:
+
+  rmem < READ_ONCE(sk->sk_rcvbuf)
+
+to check if the just increased rmem value fits into the socket's receive
+buffer. If not, it proceeds and tries to wait for the memory under:
+
+  rmem + skb->truesize > READ_ONCE(sk->sk_rcvbuf)
+
+The checks don't cover the case when skb->truesize + sk->sk_rmem_alloc is
+equal to sk->sk_rcvbuf. Thus the function neither successfully accepts
+these conditions, nor manages to reschedule the task - and is called in
+retry loop for indefinite time which is caught as:
+
+  rcu: INFO: rcu_sched self-detected stall on CPU
+  rcu:     0-....: (25999 ticks this GP) idle=ef2/1/0x4000000000000000 softirq=262269/262269 fqs=6212
+  (t=26000 jiffies g=230833 q=259957)
+  NMI backtrace for cpu 0
+  CPU: 0 PID: 22 Comm: kauditd Not tainted 5.10.240 #68
+  Hardware name: QEMU Standard PC (i440FX + PIIX, 1996), BIOS 1.17.0-4.fc42 04/01/2014
+  Call Trace:
+  <IRQ>
+  dump_stack lib/dump_stack.c:120
+  nmi_cpu_backtrace.cold lib/nmi_backtrace.c:105
+  nmi_trigger_cpumask_backtrace lib/nmi_backtrace.c:62
+  rcu_dump_cpu_stacks kernel/rcu/tree_stall.h:335
+  rcu_sched_clock_irq.cold kernel/rcu/tree.c:2590
+  update_process_times kernel/time/timer.c:1953
+  tick_sched_handle kernel/time/tick-sched.c:227
+  tick_sched_timer kernel/time/tick-sched.c:1399
+  __hrtimer_run_queues kernel/time/hrtimer.c:1652
+  hrtimer_interrupt kernel/time/hrtimer.c:1717
+  __sysvec_apic_timer_interrupt arch/x86/kernel/apic/apic.c:1113
+  asm_call_irq_on_stack arch/x86/entry/entry_64.S:808
+  </IRQ>
+
+  netlink_attachskb net/netlink/af_netlink.c:1234
+  netlink_unicast net/netlink/af_netlink.c:1349
+  kauditd_send_queue kernel/audit.c:776
+  kauditd_thread kernel/audit.c:897
+  kthread kernel/kthread.c:328
+  ret_from_fork arch/x86/entry/entry_64.S:304
+
+Restore the original behavior of the check which commit in Fixes
+accidentally missed when restructuring the code.
+
+Found by Linux Verification Center (linuxtesting.org).
+
+Fixes: ae8f160e7eb2 ("netlink: Fix wraparounds of sk->sk_rmem_alloc.")
+Cc: stable@vger.kernel.org
+Signed-off-by: Fedor Pchelkin <pchelkin@ispras.ru>
+Reviewed-by: Kuniyuki Iwashima <kuniyu@google.com>
+Link: https://patch.msgid.link/20250728080727.255138-1-pchelkin@ispras.ru
+Signed-off-by: Jakub Kicinski <kuba@kernel.org>
+Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
+---
+ net/netlink/af_netlink.c |    2 +-
+ 1 file changed, 1 insertion(+), 1 deletion(-)
+
+--- a/net/netlink/af_netlink.c
++++ b/net/netlink/af_netlink.c
+@@ -1217,7 +1217,7 @@ int netlink_attachskb(struct sock *sk, s
+       nlk = nlk_sk(sk);
+       rmem = atomic_add_return(skb->truesize, &sk->sk_rmem_alloc);
+-      if ((rmem == skb->truesize || rmem < READ_ONCE(sk->sk_rcvbuf)) &&
++      if ((rmem == skb->truesize || rmem <= READ_ONCE(sk->sk_rcvbuf)) &&
+           !test_bit(NETLINK_S_CONGESTED, &nlk->state)) {
+               netlink_skb_set_owner_r(skb, sk);
+               return 0;
index c294350b97e17144df5638a420524a0394adb3f6..2dbf2f0b874398acc1ab0f09c972b0a3352ea94b 100644 (file)
@@ -255,3 +255,11 @@ alsa-intel_hdmi-fix-off-by-one-error-in-__hdmi_lpe_audio_probe.patch
 mips-mm-tlb-r4k-uniquify-tlb-entries-on-init.patch
 mm-hmm-move-pmd_to_hmm_pfn_flags-to-the-respective-ifdeffery.patch
 usb-gadget-fix-use-after-free-in-composite_dev_cleanup.patch
+io_uring-don-t-use-int-for-abi.patch
+alsa-usb-audio-validate-uac3-power-domain-descriptors-too.patch
+alsa-usb-audio-validate-uac3-cluster-segment-descriptors.patch
+gpio-virtio-fix-config-space-reading.patch
+netlink-avoid-infinite-retry-looping-in-netlink_unicast.patch
+net-gianfar-fix-device-leak-when-querying-time-stamp-info.patch
+net-dpaa-fix-device-leak-when-querying-time-stamp-info.patch
+net-usb-asix_devices-add-phy_mask-for-ax88772-mdio-bus.patch