🚀 go-pugleaf

RetroBBS NetNews Server

Inspired by RockSolid Light RIP Retro Guy

Thread View: linux.kernel.netdev
1 messages
1 total messages Started by Tung Quang Nguyen Mon, 23 Nov 2026 02:30
RE: [PATCH net] tipc: validate peer address attributes in tipc_nl_peer_rm()
#20660
Author: Tung Quang Nguyen
Date: Mon, 23 Nov 2026 02:30
15 lines
18706 bytes
>Subject: [PATCH net] tipc: validate peer address attributes in tipc_nl_peer_rm()
>
>tipc_nl_peer_rm() documents TIPC_NLA_NET_ADDR and
>TIPC_NLA_NET_NODEID as mutually exclusive ways to identify the peer to
>remove, but implements them as two independent if-blocks with no fallback
>check. If a TIPC_NL_PEER_REMOVE netlink request provides an empty nested
>TIPC_NLA_NET attribute (or only unrelated TIPC_NLA_NET_* attributes), 'addr'
>remains uninitialized on the stack and is passed into in_own_node() and
>tipc_node_find(). Conversely, if both attributes are supplied, the second
>silently overwrites the first.
>
>Return -EINVAL when both attributes are present or when neither is present.

Reviewed-by: Tung Nguyen <tung.quang.nguyen@est.tech>
Thread Navigation

This is a paginated view of messages in the thread with full content displayed inline.

Messages are displayed in chronological order, with the original post highlighted in green.

Use pagination controls to navigate through all messages in large threads.

Back to All Threads