syzbot


net-next test error: WARNING: suspicious RCU usage in hsr_node_get_first

Status: upstream: reported on 2022/02/10 13:27
Reported-by: syzbot+f0eb4f3876de066b128c@syzkaller.appspotmail.com
Fix commit: e7f27420681f net: hsr: fix suspicious RCU usage warning in hsr_node_get_first()
Patched on: [ci-qemu-upstream ci-qemu-upstream-386 ci-qemu2-arm32 ci-qemu2-arm64 ci-qemu2-arm64-compat ci-qemu2-arm64-mte ci-upstream-bpf-kasan-gce ci-upstream-bpf-next-kasan-gce ci-upstream-gce-leak ci-upstream-kasan-gce ci-upstream-kasan-gce-386 ci-upstream-kasan-gce-root ci-upstream-kasan-gce-selinux-root ci-upstream-kasan-gce-smack-root ci-upstream-kmsan-gce ci-upstream-kmsan-gce-386 ci-upstream-linux-next-kasan-gce-root ci-upstream-net-kasan-gce ci-upstream-net-this-kasan-gce ci2-upstream-kcsan-gce ci2-upstream-usb], missing on: [ci-qemu2-riscv64]
First crash: 142d, last: 129d

Sample crash report:
batman_adv: batadv0: The MTU of interface batadv_slave_1 is too small (1500) to handle the transport of batman-adv packets. Packets going over this interface will be fragmented on layer2 which could impact the performance. Setting the MTU to 1560 would solve the problem.
batman_adv: batadv0: Not using interface batadv_slave_1 (retrying later): interface not active
=============================
WARNING: suspicious RCU usage
5.17.0-rc4-syzkaller-01370-g92c54a65e6a8 #0 Not tainted
-----------------------------
net/hsr/hsr_framereg.c:34 suspicious rcu_dereference_check() usage!

other info that might help us debug this:


rcu_scheduler_active = 2, debug_locks = 1
2 locks held by syz-executor.0/3596:
 #0: ffffffff8d32f868 (rtnl_mutex){+.+.}-{3:3}, at: rtnl_lock net/core/rtnetlink.c:72 [inline]
 #0: ffffffff8d32f868 (rtnl_mutex){+.+.}-{3:3}, at: rtnetlink_rcv_msg+0x3be/0xb80 net/core/rtnetlink.c:5595
 #1: ffff88801e8a95f0 (&hsr->list_lock){+...}-{2:2}, at: spin_lock_bh include/linux/spinlock.h:354 [inline]
 #1: ffff88801e8a95f0 (&hsr->list_lock){+...}-{2:2}, at: hsr_create_self_node+0x225/0x650 net/hsr/hsr_framereg.c:108

stack backtrace:
CPU: 0 PID: 3596 Comm: syz-executor.0 Not tainted 5.17.0-rc4-syzkaller-01370-g92c54a65e6a8 #0
Hardware name: Google Google Compute Engine/Google Compute Engine, BIOS Google 01/01/2011
Call Trace:
 <TASK>
 __dump_stack lib/dump_stack.c:88 [inline]
 dump_stack_lvl+0xcd/0x134 lib/dump_stack.c:106
 hsr_node_get_first+0x9b/0xb0 net/hsr/hsr_framereg.c:34
 hsr_create_self_node+0x22d/0x650 net/hsr/hsr_framereg.c:109
 hsr_dev_finalize+0x2c1/0x7d0 net/hsr/hsr_device.c:514
 hsr_newlink+0x315/0x730 net/hsr/hsr_netlink.c:102
 __rtnl_newlink+0x107c/0x1760 net/core/rtnetlink.c:3483
 rtnl_newlink+0x64/0xa0 net/core/rtnetlink.c:3531
 rtnetlink_rcv_msg+0x413/0xb80 net/core/rtnetlink.c:5598
 netlink_rcv_skb+0x153/0x420 net/netlink/af_netlink.c:2494
 netlink_unicast_kernel net/netlink/af_netlink.c:1317 [inline]
 netlink_unicast+0x539/0x7e0 net/netlink/af_netlink.c:1343
 netlink_sendmsg+0x904/0xe00 net/netlink/af_netlink.c:1919
 sock_sendmsg_nosec net/socket.c:705 [inline]
 sock_sendmsg+0xcf/0x120 net/socket.c:725
 __sys_sendto+0x21c/0x320 net/socket.c:2040
 __do_sys_sendto net/socket.c:2052 [inline]
 __se_sys_sendto net/socket.c:2048 [inline]
 __x64_sys_sendto+0xdd/0x1b0 net/socket.c:2048
 do_syscall_x64 arch/x86/entry/common.c:50 [inline]
 do_syscall_64+0x35/0xb0 arch/x86/entry/common.c:80
 entry_SYSCALL_64_after_hwframe+0x44/0xae
