Netdev List
 help / color / mirror / Atom feed
* [PATCH net v3 0/7] tipc: fix deadlock and NUll pointer dereference in tipc_named_node_up()
@ 2026-11-16  6:34 Tung Nguyen
  2026-11-16  6:34 ` [PATCH net v3 1/7] tipc: fix memory leak in tipc_node_xmit() Tung Nguyen
                   ` (6 more replies)
  0 siblings, 7 replies; 13+ messages in thread
From: Tung Nguyen @ 2026-11-16  6:34 UTC (permalink / raw)
  To: netdev
  Cc: davem, kuba, edumazet, pabeni, jmaloy, horms, tipc-discussion,
	Tung Nguyen

Patch 1 fixes a memory leak in tipc_node_xmit().

Patch 2 fixes a dangling link in the cluster_scope list during network
namespace teardown.

Patch 3 fixes incorrect initialization of the replicast node counter.

Patch 4 fixes a missing link-up event when memory allocation fails.

Patch 5 fixes missing validation of the original address of a received skb in
tipc_named_rcv().

Patch 6 fixes a self-deadlock when inspecting tipc_named_node_up().

Patch 7 fixes a NULL pointer dereference caused by a race between the
tipc_net_finalize work and tipc_named_node_up(). This issue was also
reported by syzbot.

v3:
- Patch 3: Add Cc: lkp@intel.com to the changelog to address a warning, and
remove the unnecessary nt->rc_dests = 0 assignment from tipc_nametbl_init().

- Patch 4: Free sr and sc on memory allocation failure, and purge xmitq in
tipc_rcv() if tipc_node_write_unlock() resets a bearer.

- Add patch 5 to fix pre-existing issues discovered while reviewing Patch 7.

- Patch 6: Introduce tipc_node_lxc_xmit() for container communication.

- Patch 7: Initialize p to NULL in tipc_net_finalize() to address a warning,
and reset the correct bearer in tipc_node_write_unlock().

v2: https://lore.kernel.org/netdev/20261102034207.10639-1-tung.quang.nguyen@est.tech/
v1: https://lore.kernel.org/netdev/20261028033722.125477-1-tung.quang.nguyen@est.tech/

Tung Nguyen (7):
  tipc: fix memory leak in tipc_node_xmit()
  tipc: fix dangling link in cluster_scope list in tipc_service_delete()
  tipc: fix incorrect initialization of replicast node counter
  tipc: fix missing link-up event on memory allocation failure
  tipc: validate original address of received skb in tipc_named_rcv()
  tipc: fix self-deadlock in tipc_named_node_up
  tipc: fix NULL pointer dereference in named_distribute()

 net/tipc/core.c       |   1 +
 net/tipc/core.h       |   2 +
 net/tipc/name_distr.c | 133 ++++++++++++++++++---
 net/tipc/name_distr.h |   4 +-
 net/tipc/name_table.c | 174 +++++++++++++++++++++++----
 net/tipc/name_table.h |  11 +-
 net/tipc/net.c        |  19 ++-
 net/tipc/node.c       | 272 ++++++++++++++++++++++++++++++++++--------
 net/tipc/node.h       |   4 +
 net/tipc/socket.c     |   3 +-
 10 files changed, 526 insertions(+), 97 deletions(-)

-- 
2.53.0


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

end of thread, other threads:[~2026-11-17 18:37 UTC | newest]

Thread overview: 13+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2026-11-16  6:34 [PATCH net v3 0/7] tipc: fix deadlock and NUll pointer dereference in tipc_named_node_up() Tung Nguyen
2026-11-16  6:34 ` [PATCH net v3 1/7] tipc: fix memory leak in tipc_node_xmit() Tung Nguyen
2026-11-16  6:34 ` [PATCH net v3 2/7] tipc: fix dangling link in cluster_scope list in tipc_service_delete() Tung Nguyen
2026-11-17 18:37   ` netdev-bot+sashiko
2026-11-16  6:34 ` [PATCH net v3 3/7] tipc: fix incorrect initialization of replicast node counter Tung Nguyen
2026-11-16  6:34 ` [PATCH net v3 4/7] tipc: fix missing link-up event on memory allocation failure Tung Nguyen
2026-11-17 18:37   ` netdev-bot+sashiko
2026-11-16  6:34 ` [PATCH net v3 5/7] tipc: validate original address of received skb in tipc_named_rcv() Tung Nguyen
2026-11-17 18:37   ` netdev-bot+sashiko
2026-11-16  6:34 ` [PATCH net v3 6/7] tipc: fix self-deadlock in tipc_named_node_up Tung Nguyen
2026-11-17 18:37   ` netdev-bot+sashiko
2026-11-16  6:34 ` [PATCH net v3 7/7] tipc: fix NULL pointer dereference in named_distribute() Tung Nguyen
2026-11-17 18:37   ` netdev-bot+sashiko

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