bisecting fixing commit since 6efb943b8616ec53a5e444193dccf1af9ad627b5 building syzkaller on bc5434be1a615eca6d901c20b026712bd9697fd4 testing commit 6efb943b8616ec53a5e444193dccf1af9ad627b5 with gcc (GCC) 10.2.1 20210217 kernel signature: abcbba7a4931af53c3df26194b3a50a825aa026c6e280f031cc3f017bf98115e run #0: crashed: WARNING: locking bug in inet_autobind run #1: crashed: WARNING: locking bug in inet_autobind run #2: crashed: WARNING: locking bug in inet_autobind run #3: crashed: WARNING: locking bug in ip6_datagram_connect run #4: crashed: WARNING: locking bug in inet_autobind run #5: crashed: WARNING: locking bug in ip6_datagram_connect run #6: crashed: WARNING: locking bug in inet_autobind run #7: crashed: WARNING: locking bug in ip6_datagram_connect run #8: crashed: WARNING: locking bug in ip6_datagram_connect run #9: crashed: WARNING: locking bug in ip6_datagram_connect run #10: crashed: WARNING: locking bug in ip6_datagram_connect run #11: crashed: WARNING: locking bug in inet_autobind run #12: crashed: WARNING: locking bug in ip6_datagram_connect run #13: crashed: WARNING: locking bug in inet_autobind run #14: crashed: WARNING: locking bug in ip6_datagram_connect run #15: crashed: WARNING: locking bug in ip6_datagram_connect run #16: crashed: WARNING: locking bug in inet_autobind run #17: crashed: WARNING: locking bug in inet_autobind run #18: crashed: WARNING: locking bug in ip6_datagram_connect run #19: OK testing current HEAD 368094df48e680fa51cedb68537408cfa64b788e testing commit 368094df48e680fa51cedb68537408cfa64b788e with gcc (GCC) 10.2.1 20210217 kernel signature: 5d6d01238627360a27de9281942f79ce2ba7e2d3f9dfc7acf2c4ce96afede64c run #0: crashed: BUG: sleeping function called from invalid context in lock_sock_nested run #1: crashed: WARNING: locking bug in ip6_datagram_connect run #2: crashed: WARNING: locking bug in inet_autobind run #3: crashed: WARNING: locking bug in inet_autobind run #4: crashed: WARNING: locking bug in inet_autobind run #5: crashed: WARNING: locking bug in inet_autobind run #6: crashed: WARNING: locking bug in ip6_datagram_connect run #7: crashed: WARNING: locking bug in inet_autobind run #8: crashed: WARNING: locking bug in inet_autobind run #9: crashed: WARNING: locking bug in ip6_datagram_connect revisions tested: 2, total time: 31m17.836652896s (build: 15m36.470538869s, test: 15m10.630303739s) the crash still happens on HEAD commit msg: Merge tag 'for-linus-5.13b-rc6-tag' of git://git.kernel.org/pub/scm/linux/kernel/git/xen/tip crash: WARNING: locking bug in ip6_datagram_connect ------------[ cut here ]------------ WARNING: CPU: 1 PID: 21367 at kernel/locking/lockdep.c:895 look_up_lock_class kernel/locking/lockdep.c:895 [inline] WARNING: CPU: 1 PID: 21367 at kernel/locking/lockdep.c:895 register_lock_class+0x1fb/0x1180 kernel/locking/lockdep.c:1244 Modules linked in: CPU: 1 PID: 21367 Comm: syz-executor.5 Not tainted 5.13.0-rc5-syzkaller #0 Hardware name: Google Google Compute Engine/Google Compute Engine, BIOS Google 01/01/2011 RIP: 0010:look_up_lock_class kernel/locking/lockdep.c:895 [inline] RIP: 0010:register_lock_class+0x1fb/0x1180 kernel/locking/lockdep.c:1244 Code: 48 b8 00 00 00 00 00 fc ff df 48 89 fa 48 c1 ea 03 80 3c 02 00 0f 85 98 0c 00 00 4d 3b 67 18 74 0b 49 81 3f c0 c3 d2 8d 74 02 <0f> 0b 85 ed 0f 84 20 01 00 00 f6 44 24 04 01 0f 85 15 01 00 00 83 RSP: 0018:ffffc90003effab0 EFLAGS: 00010002 RAX: dffffc0000000000 RBX: 1ffff920007dff5d RCX: ffffffff8f076720 RDX: 1ffff11002ad3017 RSI: 0000000000000000 RDI: ffff8880156980b8 RBP: 0000000000000000 R08: 0000000000000000 R09: 0000000000000000 R10: 0000000000000000 R11: ffff888043ab0498 R12: ffffffff899acac0 R13: ffffffff8f3eba00 R14: ffffffff8eb72100 R15: ffff8880156980a0 FS: 00007f68e2668700(0000) GS:ffff8880b9f00000(0000) knlGS:0000000000000000 CS: 0010 DS: 0000 ES: 0000 CR0: 0000000080050033 CR2: 0000000000568000 CR3: 0000000041761000 CR4: 0000000000350ee0 Call Trace: __lock_acquire+0x106/0x5560 kernel/locking/lockdep.c:4781 lock_acquire kernel/locking/lockdep.c:5512 [inline] lock_acquire+0x1ab/0x740 kernel/locking/lockdep.c:5477 __raw_spin_lock_bh include/linux/spinlock_api_smp.h:135 [inline] _raw_spin_lock_bh+0x2f/0x40 kernel/locking/spinlock.c:175 spin_lock_bh include/linux/spinlock.h:359 [inline] release_sock+0x16/0x170 net/core/sock.c:3080 ip6_datagram_connect+0x2e/0x40 net/ipv6/datagram.c:273 __sys_connect+0xf5/0x120 net/socket.c:1854 __do_sys_connect net/socket.c:1864 [inline] __se_sys_connect net/socket.c:1861 [inline] __x64_sys_connect+0x6a/0xb0 net/socket.c:1861 do_syscall_64+0x3a/0xb0 arch/x86/entry/common.c:47 entry_SYSCALL_64_after_hwframe+0x44/0xae RIP: 0033:0x4665f9 Code: ff ff c3 66 2e 0f 1f 84 00 00 00 00 00 0f 1f 40 00 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 73 01 c3 48 c7 c1 bc ff ff ff f7 d8 64 89 01 48 RSP: 002b:00007f68e2668188 EFLAGS: 00000246 ORIG_RAX: 000000000000002a RAX: ffffffffffffffda RBX: 000000000056c008 RCX: 00000000004665f9 RDX: 000000000000001c RSI: 0000000020000080 RDI: 0000000000000005 RBP: 00000000004bfce1 R08: 0000000000000000 R09: 0000000000000000 R10: 0000000000000000 R11: 0000000000000246 R12: 000000000056c008 R13: 00007ffe29d43caf R14: 00007f68e2668300 R15: 0000000000022000