syzbot


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

Status: auto-closed as invalid on 2022/04/05 21:00
Subsystems: net
[Documentation on labels]
Reported-by: syzbot+787eccd42a00a400e647@syzkaller.appspotmail.com
First crash: 809d, last: 794d
Discussions (1)
Title Replies (including bot) Last reply
[syzbot] linux-next test error: WARNING: suspicious RCU usage in hsr_node_get_first 0 (1) 2022/02/11 04:57

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-next-20220217-syzkaller #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: ffffffff8d539528 (rtnl_mutex){+.+.}-{3:3}, at: rtnl_lock net/core/rtnetlink.c:72 [inline]
 #0: ffffffff8d539528 (rtnl_mutex){+.+.}-{3:3}, at: rtnetlink_rcv_msg+0x3be/0xb80 net/core/rtnetlink.c:5593
 #1: ffff88801e3755f0 (&hsr->list_lock){+...}-{2:2}, at: spin_lock_bh include/linux/spinlock.h:359 [inline]
 #1: ffff88801e3755f0 (&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-next-20220217-syzkaller #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:5596
 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:0x7faa13285e1c
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:00007fff8a2b5700 EFLAGS: 00000293 ORIG_RAX: 000000000000002c
RAX: ffffffffffffffda RBX: 00007faa1431e320 RCX: 00007faa13285e1c
RDX: 0000000000000048 RSI: 00007faa1431e370 RDI: 0000000000000003
RBP: 0000000000000000 R08: 00007fff8a2b5754 R09: 000000000000000c
R10: 0000000000000000 R11: 0000000000000293 R12: 0000000000000000
R13: 00007faa1431e370 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
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: 22568 bytes left

