syzbot


WARNING: locking bug in inet_autobind

Status: upstream: reported C repro on 2020/11/12 14:20
Reported-by: syzbot+4413708f5b8a57685f7f@syzkaller.appspotmail.com
First crash: 812d, last: 8d00h

Fix bisection: failed (bisect log)
similar bugs (3):
Kernel Title Repro Cause bisect Fix bisect Count Last Reported Patched Status
linux-4.14 WARNING: locking bug in inet_autobind (2) 1 1021d 1021d 0/1 auto-closed as invalid on 2020/08/15 18:15
upstream WARNING: locking bug in inet_autobind C done error 103 35d 1358d 23/24 upstream: reported C repro on 2019/05/16 05:46
linux-4.14 WARNING: locking bug in inet_autobind 1 1309d 1309d 0/1 auto-closed as invalid on 2019/11/01 17:53

Sample crash report:
WARNING: CPU: 1 PID: 15963 at kernel/locking/lockdep.c:698 arch_local_save_flags arch/x86/include/asm/paravirt.h:784 [inline]
WARNING: CPU: 1 PID: 15963 at kernel/locking/lockdep.c:698 look_up_lock_class kernel/locking/lockdep.c:689 [inline]
WARNING: CPU: 1 PID: 15963 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: 15963 Comm: syz-executor236 Not tainted 4.19.211-syzkaller #0
Hardware name: Google Google Compute Engine/Google Compute Engine, BIOS Google 10/26/2022
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:183
 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 c9 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 c3 29 a8 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 ac
RSP: 0018:ffff88809ec0f928 EFLAGS: 00010087
RAX: dffffc0000000000 RBX: ffff8880b43e38e0 RCX: 0000000000000000
RDX: 1ffff1101687c71f RSI: 0000000000000000 RDI: ffff8880b43e38f8
RBP: 0000000000000000 R08: 0000000000000000 R09: 1ffff11013d81f2d
R10: ffffffff8d243760 R11: 0000000000000000 R12: ffffffff8cdd4130
R13: ffffffff894c35a0 R14: 1ffff11013d81f2d 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]
 lock_sock_nested+0x3b/0x110 net/core/sock.c:2884
 lock_sock include/net/sock.h:1512 [inline]
 inet_autobind+0x1a/0x190 net/ipv4/af_inet.c:179
 inet_sendmsg+0x3eb/0x5a0 net/ipv4/af_inet.c:795
 sock_sendmsg_nosec net/socket.c:651 [inline]
 sock_sendmsg+0xc3/0x120 net/socket.c:661
 __sys_sendto+0x21a/0x320 net/socket.c:1899
 __do_sys_sendto net/socket.c:1911 [inline]
 __se_sys_sendto net/socket.c:1907 [inline]
 __x64_sys_sendto+0xdd/0x1b0 net/socket.c:1907
 do_syscall_64+0xf9/0x620 arch/x86/entry/common.c:293
 entry_SYSCALL_64_after_hwframe+0x49/0xbe
RIP: 0033:0x7f25723b51e9
Code: 28 00 00 00 75 05 48 83 c4 28 c3 e8 41 15 00 00 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 73 01 c3 48 c7 c1 b8 ff ff ff f7 d8 64 89 01 48
RSP: 002b:00007f25723452f8 EFLAGS: 00000246 ORIG_RAX: 000000000000002c
RAX: ffffffffffffffda RBX: 00007f257243e418 RCX: 00007f25723b51e9
RDX: 0000000000000051 RSI: 0000000020000080 RDI: 0000000000000025
RBP: 0000000000000000 R08: 0000000020000100 R09: 000000000000001c
R10: 0000000004008000 R11: 0000000000000246 R12: 00007f257243e410
R13: 00007f257240b07c R14: 0000000000000004 R15: 0000000000022000
Kernel Offset: disabled
Rebooting in 86400 seconds..

