syzbot


WARNING: locking bug in lock_sock_nested

Status: auto-obsoleted due to no activity on 2023/04/22 14:43
Reported-by: syzbot+605a69fff339d9cc221e@syzkaller.appspotmail.com
First crash: 1803d, last: 848d
Cause bisection: the issue happens on the oldest tested release (bisect log)
Crash: WARNING: locking bug in lock_sock_nested (log)
Repro: syz .config
  
Fix bisection: failed (error log, bisect log)
  
Duplicate bugs (1)
duplicates (1):
Title Repro Cause bisect Fix bisect Count Last Reported Patched Status
WARNING: locking bug in register_lock_class net C 8 2056d 2084d 0/26 closed as dup on 2019/05/09 12:57
Discussions (3)
Title Replies (including bot) Last reply
Reminder: 99 open syzbot bugs in net subsystem 14 (14) 2019/07/31 15:13
Reminder: 94 open syzbot bugs in net subsystem 1 (1) 2019/06/25 05:48
WARNING: locking bug in lock_sock_nested 0 (2) 2019/04/20 11:13
Similar bugs (2)
Kernel Title Repro Cause bisect Fix bisect Count Last Reported Patched Status
linux-4.14 WARNING: locking bug in lock_sock_nested syz inconclusive 1 1374d 1783d 0/1 upstream: reported syz repro on 2019/05/01 12:10
android-44 WARNING: locking bug in lock_sock_nested syz 3 2152d 1801d 0/2 public: reported syz repro on 2019/04/14 00:02
Last patch testing requests (10)
Created Duration User Patch Repo Result
2023/04/22 14:34 18m retest repro upstream OK log
2023/04/22 14:22 19m retest repro upstream OK log
2023/04/22 12:47 18m retest repro upstream OK log
2023/04/22 12:36 18m retest repro upstream OK log
2023/04/21 05:42 25m retest repro upstream OK log
2023/04/12 22:11 19m retest repro upstream OK log
2023/04/12 19:11 19m retest repro upstream OK log
2023/04/04 12:32 18m retest repro net-next OK log
2023/04/04 03:32 18m retest repro net OK log
2023/03/31 02:32 19m retest repro upstream OK log
Fix bisection attempts (23)
Created Duration User Patch Repo Result
2021/12/21 20:41 8m bisect fix upstream error job log (0)
2021/11/21 08:57 28m bisect fix upstream job log (0) log
2021/10/22 08:28 28m bisect fix upstream job log (0) log
2021/09/21 22:35 25m bisect fix upstream job log (0) log
2021/08/21 17:23 29m bisect fix upstream job log (0) log
2021/07/12 15:40 30m bisect fix upstream job log (0) log
2021/06/12 15:10 30m bisect fix upstream job log (0) log
2021/05/13 11:04 26m bisect fix upstream job log (0) log
2021/04/13 00:49 27m bisect fix upstream job log (0) log
2021/03/13 03:38 29m bisect fix upstream job log (0) log
2021/01/20 07:25 25m bisect fix upstream job log (0) log
2020/12/21 05:44 24m bisect fix upstream job log (0) log
2020/11/13 16:45 21m bisect fix upstream job log (0) log
2020/10/14 04:11 18m bisect fix upstream job log (0) log
2020/09/14 01:31 19m bisect fix upstream job log (0) log
2020/08/15 00:28 19m bisect fix upstream job log (0) log
2020/05/21 08:21 22m bisect fix upstream job log (0) log
2020/04/21 07:52 21m bisect fix upstream job log (0) log
2020/03/22 07:19 32m bisect fix upstream job log (0) log
2020/01/27 23:55 33m bisect fix upstream job log (0) log
2019/12/18 19:07 30m bisect fix upstream job log (0) log
2019/11/09 17:43 32m bisect fix upstream job log (0) log
2019/08/19 10:36 26m bisect fix upstream job log (0) log

