syzbot


WARNING: locking bug in nr_release (2)

Status: auto-closed as invalid on 2021/11/12 12:10
Subsystems: hams
[Documentation on labels]
First crash: 999d, last: 953d
Similar bugs (1)
Kernel Title Repro Cause bisect Fix bisect Count Last Reported Patched Status
upstream WARNING: locking bug in nr_release hams 1 1934d 1933d 0/26 closed as dup on 2019/01/07 18:47

Sample crash report:
------------[ cut here ]------------
DEBUG_LOCKS_WARN_ON(!test_bit(class_idx, lock_classes_in_use))
WARNING: CPU: 1 PID: 14723 at kernel/locking/lockdep.c:4985 __lock_acquire+0x1086/0x54a0 kernel/locking/lockdep.c:4985
Modules linked in:
CPU: 1 PID: 14723 Comm: syz-executor.1 Not tainted 5.14.0-next-20210913-syzkaller #0
Hardware name: Google Google Compute Engine/Google Compute Engine, BIOS Google 01/01/2011
RIP: 0010:__lock_acquire+0x1086/0x54a0 kernel/locking/lockdep.c:4985
Code: d2 0f 85 8b 31 00 00 44 8b 35 1e 4c 13 0c 45 85 f6 0f 85 b3 fd ff ff 48 c7 c6 00 27 8c 89 48 c7 c7 00 f7 8b 89 e8 da af 94 07 <0f> 0b e9 9c fd ff ff bd 02 00 00 00 e9 6e f5 ff ff 45 31 f6 e9 14
RSP: 0018:ffffc90017b1f850 EFLAGS: 00010086
RAX: 0000000000000000 RBX: ffffffffab88ec73 RCX: 0000000000000000
RDX: ffff8880452e0000 RSI: ffffffff815dbe48 RDI: fffff52002f63efc
RBP: ffff8880452e0a4a R08: 0000000000000000 R09: 0000000000000000
R10: ffffffff815d5c2e R11: 0000000000000000 R12: ffff8880452e0a28
R13: ffff8880452e0000 R14: 0000000000000000 R15: 0000000000000000
FS:  0000000000000000(0000) GS:ffff8880b9d00000(0000) knlGS:0000000000000000
CS:  0010 DS: 0000 ES: 0000 CR0: 0000000080050033
CR2: 000000c010c62000 CR3: 000000001a6ef000 CR4: 00000000001506e0
Call Trace:
 lock_acquire kernel/locking/lockdep.c:5625 [inline]
 lock_acquire+0x1ab/0x510 kernel/locking/lockdep.c:5590
 __raw_write_lock_bh include/linux/rwlock_api_smp.h:203 [inline]
 _raw_write_lock_bh+0x2f/0x40 kernel/locking/spinlock.c:324
 sock_orphan include/net/sock.h:1903 [inline]
 nr_release+0xc2/0x450 net/netrom/af_netrom.c:521
 __sock_release+0xcd/0x280 net/socket.c:649
 sock_close+0x18/0x20 net/socket.c:1314
 __fput+0x288/0x9f0 fs/file_table.c:280
 task_work_run+0xdd/0x1a0 kernel/task_work.c:164
 exit_task_work include/linux/task_work.h:32 [inline]
 do_exit+0xbae/0x2a30 kernel/exit.c:825
 do_group_exit+0x125/0x310 kernel/exit.c:922
 get_signal+0x47f/0x2160 kernel/signal.c:2868
 arch_do_signal_or_restart+0x2a9/0x1c40 arch/x86/kernel/signal.c:865
 handle_signal_work kernel/entry/common.c:148 [inline]
 exit_to_user_mode_loop kernel/entry/common.c:172 [inline]
 exit_to_user_mode_prepare+0x17d/0x290 kernel/entry/common.c:209
 __syscall_exit_to_user_mode_work kernel/entry/common.c:291 [inline]
 syscall_exit_to_user_mode+0x19/0x60 kernel/entry/common.c:302
 do_syscall_64+0x42/0xb0 arch/x86/entry/common.c:86
 entry_SYSCALL_64_after_hwframe+0x44/0xae
RIP: 0033:0x4665f9
Code: Unable to access opcode bytes at RIP 0x4665cf.
RSP: 002b:00007fedcfe31218 EFLAGS: 00000246 ORIG_RAX: 00000000000000ca
RAX: fffffffffffffe00 RBX: 000000000056bf88 RCX: 00000000004665f9
RDX: 0000000000000000 RSI: 0000000000000080 RDI: 000000000056bf88
RBP: 000000000056bf80 R08: 0000000000000000 R09: 0000000000000000
R10: 0000000000000000 R11: 0000000000000246 R12: 000000000056bf8c
R13: 00007ffecc50783f R14: 00007fedcfe31300 R15: 0000000000022000

Crashes (5):
Time Kernel Commit Syzkaller Config Log Report Syz repro C repro VM info Assets (help?) Manager Title
2021/09/13 12:01 linux-next 24a36d3171e4 3ce60af8 .config console log report info ci-upstream-linux-next-kasan-gce-root WARNING: locking bug in nr_release
2021/09/13 03:24 linux-next 24a36d3171e4 5ae8508a .config console log report info ci-upstream-linux-next-kasan-gce-root WARNING: locking bug in nr_release
2021/09/06 16:41 linux-next c1b13fe76e95 6ca60148 .config console log report info ci-upstream-linux-next-kasan-gce-root WARNING: locking bug in nr_release
2021/08/09 17:45 linux-next da454ebf578f 6972b106 .config console log report info ci-upstream-linux-next-kasan-gce-root WARNING: locking bug in nr_release
2021/07/29 17:29 linux-next 4ccc9e2db7ac b44001ce .config console log report info ci-upstream-linux-next-kasan-gce-root WARNING: locking bug in nr_release
* Struck through repros no longer work on HEAD.