syzbot


WARNING: locking bug in rxrpc_do_sendmsg

Status: upstream: reported C repro on 2021/12/28 12:28
Reported-by: syzbot+8d7178a6ad5d7700634b@syzkaller.appspotmail.com
First crash: 1061d, last: 1042d
Fix bisection: failed (error log, bisect log)
  
Similar bugs (1)
Kernel Title Repro Cause bisect Fix bisect Count Last Reported Patched Status
linux-4.14 WARNING: locking bug in rxrpc_do_sendmsg 1 1043d 1043d 0/1 auto-closed as invalid on 2022/05/15 10:23

Sample crash report:
------------[ cut here ]------------
DEBUG_LOCKS_WARN_ON(depth <= 0)
WARNING: CPU: 1 PID: 8096 at kernel/locking/lockdep.c:3670 __lock_release kernel/locking/lockdep.c:3670 [inline]
WARNING: CPU: 1 PID: 8096 at kernel/locking/lockdep.c:3670 lock_release+0x759/0x8b0 kernel/locking/lockdep.c:3927
Kernel panic - not syncing: panic_on_warn set ...

CPU: 1 PID: 8096 Comm: syz-executor317 Not tainted 4.19.211-syzkaller #0
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+0x1fc/0x2ef lib/dump_stack.c:118
 panic+0x26a/0x50e kernel/panic.c:186
 __warn.cold+0x20/0x5a kernel/panic.c:541
 report_bug+0x262/0x2b0 lib/bug.c:183
 fixup_bug arch/x86/kernel/traps.c:178 [inline]
 fixup_bug arch/x86/kernel/traps.c:173 [inline]
 do_error_trap+0x1d7/0x310 arch/x86/kernel/traps.c:296
 invalid_op+0x14/0x20 arch/x86/entry/entry_64.S:1038
RIP: 0010:__lock_release kernel/locking/lockdep.c:3670 [inline]
RIP: 0010:lock_release+0x759/0x8b0 kernel/locking/lockdep.c:3927
Code: e9 3f fd ff ff e8 37 60 05 00 85 c0 0f 85 93 fe ff ff e9 61 0a a8 06 48 c7 c6 60 4b 6a 88 48 c7 c7 40 19 6a 88 e8 0c 6c a7 06 <0f> 0b eb 82 48 89 df e8 0b 11 4d 00 e9 90 fd ff ff e8 01 11 4d 00
RSP: 0018:ffff88808fadf888 EFLAGS: 00010082
RAX: 0000000000000000 RBX: ffffffff8d243760 RCX: 0000000000000000
RDX: 0000000000000000 RSI: ffffffff814dff01 RDI: ffffed1011f5bf03
RBP: ffff8880b13b1bd0 R08: 0000000000000000 R09: 00000000000006d9
R10: 0000000000000006 R11: ffffffff8c66505b R12: 1ffff11011f5bf14
R13: ffffffff875c6aec R14: ffff8880b2408040 R15: 0000000000000000
 __mutex_unlock_slowpath+0x89/0x610 kernel/locking/mutex.c:1203
 rxrpc_do_sendmsg+0x8ac/0x1d50 net/rxrpc/sendmsg.c:743
 rxrpc_sendmsg+0x416/0x600 net/rxrpc/af_rxrpc.c:593
 sock_sendmsg_nosec net/socket.c:651 [inline]
 sock_sendmsg+0xc3/0x120 net/socket.c:661
 ___sys_sendmsg+0x7bb/0x8e0 net/socket.c:2227
 __sys_sendmsg net/socket.c:2265 [inline]
 __do_sys_sendmsg net/socket.c:2274 [inline]
 __se_sys_sendmsg net/socket.c:2272 [inline]
 __x64_sys_sendmsg+0x132/0x220 net/socket.c:2272
 do_syscall_64+0xf9/0x620 arch/x86/entry/common.c:293
 entry_SYSCALL_64_after_hwframe+0x49/0xbe
RIP: 0033:0x7fb827393ad9
Code: 28 00 00 00 75 05 48 83 c4 28 c3 e8 11 15 00 00 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 73 01 c3 48 c7 c1 b8 ff ff ff f7 d8 64 89 01 48
RSP: 002b:00007fb827345318 EFLAGS: 00000246 ORIG_RAX: 000000000000002e
RAX: ffffffffffffffda RBX: 00007fb82741b3e8 RCX: 00007fb827393ad9
RDX: 0000000000000000 RSI: 0000000020000000 RDI: 0000000000000003
RBP: 00007fb82741b3e0 R08: 000000000000224e R09: 0000000000000000
R10: 0000000000000002 R11: 0000000000000246 R12: 000000d7860cdad7
R13: 00007ffc46208fbf R14: 00007fb827345400 R15: 0000000000022000
Kernel Offset: disabled
Rebooting in 86400 seconds..

Crashes (2):
Time Kernel Commit Syzkaller Config Log Report Syz repro C repro VM info Assets (help?) Manager Title
2021/12/28 12:27 linux-4.19.y 3f8a27f9e27b 6b3c5e64 .config console log report syz C ci2-linux-4-19 WARNING: locking bug in rxrpc_do_sendmsg
2022/01/16 07:06 linux-4.19.y 3f8a27f9e27b 723cfaf0 .config console log report info ci2-linux-4-19 WARNING: locking bug in rxrpc_do_sendmsg
* Struck through repros no longer work on HEAD.