From: Donald Hunter Date: Fri, 1 Nov 2024 14:32:07 +0000 (+0000) Subject: netfilter: nfnetlink: Report extack policy errors for batched ops X-Git-Tag: v6.13-rc1~135^2~37^2~13 X-Git-Url: http://git.ipfire.org/?a=commitdiff_plain;h=3f5495962824fbef3b9a577ccd9b02f967452c11;p=thirdparty%2Flinux.git netfilter: nfnetlink: Report extack policy errors for batched ops The nftables batch processing does not currently populate extack with policy errors. Fix this by passing extack when parsing batch messages. Signed-off-by: Donald Hunter Reviewed-by: Simon Horman Signed-off-by: Pablo Neira Ayuso --- diff --git a/net/netfilter/nfnetlink.c b/net/netfilter/nfnetlink.c index 7784ec094097b..e598a2a252b0a 100644 --- a/net/netfilter/nfnetlink.c +++ b/net/netfilter/nfnetlink.c @@ -517,7 +517,7 @@ replay_abort: err = nla_parse_deprecated(cda, ss->cb[cb_id].attr_count, attr, attrlen, - ss->cb[cb_id].policy, NULL); + ss->cb[cb_id].policy, &extack); if (err < 0) goto ack;