Thread (25 messages) read the whole thread 25 messages, 8 authors, 2024-04-11

Re: [PATCH net-next v2 2/3] netdev: let netlink core handle -EMSGSIZE errors

From: Ido Schimmel <hidden>
Date: 2024-03-03 15:08:25

On Sat, Mar 02, 2024 at 09:24:07PM -0800, Jakub Kicinski wrote:
Previous change added -EMSGSIZE handling to af_netlink, we don't
have to hide these errors any longer.

Theoretically the error handling changes from:
 if (err == -EMSGSIZE)
to
 if (err == -EMSGSIZE && skb->len)

everywhere, but in practice it doesn't matter.
All messages fit into NLMSG_GOODSIZE, so overflow of an empty
skb cannot happen.

Reviewed-by: Eric Dumazet <edumazet@google.com>
Signed-off-by: Jakub Kicinski <kuba@kernel.org>
Reviewed-by: Ido Schimmel <idosch@nvidia.com>
Keyboard shortcuts
hback out one level
jnext message in thread
kprevious message in thread
ldrill in
Escclose help / fold thread tree
?toggle this help