------------[ cut here ]------------ WARNING: CPU: 2 PID: 12474 at drivers/net/bonding/bond_main.c:4310 bond_update_slave_arr+0xcaf/0x10c0 drivers/net/bonding/bond_main.c:4310 Modules linked in: CPU: 2 PID: 12474 Comm: syz-executor.2 Not tainted 5.10.0-rc3-syzkaller #0 Hardware name: QEMU Standard PC (Q35 + ICH9, 2009), BIOS rel-1.12.0-59-gc9ba5276e321-prebuilt.qemu.org 04/01/2014 RIP: 0010:bond_update_slave_arr+0xcaf/0x10c0 drivers/net/bonding/bond_main.c:4310 Code: c7 ff ff ff ff e8 a1 c1 fe ff be c0 0d 00 00 48 c7 c7 ff ff ff ff 89 c2 e8 7e 92 05 fd 48 89 c5 e9 22 f5 ff ff e8 61 d7 d7 fc <0f> 0b e9 e8 f3 ff ff e8 55 d7 d7 fc 48 85 ed 41 bc f4 ff ff ff 0f RSP: 0018:ffffc90029e8ee38 EFLAGS: 00010246 RAX: 0000000000040000 RBX: ffff8880709acc00 RCX: ffffc90020403000 RDX: 0000000000040000 RSI: ffffffff8498460f RDI: 0000000000000005 RBP: 0000000000000001 R08: 0000000000000000 R09: 0000000000000000 R10: 0000000000000000 R11: 0000000000000001 R12: 0000000000000006 R13: ffff8880709ac040 R14: 0000000000000000 R15: ffff8880709acc00 FS: 0000000000000000(0000) GS:ffff88802ce00000(0063) knlGS:00000000f559eb40 CS: 0010 DS: 002b ES: 002b CR0: 0000000080050033 CR2: 0000000008188000 CR3: 000000006f06e000 CR4: 0000000000350ee0 DR0: 0000000000000000 DR1: 0000000000000000 DR2: 0000000000000000 DR3: 0000000000000000 DR6: 00000000fffe0ff0 DR7: 0000000000000400 Call Trace: bond_open+0x448/0xc00 drivers/net/bonding/bond_main.c:3625 __dev_open+0x2bc/0x4d0 net/core/dev.c:1523 __dev_change_flags+0x563/0x730 net/core/dev.c:8423 rtnl_configure_link+0xee/0x230 net/core/rtnetlink.c:3123 __rtnl_newlink+0x10b6/0x1740 net/core/rtnetlink.c:3460 rtnl_newlink+0x64/0xa0 net/core/rtnetlink.c:3500 rtnetlink_rcv_msg+0x44e/0xad0 net/core/rtnetlink.c:5562 netlink_rcv_skb+0x153/0x420 net/netlink/af_netlink.c:2494 netlink_unicast_kernel net/netlink/af_netlink.c:1304 [inline] netlink_unicast+0x533/0x7d0 net/netlink/af_netlink.c:1330 netlink_sendmsg+0x856/0xd90 net/netlink/af_netlink.c:1919 sock_sendmsg_nosec net/socket.c:651 [inline] sock_sendmsg+0xcf/0x120 net/socket.c:671 ____sys_sendmsg+0x6e8/0x810 net/socket.c:2353 ___sys_sendmsg+0xf3/0x170 net/socket.c:2407 __sys_sendmsg+0xe5/0x1b0 net/socket.c:2440 do_syscall_32_irqs_on arch/x86/entry/common.c:78 [inline] __do_fast_syscall_32+0x56/0x80 arch/x86/entry/common.c:137 do_fast_syscall_32+0x2f/0x70 arch/x86/entry/common.c:160 entry_SYSENTER_compat_after_hwframe+0x4d/0x5c RIP: 0023:0xf7fa4549 Code: 03 74 c0 01 10 05 03 74 b8 01 10 06 03 74 b4 01 10 07 03 74 b0 01 10 08 03 74 d8 01 00 00 00 00 00 51 52 55 89 e5 0f 34 cd 80 <5d> 5a 59 c3 90 90 90 90 eb 0d 90 90 90 90 90 90 90 90 90 90 90 90 RSP: 002b:00000000f559e0bc EFLAGS: 00000296 ORIG_RAX: 0000000000000172 RAX: ffffffffffffffda RBX: 0000000000000004 RCX: 0000000020000040 RDX: 0000000000000000 RSI: 0000000000000000 RDI: 0000000000000000 RBP: 0000000000000000 R08: 0000000000000000 R09: 0000000000000000 R10: 0000000000000000 R11: 0000000000000000 R12: 0000000000000000 R13: 0000000000000000 R14: 0000000000000000 R15: 0000000000000000