Crashes (45):
Manager Time Kernel Commit Syzkaller Config Log Report Syz repro C repro VM info Assets Title
ci2-linux-4-19 2022/12/28 21:02 linux-4.19.y 3f8a27f9e27b 44712fbc .config console log report syz C [disk image] [vmlinux] WARNING: locking bug in inet_autobind
ci2-linux-4-19 2022/06/15 02:31 linux-4.19.y 3f8a27f9e27b 127d1faf .config console log report syz C WARNING: locking bug in inet_autobind
ci2-linux-4-19 2023/01/10 19:00 linux-4.19.y 3f8a27f9e27b 48bc529a .config console log report syz [disk image] [vmlinux] WARNING: locking bug in inet_autobind
ci2-linux-4-19 2022/09/11 18:40 linux-4.19.y 3f8a27f9e27b 356d8217 .config console log report syz WARNING: locking bug in inet_autobind
ci2-linux-4-19 2021/10/22 21:04 linux-4.19.y 3f8a27f9e27b 282f03fb .config console log report syz WARNING: locking bug in inet_autobind
ci2-linux-4-19 2021/05/16 13:03 linux-4.19.y 3c8c23092588 f54a5c09 .config console log report syz WARNING: locking bug in inet_autobind
ci2-linux-4-19 2021/04/15 06:47 linux-4.19.y 0f1b4cb77d7f fcdb12ba .config console log report syz WARNING: locking bug in inet_autobind
ci2-linux-4-19 2021/03/29 00:27 linux-4.19.y 78fec1611cbf a8529b82 .config console log report syz WARNING: locking bug in inet_autobind
ci2-linux-4-19 2021/03/12 02:35 linux-4.19.y 030194a5b292 429d8a6b .config console log report syz WARNING: locking bug in inet_autobind
ci2-linux-4-19 2021/03/06 18:33 linux-4.19.y dfb571610ba3 e4b4d570 .config console log report syz WARNING: locking bug in inet_autobind
ci2-linux-4-19 2021/03/01 23:45 linux-4.19.y 2d19be4653f5 183afb6c .config console log report syz WARNING: locking bug in inet_autobind
ci2-linux-4-19 2020/12/18 22:31 linux-4.19.y 13d2ce42de8c 04201c06 .config console log report syz
ci2-linux-4-19 2020/11/12 14:20 linux-4.19.y 31acccdc8774 77a55c8e .config console log report syz
ci2-linux-4-19 2023/01/26 04:26 linux-4.19.y 3f8a27f9e27b 9dfcf09c .config console log report info [disk image] [vmlinux] WARNING: locking bug in inet_autobind
ci2-linux-4-19 2023/01/16 00:51 linux-4.19.y 3f8a27f9e27b a63719e7 .config console log report info [disk image] [vmlinux] WARNING: locking bug in inet_autobind
ci2-linux-4-19 2022/12/28 15:16 linux-4.19.y 3f8a27f9e27b 44712fbc .config console log report info [disk image] [vmlinux] WARNING: locking bug in inet_autobind
ci2-linux-4-19 2022/10/22 22:10 linux-4.19.y 3f8a27f9e27b c0b80a55 .config console log report info [disk image] [vmlinux] WARNING: locking bug in inet_autobind
ci2-linux-4-19 2022/06/14 23:12 linux-4.19.y 3f8a27f9e27b 127d1faf .config console log report info WARNING: locking bug in inet_autobind
ci2-linux-4-19 2022/04/27 05:06 linux-4.19.y 3f8a27f9e27b 1fa34c1b .config console log report info WARNING: locking bug in inet_autobind
ci2-linux-4-19 2022/04/12 02:53 linux-4.19.y 3f8a27f9e27b af01ee7d .config console log report info WARNING: locking bug in inet_autobind
ci2-linux-4-19 2022/03/17 12:37 linux-4.19.y 3f8a27f9e27b dfa9a8ed .config console log report info WARNING: locking bug in inet_autobind
ci2-linux-4-19 2022/03/15 22:04 linux-4.19.y 3f8a27f9e27b 9e8eaa75 .config console log report info WARNING: locking bug in inet_autobind
ci2-linux-4-19 2022/02/10 08:10 linux-4.19.y 3f8a27f9e27b 0b33604d .config console log report info WARNING: locking bug in inet_autobind
ci2-linux-4-19 2022/01/18 11:41 linux-4.19.y 3f8a27f9e27b 731a2d23 .config console log report info WARNING: locking bug in inet_autobind
ci2-linux-4-19 2022/01/17 09:30 linux-4.19.y 3f8a27f9e27b 723cfaf0 .config console log report info WARNING: locking bug in inet_autobind
ci2-linux-4-19 2022/01/15 18:32 linux-4.19.y 3f8a27f9e27b 723cfaf0 .config console log report info WARNING: locking bug in inet_autobind
ci2-linux-4-19 2021/12/17 06:06 linux-4.19.y 3f8a27f9e27b 44068e19 .config console log report info WARNING: locking bug in inet_autobind
ci2-linux-4-19 2021/12/04 22:24 linux-4.19.y 3f8a27f9e27b a617004c .config console log report info WARNING: locking bug in inet_autobind
ci2-linux-4-19 2021/11/28 06:01 linux-4.19.y 3f8a27f9e27b 63eeac02 .config console log report info WARNING: locking bug in inet_autobind
ci2-linux-4-19 2021/11/25 18:01 linux-4.19.y 3f8a27f9e27b 63eeac02 .config console log report info WARNING: locking bug in inet_autobind
ci2-linux-4-19 2021/11/19 03:39 linux-4.19.y 3f8a27f9e27b 31a30fc0 .config console log report info WARNING: locking bug in inet_autobind
ci2-linux-4-19 2021/11/10 19:04 linux-4.19.y 3f8a27f9e27b 75b04091 .config console log report info WARNING: locking bug in inet_autobind
ci2-linux-4-19 2021/11/09 21:56 linux-4.19.y 3f8a27f9e27b 59bcaf9a .config console log report info WARNING: locking bug in inet_autobind
ci2-linux-4-19 2021/10/26 11:11 linux-4.19.y 3f8a27f9e27b c1132b49 .config console log report info WARNING: locking bug in inet_autobind
ci2-linux-4-19 2021/10/07 22:35 linux-4.19.y 6db10b4d5efd efe0f24d .config console log report info WARNING: locking bug in inet_autobind
ci2-linux-4-19 2021/09/20 04:12 linux-4.19.y b172b44fcb17 70b76c1d .config console log report info WARNING: locking bug in inet_autobind
ci2-linux-4-19 2021/07/14 23:43 linux-4.19.y fcfbdfe9626e 94e0b707 .config console log report info WARNING: locking bug in inet_autobind
ci2-linux-4-19 2021/07/08 06:48 linux-4.19.y 9f84340f012e 1aade754 .config console log report info WARNING: locking bug in inet_autobind
ci2-linux-4-19 2021/06/28 08:35 linux-4.19.y eb575cd5d7f6 9d2ab5df .config console log report info WARNING: locking bug in inet_autobind
ci2-linux-4-19 2021/05/11 21:36 linux-4.19.y 3c8c23092588 b3c3bb8e .config console log report info WARNING: locking bug in inet_autobind
ci2-linux-4-19 2021/04/17 18:19 linux-4.19.y 2965db2e004c 7e2b734b .config console log report info WARNING: locking bug in inet_autobind
ci2-linux-4-19 2021/03/12 01:36 linux-4.19.y 030194a5b292 429d8a6b .config console log report info WARNING: locking bug in inet_autobind
ci2-linux-4-19 2021/03/10 01:09 linux-4.19.y 2cae3e25b706 26967e35 .config console log report info WARNING: locking bug in inet_autobind
ci2-linux-4-19 2021/03/01 20:59 linux-4.19.y 2d19be4653f5 183afb6c .config console log report info WARNING: locking bug in inet_autobind
ci2-linux-4-19 2020/12/26 10:24 linux-4.19.y 13d2ce42de8c 821e0b09 .config console log report info
* Struck through repros no longer work on HEAD.