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-- | 7.4 KB |
Makefile | -rw-r--r-- | 727 bytes |
bcm47xxsflash.c | -rw-r--r-- | 9.6 KB |
bcm47xxsflash.h | -rw-r--r-- | 2.5 KB |
block2mtd.c | -rw-r--r-- | 10.9 KB |
docg3.c | -rw-r--r-- | 56.0 KB |
docg3.h | -rw-r--r-- | 9.2 KB |
lart.c | -rw-r--r-- | 18.2 KB |
mchp23k256.c | -rw-r--r-- | 5.5 KB |
ms02-nv.c | -rw-r--r-- | 7.0 KB |
ms02-nv.h | -rw-r--r-- | 3.7 KB |
mtd_dataflash.c | -rw-r--r-- | 24.2 KB |
mtdram.c | -rw-r--r-- | 4.2 KB |
phram.c | -rw-r--r-- | 6.4 KB |
pmc551.c | -rw-r--r-- | 25.0 KB |
powernv_flash.c | -rw-r--r-- | 7.1 KB |
serial_flash_cmds.h | -rw-r--r-- | 1.6 KB |
slram.c | -rw-r--r-- | 8.5 KB |
spear_smi.c | -rw-r--r-- | 29.7 KB |
sst25l.c | -rw-r--r-- | 9.4 KB |
st_spi_fsm.c | -rw-r--r-- | 57.9 KB |
![swh spinner](/static/img/swh-spinner.gif)
Computing file changes ...