Revision 580e4273d7a883ececfefa692c1f96bdbacb99b5 authored by Cong Wang on 02 October 2020, 19:13:34 UTC, committed by David S. Miller on 04 October 2020, 21:53:06 UTC
Although we take RTNL on dump path, it is possible to skip RTNL on insertion path. So the following race condition is possible: rtnl_lock() // no rtnl lock mutex_lock(&idrinfo->lock); // insert ERR_PTR(-EBUSY) mutex_unlock(&idrinfo->lock); tc_dump_action() rtnl_unlock() So we have to skip those temporary -EBUSY entries on dump path too. Reported-and-tested-by: syzbot+b47bc4f247856fb4d9e1@syzkaller.appspotmail.com Fixes: 0fedc63fadf0 ("net_sched: commit action insertions together") Cc: Vlad Buslov <vladbu@mellanox.com> Cc: Jamal Hadi Salim <jhs@mojatatu.com> Cc: Jiri Pirko <jiri@resnulli.us> Signed-off-by: Cong Wang <xiyou.wangcong@gmail.com> Signed-off-by: David S. Miller <davem@davemloft.net>
1 parent 9a9e774
File | Mode | Size |
---|---|---|
Kconfig | -rw-r--r-- | 1.2 KB |
Makefile | -rw-r--r-- | 1.3 KB |
clk-a10-codec.c | -rw-r--r-- | 895 bytes |
clk-a10-hosc.c | -rw-r--r-- | 1.4 KB |
clk-a10-mod1.c | -rw-r--r-- | 1.6 KB |
clk-a10-pll2.c | -rw-r--r-- | 5.2 KB |
clk-a10-ve.c | -rw-r--r-- | 3.6 KB |
clk-a20-gmac.c | -rw-r--r-- | 3.1 KB |
clk-factors.c | -rw-r--r-- | 7.7 KB |
clk-factors.h | -rw-r--r-- | 1.4 KB |
clk-mod0.c | -rw-r--r-- | 8.8 KB |
clk-simple-gates.c | -rw-r--r-- | 5.5 KB |
clk-sun4i-display.c | -rw-r--r-- | 5.8 KB |
clk-sun4i-pll3.c | -rw-r--r-- | 2.1 KB |
clk-sun4i-tcon-ch1.c | -rw-r--r-- | 6.2 KB |
clk-sun6i-apb0-gates.c | -rw-r--r-- | 2.6 KB |
clk-sun6i-apb0.c | -rw-r--r-- | 1.8 KB |
clk-sun6i-ar100.c | -rw-r--r-- | 2.2 KB |
clk-sun8i-apb0.c | -rw-r--r-- | 2.7 KB |
clk-sun8i-bus-gates.c | -rw-r--r-- | 2.7 KB |
clk-sun8i-mbus.c | -rw-r--r-- | 2.6 KB |
clk-sun9i-core.c | -rw-r--r-- | 6.3 KB |
clk-sun9i-cpus.c | -rw-r--r-- | 6.2 KB |
clk-sun9i-mmc.c | -rw-r--r-- | 4.9 KB |
clk-sunxi.c | -rw-r--r-- | 27.1 KB |
clk-usb.c | -rw-r--r-- | 6.6 KB |
![swh spinner](/static/img/swh-spinner.gif)
Computing file changes ...