Crashes (35):
Time Kernel Commit Syzkaller Config Log Report Syz repro C repro VM info Assets (help?) Manager Title
2022/02/21 20:04 linux-next 3c30cf91b5ec 6e821dbf .config console log report ci-upstream-linux-next-kasan-gce-root linux-next test error: WARNING: suspicious RCU usage in hsr_node_get_first
2022/02/21 20:04 linux-next 3c30cf91b5ec 6e821dbf .config console log report ci-upstream-linux-next-kasan-gce-root linux-next test error: WARNING: suspicious RCU usage in hsr_node_get_first
2022/02/21 20:04 linux-next 3c30cf91b5ec 6e821dbf .config console log report ci-upstream-linux-next-kasan-gce-root linux-next test error: WARNING: suspicious RCU usage in hsr_node_get_first
2022/02/17 14:06 linux-next 3c30cf91b5ec 3cd800e4 .config console log report ci-upstream-linux-next-kasan-gce-root linux-next test error: WARNING: suspicious RCU usage in hsr_node_get_first
2022/02/17 14:06 linux-next 3c30cf91b5ec 3cd800e4 .config console log report ci-upstream-linux-next-kasan-gce-root linux-next test error: WARNING: suspicious RCU usage in hsr_node_get_first
2022/02/17 14:06 linux-next 3c30cf91b5ec 3cd800e4 .config console log report ci-upstream-linux-next-kasan-gce-root linux-next test error: WARNING: suspicious RCU usage in hsr_node_get_first
2022/02/17 10:04 linux-next 3c30cf91b5ec 2bea8a27 .config console log report ci-upstream-linux-next-kasan-gce-root linux-next test error: WARNING: suspicious RCU usage in hsr_node_get_first
2022/02/17 10:04 linux-next 3c30cf91b5ec 2bea8a27 .config console log report ci-upstream-linux-next-kasan-gce-root linux-next test error: WARNING: suspicious RCU usage in hsr_node_get_first
2022/02/17 10:04 linux-next 3c30cf91b5ec 2bea8a27 .config console log report ci-upstream-linux-next-kasan-gce-root linux-next test error: WARNING: suspicious RCU usage in hsr_node_get_first
2022/02/16 23:44 linux-next 763a906a02e9 2bea8a27 .config console log report ci-upstream-linux-next-kasan-gce-root linux-next test error: WARNING: suspicious RCU usage in hsr_node_get_first
2022/02/16 23:44 linux-next 763a906a02e9 2bea8a27 .config console log report ci-upstream-linux-next-kasan-gce-root linux-next test error: WARNING: suspicious RCU usage in hsr_node_get_first
2022/02/16 23:44 linux-next 763a906a02e9 2bea8a27 .config console log report ci-upstream-linux-next-kasan-gce-root linux-next test error: WARNING: suspicious RCU usage in hsr_node_get_first
2022/02/16 08:56 linux-next 763a906a02e9 8b9ca619 .config console log report ci-upstream-linux-next-kasan-gce-root linux-next test error: WARNING: suspicious RCU usage in hsr_node_get_first
2022/02/16 08:56 linux-next 763a906a02e9 8b9ca619 .config console log report ci-upstream-linux-next-kasan-gce-root linux-next test error: WARNING: suspicious RCU usage in hsr_node_get_first
2022/02/15 11:13 linux-next b593b8979eac 8b9ca619 .config console log report ci-upstream-linux-next-kasan-gce-root linux-next test error: WARNING: suspicious RCU usage in hsr_node_get_first
2022/02/15 11:13 linux-next b593b8979eac 8b9ca619 .config console log report ci-upstream-linux-next-kasan-gce-root linux-next test error: WARNING: suspicious RCU usage in hsr_node_get_first
2022/02/15 11:13 linux-next b593b8979eac 8b9ca619 .config console log report ci-upstream-linux-next-kasan-gce-root linux-next test error: WARNING: suspicious RCU usage in hsr_node_get_first
2022/02/14 07:16 linux-next 259cbfc98c55 8b9ca619 .config console log report ci-upstream-linux-next-kasan-gce-root linux-next test error: WARNING: suspicious RCU usage in hsr_node_get_first
2022/02/14 07:16 linux-next 259cbfc98c55 8b9ca619 .config console log report ci-upstream-linux-next-kasan-gce-root linux-next test error: WARNING: suspicious RCU usage in hsr_node_get_first
2022/02/14 07:16 linux-next 259cbfc98c55 8b9ca619 .config console log report ci-upstream-linux-next-kasan-gce-root linux-next test error: WARNING: suspicious RCU usage in hsr_node_get_first
2022/02/11 18:14 linux-next 6d9bd4ad4ca0 8b9ca619 .config console log report ci-upstream-linux-next-kasan-gce-root linux-next test error: WARNING: suspicious RCU usage in hsr_node_get_first
2022/02/11 18:14 linux-next 6d9bd4ad4ca0 8b9ca619 .config console log report ci-upstream-linux-next-kasan-gce-root linux-next test error: WARNING: suspicious RCU usage in hsr_node_get_first
2022/02/11 18:14 linux-next 6d9bd4ad4ca0 8b9ca619 .config console log report ci-upstream-linux-next-kasan-gce-root linux-next test error: WARNING: suspicious RCU usage in hsr_node_get_first
2022/02/11 09:22 linux-next 6d9bd4ad4ca0 0b33604d .config console log report ci-upstream-linux-next-kasan-gce-root linux-next test error: WARNING: suspicious RCU usage in hsr_node_get_first
2022/02/11 09:22 linux-next 6d9bd4ad4ca0 0b33604d .config console log report ci-upstream-linux-next-kasan-gce-root linux-next test error: WARNING: suspicious RCU usage in hsr_node_get_first
2022/02/11 09:22 linux-next 6d9bd4ad4ca0 0b33604d .config console log report ci-upstream-linux-next-kasan-gce-root linux-next test error: WARNING: suspicious RCU usage in hsr_node_get_first
2022/02/08 13:48 linux-next 554f92dbda16 0b33604d .config console log report ci-upstream-linux-next-kasan-gce-root linux-next test error: WARNING: suspicious RCU usage in hsr_node_get_first
2022/02/08 13:48 linux-next 554f92dbda16 0b33604d .config console log report ci-upstream-linux-next-kasan-gce-root linux-next test error: WARNING: suspicious RCU usage in hsr_node_get_first
2022/02/08 13:48 linux-next 554f92dbda16 0b33604d .config console log report ci-upstream-linux-next-kasan-gce-root linux-next test error: WARNING: suspicious RCU usage in hsr_node_get_first
2022/02/08 05:52 linux-next 554f92dbda16 a7dab638 .config console log report ci-upstream-linux-next-kasan-gce-root linux-next test error: WARNING: suspicious RCU usage in hsr_node_get_first
2022/02/08 05:52 linux-next 554f92dbda16 a7dab638 .config console log report ci-upstream-linux-next-kasan-gce-root linux-next test error: WARNING: suspicious RCU usage in hsr_node_get_first
2022/02/08 05:52 linux-next 554f92dbda16 a7dab638 .config console log report ci-upstream-linux-next-kasan-gce-root linux-next test error: WARNING: suspicious RCU usage in hsr_node_get_first
2022/02/07 04:52 linux-next b3c0a155ef77 a7dab638 .config console log report ci-upstream-linux-next-kasan-gce-root linux-next test error: WARNING: suspicious RCU usage in hsr_node_get_first
2022/02/07 04:52 linux-next b3c0a155ef77 a7dab638 .config console log report ci-upstream-linux-next-kasan-gce-root linux-next test error: WARNING: suspicious RCU usage in hsr_node_get_first
2022/02/07 04:52 linux-next b3c0a155ef77 a7dab638 .config console log report ci-upstream-linux-next-kasan-gce-root linux-next test error: WARNING: suspicious RCU usage in hsr_node_get_first
* Struck through repros no longer work on HEAD.