syzbot


WARNING: locking bug in sock_setsockopt

Status: closed as invalid on 2022/02/17 02:00
Subsystems: net
[Documentation on labels]
First crash: 856d, last: 856d

Sample crash report:
------------[ cut here ]------------
WARNING: CPU: 0 PID: 5851 at kernel/locking/lockdep.c:909 look_up_lock_class+0x6a/0xd0 kernel/locking/lockdep.c:909
Modules linked in:
CPU: 0 PID: 5851 Comm: syz-executor.5 Not tainted 5.16.0-rc7-syzkaller #0
Hardware name: Google Google Compute Engine/Google Compute Engine, BIOS Google 01/01/2011
RIP: 0010:look_up_lock_class+0x6a/0xd0 kernel/locking/lockdep.c:909
Code: 85 c0 75 0a eb 57 48 8b 00 48 85 c0 74 4f 48 39 70 40 75 f2 48 8b 4f 18 48 39 88 b0 00 00 00 74 0b 48 81 3f 20 e5 17 8f 74 02 <0f> 0b 5d c3 9c 5a 80 e6 02 74 c2 e8 66 06 94 fa 85 c0 74 1f 8b 05
RSP: 0018:ffffc90010287918 EFLAGS: 00010006
RAX: ffffffff8ffc2520 RBX: ffffffff904c89c0 RCX: ffffffff8ac83ca0
RDX: 0000000000000046 RSI: ffffffff9084b620 RDI: ffff88807cb520a0
RBP: 0000000000000000 R08: 0000000000000000 R09: 0000000000000000
R10: fffffbfff1b223f2 R11: 0000000000000001 R12: 0000000000000000
R13: ffff88807cb520a0 R14: 0000000000000000 R15: 0000000000000000
FS:  00007f0fae2c6700(0000) GS:ffff8880b9c00000(0000) knlGS:0000000000000000
CS:  0010 DS: 0000 ES: 0000 CR0: 0000000080050033
CR2: 00007f0fae2c6718 CR3: 0000000019522000 CR4: 00000000003506f0
DR0: 0000000000000000 DR1: 0000000000000000 DR2: 0000000000000000
DR3: 0000000000000000 DR6: 00000000fffe0ff0 DR7: 0000000000000400
Call Trace:
 <TASK>
 register_lock_class+0xb6/0x1030 kernel/locking/lockdep.c:1258
 __lock_acquire+0x106/0x5470 kernel/locking/lockdep.c:4906
 lock_acquire kernel/locking/lockdep.c:5637 [inline]
 lock_acquire+0x1ab/0x510 kernel/locking/lockdep.c:5602
 __raw_spin_lock_bh include/linux/spinlock_api_smp.h:126 [inline]
 _raw_spin_lock_bh+0x2f/0x40 kernel/locking/spinlock.c:178
 spin_lock_bh include/linux/spinlock.h:354 [inline]
 lock_sock_nested+0x5b/0xf0 net/core/sock.c:3288
 lock_sock include/net/sock.h:1645 [inline]
 sock_bindtoindex net/core/sock.c:632 [inline]
 sock_setbindtodevice net/core/sock.c:680 [inline]
 sock_setsockopt+0x50a/0x2b90 net/core/sock.c:1031
 __sys_setsockopt+0x4f8/0x610 net/socket.c:2172
 __do_sys_setsockopt net/socket.c:2187 [inline]
 __se_sys_setsockopt net/socket.c:2184 [inline]
 __x64_sys_setsockopt+0xba/0x150 net/socket.c:2184
 do_syscall_x64 arch/x86/entry/common.c:50 [inline]
 do_syscall_64+0x35/0xb0 arch/x86/entry/common.c:80
 entry_SYSCALL_64_after_hwframe+0x44/0xae
RIP: 0033:0x7f0faf9d4e99
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:00007f0fae2c6168 EFLAGS: 00000246 ORIG_RAX: 0000000000000036
RAX: ffffffffffffffda RBX: 00007f0fafae82a0 RCX: 00007f0faf9d4e99
RDX: 0000000000000019 RSI: 0000000000000001 RDI: 0000000000000004
RBP: 00007f0fafa2eff1 R08: 0000000000000004 R09: 0000000000000000
R10: 00000000200000c0 R11: 0000000000000246 R12: 0000000000000000
R13: 00007ffe58c7f95f R14: 00007f0fae2c6300 R15: 0000000000022000
 </TASK>

Crashes (1):
Time Kernel Commit Syzkaller Config Log Report Syz repro C repro VM info Assets (help?) Manager Title
2022/01/01 18:00 upstream 800829388818 e1768e9c .config console log report info ci-upstream-kasan-gce-selinux-root WARNING: locking bug in sock_setsockopt
* Struck through repros no longer work on HEAD.