net/sched: act_skbmod: rcu_read_unlock in tcf_skbmod_dump?

5 messages, 3 authors, 2017-03-07 · open the first message on its own page

net/sched: act_skbmod: rcu_read_unlock in tcf_skbmod_dump?

From: Alexey Khoroshilov <hidden>
Date: 2017-03-04 20:49:53

Hello!

rcu_read_unlock() in tcf_skbmod_dump() looks suspicious to me.
What does it mean there?

Re: net/sched: act_skbmod: rcu_read_unlock in tcf_skbmod_dump?

From: Jamal Hadi Salim <jhs@mojatatu.com>
Date: 2017-03-04 23:47:31

On 17-03-04 03:49 PM, Alexey Khoroshilov wrote:
Hello!

rcu_read_unlock() in tcf_skbmod_dump() looks suspicious to me.
It does look suspicious. You want to send a patch or should I?

cheers,
jamal

[PATCH] net/sched: act_skbmod: remove unneeded rcu_read_unlock in tcf_skbmod_dump

From: Alexey Khoroshilov <hidden>
Date: 2017-03-05 00:02:56

Found by Linux Driver Verification project (linuxtesting.org).

Signed-off-by: Alexey Khoroshilov <redacted>
---
 net/sched/act_skbmod.c | 1 -
 1 file changed, 1 deletion(-)
diff --git a/net/sched/act_skbmod.c b/net/sched/act_skbmod.c
index 3b7074e23024..c736627f8f4a 100644
--- a/net/sched/act_skbmod.c
+++ b/net/sched/act_skbmod.c
@@ -228,7 +228,6 @@ static int tcf_skbmod_dump(struct sk_buff *skb, struct tc_action *a,
 
 	return skb->len;
 nla_put_failure:
-	rcu_read_unlock();
 	nlmsg_trim(skb, b);
 	return -1;
 }
-- 
2.7.4

Re: [PATCH] net/sched: act_skbmod: remove unneeded rcu_read_unlock in tcf_skbmod_dump

From: Jamal Hadi Salim <jhs@mojatatu.com>
Date: 2017-03-05 02:21:43

On 17-03-04 07:01 PM, Alexey Khoroshilov wrote:
Found by Linux Driver Verification project (linuxtesting.org).

Signed-off-by: Alexey Khoroshilov <redacted>
Acked-by: Jamal Hadi Salim <jhs@mojatatu.com>

cheers,
jamal

Re: [PATCH] net/sched: act_skbmod: remove unneeded rcu_read_unlock in tcf_skbmod_dump

From: David Miller <davem@davemloft.net>
Date: 2017-03-07 22:41:27

From: Alexey Khoroshilov <redacted>
Date: Sun,  5 Mar 2017 03:01:55 +0300
Found by Linux Driver Verification project (linuxtesting.org).

Signed-off-by: Alexey Khoroshilov <redacted>
Applied and queued up for -stable, thanks.
Keyboard shortcuts
hback out one level
jnext message in thread
kprevious message in thread
ldrill in
Escclose help / fold thread tree
?toggle this help