syzbot


WARNING in mutex_destroy

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

Sample crash report:
UBIFS error (pid: 21523): cannot open "/dev/loop1", error -22
------------[ cut here ]------------
DEBUG_LOCKS_WARN_ON(mutex_is_locked(lock))
WARNING: CPU: 0 PID: 21678 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: 21678 Comm: syz-executor.1 Not tainted 4.19.196-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 9f 65 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 24 81 a7 06 <0f> 0b e9 49 ff ff ff 48 c7 c7 60 07 24 8d e8 61 e7 4d 00 e9 2e ff
RSP: 0018:ffff88804a76fde0 EFLAGS: 00010286
RAX: 0000000000000000 RBX: ffff88809d611c80 RCX: 0000000000000000
RDX: 0000000000016fd8 RSI: ffffffff814dfc91 RDI: ffffed10094edfae
RBP: ffff88809d611b00 R08: 0000000000000000 R09: 0000000000003ec9
R10: 0000000000000006 R11: ffffffff8c66201b R12: 0000000000000000
R13: ffff88809d611c80 R14: ffff8880a1f04e88 R15: ffff88823b297820
 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:0x4665d9
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:00007fa716b0e188 EFLAGS: 00000246 ORIG_RAX: 0000000000000010
RAX: 0000000000000000 RBX: 000000000056c0f0 RCX: 00000000004665d9
RDX: 0000000020000040 RSI: 00000000c00464b4 RDI: 0000000000000006
RBP: 00000000004bfcb9 R08: 0000000000000000 R09: 0000000000000000
R10: 0000000000000000 R11: 0000000000000246 R12: 000000000056c0f0
R13: 00007fff936b264f R14: 00007fa716b0e300 R15: 0000000000022000
Kernel Offset: disabled
Rebooting in 86400 seconds..

Crashes (31):
Time Kernel Commit Syzkaller Config Log Report Syz repro C repro VM info Assets (help?) Manager Title
2021/07/10 14:30 linux-4.19.y 9f84340f012e 8f5a7b8c .config console log report info ci2-linux-4-19 WARNING in mutex_destroy
2021/06/04 10:59 linux-4.19.y 1722257b8ece 966a236b .config console log report info ci2-linux-4-19 WARNING in mutex_destroy
2021/05/14 04:19 linux-4.19.y 3c8c23092588 8bdd5343 .config console log report info ci2-linux-4-19 WARNING in mutex_destroy
2021/05/13 15:53 linux-4.19.y 3c8c23092588 ecb594cb .config console log report info ci2-linux-4-19 WARNING in mutex_destroy
2021/05/06 13:30 linux-4.19.y 97a8651cadce 06c27ff5 .config console log report info ci2-linux-4-19 WARNING in mutex_destroy
2021/05/04 14:14 linux-4.19.y 97a8651cadce 06c27ff5 .config console log report info ci2-linux-4-19 WARNING in mutex_destroy
2021/04/23 00:42 linux-4.19.y 2965db2e004c 590921a5 .config console log report info ci2-linux-4-19 WARNING in mutex_destroy
2021/04/21 11:05 linux-4.19.y 2965db2e004c 95777977 .config console log report info ci2-linux-4-19 WARNING in mutex_destroy
2021/04/07 12:19 linux-4.19.y b4454811f122 6a81331a .config console log report info ci2-linux-4-19 WARNING in mutex_destroy
2021/03/07 21:29 linux-4.19.y 2cae3e25b706 09fbf400 .config console log report info ci2-linux-4-19 WARNING in mutex_destroy
2021/03/06 07:01 linux-4.19.y dfb571610ba3 e4b4d570 .config console log report info ci2-linux-4-19 WARNING in mutex_destroy
2021/02/19 16:12 linux-4.19.y 255b58a2b3af f689d40a .config console log report info ci2-linux-4-19 WARNING in mutex_destroy
2021/02/17 08:30 linux-4.19.y 811218eceeaa 052f8d9f .config console log report info ci2-linux-4-19 WARNING in mutex_destroy
2021/02/01 14:40 linux-4.19.y 811218eceeaa e6b95f32 .config console log report info ci2-linux-4-19 WARNING in mutex_destroy
2021/01/31 20:47 linux-4.19.y 811218eceeaa fc9fd31e .config console log report info ci2-linux-4-19 WARNING in mutex_destroy
2021/01/31 08:26 linux-4.19.y 811218eceeaa fc9fd31e .config console log report info ci2-linux-4-19 WARNING in mutex_destroy
2021/01/30 14:46 linux-4.19.y 811218eceeaa fc9fd31e .config console log report info ci2-linux-4-19 WARNING in mutex_destroy
2021/01/26 18:02 linux-4.19.y 2263955bf7e7 55a7d4df .config console log report info ci2-linux-4-19 WARNING in mutex_destroy
2021/01/06 09:31 linux-4.19.y 3207316b3bee b1c228e1 .config console log report info ci2-linux-4-19
2020/11/25 04:28 linux-4.19.y 0c88e405c97e 1a1f4bd8 .config console log report info ci2-linux-4-19
2020/10/28 19:36 linux-4.19.y ad326970d25c f24824d3 .config console log report info ci2-linux-4-19
2020/10/28 17:01 linux-4.19.y ad326970d25c f24824d3 .config console log report info ci2-linux-4-19
2020/10/21 09:40 linux-4.19.y ad326970d25c e761439e .config console log report info ci2-linux-4-19
2020/10/16 16:03 linux-4.19.y a1b977b49b66 6e262c73 .config console log report info ci2-linux-4-19
2020/10/15 22:14 linux-4.19.y a1b977b49b66 6e262c73 .config console log report info ci2-linux-4-19
2020/10/15 08:14 linux-4.19.y a1b977b49b66 63869021 .config console log report info ci2-linux-4-19
2020/10/07 08:26 linux-4.19.y a1b977b49b66 1880b4a9 .config console log report info ci2-linux-4-19
2020/10/05 21:35 linux-4.19.y b09c34517e1a 1880b4a9 .config console log report info ci2-linux-4-19
2020/10/01 21:10 linux-4.19.y b09c34517e1a 9602ddf4 .config console log report info ci2-linux-4-19
2020/09/29 01:39 linux-4.19.y 10ad6cfd5736 1b88c6d5 .config console log report info ci2-linux-4-19
2020/09/24 12:07 linux-4.19.y d09b80172c22 54289b08 .config console log report info ci2-linux-4-19
* Struck through repros no longer work on HEAD.