[PATCH net 1/1] net sched filters: fix filter handle ID in tfilter_notify_chain()

Subsystems: networking [general], tc subsystem, the rest

STALE3541d

4 messages, 4 authors, 2016-11-24 · open the first message on its own page

[PATCH net 1/1] net sched filters: fix filter handle ID in tfilter_notify_chain()

From: Roman Mashak <hidden>
Date: 2016-11-23 01:57:22

Should pass valid filter handle, not the netlink flags.

Fixes: 30a391a13ab92 ("net sched filters: pass netlink message flags in event notification")
Signed-off-by: Roman Mashak <redacted>
Signed-off-by: Jamal Hadi Salim <jhs@mojatatu.com>
---
 net/sched/cls_api.c | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/net/sched/cls_api.c b/net/sched/cls_api.c
index 8e93d4a..b05d4a2 100644
--- a/net/sched/cls_api.c
+++ b/net/sched/cls_api.c
@@ -112,7 +112,7 @@ static void tfilter_notify_chain(struct net *net, struct sk_buff *oskb,
 
 	for (it_chain = chain; (tp = rtnl_dereference(*it_chain)) != NULL;
 	     it_chain = &tp->next)
-		tfilter_notify(net, oskb, n, tp, n->nlmsg_flags, event, false);
+		tfilter_notify(net, oskb, n, tp, 0, event, false);
 }
 
 /* Select new prio value from the range, managed by kernel. */
-- 
1.9.1

Re: [PATCH net 1/1] net sched filters: fix filter handle ID in tfilter_notify_chain()

From: Cong Wang <hidden>
Date: 2016-11-23 04:09:38

On Tue, Nov 22, 2016 at 5:57 PM, Roman Mashak [off-list ref] wrote:
Should pass valid filter handle, not the netlink flags.

Fixes: 30a391a13ab92 ("net sched filters: pass netlink message flags in event notification")
Signed-off-by: Roman Mashak <redacted>
Signed-off-by: Jamal Hadi Salim <jhs@mojatatu.com>
Reported-by: Cong Wang <redacted>

Re: [PATCH net 1/1] net sched filters: fix filter handle ID in tfilter_notify_chain()

From: Daniel Borkmann <daniel@iogearbox.net>
Date: 2016-11-23 07:34:23

On 11/23/2016 02:57 AM, Roman Mashak wrote:
Should pass valid filter handle, not the netlink flags.

Fixes: 30a391a13ab92 ("net sched filters: pass netlink message flags in event notification")
Signed-off-by: Roman Mashak <redacted>
Signed-off-by: Jamal Hadi Salim <jhs@mojatatu.com>
Acked-by: Daniel Borkmann <daniel@iogearbox.net>

Re: [PATCH net 1/1] net sched filters: fix filter handle ID in tfilter_notify_chain()

From: David Miller <davem@davemloft.net>
Date: 2016-11-24 21:06:29

From: Roman Mashak <redacted>
Date: Tue, 22 Nov 2016 20:57:04 -0500
Should pass valid filter handle, not the netlink flags.

Fixes: 30a391a13ab92 ("net sched filters: pass netlink message flags in event notification")
Signed-off-by: Roman Mashak <redacted>
Signed-off-by: Jamal Hadi Salim <jhs@mojatatu.com>
Applied.
Keyboard shortcuts
hback out one level
jnext message in thread
kprevious message in thread
ldrill in
Escclose help / fold thread tree
?toggle this help