syzbot


BUG: spinlock bad magic in __queue_work

Status: auto-closed as invalid on 2019/09/22 23:08
Reported-by: syzbot+636bcaf4b481f6b7343c@syzkaller.appspotmail.com
First crash: 1468d, last: 1415d

Sample crash report:
team0 (unregistering): Port device team_slave_1 removed
team0 (unregistering): Port device team_slave_0 removed
bond0 (unregistering): Releasing backup interface bond_slave_1
bond0 (unregistering): Releasing backup interface bond_slave_0
bond0 (unregistering): Released all slaves
BUG: spinlock bad magic on CPU#1, syz-executor.1/29450
 lock: 0xffff8880ae92c9ad, .magic: 00000000, .owner: <none>/-1, .owner_cpu: 0
CPU: 1 PID: 29450 Comm: syz-executor.1 Not tainted 5.0.0-rc8+ #89
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+0x172/0x1f0 lib/dump_stack.c:113
 spin_dump.cold+0x81/0xe6 kernel/locking/spinlock_debug.c:67
 spin_bug kernel/locking/spinlock_debug.c:75 [inline]
 debug_spin_lock_before kernel/locking/spinlock_debug.c:83 [inline]
 do_raw_spin_lock+0x231/0x2e0 kernel/locking/spinlock_debug.c:112
 __raw_spin_lock include/linux/spinlock_api_smp.h:143 [inline]
 _raw_spin_lock+0x37/0x40 kernel/locking/spinlock.c:144
 spin_lock include/linux/spinlock.h:329 [inline]
 __queue_work+0x23d/0x1180 kernel/workqueue.c:1437
 __queue_delayed_work+0x1d6/0x270 kernel/workqueue.c:1542
 mod_delayed_work_on+0xd8/0x200 kernel/workqueue.c:1616
 mod_delayed_work include/linux/workqueue.h:542 [inline]
 addrconf_mod_dad_work+0x3f/0xa0 net/ipv6/addrconf.c:328
 addrconf_dad_start+0x76/0xb0 net/ipv6/addrconf.c:3977
 inet6_addr_add+0x4e4/0x970 net/ipv6/addrconf.c:2931
 inet6_rtm_newaddr+0xb9f/0x14c0 net/ipv6/addrconf.c:4758
 rtnetlink_rcv_msg+0x465/0xb00 net/core/rtnetlink.c:5130
 netlink_rcv_skb+0x17a/0x460 net/netlink/af_netlink.c:2477
 rtnetlink_rcv+0x1d/0x30 net/core/rtnetlink.c:5148
 netlink_unicast_kernel net/netlink/af_netlink.c:1310 [inline]
 netlink_unicast+0x536/0x720 net/netlink/af_netlink.c:1336
 netlink_sendmsg+0x8ae/0xd70 net/netlink/af_netlink.c:1917
 sock_sendmsg_nosec net/socket.c:621 [inline]
 sock_sendmsg+0xdd/0x130 net/socket.c:631
 __sys_sendto+0x262/0x380 net/socket.c:1786
 __do_compat_sys_socketcall net/compat.c:890 [inline]
 __se_compat_sys_socketcall net/compat.c:838 [inline]
 __ia32_compat_sys_socketcall+0x536/0x720 net/compat.c:838
 do_syscall_32_irqs_on arch/x86/entry/common.c:326 [inline]
 do_fast_syscall_32+0x281/0xc98 arch/x86/entry/common.c:397
 entry_SYSENTER_compat+0x70/0x7f arch/x86/entry/entry_64_compat.S:139
