syzbot


WARNING: locking bug in ip6_datagram_connect

Status: auto-closed as invalid on 2021/09/13 10:50
Reported-by: syzbot+f013a1255140cd37acf7@syzkaller.appspotmail.com
First crash: 1297d, last: 1297d
Similar bugs (2)
Kernel Title Repro Cause bisect Fix bisect Count Last Reported Patched Status
upstream WARNING: locking bug in ip6_datagram_connect net syz inconclusive inconclusive 12 696d 1463d 0/28 auto-obsoleted due to no activity on 2023/05/08 01:15
linux-4.19 WARNING: locking bug in ip6_datagram_connect (2) 1 814d 814d 0/1 auto-obsoleted due to no activity on 2023/01/09 17:32

Sample crash report:
WARNING: CPU: 1 PID: 16376 at kernel/locking/lockdep.c:698 arch_local_save_flags arch/x86/include/asm/paravirt.h:784 [inline]
WARNING: CPU: 1 PID: 16376 at kernel/locking/lockdep.c:698 look_up_lock_class kernel/locking/lockdep.c:689 [inline]
WARNING: CPU: 1 PID: 16376 at kernel/locking/lockdep.c:698 register_lock_class+0x77b/0x11c0 kernel/locking/lockdep.c:749
Kernel panic - not syncing: panic_on_warn set ...

CPU: 1 PID: 16376 Comm: syz-executor.5 Not tainted 4.19.190-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+0x1fc/0x2ef lib/dump_stack.c:118
 panic+0x26a/0x50e kernel/panic.c:186
 __warn.cold+0x20/0x5a kernel/panic.c:541
 report_bug+0x262/0x2b0 lib/bug.c:186
 fixup_bug arch/x86/kernel/traps.c:178 [inline]
 fixup_bug arch/x86/kernel/traps.c:173 [inline]
 do_error_trap+0x1d7/0x310 arch/x86/kernel/traps.c:296
 invalid_op+0x14/0x20 arch/x86/entry/entry_64.S:1038
RIP: 0010:look_up_lock_class kernel/locking/lockdep.c:698 [inline]
RIP: 0010:register_lock_class+0x77b/0x11c0 kernel/locking/lockdep.c:749
Code: 8b 05 e9 63 ec 0b 85 c0 0f 85 17 ff ff ff 48 c7 c6 e0 1b 6a 88 48 c7 c7 40 19 6a 88 e8 2e fa a6 06 0f 0b e9 fd fe ff ff 0f 0b <0f> 0b e9 b3 fa ff ff 48 8d 70 01 48 69 c0 50 01 00 00 48 89 35 4c
RSP: 0018:ffff88803e30fa30 EFLAGS: 00010087
RAX: dffffc0000000000 RBX: ffff88809f26f7e0 RCX: 0000000000000000
RDX: 1ffff11013e4deff RSI: 0000000000000000 RDI: ffff88809f26f7f8
RBP: 0000000000000000 R08: 0000000000000000 R09: 1ffff11007c61f4e
R10: ffffffff8d241760 R11: 0000000000000000 R12: ffffffff8cdd1fe0
R13: ffffffff894be860 R14: 1ffff11007c61f4e R15: 0000000000000000
 __lock_acquire+0x17d/0x3ff0 kernel/locking/lockdep.c:3304
 lock_acquire+0x170/0x3c0 kernel/locking/lockdep.c:3908
 __raw_spin_lock_bh include/linux/spinlock_api_smp.h:135 [inline]
 _raw_spin_lock_bh+0x2f/0x40 kernel/locking/spinlock.c:168
 spin_lock_bh include/linux/spinlock.h:334 [inline]
 release_sock+0x1b/0x1b0 net/core/sock.c:2879
 ip6_datagram_connect+0x36/0x40 net/ipv6/datagram.c:276
 inet_dgram_connect+0x14a/0x2d0 net/ipv4/af_inet.c:571
 __sys_connect+0x265/0x2c0 net/socket.c:1663
 __do_sys_connect net/socket.c:1674 [inline]
 __se_sys_connect net/socket.c:1671 [inline]
 __x64_sys_connect+0x6f/0xb0 net/socket.c:1671
 do_syscall_64+0xf9/0x620 arch/x86/entry/common.c:293
 entry_SYSCALL_64_after_hwframe+0x49/0xbe
RIP: 0033:0x4665d9
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:00007f3e7f610188 EFLAGS: 00000246 ORIG_RAX: 000000000000002a
RAX: ffffffffffffffda RBX: 000000000056c008 RCX: 00000000004665d9
RDX: 000000000000001c RSI: 0000000020000080 RDI: 0000000000000005
RBP: 00000000004bfcb9 R08: 0000000000000000 R09: 0000000000000000
R10: 0000000000000000 R11: 0000000000000246 R12: 000000000056c008
R13: 00007ffff17ece8f R14: 00007f3e7f610300 R15: 0000000000022000
Kernel Offset: disabled
Rebooting in 86400 seconds..

Crashes (1):
Time Kernel Commit Syzkaller Config Log Report Syz repro C repro VM info Assets (help?) Manager Title
2021/05/16 10:49 linux-4.19.y 3c8c23092588 f54a5c09 .config console log report info ci2-linux-4-19 WARNING: locking bug in ip6_datagram_connect
* Struck through repros no longer work on HEAD.