Sample crash report:
WARNING: CPU: 0 PID: 8948 at kernel/locking/lockdep.c:746 arch_local_save_flags arch/x86/include/asm/paravirt.h:762 [inline]
WARNING: CPU: 0 PID: 8948 at kernel/locking/lockdep.c:746 arch_local_save_flags arch/x86/include/asm/paravirt.h:760 [inline]
WARNING: CPU: 0 PID: 8948 at kernel/locking/lockdep.c:746 look_up_lock_class kernel/locking/lockdep.c:737 [inline]
WARNING: CPU: 0 PID: 8948 at kernel/locking/lockdep.c:746 register_lock_class+0xe10/0x1860 kernel/locking/lockdep.c:1090
Kernel panic - not syncing: panic_on_warn set ...
CPU: 0 PID: 8948 Comm: syz-executor.0 Not tainted 5.1.0-rc7+ #96
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
 panic+0x2cb/0x65c kernel/panic.c:214
 __warn.cold+0x20/0x45 kernel/panic.c:571
 report_bug+0x263/0x2b0 lib/bug.c:186
 fixup_bug arch/x86/kernel/traps.c:179 [inline]
 fixup_bug arch/x86/kernel/traps.c:174 [inline]
 do_error_trap+0x11b/0x200 arch/x86/kernel/traps.c:272
 do_invalid_op+0x37/0x50 arch/x86/kernel/traps.c:291
 invalid_op+0x14/0x20 arch/x86/entry/entry_64.S:973
RIP: 0010:look_up_lock_class kernel/locking/lockdep.c:746 [inline]
RIP: 0010:register_lock_class+0xe10/0x1860 kernel/locking/lockdep.c:1090
Code: 00 48 89 da 4d 8b 76 c0 48 b8 00 00 00 00 00 fc ff df 48 c1 ea 03 80 3c 02 00 0f 85 23 07 00 00 4c 89 33 e9 e3 f4 ff ff 0f 0b <0f> 0b e9 ea f3 ff ff 44 89 e0 4c 8b 95 50 ff ff ff 83 c0 01 4c 8b
RSP: 0018:ffff88809061fa60 EFLAGS: 00010087
RAX: dffffc0000000000 RBX: ffff88808f9cb820 RCX: 0000000000000000
RDX: 1ffff11011f39707 RSI: 0000000000000000 RDI: ffff88808f9cb838
RBP: ffff88809061fb28 R08: 1ffff110120c3f54 R09: ffffffff8a5c9a20
R10: ffffffff8a0b27f8 R11: 0000000000000000 R12: ffffffff8a11f500
R13: 0000000000000000 R14: 0000000000000000 R15: ffffffff87fba320
 __lock_acquire+0xf9/0x3fb0 kernel/locking/lockdep.c:3582
 lock_acquire+0x16f/0x3f0 kernel/locking/lockdep.c:4211
 __raw_spin_lock_bh include/linux/spinlock_api_smp.h:135 [inline]
 _raw_spin_lock_bh+0x33/0x50 kernel/locking/spinlock.c:168
 spin_lock_bh include/linux/spinlock.h:334 [inline]
 lock_sock_nested+0x41/0x120 net/core/sock.c:2912
 lock_sock include/net/sock.h:1513 [inline]
 inet_autobind+0x20/0x1a0 net/ipv4/af_inet.c:179
 inet_dgram_connect+0x252/0x2e0 net/ipv4/af_inet.c:569
 __sys_connect+0x266/0x330 net/socket.c:1808
 __do_sys_connect net/socket.c:1819 [inline]
 __se_sys_connect net/socket.c:1816 [inline]
 __x64_sys_connect+0x73/0xb0 net/socket.c:1816
 do_syscall_64+0x103/0x610 arch/x86/entry/common.c:290
 entry_SYSCALL_64_after_hwframe+0x49/0xbe
