syzbot


bpf-next test error: WARNING: suspicious RCU usage in hsr_node_get_first
Status: upstream: reported on 2022/02/14 15:01
Reported-by: syzbot+284f395a179db7a165b1@syzkaller.appspotmail.com
First crash: 106d, last: 83d

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-01382-g7df5072cc05f #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/3599:
 #0: ffffffff8d3309a8 (rtnl_mutex){+.+.}-{3:3}, at: rtnl_lock net/core/rtnetlink.c:72 [inline]
 #0: ffffffff8d3309a8 (rtnl_mutex){+.+.}-{3:3}, at: rtnetlink_rcv_msg+0x3be/0xb80 net/core/rtnetlink.c:5595
 #1: ffff888074f955f0 (&hsr->list_lock){+...}-{2:2}, at: spin_lock_bh include/linux/spinlock.h:354 [inline]
 #1: ffff888074f955f0 (&hsr->list_lock){+...}-{2:2}, at: hsr_create_self_node+0x225/0x650 net/hsr/hsr_framereg.c:108

stack backtrace:
CPU: 0 PID: 3599 Comm: syz-executor.0 Not tainted 5.17.0-rc4-syzkaller-01382-g7df5072cc05f #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:0x7f1760c69e0c
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:00007ffcd2547810 EFLAGS: 00000293 ORIG_RAX: 000000000000002c
RAX: ffffffffffffffda RBX: 00007f1761d02320 RCX: 00007f1760c69e0c
RDX: 0000000000000048 RSI: 00007f1761d02370 RDI: 0000000000000003
RBP: 0000000000000000 R08: 00007ffcd2547864 R09: 000000000000000c
R10: 0000000000000000 R11: 0000000000000293 R12: 0000000000000000
R13: 00007f1761d02370 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

Crashes (139):
Manager Time Kernel Commit Syzkaller Config Log Report Syz repro C repro VM info Title
ci-upstream-bpf-next-kasan-gce 2022/03/05 17:24 bpf-next 7df5072cc05f 7bdd8b2c .config log report bpf-next test error: WARNING: suspicious RCU usage in hsr_node_get_first
ci-upstream-bpf-next-kasan-gce 2022/03/03 15:39 bpf-next 41332d6e3a43 45a13a73 .config log report bpf-next test error: WARNING: suspicious RCU usage in hsr_node_get_first
ci-upstream-bpf-next-kasan-gce 2022/03/02 21:39 bpf-next 8bbe98bdccef 45a13a73 .config log report bpf-next test error: WARNING: suspicious RCU usage in hsr_node_get_first
ci-upstream-bpf-next-kasan-gce 2022/03/02 00:19 bpf-next 530e214c5b5a 45a13a73 .config log report bpf-next test error: WARNING: suspicious RCU usage in hsr_node_get_first
ci-upstream-bpf-next-kasan-gce 2022/03/01 12:59 bpf-next bd004cad78c0 45a13a73 .config log report bpf-next test error: WARNING: suspicious RCU usage in hsr_node_get_first
ci-upstream-bpf-next-kasan-gce 2022/02/28 23:39 bpf-next b664e255ba3c 45a13a73 .config log report bpf-next test error: WARNING: suspicious RCU usage in hsr_node_get_first
ci-upstream-bpf-next-kasan-gce 2022/02/28 23:39 bpf-next b664e255ba3c 45a13a73 .config log report bpf-next test error: WARNING: suspicious RCU usage in hsr_node_get_first
ci-upstream-bpf-next-kasan-gce 2022/02/28 16:59 bpf-next a4fbfdd7a160 45a13a73 .config log report bpf-next test error: WARNING: suspicious RCU usage in hsr_node_get_first
ci-upstream-bpf-next-kasan-gce 2022/02/28 15:19 bpf-next c62dd8a58d19 45a13a73 .config log report bpf-next test error: WARNING: suspicious RCU usage in hsr_node_get_first
ci-upstream-bpf-next-kasan-gce 2022/02/28 13:19 bpf-next dda7596c109f 45a13a73 .config log report bpf-next test error: WARNING: suspicious RCU usage in hsr_node_get_first
ci-upstream-bpf-next-kasan-gce 2022/02/25 21:32 bpf-next 80bebebdac93 45a13a73 .config log report bpf-next test error: WARNING: suspicious RCU usage in hsr_node_get_first
ci-upstream-bpf-next-kasan-gce 2022/02/25 18:19 bpf-next 08d4dba6ae77 45a13a73 .config log report bpf-next test error: WARNING: suspicious RCU usage in hsr_node_get_first
ci-upstream-bpf-next-kasan-gce 2022/02/25 01:39 bpf-next 08d4dba6ae77 7c337266 .config log report bpf-next test error: WARNING: suspicious RCU usage in hsr_node_get_first
ci-upstream-bpf-next-kasan-gce 2022/02/24 13:02 bpf-next 08d4dba6ae77 b28851a4 .config log report bpf-next test error: WARNING: suspicious RCU usage in hsr_node_get_first
ci-upstream-bpf-next-kasan-gce 2022/02/24 01:45 bpf-next 08d4dba6ae77 6e821dbf .config log report bpf-next test error: WARNING: suspicious RCU usage in hsr_node_get_first
ci-upstream-bpf-next-kasan-gce 2022/02/23 23:25 bpf-next 08894d9c647a 6e821dbf .config log report bpf-next test error: WARNING: suspicious RCU usage in hsr_node_get_first
ci-upstream-bpf-next-kasan-gce 2022/02/23 22:20 bpf-next a19df7139440 6e821dbf .config log report bpf-next test error: WARNING: suspicious RCU usage in hsr_node_get_first
ci-upstream-bpf-next-kasan-gce 2022/02/22 23:35 bpf-next b4f72786429c 6e821dbf .config log report bpf-next test error: WARNING: suspicious RCU usage in hsr_node_get_first
ci-upstream-bpf-next-kasan-gce 2022/02/22 22:55 bpf-next 6966d4c4425b 6e821dbf .config log report bpf-next test error: WARNING: suspicious RCU usage in hsr_node_get_first
ci-upstream-bpf-next-kasan-gce 2022/02/22 04:35 bpf-next 13c6a37d409d 6e821dbf .config log report bpf-next test error: WARNING: suspicious RCU usage in hsr_node_get_first
ci-upstream-bpf-next-kasan-gce 2022/02/21 19:55 bpf-next b03e19465b97 6e821dbf .config log report bpf-next test error: WARNING: suspicious RCU usage in hsr_node_get_first
ci-upstream-bpf-next-kasan-gce 2022/02/20 17:48 bpf-next b03e19465b97 3cd800e4 .config log report bpf-next test error: WARNING: suspicious RCU usage in hsr_node_get_first
ci-upstream-bpf-next-kasan-gce 2022/02/20 01:09 bpf-next a33c0c792d0a 3cd800e4 .config log report bpf-next test error: WARNING: suspicious RCU usage in hsr_node_get_first
ci-upstream-bpf-next-kasan-gce 2022/02/18 20:08 bpf-next 9087c6ff8dfe 3cd800e4 .config log report bpf-next test error: WARNING: suspicious RCU usage in hsr_node_get_first
ci-upstream-bpf-next-kasan-gce 2022/02/18 15:28 bpf-next 086d49058cd8 3cd800e4 .config log report bpf-next test error: WARNING: suspicious RCU usage in hsr_node_get_first
ci-upstream-bpf-next-kasan-gce 2022/02/17 21:54 bpf-next b75dacaac465 3cd800e4 .config log report bpf-next test error: WARNING: suspicious RCU usage in hsr_node_get_first
ci-upstream-bpf-next-kasan-gce 2022/02/17 15:38 bpf-next 9e98ace24e26 3cd800e4 .config log report bpf-next test error: WARNING: suspicious RCU usage in hsr_node_get_first
ci-upstream-bpf-next-kasan-gce 2022/02/17 13:57 bpf-next 9b6eb0478dfa 3cd800e4 .config log report bpf-next test error: WARNING: suspicious RCU usage in hsr_node_get_first
ci-upstream-bpf-next-kasan-gce 2022/02/17 13:57 bpf-next 9b6eb0478dfa 3cd800e4 .config log report bpf-next test error: WARNING: suspicious RCU usage in hsr_node_get_first
ci-upstream-bpf-next-kasan-gce 2022/02/17 01:24 bpf-next 9b6eb0478dfa 2bea8a27 .config log report bpf-next test error: WARNING: suspicious RCU usage in hsr_node_get_first
ci-upstream-bpf-next-kasan-gce 2022/02/17 01:24 bpf-next 9b6eb0478dfa 2bea8a27 .config log report bpf-next test error: WARNING: suspicious RCU usage in hsr_node_get_first
ci-upstream-bpf-next-kasan-gce 2022/02/17 01:24 bpf-next 9b6eb0478dfa 2bea8a27 .config log report bpf-next test error: WARNING: suspicious RCU usage in hsr_node_get_first
ci-upstream-bpf-next-kasan-gce 2022/02/17 00:01 bpf-next f76d8507d238 2bea8a27 .config log report bpf-next test error: WARNING: suspicious RCU usage in hsr_node_get_first
ci-upstream-bpf-next-kasan-gce 2022/02/17 00:01 bpf-next f76d8507d238 2bea8a27 .config log report bpf-next test error: WARNING: suspicious RCU usage in hsr_node_get_first
ci-upstream-bpf-next-kasan-gce 2022/02/17 00:01 bpf-next f76d8507d238 2bea8a27 .config log report bpf-next test error: WARNING: suspicious RCU usage in hsr_node_get_first
ci-upstream-bpf-next-kasan-gce 2022/02/16 22:33 bpf-next 477bb4c1baa7 8b9ca619 .config log report bpf-next test error: WARNING: suspicious RCU usage in hsr_node_get_first
ci-upstream-bpf-next-kasan-gce 2022/02/16 22:33 bpf-next 477bb4c1baa7 8b9ca619 .config log report bpf-next test error: WARNING: suspicious RCU usage in hsr_node_get_first
ci-upstream-bpf-next-kasan-gce 2022/02/16 22:33 bpf-next 477bb4c1baa7 8b9ca619 .config log report bpf-next test error: WARNING: suspicious RCU usage in hsr_node_get_first
ci-upstream-bpf-next-kasan-gce 2022/02/15 18:29 bpf-next 8cbf062a250e 8b9ca619 .config log report bpf-next test error: WARNING: suspicious RCU usage in hsr_node_get_first
ci-upstream-bpf-next-kasan-gce 2022/02/15 18:29 bpf-next 8cbf062a250e 8b9ca619 .config log report bpf-next test error: WARNING: suspicious RCU usage in hsr_node_get_first
ci-upstream-bpf-next-kasan-gce 2022/02/15 18:29 bpf-next 8cbf062a250e 8b9ca619 .config log report bpf-next test error: WARNING: suspicious RCU usage in hsr_node_get_first
ci-upstream-bpf-next-kasan-gce 2022/02/15 17:17 bpf-next edc21dc909c6 8b9ca619 .config log report bpf-next test error: WARNING: suspicious RCU usage in hsr_node_get_first
ci-upstream-bpf-next-kasan-gce 2022/02/15 17:17 bpf-next edc21dc909c6 8b9ca619 .config log report bpf-next test error: WARNING: suspicious RCU usage in hsr_node_get_first
ci-upstream-bpf-next-kasan-gce 2022/02/12 16:16 bpf-next 9c3de619e13e 8b9ca619 .config log report bpf-next test error: WARNING: suspicious RCU usage in hsr_node_get_first
ci-upstream-bpf-next-kasan-gce 2022/02/10 14:56 bpf-next 1127170d457e 0b33604d .config log report bpf-next test error: WARNING: suspicious RCU usage in hsr_node_get_first