syzbot


WARNING: locking bug in lock_sock_nested

Status: upstream: reported syz repro on 2019/04/14 11:29
Reported-by: syzbot+605a69fff339d9cc221e@syzkaller.appspotmail.com
First crash: 1266d, last: 311d

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 (bisect log)
duplicates (1):
Title Repro Cause bisect Fix bisect Count Last Reported Patched Status
WARNING: locking bug in register_lock_class C 8 1518d 1547d 0/24 closed as dup on 2019/05/09 12:57
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 837d 1246d 0/1 upstream: reported syz repro on 2019/05/01 12:10
android-44 WARNING: locking bug in lock_sock_nested syz 3 1615d 1263d 0/2 public: reported syz repro on 2019/04/14 00:02
Patch testing requests:
Created Duration User Patch Repo Result
2022/09/19 03:29 13m upstream report log
2022/09/19 01:29 10m upstream report log
2022/09/16 07:29 12m net-next report log
2022/09/15 19:29 15m net report log
2022/09/11 19:27 7m upstream error
2022/09/11 16:27 11m upstream report 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):
Manager Time Kernel Commit Syzkaller Config Log Report Syz repro C repro VM info Title
ci-upstream-kasan-gce 2019/05/01 14:56 upstream f2bc9c908dfe 618456b4 .config log report syz
ci-upstream-kasan-gce-selinux-root 2019/05/01 13:23 upstream f2bc9c908dfe 618456b4 .config log report syz
ci-upstream-kasan-gce-smack-root 2019/05/01 12:08 upstream f2bc9c908dfe 618456b4 .config log report syz
ci-upstream-kasan-gce-root 2019/05/01 11:51 upstream f2bc9c908dfe 618456b4 .config log report syz
ci-upstream-kasan-gce-smack-root 2019/04/20 13:48 upstream 371dd432ab39 b0e8efcb .config log report syz
ci-upstream-kasan-gce 2019/04/20 11:52 upstream 371dd432ab39 b0e8efcb .config log report syz
ci-upstream-kasan-gce-386 2019/05/01 11:53 upstream f2bc9c908dfe 618456b4 .config log report syz
ci-upstream-kasan-gce-386 2019/04/20 13:15 upstream 371dd432ab39 b0e8efcb .config log report syz
ci-upstream-net-this-kasan-gce 2019/04/20 13:32 net d1bcf2b65177 b0e8efcb .config log report syz
ci-upstream-net-kasan-gce 2019/04/20 11:12 net-next d7cc399e1227 b0e8efcb .config log report syz
ci-upstream-linux-next-kasan-gce-root 2019/05/01 11:51 linux-next f43b05fd4c17 618456b4 .config log report syz
ci-upstream-kasan-gce-selinux-root 2019/04/28 22:30 upstream 9520b5324b0e b617407b .config log report
ci-upstream-kasan-gce 2019/04/28 17:54 upstream 037904a22bf8 b617407b .config log report
ci-upstream-kasan-gce-smack-root 2019/04/28 14:45 upstream 037904a22bf8 b617407b .config log report
ci-upstream-kasan-gce 2019/04/28 12:30 upstream 037904a22bf8 b617407b .config log report
ci-upstream-kasan-gce-root 2019/04/12 07:04 upstream 2d06b235815e 8916f5e1 .config log report
ci-upstream-kasan-gce-root 2019/04/12 06:29 upstream 2d06b235815e 13030ef8 .config log report
ci-upstream-net-this-kasan-gce 2019/04/14 23:22 net c543cb4a5f07 505ab413 .config log report
ci-upstream-net-kasan-gce 2019/05/03 10:30 net-next ff24e4980a68 1bfa09b9 .config log report
ci-upstream-net-kasan-gce 2019/04/30 08:36 net-next 7a1d8390d015 20f16bef .config log report
ci-upstream-net-kasan-gce 2019/04/21 02:50 net-next 5313794b7915 b0e8efcb .config log report
ci-upstream-net-kasan-gce 2019/04/20 08:58 net-next d7cc399e1227 b0e8efcb .config log report
ci-upstream-net-kasan-gce 2019/04/19 23:15 net-next 5c2e6e14a0ad b0e8efcb .config log report
ci-upstream-net-kasan-gce 2019/04/11 10:38 net-next b8c7e2c39dd5 e955ac50 .config log report
* Struck through repros no longer work on HEAD.