RIP: 0033:0x7f5ca4389e1c
Code: fa fa ff ff 44 8b 4c 24 2c 4c 8b 44 24 20 89 c5 44 8b 54 24 28 48 8b 54 24 18 b8 2c 00 00 00 48 8b 74 24 10 8b 7c 24 08 0f 05 <48> 3d 00 f0 ff ff 77 34 89 ef 48 89 44 24 08 e8 20 fb ff ff 48 8b
RSP: 002b:00007ffcba571890 EFLAGS: 00000293 ORIG_RAX: 000000000000002c
RAX: ffffffffffffffda RBX: 00007f5ca5422320 RCX: 00007f5ca4389e1c
RDX: 0000000000000048 RSI: 00007f5ca5422370 RDI: 0000000000000003
RBP: 0000000000000000 R08: 00007ffcba5718e4 R09: 000000000000000c
R10: 0000000000000000 R11: 0000000000000293 R12: 0000000000000000
R13: 00007f5ca5422370 R14: 0000000000000003 R15: 0000000000000000
 </TASK>
device hsr_slave_0 entered promiscuous mode
device hsr_slave_1 entered promiscuous mode
netdevsim netdevsim0 netdevsim0: renamed from eth0
netdevsim netdevsim0 netdevsim1: renamed from eth1
netdevsim netdevsim0 netdevsim2: renamed from eth2
netdevsim netdevsim0 netdevsim3: renamed from eth3
bridge0: port 2(bridge_slave_1) entered blocking state
bridge0: port 2(bridge_slave_1) entered forwarding state
bridge0: port 1(bridge_slave_0) entered blocking state
bridge0: port 1(bridge_slave_0) entered forwarding state
8021q: adding VLAN 0 to HW filter on device bond0
8021q: adding VLAN 0 to HW filter on device team0
hsr0: Slave B (hsr_slave_1) is not up; please bring it up to get a fully working HSR network
IPv6: ADDRCONF(NETDEV_CHANGE): hsr0: link becomes ready
8021q: adding VLAN 0 to HW filter on device batadv0
device veth0_vlan entered promiscuous mode
device veth1_vlan entered promiscuous mode
device veth0_macvtap entered promiscuous mode
device veth1_macvtap entered promiscuous mode
batman_adv: batadv0: Interface activated: batadv_slave_0
batman_adv: batadv0: Interface activated: batadv_slave_1
netdevsim netdevsim0 netdevsim0: set [1, 0] type 2 family 0 port 6081 - 0
netdevsim netdevsim0 netdevsim1: set [1, 0] type 2 family 0 port 6081 - 0
netdevsim netdevsim0 netdevsim2: set [1, 0] type 2 family 0 port 6081 - 0
netdevsim netdevsim0 netdevsim3: set [1, 0] type 2 family 0 port 6081 - 0
syz-executor.0 (3596) used greatest stack depth: 22304 bytes left

