Linux kernel -stable discussions
 help / color / mirror / Atom feed
* FAILED: patch "[PATCH] net: qrtr: ns: Raise node count limit to 512" failed to apply to 6.1-stable tree
@ 2026-07-29 13:53 gregkh
  2026-07-29 15:09 ` [PATCH 6.1.y] net: qrtr: ns: Raise node count limit to 512 Youssef Samir
  0 siblings, 1 reply; 4+ messages in thread
From: gregkh @ 2026-07-29 13:53 UTC (permalink / raw)
  To: youssef.abdulrahman, kuba; +Cc: stable


The patch below does not apply to the 6.1-stable tree.
If someone wants it applied there, or to any other stable or longterm
tree, then please email the backport, including the original git commit
id to <stable@vger.kernel.org>.

To reproduce the conflict and resubmit, you may use the following commands:

git fetch https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git/ linux-6.1.y
git checkout FETCH_HEAD
git cherry-pick -x ff194cffd586cbd4cc49eccb002c65f2a902a277
# <resolve conflicts, build, test, etc.>
git commit -s
git send-email --to '<stable@vger.kernel.org>' --in-reply-to '2026072918-throwing-steep-c08d@gregkh' --subject-prefix 'PATCH 6.1.y' 'HEAD^..'

Possible dependencies:



thanks,

greg k-h

------------------ original commit in Linus's tree ------------------

From ff194cffd586cbd4cc49eccb002c65f2a902a277 Mon Sep 17 00:00:00 2001
From: Youssef Samir <youssef.abdulrahman@oss.qualcomm.com>
Date: Mon, 13 Jul 2026 16:59:01 +0200
Subject: [PATCH] net: qrtr: ns: Raise node count limit to 512

The current node limit of 64 breaks the functionality for a number of AI200
deployments that have up to 384 nodes. Raise the limit to 512.

Fixes: 27d5e84e810b ("net: qrtr: ns: Limit the total number of nodes")
Cc: stable@vger.kernel.org
Signed-off-by: Youssef Samir <youssef.abdulrahman@oss.qualcomm.com>
Link: https://patch.msgid.link/20260713145901.212396-1-youssef.abdulrahman@oss.qualcomm.com
Signed-off-by: Jakub Kicinski <kuba@kernel.org>

diff --git a/net/qrtr/ns.c b/net/qrtr/ns.c
index b3f9bbcf9ab9..e5b2adb161d9 100644
--- a/net/qrtr/ns.c
+++ b/net/qrtr/ns.c
@@ -76,11 +76,11 @@ struct qrtr_node {
  * requirements. If the requirement changes in the future, these values can be
  * increased.
  */
-#define QRTR_NS_MAX_NODES   64
+#define QRTR_NS_MAX_NODES   512
 #define QRTR_NS_MAX_SERVERS 256
 #define QRTR_NS_MAX_LOOKUPS 64
 
-static u8 node_count;
+static u16 node_count;
 
 static struct qrtr_node *node_get(unsigned int node_id)
 {


^ permalink raw reply related	[flat|nested] 4+ messages in thread

* [PATCH 6.1.y] net: qrtr: ns: Raise node count limit to 512
  2026-07-29 13:53 FAILED: patch "[PATCH] net: qrtr: ns: Raise node count limit to 512" failed to apply to 6.1-stable tree gregkh
@ 2026-07-29 15:09 ` Youssef Samir
  2026-07-30  2:40   ` Sasha Levin
  0 siblings, 1 reply; 4+ messages in thread
From: Youssef Samir @ 2026-07-29 15:09 UTC (permalink / raw)
  To: stable

The current node limit of 64 breaks the functionality for a number of AI200
deployments that have up to 384 nodes. Raise the limit to 512.

Fixes: 27d5e84e810b ("net: qrtr: ns: Limit the total number of nodes")
Cc: stable@vger.kernel.org
Signed-off-by: Youssef Samir <youssef.abdulrahman@oss.qualcomm.com>
Link: https://patch.msgid.link/20260713145901.212396-1-youssef.abdulrahman@oss.qualcomm.com
Signed-off-by: Jakub Kicinski <kuba@kernel.org>
(cherry picked from commit ff194cffd586cbd4cc49eccb002c65f2a902a277)
Signed-off-by: Youssef Samir <youssef.abdulrahman@oss.qualcomm.com>
---
 net/qrtr/ns.c | 9 ++-------
 1 file changed, 2 insertions(+), 7 deletions(-)

diff --git a/net/qrtr/ns.c b/net/qrtr/ns.c
index 559aad0e3621..8aabef85e34c 100644
--- a/net/qrtr/ns.c
+++ b/net/qrtr/ns.c
@@ -70,20 +70,15 @@ struct qrtr_node {
 	struct xarray servers;
 };
 
-/* Max lookup limit is chosen based on the current platform requirements. If the
- * requirement changes in the future, this value can be increased.
- */
-#define QRTR_NS_MAX_LOOKUPS 64
-
 /* Max nodes, server, lookup limits are chosen based on the current platform
  * requirements. If the requirement changes in the future, these values can be
  * increased.
  */
-#define QRTR_NS_MAX_NODES   64
+#define QRTR_NS_MAX_NODES   512
 #define QRTR_NS_MAX_SERVERS 256
 #define QRTR_NS_MAX_LOOKUPS 64
 
-static u8 node_count;
+static u16 node_count;
 
 static struct qrtr_node *node_get(unsigned int node_id)
 {
-- 
2.43.0


^ permalink raw reply related	[flat|nested] 4+ messages in thread

* Re: [PATCH 6.1.y] net: qrtr: ns: Raise node count limit to 512
  2026-07-29 15:09 ` [PATCH 6.1.y] net: qrtr: ns: Raise node count limit to 512 Youssef Samir
