]> git.proxmox.com Git - mirror_ubuntu-kernels.git/commit
netdev: let netlink core handle -EMSGSIZE errors
authorJakub Kicinski <kuba@kernel.org>
Sun, 3 Mar 2024 05:24:07 +0000 (21:24 -0800)
committerDavid S. Miller <davem@davemloft.net>
Wed, 6 Mar 2024 08:07:44 +0000 (08:07 +0000)
commit0b11b1c5c320555483e8a94c44549db24c289987
tree06f96c349b2428380d00b98f1682dfe610ccd8d4
parentb5a899154aa94cc573db3ae1f61dabe7bfe8b579
netdev: let netlink core handle -EMSGSIZE errors

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>
Signed-off-by: David S. Miller <davem@davemloft.net>
net/core/netdev-genl.c
net/core/page_pool_user.c