Crashes (189):
Manager Time Kernel Commit Syzkaller Config Log Report Syz repro C repro VM info Title
ci-upstream-net-kasan-gce 2022/02/19 16:48 net-next 92c54a65e6a8 3cd800e4 .config log report net-next test error: WARNING: suspicious RCU usage in hsr_node_get_first
ci-upstream-net-kasan-gce 2022/02/19 12:48 net-next 7e1b54d07751 3cd800e4 .config log report net-next test error: WARNING: suspicious RCU usage in hsr_node_get_first
ci-upstream-net-kasan-gce 2022/02/19 06:08 net-next bbcf340d9dc3 3cd800e4 .config log report net-next test error: WARNING: suspicious RCU usage in hsr_node_get_first
ci-upstream-net-kasan-gce 2022/02/19 05:28 net-next 6e2e59eaee47 3cd800e4 .config log report net-next test error: WARNING: suspicious RCU usage in hsr_node_get_first
ci-upstream-net-kasan-gce 2022/02/18 15:48 net-next 86213f80da1b 3cd800e4 .config log report net-next test error: WARNING: suspicious RCU usage in hsr_node_get_first
ci-upstream-net-kasan-gce 2022/02/18 11:28 net-next 8467fadc115c 3cd800e4 .config log report net-next test error: WARNING: suspicious RCU usage in hsr_node_get_first
ci-upstream-net-kasan-gce 2022/02/18 06:08 net-next a3fc4b1d09d9 3cd800e4 .config log report net-next test error: WARNING: suspicious RCU usage in hsr_node_get_first
ci-upstream-net-kasan-gce 2022/02/18 06:08 net-next a3fc4b1d09d9 3cd800e4 .config log report net-next test error: WARNING: suspicious RCU usage in hsr_node_get_first
ci-upstream-net-kasan-gce 2022/02/17 22:16 net-next 2aed49da6c08 3cd800e4 .config log report net-next test error: WARNING: suspicious RCU usage in hsr_node_get_first
ci-upstream-net-kasan-gce 2022/02/17 16:48 net-next faab39f63c1f 3cd800e4 .config log report net-next test error: WARNING: suspicious RCU usage in hsr_node_get_first
ci-upstream-net-kasan-gce 2022/02/17 14:44 net-next 5da1033b9e2b 3cd800e4 .config log report net-next test error: WARNING: suspicious RCU usage in hsr_node_get_first
ci-upstream-net-kasan-gce 2022/02/17 13:38 net-next c8b441d2fbd0 3cd800e4 .config log report net-next test error: WARNING: suspicious RCU usage in hsr_node_get_first
ci-upstream-net-kasan-gce 2022/02/17 11:34 net-next c8b441d2fbd0 2bea8a27 .config log report net-next test error: WARNING: suspicious RCU usage in hsr_node_get_first
ci-upstream-net-kasan-gce 2022/02/17 11:34 net-next c8b441d2fbd0 2bea8a27 .config log report net-next test error: WARNING: suspicious RCU usage in hsr_node_get_first
ci-upstream-net-kasan-gce 2022/02/17 04:54 net-next c8620335951d 2bea8a27 .config log report net-next test error: WARNING: suspicious RCU usage in hsr_node_get_first
ci-upstream-net-kasan-gce 2022/02/16 23:52 net-next f0ead99e623b 2bea8a27 .config log report net-next test error: WARNING: suspicious RCU usage in hsr_node_get_first
ci-upstream-net-kasan-gce 2022/02/16 11:45 net-next f0ead99e623b 8b9ca619 .config log report net-next test error: WARNING: suspicious RCU usage in hsr_node_get_first
ci-upstream-net-kasan-gce 2022/02/16 02:25 net-next b0471c261081 8b9ca619 .config log report net-next test error: WARNING: suspicious RCU usage in hsr_node_get_first
ci-upstream-net-kasan-gce 2022/02/15 14:46 net-next 25ce79db8042 8b9ca619 .config log report net-next test error: WARNING: suspicious RCU usage in hsr_node_get_first
ci-upstream-net-kasan-gce 2022/02/15 11:22 net-next 9b3e446cd07f 8b9ca619 .config log report net-next test error: WARNING: suspicious RCU usage in hsr_node_get_first
ci-upstream-net-kasan-gce 2022/02/15 05:46 net-next d0b78ab1ca35 8b9ca619 .config log report net-next test error: WARNING: suspicious RCU usage in hsr_node_get_first
ci-upstream-net-kasan-gce 2022/02/14 13:46 net-next 88f62aea1cff 8b9ca619 .config log report net-next test error: WARNING: suspicious RCU usage in hsr_node_get_first
ci-upstream-net-kasan-gce 2022/02/14 13:46 net-next 88f62aea1cff 8b9ca619 .config log report net-next test error: WARNING: suspicious RCU usage in hsr_node_get_first
ci-upstream-net-kasan-gce 2022/02/14 11:26 net-next 2e13bde13153 8b9ca619 .config log report net-next test error: WARNING: suspicious RCU usage in hsr_node_get_first
ci-upstream-net-kasan-gce 2022/02/13 22:20 net-next 867b1db874c9 8b9ca619 .config log report net-next test error: WARNING: suspicious RCU usage in hsr_node_get_first
ci-upstream-net-kasan-gce 2022/02/13 14:01 net-next 1f52d7b62285 8b9ca619 .config log report net-next test error: WARNING: suspicious RCU usage in hsr_node_get_first
ci-upstream-net-kasan-gce 2022/02/12 03:56 net-next f126ec9d6e57 8b9ca619 .config log report net-next test error: WARNING: suspicious RCU usage in hsr_node_get_first
ci-upstream-net-kasan-gce 2022/02/11 18:05 net-next b96a79253fff 8b9ca619 .config log report net-next test error: WARNING: suspicious RCU usage in hsr_node_get_first
ci-upstream-net-kasan-gce 2022/02/11 18:05 net-next b96a79253fff 8b9ca619 .config log report net-next test error: WARNING: suspicious RCU usage in hsr_node_get_first
ci-upstream-net-kasan-gce 2022/02/11 14:49 net-next b96a79253fff 0b33604d .config log report net-next test error: WARNING: suspicious RCU usage in hsr_node_get_first
ci-upstream-net-kasan-gce 2022/02/11 12:22 net-next c002496babfd 0b33604d .config log report net-next test error: WARNING: suspicious RCU usage in hsr_node_get_first
ci-upstream-net-kasan-gce 2022/02/11 04:17 net-next 5b91c5cc0e7b 0b33604d .config log report net-next test error: WARNING: suspicious RCU usage in hsr_node_get_first
ci-upstream-net-kasan-gce 2022/02/11 00:17 net-next 4f5e483b8c7a 0b33604d .config log report net-next test error: WARNING: suspicious RCU usage in hsr_node_get_first
ci-upstream-net-kasan-gce 2022/02/10 20:21 net-next d8c2858181cc 0b33604d .config log report net-next test error: WARNING: suspicious RCU usage in hsr_node_get_first
ci-upstream-net-kasan-gce 2022/02/10 15:56 net-next 9557167bc63e 0b33604d .config log report net-next test error: WARNING: suspicious RCU usage in hsr_node_get_first
ci-upstream-net-kasan-gce 2022/02/10 14:47 net-next adc27288f229 0b33604d .config log report net-next test error: WARNING: suspicious RCU usage in hsr_node_get_first
ci-upstream-net-kasan-gce 2022/02/10 09:37 net-next 45230829827b 0b33604d .config log report net-next test error: WARNING: suspicious RCU usage in hsr_node_get_first
ci-upstream-net-kasan-gce 2022/02/10 06:20 net-next 1127170d457e 0b33604d .config log report net-next test error: WARNING: suspicious RCU usage in hsr_node_get_first
ci-upstream-net-kasan-gce 2022/02/10 01:38 net-next 5cad527d5ffa 0b33604d .config log report net-next test error: WARNING: suspicious RCU usage in hsr_node_get_first
ci-upstream-net-kasan-gce 2022/02/09 12:58 net-next b4f029f4f433 0b33604d .config log report net-next test error: WARNING: suspicious RCU usage in hsr_node_get_first
ci-upstream-net-kasan-gce 2022/02/09 12:58 net-next b4f029f4f433 0b33604d .config log report net-next test error: WARNING: suspicious RCU usage in hsr_node_get_first
ci-upstream-net-kasan-gce 2022/02/09 12:19 net-next aa4725c2fc03 0b33604d .config log report net-next test error: WARNING: suspicious RCU usage in hsr_node_get_first
ci-upstream-net-kasan-gce 2022/02/09 12:19 net-next aa4725c2fc03 0b33604d .config log report net-next test error: WARNING: suspicious RCU usage in hsr_node_get_first
ci-upstream-net-kasan-gce 2022/02/09 12:19 net-next aa4725c2fc03 0b33604d .config log report net-next test error: WARNING: suspicious RCU usage in hsr_node_get_first
ci-upstream-net-kasan-gce 2022/02/09 05:39 net-next c7d9a6751a5f 0b33604d .config log report net-next test error: WARNING: suspicious RCU usage in hsr_node_get_first
ci-upstream-net-kasan-gce 2022/02/06 13:20 net-next 9c1be1935fb6 a7dab638 .config log report net-next test error: WARNING: suspicious RCU usage in hsr_node_get_first