]> git.baikalelectronics.ru Git - kernel.git/commit
netlink: Use netlink header as base to calculate bad attribute offset
authorPablo Neira Ayuso <pablo@netfilter.org>
Wed, 26 Feb 2020 18:47:34 +0000 (19:47 +0100)
committerDavid S. Miller <davem@davemloft.net>
Sun, 1 Mar 2020 05:21:23 +0000 (21:21 -0800)
commit83e82369da5ec4c60f21e9debfa8c55e13b21baf
tree29a8587323b128b72d0629da76eb131b3f55ad05
parent56adbc60b8a52ffc12e18e7d7b05001018afda4a
netlink: Use netlink header as base to calculate bad attribute offset

Userspace might send a batch that is composed of several netlink
messages. The netlink_ack() function must use the pointer to the netlink
header as base to calculate the bad attribute offset.

Fixes: 5601c9fcd324 ("netlink: extended ACK reporting")
Signed-off-by: Pablo Neira Ayuso <pablo@netfilter.org>
Signed-off-by: David S. Miller <davem@davemloft.net>
net/netlink/af_netlink.c