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 |
---|---|---|
Makefile | -rw-r--r-- | 794 bytes |
mtd_nandecctest.c | -rw-r--r-- | 8.3 KB |
mtd_test.c | -rw-r--r-- | 2.1 KB |
mtd_test.h | -rw-r--r-- | 735 bytes |
nandbiterrs.c | -rw-r--r-- | 9.6 KB |
oobtest.c | -rw-r--r-- | 17.0 KB |
pagetest.c | -rw-r--r-- | 10.1 KB |
readtest.c | -rw-r--r-- | 4.4 KB |
speedtest.c | -rw-r--r-- | 8.4 KB |
stresstest.c | -rw-r--r-- | 5.0 KB |
subpagetest.c | -rw-r--r-- | 10.1 KB |
torturetest.c | -rw-r--r-- | 11.2 KB |
![swh spinner](/static/img/swh-spinner.gif)
Computing file changes ...