kernel: bump 6.18 to 6.18.59

Changelog: https://cdn.kernel.org/pub/linux/kernel/v6.x/ChangeLog-6.18.59

Removed upstreamed:
  linux/generic/backport-6.18/950-v7.3-cgroup-fix-spurious-SIGKILL-of-CLONE_INTO_CGROUP-children.patch[1]
  linux/bcm27xx/patches-6.18/0783-drm-vc4-hdmi-Move-packet-RAM-enable-to-pm_runtime.patch[2]
  linux/qualcommax/patches-6.18/0092-v7.3-pinctrl-qcom-ipq5018-add-missing-pwm3-function-on-gpio13.patch[3]

All other patches automatically rebased via update_kernel.sh

Linux 6.18.59 makes ICE select LIBETH_XDP, so add kmod-libeth-xdp
to package libeth_xdp.ko and make kmod-ice depend on it.

1. https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git/commit/?h=v6.18.59&id=2f9dd8214d4213cac785e4e4441538053cce52fb
2. https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git/commit/?h=v6.18.59&id=6b03e354526f6bad60ed3a7f08fec8b7d29d2f27
3. https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git/commit/?h=v6.18.59&id=e76e6284de2ba2c0da9aa21ab4e17a885186a4b2

Build system: x86/64
Build-tested: x86/64-glibc
Run-tested: x86/64-glibc

Signed-off-by: John Audia <therealgraysky@proton.me>
Link: https://github.com/openwrt/openwrt/pull/25925
Signed-off-by: Hauke Mehrtens <hauke@hauke-m.de>
This commit is contained in:
John Audia authored and Hauke Mehrtens committed 2026-10-31 23:24:46 +01:00
1 parent 350501f839
commit 9ea2ee3974
27 files changed
+59 -259

No files matched your search

