syzbot


WARNING in mutex_destroy (2)

Status: upstream: reported C repro on 2022/04/18 14:36
Reported-by: syzbot+c1746b2d21a900678727@syzkaller.appspotmail.com
First crash: 736d, last: 715d
Fix bisection: failed (error log, bisect log)
  
Similar bugs (2)
Kernel Title Repro Cause bisect Fix bisect Count Last Reported Patched Status
linux-4.19 WARNING in mutex_destroy 31 1018d 1307d 0/1 auto-closed as invalid on 2021/11/07 14:31
linux-4.14 WARNING in mutex_destroy C error 13 751d 1304d 0/1 upstream: reported C repro on 2020/09/27 03:37

Sample crash report:
------------[ cut here ]------------
DEBUG_LOCKS_WARN_ON(mutex_is_locked(lock))
WARNING: CPU: 0 PID: 8095 at kernel/locking/mutex-debug.c:103 mutex_destroy+0xec/0x130 kernel/locking/mutex-debug.c:103
Kernel panic - not syncing: panic_on_warn set ...

CPU: 0 PID: 8095 Comm: syz-executor415 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:mutex_destroy+0xec/0x130 kernel/locking/mutex-debug.c:103
Code: 11 38 d0 7c 04 84 d2 75 50 8b 05 6f 93 ec 0b 85 c0 0f 85 63 ff ff ff 48 c7 c6 c0 0f 6a 88 48 c7 c7 00 10 6a 88 e8 69 59 a8 06 <0f> 0b e9 49 ff ff ff 48 c7 c7 60 37 24 8d e8 d1 fd 4d 00 e9 2e ff
RSP: 0018:ffff8880b4f87de0 EFLAGS: 00010286
RAX: 0000000000000000 RBX: ffff8880b37c8600 RCX: 0000000000000000
RDX: 0000000000000000 RSI: ffffffff814dff01 RDI: ffffed10169f0fae
RBP: ffff8880b37c8480 R08: 0000000000000000 R09: 00000000000006dd
R10: 0000000000000006 R11: ffffffff8c66501b R12: 0000000000000000
R13: ffff8880b37c8600 R14: ffff8880b2ac5bc8 R15: ffff8880b5b84820
 ww_mutex_destroy include/linux/ww_mutex.h:358 [inline]
 reservation_object_fini include/linux/reservation.h:129 [inline]
 dma_buf_release+0x531/0x630 drivers/dma-buf/dma-buf.c:77
 __fput+0x2ce/0x890 fs/file_table.c:278
 task_work_run+0x148/0x1c0 kernel/task_work.c:113
 tracehook_notify_resume include/linux/tracehook.h:193 [inline]
 exit_to_usermode_loop+0x251/0x2a0 arch/x86/entry/common.c:167
 prepare_exit_to_usermode arch/x86/entry/common.c:198 [inline]
 syscall_return_slowpath arch/x86/entry/common.c:271 [inline]
 do_syscall_64+0x538/0x620 arch/x86/entry/common.c:296
 entry_SYSCALL_64_after_hwframe+0x49/0xbe
RIP: 0033:0x7fea6096a179
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:00007fea608f62f8 EFLAGS: 00000246 ORIG_RAX: 0000000000000010
RAX: 0000000000000000 RBX: 00007fea609ed438 RCX: 00007fea6096a179
RDX: 0000000020000140 RSI: 0000000040086409 RDI: 0000000000000003
RBP: 0000000000000000 R08: 00007fea608f6700 R09: 0000000000000000
R10: 00007fea608f6700 R11: 0000000000000246 R12: 00007ffef8d328fe
R13: 00007fea609ed430 R14: 00007fea609ed43c R15: 00007fea609bb074
Kernel Offset: disabled
Rebooting in 86400 seconds..

Crashes (6):
Time Kernel Commit Syzkaller Config Log Report Syz repro C repro VM info Assets (help?) Manager Title
2022/04/18 15:04 linux-4.19.y 3f8a27f9e27b 8bcc32a6 .config console log report syz C ci2-linux-4-19 WARNING in mutex_destroy
2022/05/03 08:43 linux-4.19.y 3f8a27f9e27b 2df221f6 .config console log report syz ci2-linux-4-19 WARNING in mutex_destroy
2022/05/09 11:13 linux-4.19.y 3f8a27f9e27b 8b277b8e .config console log report info ci2-linux-4-19 WARNING in mutex_destroy
2022/05/01 04:59 linux-4.19.y 3f8a27f9e27b 2df221f6 .config console log report info ci2-linux-4-19 WARNING in mutex_destroy
2022/04/25 12:59 linux-4.19.y 3f8a27f9e27b 131df97d .config console log report info ci2-linux-4-19 WARNING in mutex_destroy
2022/04/18 14:35 linux-4.19.y 3f8a27f9e27b 8bcc32a6 .config console log report info ci2-linux-4-19 WARNING in mutex_destroy
* Struck through repros no longer work on HEAD.