@ 2026-07-30  2:40   ` Sasha Levin
  2026-07-30 10:53     ` Youssef Samir
  0 siblings, 1 reply; 4+ messages in thread
From: Sasha Levin @ 2026-07-30  2:40 UTC (permalink / raw)
  To: stable; +Cc: Sasha Levin, Youssef Samir

> -/* Max lookup limit is chosen based on the current platform requirements. If the
> - * requirement changes in the future, this value can be increased.
> - */
> -#define QRTR_NS_MAX_LOOKUPS 64
> -

I've queued 6.18, 6.12 and 6.6, but I'm holding 6.1, 5.15 and 5.10 and
would like one v2 covering those three.

Two things:

1) The hunk above is in the 6.1 and 5.10 patches only.  It removes a
   duplicated #define that our own backports of 27d5e84e810b ("net: qrtr:
   ns: Limit the total number of nodes") introduced, which upstream
   ff194cffd586 ("net: qrtr: ns: Raise node count limit to 512") does not
   touch.  The 5.15 patch does not have it, even though 6.1 and 5.15
   currently have a byte-identical net/qrtr/ns.c.  Taking them as-is would
   leave the three old trees gratuitously different from each other.

2) More importantly, none of 6.1, 5.15 and 5.10 ever decrement node_count.
   The backports of 27d5e84e810b dropped the node_count-- hunk with the
   note that ctrl_cmd_bye() has no delete_node, but all three trees do have
   the delete_node: label with the xa_erase() + kfree().  So the counter is
   monotonic there and raising the cap from 64 to 512 only defers the wedge
   rather than fixing it.

Could you send a single v2 for 6.1, 5.15 and 5.10 that matches upstream
exactly and adds the missing node_count-- in ctrl_cmd_bye()?

-- 
Thanks,
Sasha

^ permalink raw reply	[flat|nested] 4+ messages in thread

* Re: [PATCH 6.1.y] net: qrtr: ns: Raise node count limit to 512
  2026-07-30  2:40   ` Sasha Levin
@ 2026-07-30 10:53     ` Youssef Samir
  0 siblings, 0 replies; 4+ messages in thread
From: Youssef Samir @ 2026-07-30 10:53 UTC (permalink / raw)
  To: Sasha Levin; +Cc: stable

Hi Sasha,

> Could you send a single v2 for 6.1, 5.15 and 5.10 that matches upstream
> exactly and adds the missing node_count-- in ctrl_cmd_bye()?

Will do. Thanks :)

- Youssef

^ permalink raw reply	[flat|nested] 4+ messages in thread

end of thread, other threads:[~2026-07-30 10:53 UTC | newest]

Thread overview: 4+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2026-07-29 13:53 FAILED: patch "[PATCH] net: qrtr: ns: Raise node count limit to 512" failed to apply to 6.1-stable tree gregkh
2026-07-29 15:09 ` [PATCH 6.1.y] net: qrtr: ns: Raise node count limit to 512 Youssef Samir
2026-07-30  2:40   ` Sasha Levin
2026-07-30 10:53     ` Youssef Samir

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox