syzbot


WARNING: suspicious RCU usage in bond_ipsec_add_sa

Status: fixed on 2020/09/16 22:51
Subsystems: net
[Documentation on labels]
Reported-by: syzbot+582c98032903dcc04816@syzkaller.appspotmail.com
Fix commit: f548a476268d bonding: don't need RTNL for ipsec helpers
First crash: 1419d, last: 1347d
Discussions (2)
Title Replies (including bot) Last reply
[PATCH net-next] bonding: don't need RTNL for ipsec helpers 2 (2) 2020/07/08 23:09
WARNING: suspicious RCU usage in bond_ipsec_add_sa 1 (2) 2020/07/08 17:46
Similar bugs (1)
Kernel Title Repro Cause bisect Fix bisect Count Last Reported Patched Status
upstream WARNING: suspicious RCU usage in bond_ipsec_add_sa (2) C done 540 1054d 1341d 20/26 fixed on 2021/11/10 00:50

Sample crash report:
WARNING: suspicious RCU usage
5.9.0-rc4-syzkaller #0 Not tainted
-----------------------------
drivers/net/bonding/bond_main.c:395 suspicious rcu_dereference_check() usage!

other info that might help us debug this:


rcu_scheduler_active = 2, debug_locks = 1
1 lock held by syz-executor.1/8599:
 #0: ffff888091abda68 (&net->xfrm.xfrm_cfg_mutex){+.+.}-{3:3}, at: xfrm_netlink_rcv+0x61/0x80 net/xfrm/xfrm_user.c:2691

stack backtrace:
CPU: 0 PID: 8599 Comm: syz-executor.1 Not tainted 5.9.0-rc4-syzkaller #0
Hardware name: Google Google Compute Engine/Google Compute Engine, BIOS Google 01/01/2011
Call Trace:
 __dump_stack lib/dump_stack.c:77 [inline]
 dump_stack+0x1d6/0x29e lib/dump_stack.c:118
 bond_ipsec_add_sa+0xf2/0x200 drivers/net/bonding/bond_main.c:395
 xfrm_dev_state_add+0x416/0x6c0 net/xfrm/xfrm_device.c:268
 xfrm_state_construct net/xfrm/xfrm_user.c:655 [inline]
 xfrm_add_sa+0x2aaf/0x3ae0 net/xfrm/xfrm_user.c:684
 xfrm_user_rcv_msg+0x3e6/0x650 net/xfrm/xfrm_user.c:2684
 netlink_rcv_skb+0x190/0x3a0 net/netlink/af_netlink.c:2470
 xfrm_netlink_rcv+0x70/0x80 net/xfrm/xfrm_user.c:2692
 netlink_unicast_kernel net/netlink/af_netlink.c:1304 [inline]
 netlink_unicast+0x786/0x940 net/netlink/af_netlink.c:1330
 netlink_sendmsg+0xa57/0xd70 net/netlink/af_netlink.c:1919
 sock_sendmsg_nosec net/socket.c:651 [inline]
 sock_sendmsg net/socket.c:671 [inline]
 ____sys_sendmsg+0x519/0x800 net/socket.c:2353
 ___sys_sendmsg net/socket.c:2407 [inline]
 __sys_sendmsg+0x2b1/0x360 net/socket.c:2440
 do_syscall_64+0x31/0x70 arch/x86/entry/common.c:46
 entry_SYSCALL_64_after_hwframe+0x44/0xa9
RIP: 0033:0x45d5b9
Code: 5d b4 fb ff c3 66 2e 0f 1f 84 00 00 00 00 00 66 90 48 89 f8 48 89 f7 48 89 d6 48 89 ca 4d 89 c2 4d 89 c8 4c 8b 4c 24 08 0f 05 <48> 3d 01 f0 ff ff 0f 83 2b b4 fb ff c3 66 2e 0f 1f 84 00 00 00 00
RSP: 002b:00007fe4d05c8c78 EFLAGS: 00000246 ORIG_RAX: 000000000000002e
RAX: ffffffffffffffda RBX: 000000000002cf00 RCX: 000000000045d5b9
RDX: 0000000000000000 RSI: 0000000020000180 RDI: 0000000000000004
RBP: 000000000118d020 R08: 0000000000000000 R09: 0000000000000000
R10: 0000000000000000 R11: 0000000000000246 R12: 000000000118cfec
R13: 00007ffcbe116a0f R14: 00007fe4d05c99c0 R15: 000000000118cfec
bond0: (slave bond_slave_0): Slave does not support ipsec offload

Crashes (214):
Time Kernel Commit Syzkaller Config Log Report Syz repro C repro VM info Assets (help?) Manager Title
2020/09/08 22:36 upstream 6f6a73c8b715 abf9ba4f .config console log report ci-upstream-kasan-gce-smack-root
2020/09/08 14:13 upstream f4d51dffc6c0 abf9ba4f .config console log report ci-upstream-kasan-gce-selinux-root
2020/09/08 08:20 upstream f4d51dffc6c0 abf9ba4f .config console log report ci-upstream-kasan-gce-selinux-root
2020/09/08 06:30 upstream f4d51dffc6c0 abf9ba4f .config console log report ci-upstream-kasan-gce
2020/09/07 18:48 upstream f4d51dffc6c0 abf9ba4f .config console log report ci-upstream-kasan-gce-selinux-root
2020/09/07 17:30 upstream a8205e310011 abf9ba4f .config console log report ci-upstream-kasan-gce
2020/09/07 15:35 upstream a8205e310011 abf9ba4f .config console log report ci-upstream-kasan-gce-smack-root
2020/09/03 14:32 upstream fc3abb53250a abf9ba4f .config console log report ci-upstream-kasan-gce
2020/09/15 10:57 net-old 8e1b3ac47866 6989d6f6 .config console log report info ci-upstream-net-this-kasan-gce
2020/09/12 17:24 net-old 5760d9acbe95 ce441f06 .config console log report ci-upstream-net-this-kasan-gce
2020/09/12 00:13 net-old ee460417d254 79fb24e2 .config console log report ci-upstream-net-this-kasan-gce
2020/09/10 08:28 net-old a19454b60963 409809d8 .config console log report ci-upstream-net-this-kasan-gce
2020/09/09 02:09 net-old 19162fd4063a abf9ba4f .config console log report ci-upstream-net-this-kasan-gce
2020/09/08 15:30 net-old 19162fd4063a abf9ba4f .config console log report ci-upstream-net-this-kasan-gce
2020/09/08 13:08 net-old 19162fd4063a abf9ba4f .config console log report ci-upstream-net-this-kasan-gce
2020/09/07 22:01 net-old 72bbee2aea29 abf9ba4f .config console log report ci-upstream-net-this-kasan-gce
2020/09/07 04:14 net-old 4ddcaf1ebb5e abf9ba4f .config console log report ci-upstream-net-this-kasan-gce
2020/09/07 01:47 net-old 4ddcaf1ebb5e abf9ba4f .config console log report ci-upstream-net-this-kasan-gce
2020/09/06 18:49 net-old 94cc242a067a abf9ba4f .config console log report ci-upstream-net-this-kasan-gce
2020/09/06 12:53 net-old 94cc242a067a abf9ba4f .config console log report ci-upstream-net-this-kasan-gce
2020/09/05 06:40 net-old c70672d8d316 abf9ba4f .config console log report ci-upstream-net-this-kasan-gce
2020/09/05 03:34 net-old b61ac5bb420a abf9ba4f .config console log report ci-upstream-net-this-kasan-gce
2020/09/04 21:42 net-old b61ac5bb420a abf9ba4f .config console log report ci-upstream-net-this-kasan-gce
2020/09/04 15:22 net-old b61ac5bb420a abf9ba4f .config console log report ci-upstream-net-this-kasan-gce
2020/09/10 22:46 net-next-old 4f6a5caf187f 409809d8 .config console log report ci-upstream-net-kasan-gce
2020/09/10 20:40 net-next-old 4f6a5caf187f 409809d8 .config console log report ci-upstream-net-kasan-gce
2020/09/10 05:13 net-next-old b599a5b9e166 409809d8 .config console log report ci-upstream-net-kasan-gce
2020/09/09 19:12 net-next-old f5499c67477e 0ea7a887 .config console log report ci-upstream-net-kasan-gce
2020/09/09 12:26 net-next-old f5499c67477e 0ea7a887 .config console log report ci-upstream-net-kasan-gce
2020/09/09 05:42 net-next-old c1f1f16c4de4 abf9ba4f .config console log report ci-upstream-net-kasan-gce
2020/09/08 19:45 net-next-old 4349abdb409b abf9ba4f .config console log report ci-upstream-net-kasan-gce
2020/09/08 16:31 net-next-old 4349abdb409b abf9ba4f .config console log report ci-upstream-net-kasan-gce
2020/09/08 02:06 net-next-old bb1416adb8a0 abf9ba4f .config console log report ci-upstream-net-kasan-gce
2020/09/07 13:15 net-next-old 02a20d4fef3d abf9ba4f .config console log report ci-upstream-net-kasan-gce
2020/09/07 10:48 net-next-old 02a20d4fef3d abf9ba4f .config console log report ci-upstream-net-kasan-gce
2020/09/07 04:16 net-next-old 02a20d4fef3d abf9ba4f .config console log report ci-upstream-net-kasan-gce
2020/09/07 00:44 net-next-old be239c4d5e3e abf9ba4f .config console log report ci-upstream-net-kasan-gce
2020/09/05 20:21 net-next-old 44a8c4f33c00 abf9ba4f .config console log report ci-upstream-net-kasan-gce
2020/09/05 11:03 net-next-old 44a8c4f33c00 abf9ba4f .config console log report ci-upstream-net-kasan-gce
2020/09/05 05:50 net-next-old 3ab1270bfa1e abf9ba4f .config console log report ci-upstream-net-kasan-gce
2020/09/04 03:39 net-next-old 22b330b622e3 abf9ba4f .config console log report ci-upstream-net-kasan-gce
2020/09/03 22:02 net-next-old 22b330b622e3 abf9ba4f .config console log report ci-upstream-net-kasan-gce
2020/09/03 19:00 net-next-old 22b330b622e3 abf9ba4f .config console log report ci-upstream-net-kasan-gce
2020/09/03 12:53 net-next-old d3dfc362e073 abf9ba4f .config console log report ci-upstream-net-kasan-gce
2020/09/02 14:46 net-next-old dc1a9bf2c816 abf9ba4f .config console log report ci-upstream-net-kasan-gce
2020/09/02 10:41 net-next-old dc1a9bf2c816 abf9ba4f .config console log report ci-upstream-net-kasan-gce
2020/09/02 10:33 net-next-old dc1a9bf2c816 abf9ba4f .config console log report ci-upstream-net-kasan-gce
2020/09/02 09:12 net-next-old dc1a9bf2c816 abf9ba4f .config console log report ci-upstream-net-kasan-gce
2020/07/05 23:54 net-next-old e44f65fd666c 51095195 .config console log report ci-upstream-net-kasan-gce
2020/09/15 08:53 linux-next f965d3ec86fa 6989d6f6 .config console log report info ci-upstream-linux-next-kasan-gce-root
2020/09/08 11:40 linux-next 7a6956579ce6 abf9ba4f .config console log report ci-upstream-linux-next-kasan-gce-root
2020/09/08 10:13 linux-next 7a6956579ce6 abf9ba4f .config console log report ci-upstream-linux-next-kasan-gce-root
2020/09/08 00:12 linux-next 7a6956579ce6 abf9ba4f .config console log report ci-upstream-linux-next-kasan-gce-root
* Struck through repros no longer work on HEAD.