RIP: 0033:0x458da9
Code: ad b8 fb ff c3 66 2e 0f 1f 84 00 00 00 00 00 66 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 0f 83 7b b8 fb ff c3 66 2e 0f 1f 84 00 00 00 00
RSP: 002b:00007fd38cb6ec78 EFLAGS: 00000246 ORIG_RAX: 000000000000002a
RAX: ffffffffffffffda RBX: 0000000000000003 RCX: 0000000000458da9
RDX: 000000000000001c RSI: 0000000020000080 RDI: 0000000000000007
RBP: 000000000073bfa0 R08: 0000000000000000 R09: 0000000000000000
R10: 0000000000000000 R11: 0000000000000246 R12: 00007fd38cb6f6d4
R13: 00000000004bf1f1 R14: 00000000004d02c0 R15: 00000000ffffffff
Kernel Offset: disabled
Rebooting in 86400 seconds..

Crashes (24):
Time Kernel Commit Syzkaller Config Log Report Syz repro C repro VM info Assets (help?) Manager Title
2019/05/01 14:56 upstream f2bc9c908dfe 618456b4 .config console log report syz ci-upstream-kasan-gce
2019/05/01 13:23 upstream f2bc9c908dfe 618456b4 .config console log report syz ci-upstream-kasan-gce-selinux-root
2019/05/01 12:08 upstream f2bc9c908dfe 618456b4 .config console log report syz ci-upstream-kasan-gce-smack-root
2019/05/01 11:51 upstream f2bc9c908dfe 618456b4 .config console log report syz ci-upstream-kasan-gce-root
2019/04/20 13:48 upstream 371dd432ab39 b0e8efcb .config console log report syz ci-upstream-kasan-gce-smack-root
2019/04/20 11:52 upstream 371dd432ab39 b0e8efcb .config console log report syz ci-upstream-kasan-gce
2019/05/01 11:53 upstream f2bc9c908dfe 618456b4 .config console log report syz ci-upstream-kasan-gce-386
2019/04/20 13:15 upstream 371dd432ab39 b0e8efcb .config console log report syz ci-upstream-kasan-gce-386
2019/04/20 13:32 net-old d1bcf2b65177 b0e8efcb .config console log report syz ci-upstream-net-this-kasan-gce
2019/04/20 11:12 net-next-old d7cc399e1227 b0e8efcb .config console log report syz ci-upstream-net-kasan-gce
2019/05/01 11:51 linux-next f43b05fd4c17 618456b4 .config console log report syz ci-upstream-linux-next-kasan-gce-root
2019/04/28 22:30 upstream 9520b5324b0e b617407b .config console log report ci-upstream-kasan-gce-selinux-root
2019/04/28 17:54 upstream 037904a22bf8 b617407b .config console log report ci-upstream-kasan-gce
2019/04/28 14:45 upstream 037904a22bf8 b617407b .config console log report ci-upstream-kasan-gce-smack-root
2019/04/28 12:30 upstream 037904a22bf8 b617407b .config console log report ci-upstream-kasan-gce
2019/04/12 07:04 upstream 2d06b235815e 8916f5e1 .config console log report ci-upstream-kasan-gce-root
2019/04/12 06:29 upstream 2d06b235815e 13030ef8 .config console log report ci-upstream-kasan-gce-root
2019/04/14 23:22 net-old c543cb4a5f07 505ab413 .config console log report ci-upstream-net-this-kasan-gce
2019/05/03 10:30 net-next-old ff24e4980a68 1bfa09b9 .config console log report ci-upstream-net-kasan-gce
2019/04/30 08:36 net-next-old 7a1d8390d015 20f16bef .config console log report ci-upstream-net-kasan-gce
2019/04/21 02:50 net-next-old 5313794b7915 b0e8efcb .config console log report ci-upstream-net-kasan-gce
2019/04/20 08:58 net-next-old d7cc399e1227 b0e8efcb .config console log report ci-upstream-net-kasan-gce
2019/04/19 23:15 net-next-old 5c2e6e14a0ad b0e8efcb .config console log report ci-upstream-net-kasan-gce
2019/04/11 10:38 net-next-old b8c7e2c39dd5 e955ac50 .config console log report ci-upstream-net-kasan-gce
* Struck through repros no longer work on HEAD.