+17 -1
View File
@@ -183,6 +183,22 @@ endef
$(eval $(call KernelPackage,libeth))
define KernelPackage/libeth-xdp
SUBMENU:=$(NETWORK_DEVICES_MENU)
TITLE:=Common Intel Ethernet XDP library
DEPENDS:=+kmod-libeth
KCONFIG:=CONFIG_LIBETH_XDP
HIDDEN:=1
FILES:=$(LINUX_DIR)/drivers/net/ethernet/intel/libeth/libeth_xdp.ko
endef
define KernelPackage/libeth-xdp/description
Common Intel Ethernet XDP library
endef
$(eval $(call KernelPackage,libeth-xdp))
define KernelPackage/libphy
SUBMENU:=$(NETWORK_DEVICES_MENU)
TITLE:=PHY library
@@ -1539,7 +1555,7 @@ $(eval $(call KernelPackage,i40e))
define KernelPackage/ice
SUBMENU:=$(NETWORK_DEVICES_MENU)
TITLE:=Intel(R) Ethernet Controller E810 Series support
DEPENDS:=@PCI_SUPPORT +kmod-ptp +kmod-hwmon-core +kmod-libie +kmod-libie-adminq +kmod-libie-fwlog
DEPENDS:=@PCI_SUPPORT +kmod-ptp +kmod-hwmon-core +kmod-libie +kmod-libie-adminq +kmod-libie-fwlog +kmod-libeth-xdp
KCONFIG:=CONFIG_ICE \
CONFIG_ICE_HWMON=y \
CONFIG_ICE_HWTS=n \
@@ -624,7 +624,7 @@ SVN-Revision: 35130
(__force __wsum)to);
--- a/include/net/ipv6.h
+++ b/include/net/ipv6.h
@@ -149,7 +149,7 @@ struct frag_hdr {
@@ -147,7 +147,7 @@ struct frag_hdr {
__u8 reserved;
__be16 frag_off;
__be32 identification;
@@ -633,7 +633,7 @@ SVN-Revision: 35130
/*
* Jumbo payload option, as described in RFC 2675 2.
@@ -650,8 +650,8 @@ static inline void __ipv6_addr_set_half(
@@ -648,8 +648,8 @@ static inline void __ipv6_addr_set_half(
}
#endif
#endif
@@ -644,7 +644,7 @@ SVN-Revision: 35130
}
static inline void ipv6_addr_set(struct in6_addr *addr,
@@ -710,6 +710,8 @@ static inline bool ipv6_prefix_equal(con
@@ -708,6 +708,8 @@ static inline bool ipv6_prefix_equal(con
const __be32 *a1 = addr1->s6_addr32;
const __be32 *a2 = addr2->s6_addr32;
unsigned int pdw, pbi;
@@ -653,7 +653,7 @@ SVN-Revision: 35130
/* check complete u32 in prefix */
pdw = prefixlen >> 5;
@@ -718,7 +720,9 @@ static inline bool ipv6_prefix_equal(con
@@ -716,7 +718,9 @@ static inline bool ipv6_prefix_equal(con
/* check incomplete u32 in prefix */
pbi = prefixlen & 0x1f;
@@ -664,7 +664,7 @@ SVN-Revision: 35130
return false;
return true;
@@ -835,13 +839,13 @@ static inline void ipv6_addr_set_v4mappe
@@ -833,13 +837,13 @@ static inline void ipv6_addr_set_v4mappe
*/
static inline int __ipv6_addr_diff32(const void *token1, const void *token2, int addrlen)
{
@@ -680,7 +680,7 @@ SVN-Revision: 35130
if (xb)
return i * 32 + 31 - __fls(ntohl(xb));
}
@@ -1036,17 +1040,18 @@ static inline u32 ip6_multipath_hash_fie
@@ -1034,17 +1038,18 @@ static inline u32 ip6_multipath_hash_fie
static inline void ip6_flow_hdr(struct ipv6hdr *hdr, unsigned int tclass,
__be32 flowlabel)
{
@@ -18,7 +18,7 @@ Signed-off-by: Phil Elwell <phil@raspberrypi.org>
--- a/drivers/net/ethernet/broadcom/genet/bcmgenet.c
+++ b/drivers/net/ethernet/broadcom/genet/bcmgenet.c
@@ -2744,7 +2744,7 @@ static void bcmgenet_init_tx_ring(struct
@@ -2754,7 +2754,7 @@ static void bcmgenet_init_tx_ring(struct
bcmgenet_tdma_ring_writel(priv, index, 0, TDMA_PROD_INDEX);
bcmgenet_tdma_ring_writel(priv, index, 0, TDMA_CONS_INDEX);
@@ -27,7 +27,7 @@ Signed-off-by: Phil Elwell <phil@raspberrypi.org>
/* Disable rate control for now */
bcmgenet_tdma_ring_writel(priv, index, flow_period_val,
TDMA_FLOW_PERIOD);
@@ -4160,6 +4160,7 @@ static int bcmgenet_probe(struct platfor
@@ -4170,6 +4170,7 @@ static int bcmgenet_probe(struct platfor
priv->rx_rings[i].priv = priv;
priv->rx_rings[i].index = i;
priv->rx_rings[i].rx_max_coalesced_frames = 1;
@@ -37,7 +37,7 @@ Signed-off-by: Phil Elwell <phil@raspberrypi.org>
static inline void bcmgenet_writel(u32 value, void __iomem *offset)
{
@@ -2582,6 +2585,11 @@ static void reset_umac(struct bcmgenet_p
@@ -2592,6 +2595,11 @@ static void reset_umac(struct bcmgenet_p
bcmgenet_rbuf_ctrl_set(priv, 0);
udelay(10);
@@ -37,7 +37,7 @@ Signed-off-by: Phil Elwell <phil@raspberrypi.org>
gpiod_err(desc,
"%s: tried to set a GPIO tied to an IRQ as output\n",
__func__);
@@ -4058,8 +4060,8 @@ int gpiochip_lock_as_irq(struct gpio_chi
@@ -4059,8 +4061,8 @@ int gpiochip_lock_as_irq(struct gpio_chi
}
/* To be valid for IRQ the line needs to be input or open drain */
@@ -26,7 +26,7 @@ Signed-off-by: Phil Elwell <phil@raspberrypi.com>
static inline void bcmgenet_writel(u32 value, void __iomem *offset)
{
@@ -3439,6 +3442,17 @@ static int bcmgenet_open(struct net_devi
@@ -3449,6 +3452,17 @@ static int bcmgenet_open(struct net_devi
bcmgenet_phy_pause_set(dev, priv->rx_pause, priv->tx_pause);
@@ -39,7 +39,7 @@ Signed-off-by: Dave Stevenson <dave.stevenson@raspberrypi.com>
#define SCRAMBLING_POLLING_DELAY_MS 1000
static void vc4_hdmi_enable_scrambling(struct drm_encoder *encoder)
@@ -1667,6 +1685,7 @@ vc4_hdmi_connector_clock_valid(const str
@@ -1661,6 +1679,7 @@ vc4_hdmi_connector_clock_valid(const str
static const struct drm_connector_hdmi_funcs vc4_hdmi_hdmi_connector_funcs = {
.tmds_char_rate_valid = vc4_hdmi_connector_clock_valid,
.write_infoframe = vc4_hdmi_write_infoframe,
@@ -30,7 +30,7 @@ Signed-off-by: Dom Cobley <popcornmix@gmail.com>
--- a/drivers/gpu/drm/vc4/vc4_hdmi.c
+++ b/drivers/gpu/drm/vc4/vc4_hdmi.c
@@ -2369,7 +2369,7 @@ static irqreturn_t vc4_hdmi_hpd_irq_thre
@@ -2363,7 +2363,7 @@ static irqreturn_t vc4_hdmi_hpd_irq_thre
struct drm_connector *connector = &vc4_hdmi->connector;
struct drm_device *dev = connector->dev;
@@ -39,8 +39,8 @@ Signed-off-by: Dom Cobley <popcornmix@gmail.com>
clk_disable_unprepare(vc4_hdmi->pixel_bvb_clock);
clk_disable_unprepare(vc4_hdmi->pixel_clock);
@@ -3101,6 +3103,8 @@ static int vc4_hdmi_runtime_suspend(stru
struct vc4_hdmi *vc4_hdmi = dev_get_drvdata(dev);
@@ -3100,6 +3102,8 @@ static int vc4_hdmi_runtime_suspend(stru
spin_unlock_irqrestore(&vc4_hdmi->hw_lock, flags);
clk_disable_unprepare(vc4_hdmi->audio_clock);
+ /* we no longer require a minimum clock rate */
@@ -146,7 +146,7 @@ Signed-off-by: Dave Stevenson <dave.stevenson@raspberrypi.com>
};
--- a/drivers/gpu/drm/vc4/vc4_hdmi.c
+++ b/drivers/gpu/drm/vc4/vc4_hdmi.c
@@ -1710,7 +1710,9 @@ static int vc4_hdmi_encoder_atomic_check
@@ -1704,7 +1704,9 @@ static int vc4_hdmi_encoder_atomic_check
unsigned long long tmds_char_rate = mode->clock * 1000;
unsigned long long tmds_bit_rate;
@@ -157,7 +157,7 @@ Signed-off-by: Dave Stevenson <dave.stevenson@raspberrypi.com>
if (mode->flags & DRM_MODE_FLAG_DBLCLK) {
/* Only try to fixup DBLCLK modes to get 480i and 576i
* working.
@@ -3353,6 +3355,7 @@ static const struct vc4_hdmi_variant bcm
@@ -3355,6 +3357,7 @@ static const struct vc4_hdmi_variant bcm
PHY_LANE_CK,
},
.unsupported_odd_h_timings = true,
@@ -165,7 +165,7 @@ Signed-off-by: Dave Stevenson <dave.stevenson@raspberrypi.com>
.external_irq_controller = true,
.init_resources = vc5_hdmi_init_resources,
@@ -3382,6 +3385,7 @@ static const struct vc4_hdmi_variant bcm
@@ -3384,6 +3387,7 @@ static const struct vc4_hdmi_variant bcm
PHY_LANE_2,
},
.unsupported_odd_h_timings = true,
@@ -173,7 +173,7 @@ Signed-off-by: Dave Stevenson <dave.stevenson@raspberrypi.com>
.external_irq_controller = true,
.init_resources = vc5_hdmi_init_resources,
@@ -3411,6 +3415,7 @@ static const struct vc4_hdmi_variant bcm
@@ -3413,6 +3417,7 @@ static const struct vc4_hdmi_variant bcm
PHY_LANE_CK,
},
.unsupported_odd_h_timings = false,
@@ -181,7 +181,7 @@ Signed-off-by: Dave Stevenson <dave.stevenson@raspberrypi.com>
.external_irq_controller = true,
.init_resources = vc5_hdmi_init_resources,
@@ -3438,6 +3443,7 @@ static const struct vc4_hdmi_variant bcm
@@ -3440,6 +3445,7 @@ static const struct vc4_hdmi_variant bcm
PHY_LANE_CK,
},
.unsupported_odd_h_timings = false,
@@ -26,7 +26,7 @@ Signed-off-by: David Turner <david.turner@raspberrypi.com>
* NOTE: This function should really be called with vc4_hdmi->mutex
* held, but doing so results in reentrancy issues since
* cec_s_phys_addr() might call .adap_enable, which leads to that
@@ -2344,6 +2350,8 @@ static int vc4_hdmi_audio_init(struct vc
@@ -2338,6 +2344,8 @@ static int vc4_hdmi_audio_init(struct vc
dai_link->platforms->name = dev_name(dev);
dai_link->init = vc4_hdmi_codec_init;
@@ -13,7 +13,7 @@ Signed-off-by: Phil Elwell <phil@raspberrypi.com>
--- a/drivers/gpu/drm/vc4/vc4_hdmi.c
+++ b/drivers/gpu/drm/vc4/vc4_hdmi.c
@@ -2236,7 +2236,7 @@ static int vc4_hdmi_audio_init(struct vc
@@ -2230,7 +2230,7 @@ static int vc4_hdmi_audio_init(struct vc
struct snd_soc_dai_link *dai_link = &vc4_hdmi->audio.link;
struct snd_soc_card *card = &vc4_hdmi->audio.card;
struct device *dev = &vc4_hdmi->pdev->dev;
@@ -22,7 +22,7 @@ Signed-off-by: Phil Elwell <phil@raspberrypi.com>
int index, len;
int ret;
@@ -2272,22 +2272,18 @@ static int vc4_hdmi_audio_init(struct vc
@@ -2266,22 +2266,18 @@ static int vc4_hdmi_audio_init(struct vc
}
/*
@@ -18,7 +18,7 @@ Signed-off-by: Dave Stevenson <dave.stevenson@raspberrypi.com>
--- a/drivers/gpu/drm/vc4/vc4_hdmi.c
+++ b/drivers/gpu/drm/vc4/vc4_hdmi.c
@@ -3235,7 +3235,7 @@ static int vc4_hdmi_bind(struct device *
@@ -3237,7 +3237,7 @@ static int vc4_hdmi_bind(struct device *
vc4_hdmi->ddc = of_find_i2c_adapter_by_node(ddc_node);
of_node_put(ddc_node);
if (!vc4_hdmi->ddc) {
@@ -20,7 +20,7 @@ This reverts commit 712989f8e002e8a088f24a6cef4d8c1ed1a74e08.
static inline void bcmgenet_writel(u32 value, void __iomem *offset)
{
@@ -3442,17 +3439,6 @@ static int bcmgenet_open(struct net_devi
@@ -3452,17 +3449,6 @@ static int bcmgenet_open(struct net_devi
bcmgenet_phy_pause_set(dev, priv->rx_pause, priv->tx_pause);
@@ -20,7 +20,7 @@ This reverts commit dfad8d6677d4c11a5b6d599f81802486f5c1d973.
static inline void bcmgenet_writel(u32 value, void __iomem *offset)
{
@@ -2585,11 +2582,6 @@ static void reset_umac(struct bcmgenet_p
@@ -2595,11 +2592,6 @@ static void reset_umac(struct bcmgenet_p
bcmgenet_rbuf_ctrl_set(priv, 0);
udelay(10);
@@ -24,8 +24,8 @@ Signed-off-by: Dave Stevenson <dave.stevenson@raspberrypi.com>
if (!drm_dev_enter(drm, &idx))
goto out;
@@ -1647,7 +1645,6 @@ static void vc4_hdmi_encoder_post_crtc_e
VC4_HDMI_RAM_PACKET_ENABLE);
@@ -1641,7 +1639,6 @@ static void vc4_hdmi_encoder_post_crtc_e
VC4_HDMI_SCHEDULER_CONTROL_HDMI_ACTIVE));
spin_unlock_irqrestore(&vc4_hdmi->hw_lock, flags);
- vc4_hdmi->packet_ram_enabled = true;
@@ -1,85 +0,0 @@
From ec0db8fae4cd6d743284353f568ab0356f2f9692 Mon Sep 17 00:00:00 2001
From: Dave Stevenson <dave.stevenson@raspberrypi.com>
Date: Thu, 11 Jun 2026 12:47:43 +0100
Subject: [PATCH] drm/vc4: hdmi: Move packet RAM enable to pm_runtime
Audio can be triggered by the HPD handler and start up before
video has been restored, calling vc4_hdmi_write_infoframe
for the audio infoframe.
vc4_hdmi_write_infoframe checks that the packet RAM to store
the infoframes is enabled, but that is only enabled when
video is enabled in vc4_hdmi_encoder_post_crtc_enable.
The packet RAM enable is only a power saving thing, so
move enabling/disabling to the runtime_pm hooks.
Signed-off-by: Dave Stevenson <dave.stevenson@raspberrypi.com>
---
drivers/gpu/drm/vc4/vc4_hdmi.c | 21 +++++++++++++--------
1 file changed, 13 insertions(+), 8 deletions(-)
--- a/drivers/gpu/drm/vc4/vc4_hdmi.c
+++ b/drivers/gpu/drm/vc4/vc4_hdmi.c
@@ -846,7 +846,7 @@ static void vc4_hdmi_encoder_post_crtc_d
spin_lock_irqsave(&vc4_hdmi->hw_lock, flags);
- HDMI_WRITE(HDMI_RAM_PACKET_CONFIG, 0);
+ HDMI_WRITE(HDMI_RAM_PACKET_CONFIG, VC4_HDMI_RAM_PACKET_ENABLE);
HDMI_WRITE(HDMI_VID_CTL, HDMI_READ(HDMI_VID_CTL) | VC4_HD_VID_CTL_CLRRGB);
@@ -1620,9 +1620,6 @@ static void vc4_hdmi_encoder_post_crtc_e
WARN_ONCE(ret, "Timeout waiting for "
"VC4_HDMI_SCHEDULER_CONTROL_HDMI_ACTIVE\n");
} else {
- HDMI_WRITE(HDMI_RAM_PACKET_CONFIG,
- HDMI_READ(HDMI_RAM_PACKET_CONFIG) &
- ~(VC4_HDMI_RAM_PACKET_ENABLE));
HDMI_WRITE(HDMI_SCHEDULER_CONTROL,
HDMI_READ(HDMI_SCHEDULER_CONTROL) &
~VC4_HDMI_SCHEDULER_CONTROL_MODE_HDMI);
@@ -1641,9 +1638,6 @@ static void vc4_hdmi_encoder_post_crtc_e
WARN_ON(!(HDMI_READ(HDMI_SCHEDULER_CONTROL) &
VC4_HDMI_SCHEDULER_CONTROL_HDMI_ACTIVE));
- HDMI_WRITE(HDMI_RAM_PACKET_CONFIG,
- VC4_HDMI_RAM_PACKET_ENABLE);
-
spin_unlock_irqrestore(&vc4_hdmi->hw_lock, flags);
drm_atomic_helper_connector_hdmi_update_infoframes(connector, state);
@@ -3104,6 +3098,12 @@ static int vc5_hdmi_init_resources(struc
static int vc4_hdmi_runtime_suspend(struct device *dev)
{
struct vc4_hdmi *vc4_hdmi = dev_get_drvdata(dev);
+ unsigned long flags;
+
+ spin_lock_irqsave(&vc4_hdmi->hw_lock, flags);
+ HDMI_WRITE(HDMI_RAM_PACKET_CONFIG, 0);
+ spin_unlock_irqrestore(&vc4_hdmi->hw_lock, flags);
+
clk_disable_unprepare(vc4_hdmi->audio_clock);
/* we no longer require a minimum clock rate */
@@ -3116,7 +3116,7 @@ static int vc4_hdmi_runtime_suspend(stru
static int vc4_hdmi_runtime_resume(struct device *dev)
{
struct vc4_hdmi *vc4_hdmi = dev_get_drvdata(dev);
- unsigned long __maybe_unused flags;
+ unsigned long flags;
u32 __maybe_unused value;
unsigned long rate;
int ret;
@@ -3164,6 +3164,11 @@ static int vc4_hdmi_runtime_resume(struc
}
#endif
+ spin_lock_irqsave(&vc4_hdmi->hw_lock, flags);
+ HDMI_WRITE(HDMI_RAM_PACKET_CONFIG,
+ VC4_HDMI_RAM_PACKET_ENABLE);
+ spin_unlock_irqrestore(&vc4_hdmi->hw_lock, flags);
+
return 0;
err_disable_clk:
@@ -286,7 +286,7 @@ Signed-off-by: Dmitry Baryshkov <dmitry.baryshkov@oss.qualcomm.com>
{
return 0;
}
@@ -3289,7 +3260,7 @@ static int vc4_hdmi_bind(struct device *
@@ -3286,7 +3257,7 @@ static int vc4_hdmi_bind(struct device *
if (ret)
goto err_put_runtime_pm;
@@ -25,7 +25,7 @@ Signed-off-by: Steve French <stfrench@microsoft.com>
--- a/fs/smb/server/smb2pdu.c
+++ b/fs/smb/server/smb2pdu.c
@@ -9108,6 +9108,39 @@ int smb2_check_sign_req(struct ksmbd_wor
@@ -9113,6 +9113,39 @@ int smb2_check_sign_req(struct ksmbd_wor
}
/**
@@ -65,7 +65,7 @@ Signed-off-by: Steve French <stfrench@microsoft.com>
* smb2_set_sign_rsp() - handler for rsp packet sign processing
* @work: smb work containing notify command buffer
*
@@ -9117,18 +9150,13 @@ void smb2_set_sign_rsp(struct ksmbd_work
@@ -9122,18 +9155,13 @@ void smb2_set_sign_rsp(struct ksmbd_work
struct smb2_hdr *hdr;
char signature[SMB2_HMACSHA256_SIZE];
struct kvec *iov;
@@ -86,7 +86,7 @@ Signed-off-by: Steve French <stfrench@microsoft.com>
ksmbd_sign_smb2_pdu(work->conn, work->sess->sess_key, iov, n_vec,
signature);
@@ -9207,7 +9235,7 @@ void smb3_set_sign_rsp(struct ksmbd_work
@@ -9212,7 +9240,7 @@ void smb3_set_sign_rsp(struct ksmbd_work
struct channel *chann;
char signature[SMB2_CMACAES_SIZE];
struct kvec *iov;
@@ -95,7 +95,7 @@ Signed-off-by: Steve French <stfrench@microsoft.com>
char *signing_key;
hdr = ksmbd_resp_buf_curr(work);
@@ -9229,12 +9257,7 @@ void smb3_set_sign_rsp(struct ksmbd_work
@@ -9234,12 +9262,7 @@ void smb3_set_sign_rsp(struct ksmbd_work
hdr->Flags |= SMB2_FLAGS_SIGNED;
memset(hdr->Signature, 0, SMB2_SIGNATURE_SIZE);
@@ -248,7 +248,7 @@ Signed-off-by: Paolo Abeni <pabeni@redhat.com>
static struct sk_buff *sit_ip6ip6_gro_receive(struct list_head *head,
struct sk_buff *skb)
@@ -388,6 +389,7 @@ INDIRECT_CALLABLE_SCOPE int ipv6_gro_com
@@ -387,6 +388,7 @@ INDIRECT_CALLABLE_SCOPE int ipv6_gro_com
out:
return err;
}
@@ -1,83 +0,0 @@
From 8e359920216689b3b79e0fe8961a77fe312a511f Mon Sep 17 00:00:00 2001
From: Etienne Perot <eperot@google.com>
Date: Fri, 28 Aug 2026 21:52:51 +0000
Subject: [PATCH] cgroup: fix spurious SIGKILL of CLONE_INTO_CGROUP children
Since commit b69bb476dee9 ("cgroup: fix race between fork and
cgroup.kill"), the fork path snapshots the kill_seq of the child's
future cgroup into kargs->kill_seq, and cgroup_post_fork() SIGKILLs
the child if that cgroup's kill_seq has changed in the meantime, to
catch forks racing with a cgroup.kill sweep.
For CLONE_INTO_CGROUP, however, the snapshot in cgroup_css_set_fork()
is taken before the target cgroup has been resolved: kargs->cgrp is
always NULL at this point (it is only set at the end of the function).
So the "if (kargs->cgrp)" branch is dead code and the snapshot always
records the kill_seq of the parent's cgroup. cgroup_post_fork() then
compares it with the kill_seq of the target cgroup, so the child gets
SIGKILLed whenever the two cgroups have been killed a different number
of times.
As a result, once cgroup.kill has been written to a cgroup, every
child subsequently cloned into it with clone3(CLONE_INTO_CGROUP) is
killed on the spot, for as long as the cgroup exists: kill_seq is not
exposed to userspace and never resets.
Re-snapshot kill_seq from the target cgroup once it has been resolved,
and drop the dead branch at the early snapshot site.
This does not reopen the race fixed by b69bb476dee9. For
CLONE_INTO_CGROUP, everything from the snapshot to the check in
cgroup_post_fork() runs with cgroup_mutex held, and kill_seq is
only ever incremented under cgroup_mutex.
tj: Updated the comment above kill_seq to reflect the new serialization
rules as suggested by Shakeel Butt.
Fixes: b69bb476dee9 ("cgroup: fix race between fork and cgroup.kill")
Cc: stable@vger.kernel.org
Cc: Shakeel Butt <shakeel.butt@linux.dev>
Assisted-by: LLM
Signed-off-by: Etienne Perot <eperot@google.com>
Signed-off-by: Tejun Heo <tj@kernel.org>
---
include/linux/cgroup-defs.h | 5 ++++-
kernel/cgroup/cgroup.c | 6 ++----
2 files changed, 6 insertions(+), 5 deletions(-)
--- a/include/linux/cgroup-defs.h
+++ b/include/linux/cgroup-defs.h
@@ -518,7 +518,10 @@ struct cgroup {
int nr_threaded_children; /* # of live threaded child cgroups */
- /* sequence number for cgroup.kill, serialized by css_set_lock. */
+ /*
+ * Sequence number for cgroup.kill. Incremented with both cgroup_mutex
+ * and css_set_lock held. Readers hold either one.
+ */
unsigned int kill_seq;
struct kernfs_node *kn; /* cgroup kernfs entry */
--- a/kernel/cgroup/cgroup.c
+++ b/kernel/cgroup/cgroup.c
@@ -6734,10 +6734,7 @@ static int cgroup_css_set_fork(struct ke
spin_lock_irq(&css_set_lock);
cset = task_css_set(current);
get_css_set(cset);
- if (kargs->cgrp)
- kargs->kill_seq = kargs->cgrp->kill_seq;
- else
- kargs->kill_seq = cset->dfl_cgrp->kill_seq;
+ kargs->kill_seq = cset->dfl_cgrp->kill_seq;
spin_unlock_irq(&css_set_lock);
if (!(kargs->flags & CLONE_INTO_CGROUP)) {
@@ -6801,6 +6798,7 @@ static int cgroup_css_set_fork(struct ke
put_css_set(cset);
kargs->cgrp = dst_cgrp;
+ kargs->kill_seq = dst_cgrp->kill_seq;
return ret;
err:
@@ -16,7 +16,7 @@ Signed-off-by: Felix Fietkau <nbd@nbd.name>
--- a/net/core/page_pool.c
+++ b/net/core/page_pool.c
@@ -1210,8 +1210,9 @@ static void page_pool_release_retry(stru
@@ -1211,8 +1211,9 @@ static void page_pool_release_retry(stru
{
struct delayed_work *dwq = to_delayed_work(wq);
struct page_pool *pool = container_of(dwq, typeof(*pool), release_dw);
@@ -27,7 +27,7 @@ Signed-off-by: Felix Fietkau <nbd@nbd.name>
inflight = page_pool_release(pool);
/* In rare cases, a driver bug may cause inflight to go negative.
@@ -1223,6 +1224,21 @@ static void page_pool_release_retry(stru
@@ -1224,6 +1225,21 @@ static void page_pool_release_retry(stru
if (inflight <= 0)
return;
@@ -331,7 +331,7 @@ Signed-off-by: Felix Fietkau <nbd@nbd.name>
--- a/net/core/sock.c
+++ b/net/core/sock.c
@@ -4361,6 +4361,8 @@ static __net_initdata struct pernet_oper
@@ -4364,6 +4364,8 @@ static __net_initdata struct pernet_oper
static int __init proto_init(void)
{
@@ -13,7 +13,7 @@ Signed-off-by: Mieczyslaw Nalewaj <namiltd@yahoo.com>
--- a/include/net/ipv6.h
+++ b/include/net/ipv6.h
@@ -248,6 +248,8 @@ extern int sysctl_mld_qrv;
@@ -246,6 +246,8 @@ extern int sysctl_mld_qrv;
struct inet6_dev *_idev = (idev); \
unsigned long _field = (field); \
unsigned long _val = (val); \
@@ -22,7 +22,7 @@ Signed-off-by: Mieczyslaw Nalewaj <namiltd@yahoo.com>
if (likely(_idev != NULL)) \
mod##SNMP_ADD_STATS((_idev)->stats.statname, _field, _val); \
mod##SNMP_ADD_STATS((net)->mib.statname##_statistics, _field, _val);\
@@ -257,6 +259,7 @@ extern int sysctl_mld_qrv;
@@ -255,6 +257,7 @@ extern int sysctl_mld_qrv;
({ \
struct inet6_dev *_idev = (idev); \
unsigned long _val = (val); \
+2 -2
View File
@@ -1,2 +1,2 @@
LINUX_VERSION-6.18 = .58
LINUX_KERNEL_HASH-6.18.58 = 069b19f9032c4dac8149ae4b6520c35debca0f42a9f6d52ee55ba6ca9b818013
LINUX_VERSION-6.18 = .59
LINUX_KERNEL_HASH-6.18.59 = 53a55ac9863a5547e292b8e381d4e4c2240dd1127d5428a7c44dbc550be23963
@@ -96,7 +96,7 @@ Signed-off-by: Felix Fietkau <nbd@nbd.name>
}
--- a/net/core/sock.c
+++ b/net/core/sock.c
@@ -2620,7 +2620,7 @@ void sk_setup_caps(struct sock *sk, stru
@@ -2623,7 +2623,7 @@ void sk_setup_caps(struct sock *sk, stru
icsk->icsk_ack.dst_quick_ack = dst_metric(dst, RTAX_QUICKACK);
}
if (sk->sk_route_caps & NETIF_F_GSO)
@@ -1,48 +0,0 @@
From c6c159fcdb4e9a678eda0831f971e4a3a488ec47 Mon Sep 17 00:00:00 2001
From: Gilberto Conde <gilbertorconde@gmail.com>
Date: Mon, 21 Sep 2026 10:34:19 +0100
Subject: [PATCH] pinctrl: qcom: ipq5018: add missing pwm3 function on gpio13
GPIO13 supports the PWM3 function at mux select value 4, but the
pingroup table leaves that slot empty and gpio13 is not listed in
pwm3_groups. Selecting pwm3 on gpio13 is therefore rejected by the
pinmux core:
ipq5018-tlmm: invalid group "gpio13" for function "pwm3"
The GL.iNet GL-X2000 drives its fan from PWM3 on this pin, and the
vendor firmware muxes it with select value 4:
gpio13 : out low func4 8mA no pull
Add pwm3 to the fourth function slot of gpio13 and list gpio13 in
pwm3_groups. With this the pin muxes as expected:
pin 13 (GPIO_13): device 1941010.pwm function pwm3 group gpio13
Fixes: 725d1c891658 ("pinctrl: qcom: Add IPQ5018 pinctrl driver")
Signed-off-by: Gilberto Conde <gilbertorconde@gmail.com>
Reviewed-by: Konrad Dybcio <konrad.dybcio@oss.qualcomm.com>
Link: https://patch.msgid.link/20260921093419.2870168-1-gilbertorconde@gmail.com
Signed-off-by: Bartosz Golaszewski <bartosz.golaszewski@oss.qualcomm.com>
---
--- a/drivers/pinctrl/qcom/pinctrl-ipq5018.c
+++ b/drivers/pinctrl/qcom/pinctrl-ipq5018.c
@@ -565,7 +565,7 @@ static const char * const qdss_cti_trig_
};
static const char * const pwm3_groups[] = {
- "gpio45",
+ "gpio45", "gpio13",
};
static const char * const qdss_cti_trig_in_b1_groups[] = {
@@ -691,7 +691,7 @@ static const struct msm_pingroup ipq5018
PINGROUP(10, blsp0_spi, blsp1_uart0, led0, gcc_plltest, qdss_tracedata_a, _, _, _, _),
PINGROUP(11, blsp0_spi, blsp1_uart0, _, gcc_tlmm, qdss_tracedata_a, _, _, _, _),
PINGROUP(12, blsp0_spi, blsp0_i2c, blsp1_uart0, _, gcc_plltest, qdss_tracedata_a, _, _, _),
- PINGROUP(13, blsp0_spi, blsp0_i2c, blsp1_uart0, _, qdss_tracedata_a, _, _, _, _),
+ PINGROUP(13, blsp0_spi, blsp0_i2c, blsp1_uart0, pwm3, qdss_tracedata_a, _, _, _, _),
PINGROUP(14, pcie0_clk, _, _, cri_trng0, qdss_tracedata_a, _, _, _, _),
PINGROUP(15, _, _, cri_trng1, qdss_tracedata_a, _, _, _, _, _),
PINGROUP(16, pcie0_wake, _, _, cri_trng, qdss_tracedata_a, _, _, _, _),