RIP: 0023:0xf7f78869
Code: 85 d2 74 02 89 0a 5b 5d c3 8b 04 24 c3 8b 14 24 c3 8b 3c 24 c3 90 90 90 90 90 90 90 90 90 90 90 90 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:000000000845fde0 EFLAGS: 00000206 ORIG_RAX: 0000000000000066
RAX: ffffffffffffffda RBX: 000000000000000b RCX: 000000000845fdf8
RDX: 0000000000000000 RSI: 000000000845fe9c RDI: 0000000000000003
RBP: 0000000000000003 R08: 0000000000000000 R09: 0000000000000000
R10: 0000000000000000 R11: 0000000000000000 R12: 0000000000000000
R13: 0000000000000000 R14: 0000000000000000 R15: 0000000000000000
kasan: CONFIG_KASAN_INLINE enabled
kasan: GPF could be caused by NULL-ptr deref or user memory access
general protection fault: 0000 [#1] PREEMPT SMP KASAN
CPU: 1 PID: 29450 Comm: syz-executor.1 Not tainted 5.0.0-rc8+ #89
Hardware name: Google Google Compute Engine/Google Compute Engine, BIOS Google 01/01/2011
RIP: 0010:__list_add_valid+0x4c/0xa0 lib/list_debug.c:26
Code: 08 48 c1 ea 03 80 3c 02 00 75 52 49 8b 54 24 08 48 39 f2 0f 85 5a 01 00 00 48 b8 00 00 00 00 00 fc ff df 48 89 f2 48 c1 ea 03 <80> 3c 02 00 75 3c 48 8b 16 4c 39 e2 0f 85 5f 01 00 00 49 39 f5 0f
RSP: 0018:ffff888086e6f338 EFLAGS: 00010046
RAX: dffffc0000000000 RBX: ffff8880931fc388 RCX: ffffffff814a2c5c
RDX: 0000000000000000 RSI: 0000000000000000 RDI: ffff8880ae92ca05
RBP: ffff888086e6f350 R08: ffff8880931fc390 R09: ffffed101263f872
R10: ffffed101263f871 R11: ffff8880931fc38f R12: ffff8880ae92c9fd
R13: ffff8880931fc390 R14: ffff8880ae92c9fd R15: ffff8880ae92c9ad
FS:  0000000000000000(0000) GS:ffff8880ae900000(0063) knlGS:0000000008d53900
CS:  0010 DS: 002b ES: 002b CR0: 0000000080050033
CR2: ffffffffff600400 CR3: 0000000095a8e000 CR4: 00000000001406e0
DR0: 0000000000000000 DR1: 0000000000000000 DR2: 0000000000000000
DR3: 0000000000000000 DR6: 00000000fffe0ff0 DR7: 0000000000000400
Call Trace:
 __list_add include/linux/list.h:60 [inline]
 list_add_tail include/linux/list.h:93 [inline]
 insert_work+0x117/0x3a0 kernel/workqueue.c:1320
 __queue_work+0x4f5/0x1180 kernel/workqueue.c:1481
 __queue_delayed_work+0x1d6/0x270 kernel/workqueue.c:1542
 mod_delayed_work_on+0xd8/0x200 kernel/workqueue.c:1616
 mod_delayed_work include/linux/workqueue.h:542 [inline]
 addrconf_mod_dad_work+0x3f/0xa0 net/ipv6/addrconf.c:328
 addrconf_dad_start+0x76/0xb0 net/ipv6/addrconf.c:3977
 inet6_addr_add+0x4e4/0x970 net/ipv6/addrconf.c:2931
 inet6_rtm_newaddr+0xb9f/0x14c0 net/ipv6/addrconf.c:4758
 rtnetlink_rcv_msg+0x465/0xb00 net/core/rtnetlink.c:5130
 netlink_rcv_skb+0x17a/0x460 net/netlink/af_netlink.c:2477
 rtnetlink_rcv+0x1d/0x30 net/core/rtnetlink.c:5148
 netlink_unicast_kernel net/netlink/af_netlink.c:1310 [inline]
 netlink_unicast+0x536/0x720 net/netlink/af_netlink.c:1336
 netlink_sendmsg+0x8ae/0xd70 net/netlink/af_netlink.c:1917
 sock_sendmsg_nosec net/socket.c:621 [inline]
 sock_sendmsg+0xdd/0x130 net/socket.c:631
 __sys_sendto+0x262/0x380 net/socket.c:1786
 __do_compat_sys_socketcall net/compat.c:890 [inline]
 __se_compat_sys_socketcall net/compat.c:838 [inline]
 __ia32_compat_sys_socketcall+0x536/0x720 net/compat.c:838
 do_syscall_32_irqs_on arch/x86/entry/common.c:326 [inline]
 do_fast_syscall_32+0x281/0xc98 arch/x86/entry/common.c:397
 entry_SYSENTER_compat+0x70/0x7f arch/x86/entry/entry_64_compat.S:139
RIP: 0023:0xf7f78869
Code: 85 d2 74 02 89 0a 5b 5d c3 8b 04 24 c3 8b 14 24 c3 8b 3c 24 c3 90 90 90 90 90 90 90 90 90 90 90 90 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:000000000845fde0 EFLAGS: 00000206 ORIG_RAX: 0000000000000066
RAX: ffffffffffffffda RBX: 000000000000000b RCX: 000000000845fdf8
RDX: 0000000000000000 RSI: 000000000845fe9c RDI: 0000000000000003
RBP: 0000000000000003 R08: 0000000000000000 R09: 0000000000000000
R10: 0000000000000000 R11: 0000000000000000 R12: 0000000000000000
R13: 0000000000000000 R14: 0000000000000000 R15: 0000000000000000
Modules linked in:
---[ end trace b8e586b0d33ef193 ]---
RIP: 0010:__list_add_valid+0x4c/0xa0 lib/list_debug.c:26
Code: 08 48 c1 ea 03 80 3c 02 00 75 52 49 8b 54 24 08 48 39 f2 0f 85 5a 01 00 00 48 b8 00 00 00 00 00 fc ff df 48 89 f2 48 c1 ea 03 <80> 3c 02 00 75 3c 48 8b 16 4c 39 e2 0f 85 5f 01 00 00 49 39 f5 0f
RSP: 0018:ffff888086e6f338 EFLAGS: 00010046
RAX: dffffc0000000000 RBX: ffff8880931fc388 RCX: ffffffff814a2c5c
RDX: 0000000000000000 RSI: 0000000000000000 RDI: ffff8880ae92ca05
RBP: ffff888086e6f350 R08: ffff8880931fc390 R09: ffffed101263f872
R10: ffffed101263f871 R11: ffff8880931fc38f R12: ffff8880ae92c9fd
R13: ffff8880931fc390 R14: ffff8880ae92c9fd R15: ffff8880ae92c9ad
FS:  0000000000000000(0000) GS:ffff8880ae900000(0063) knlGS:0000000008d53900
CS:  0010 DS: 002b ES: 002b CR0: 0000000080050033
CR2: ffffffffff600400 CR3: 0000000095a8e000 CR4: 00000000001406e0
DR0: 0000000000000000 DR1: 0000000000000000 DR2: 0000000000000000
DR3: 0000000000000000 DR6: 00000000fffe0ff0 DR7: 0000000000000400

Crashes (5):
Manager Time Kernel Commit Syzkaller Config Log Report Syz repro C repro VM info Assets Title
ci-upstream-kasan-gce-386 2019/02/28 21:47 upstream 7d762d69145a 09aeeba4 .config console log report
ci-upstream-net-this-kasan-gce 2019/03/23 01:29 net 5f543a54eec0 3361bde5 .config console log report
ci-upstream-net-kasan-gce 2019/03/26 23:07 net-next be67101fbf27 55684ce1 .config console log report
ci-upstream-net-kasan-gce 2019/03/25 15:46 net-next 68cc2999f692 2c86e0a5 .config console log report
ci-upstream-net-kasan-gce 2019/02/02 07:21 net-next 962c382d482a 564f9a4f .config console log report
* Struck through repros no longer work on HEAD.