syzbot


WARNING: locking bug in lock_sock_nested

Status: public: reported syz repro on 2019/04/14 00:02
Reported-by: syzbot+5d03ab5990e105dc90ab@syzkaller.appspotmail.com
First crash: 2219d, last: 2161d
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 1384d 1793d 0/1 upstream: reported syz repro on 2019/05/01 12:10
upstream WARNING: locking bug in lock_sock_nested syz done error 24 858d 1810d 0/26 auto-obsoleted due to no activity on 2023/04/22 14:43

Sample crash report:
IPVS: Creating netns size=2552 id=5
IPVS: Creating netns size=2552 id=6
IPVS: Creating netns size=2552 id=7
IPVS: Creating netns size=2552 id=8
------------[ cut here ]------------
WARNING: CPU: 1 PID: 4192 at kernel/locking/lockdep.c:728 look_up_lock_class kernel/locking/lockdep.c:728 [inline]()
WARNING: CPU: 1 PID: 4192 at kernel/locking/lockdep.c:728 register_lock_class kernel/locking/lockdep.c:750 [inline]()
WARNING: CPU: 1 PID: 4192 at kernel/locking/lockdep.c:728 __lock_acquire+0x3055/0x4b50 kernel/locking/lockdep.c:3101()
Kernel panic - not syncing: panic_on_warn set ...

CPU: 1 PID: 4192 Comm: syz-executor6 Not tainted 4.4.119-g024f962 #26
Hardware name: Google Google Compute Engine/Google Compute Engine, BIOS Google 01/01/2011
 0000000000000000 47826dba128b9550 ffff8801d8cff5e8 ffffffff81d0402d
 ffffffff83843b40 ffff8801d8cff6c0 ffffffff83855920 0000000000000009
 00000000000002d8 ffff8801d8cff6b0 ffffffff8141aaea 0000000041b58ab3
Call Trace:
 [<ffffffff81d0402d>] __dump_stack lib/dump_stack.c:15 [inline]
 [<ffffffff81d0402d>] dump_stack+0xc1/0x124 lib/dump_stack.c:51
 [<ffffffff8141aaea>] panic+0x1aa/0x388 kernel/panic.c:112
 [<ffffffff8112d885>] warn_slowpath_common+0x125/0x140 kernel/panic.c:455
 [<ffffffff8112dae9>] warn_slowpath_null+0x29/0x30 kernel/panic.c:492
 [<ffffffff8123a465>] look_up_lock_class kernel/locking/lockdep.c:728 [inline]
 [<ffffffff8123a465>] register_lock_class kernel/locking/lockdep.c:750 [inline]
 [<ffffffff8123a465>] __lock_acquire+0x3055/0x4b50 kernel/locking/lockdep.c:3101
 [<ffffffff8123d7ce>] lock_acquire+0x15e/0x460 kernel/locking/lockdep.c:3592
 [<ffffffff837728fa>] __raw_spin_lock_bh include/linux/spinlock_api_smp.h:137 [inline]
 [<ffffffff837728fa>] _raw_spin_lock_bh+0x3a/0x50 kernel/locking/spinlock.c:175
 [<ffffffff82df40f3>] spin_lock_bh include/linux/spinlock.h:307 [inline]
 [<ffffffff82df40f3>] lock_sock_nested+0x43/0x120 net/core/sock.c:2451
 [<ffffffff830f9e8a>] lock_sock include/net/sock.h:1493 [inline]
 [<ffffffff830f9e8a>] do_ip_getsockopt+0x16a/0x1530 net/ipv4/ip_sockglue.c:1295
 [<ffffffff830fb2df>] ip_getsockopt+0x8f/0x180 net/ipv4/ip_sockglue.c:1520
 [<ffffffff831a0ea5>] udp_getsockopt+0x45/0x80 net/ipv4/udp.c:2226
 [<ffffffff82df1a05>] sock_common_getsockopt+0x95/0xd0 net/core/sock.c:2618
 [<ffffffff82def13a>] SYSC_getsockopt net/socket.c:1798 [inline]
 [<ffffffff82def13a>] SyS_getsockopt+0x14a/0x230 net/socket.c:1780
 [<ffffffff8377361f>] entry_SYSCALL_64_fastpath+0x1c/0x98
Dumping ftrace buffer:
   (ftrace buffer empty)
Kernel Offset: disabled
Rebooting in 86400 seconds..

Crashes (3):
Time Kernel Commit Syzkaller Config Log Report Syz repro C repro VM info Assets (help?) Manager Title
2018/03/01 01:52 https://android.googlesource.com/kernel/common android-4.4 024f962d4b24 05b5a32c .config console log report syz ci-android-44-kasan-gce
2018/03/01 01:34 https://android.googlesource.com/kernel/common android-4.4 024f962d4b24 05b5a32c .config console log report syz ci-android-44-kasan-gce-386
2018/04/27 17:52 https://android.googlesource.com/kernel/common android-4.4 23eaecc37dfb 7785e404 .config console log report ci-android-44-kasan-gce-386
* Struck through repros no longer work on HEAD.