syzbot


INFO: task hung in blkdev_put

Status: auto-closed as invalid on 2019/08/03 02:42
Reported-by: syzbot+f61fbf8eb33b33ab7b70@syzkaller.appspotmail.com
First crash: 2561d, last: 2138d
Similar bugs (14)
Kernel Title Repro Cause bisect Fix bisect Count Last Reported Patched Status
upstream INFO: task hung in blkdev_put (3) fs 1 1691d 1691d 0/28 auto-closed as invalid on 2020/06/25 13:28
android-49 INFO: task hung in blkdev_put (2) 3 1854d 1873d 0/3 auto-closed as invalid on 2020/03/14 12:22
linux-4.19 INFO: task hung in blkdev_put C error 31 838d 1603d 0/1 upstream: reported C repro on 2020/07/23 21:33
upstream INFO: task hung in blkdev_put udf 320 2133d 2559d 0/28 closed as dup on 2018/11/11 08:29
linux-4.14 INFO: task hung in blkdev_put 2 1916d 2066d 0/1 auto-closed as invalid on 2020/01/12 01:56
linux-5.15 INFO: task hung in blkdev_put origin:upstream C error 5 167d 538d 0/3 upstream: reported C repro on 2023/06/23 01:15
linux-4.14 INFO: task hung in blkdev_put (3) C error 16 787d 1565d 0/1 upstream: reported C repro on 2020/08/30 21:52
upstream INFO: task hung in blkdev_put (4) block C done error 486 275d 1531d 0/28 upstream: reported C repro on 2020/10/03 13:09
android-49 INFO: task hung in blkdev_put 220 2052d 2069d 0/3 auto-closed as invalid on 2019/10/25 08:47
linux-4.14 INFO: task hung in blkdev_put (2) 2 1720d 1758d 0/1 auto-closed as invalid on 2020/07/26 14:38
android-414 INFO: task hung in blkdev_put 119 1838d 2070d 0/1 auto-closed as invalid on 2020/03/30 04:06
android-44 INFO: task hung in blkdev_put (2) 3 1850d 1927d 0/2 auto-closed as invalid on 2020/03/18 19:27
linux-6.1 INFO: task hung in blkdev_put origin:upstream C 210 4d11h 597d 0/3 upstream: reported C repro on 2023/04/25 09:01
upstream INFO: task hung in blkdev_put (2) fs 2 1845d 1891d 0/28 auto-closed as invalid on 2020/02/22 04:07

Sample crash report:
INFO: task syz-executor4:8847 blocked for more than 140 seconds.
      Not tainted 4.4.172+ #13
"echo 0 > /proc/sys/kernel/hung_task_timeout_secs" disables this message.
syz-executor4   D ffff8800a8a177d8 28080  8847   2119 0x80000002
 ffff8800a8a177d8 ffff8800a6300000 6a9952aabebf9fe4 ffff8800a6300000
 0000000000000000 ffff8800a6300800 ffff8801db71f180 ffff8801db71f1a8
 ffff8801db71e898 ffff8801d9275f00 ffff8800a6300000 ffffed0015142001
Call Trace:
 [<ffffffff827095f9>] schedule+0x99/0x1d0 kernel/sched/core.c:3355
 [<ffffffff82709db3>] schedule_preempt_disabled+0x13/0x20 kernel/sched/core.c:3388
 [<ffffffff8270bf12>] __mutex_lock_common kernel/locking/mutex.c:582 [inline]
 [<ffffffff8270bf12>] mutex_lock_nested+0x3c2/0xb80 kernel/locking/mutex.c:621
 [<ffffffff8154f31b>] blkdev_put+0x2b/0x560 fs/block_dev.c:1558
 [<ffffffff8154f8db>] blkdev_close+0x8b/0xb0 fs/block_dev.c:1607
 [<ffffffff8149c566>] __fput+0x246/0x710 fs/file_table.c:208
 [<ffffffff8149cab6>] ____fput+0x16/0x20 fs/file_table.c:244
 [<ffffffff8112f142>] task_work_run+0x202/0x2b0 kernel/task_work.c:115
 [<ffffffff810d8b2a>] exit_task_work include/linux/task_work.h:21 [inline]
 [<ffffffff810d8b2a>] do_exit+0x8ea/0x2a50 kernel/exit.c:755
 [<ffffffff810dee81>] do_group_exit+0x111/0x300 kernel/exit.c:885
 [<ffffffff81100887>] get_signal+0x517/0x1570 kernel/signal.c:2321
 [<ffffffff8100bd4c>] do_signal+0x9c/0x1840 arch/x86/kernel/signal.c:712
 [<ffffffff81003da7>] exit_to_usermode_loop+0x127/0x170 arch/x86/entry/common.c:184
 [<ffffffff8100569b>] prepare_exit_to_usermode arch/x86/entry/common.c:221 [inline]
 [<ffffffff8100569b>] syscall_return_slowpath+0x25b/0x2e0 arch/x86/entry/common.c:286
 [<ffffffff82718761>] int_ret_from_sys_call+0x25/0xa3
1 lock held by syz-executor4/8847:
 #0:  (&bdev->bd_mutex){+.+.+.}, at: [<ffffffff8154f31b>] blkdev_put+0x2b/0x560 fs/block_dev.c:1558
Sending NMI to all CPUs:
NMI backtrace for cpu 0
CPU: 0 PID: 20 Comm: khungtaskd Not tainted 4.4.172+ #13
task: ffff8801da6f4740 task.stack: ffff8800001d0000
RIP: 0010:[<ffffffff8109b617>]  [<ffffffff8109b617>] _flat_send_IPI_mask arch/x86/kernel/apic/apic_flat_64.c:62 [inline]
RIP: 0010:[<ffffffff8109b617>]  [<ffffffff8109b617>] flat_send_IPI_mask+0xf7/0x1b0 arch/x86/kernel/apic/apic_flat_64.c:69
RSP: 0018:ffff8800001d7c88  EFLAGS: 00000046
RAX: 0000000000000000 RBX: 0000000000000c00 RCX: 0000000000000000
RDX: 0000000000000c00 RSI: 0000000000000000 RDI: ffffffffff5fc300
RBP: ffff8800001d7cb8 R08: 0000000000000018 R09: 0000000000000000
R10: 0000000000000001 R11: 0000000000000001 R12: 0000000000000246
R13: 0000000003000000 R14: ffffffff82e5f2e0 R15: 0000000000000002
FS:  0000000000000000(0000) GS:ffff8801db600000(0000) knlGS:0000000000000000
CS:  0010 DS: 0000 ES: 0000 CR0: 0000000080050033
CR2: 0000000000625298 CR3: 00000001d4e82000 CR4: 00000000001606b0
DR0: 0000000000000000 DR1: 0000000000000000 DR2: 0000000000000000
DR3: 0000000000000000 DR6: 00000000fffe0ff0 DR7: 0000000000000400
Stack:
 0000000000000001 ffffffff82e5f2e0 ffffffff831a67c0 fffffbfff0634bd4
 000000000001b6c0 0000000000000008 ffff8800001d7cd8 ffffffff81092bee
 0000000000000008 ffffffff82924260 ffff8800001d7d30 ffffffff81ab7e92
Call Trace:
 [<ffffffff81092bee>] nmi_raise_cpu_backtrace+0x5e/0x80 arch/x86/kernel/apic/hw_nmi.c:33
 [<ffffffff81ab7e92>] nmi_trigger_all_cpu_backtrace.cold+0xa1/0xae lib/nmi_backtrace.c:85
 [<ffffffff81092ca4>] arch_trigger_all_cpu_backtrace+0x14/0x20 arch/x86/kernel/apic/hw_nmi.c:38
 [<ffffffff813b4556>] trigger_all_cpu_backtrace include/linux/nmi.h:44 [inline]
 [<ffffffff813b4556>] check_hung_task kernel/hung_task.c:125 [inline]
 [<ffffffff813b4556>] check_hung_uninterruptible_tasks kernel/hung_task.c:182 [inline]
 [<ffffffff813b4556>] watchdog.cold+0xd3/0xee kernel/hung_task.c:238
 [<ffffffff811340b3>] kthread+0x273/0x310 kernel/kthread.c:211
 [<ffffffff82718a45>] ret_from_fork+0x55/0x80 arch/x86/entry/entry_64.S:537
Code: 00 c3 5f ff 80 e6 10 75 e1 41 c1 e5 18 44 89 2c 25 10 c3 5f ff 44 89 fa 09 da 80 cf 04 41 83 ff 02 0f 44 d3 89 14 25 00 c3 5f ff <41> f7 c4 00 02 00 00 75 1e 4c 89 e7 57 9d 0f 1f 44 00 00 e8 e1 
NMI backtrace for cpu 1
CPU: 1 PID: 0 Comm: swapper/1 Not tainted 4.4.172+ #13
task: ffff8801da6897c0 task.stack: ffff8801da698000
RIP: 0010:[<ffffffff8130942c>]  [<ffffffff8130942c>] __sanitizer_cov_trace_pc+0x4c/0x50 kernel/kcov.c:110
RSP: 0018:ffff8801db707f18  EFLAGS: 00000093
RAX: ffff8801da6897c0 RBX: ffff8801da698000 RCX: 0000000000000000
RDX: 0000000000000000 RSI: ffffffff81b0a7dc RDI: ffffffff8292c000
RBP: ffff8801db707f50 R08: 0000000000000000 R09: 0000000000000000
R10: 0000000000000000 R11: 0000000000000000 R12: 0000000000000001
R13: ffffffff8292bfc0 R14: ffffffff8292c000 R15: ffff8801da698000
FS:  0000000000000000(0000) GS:ffff8801db700000(0000) knlGS:0000000000000000
CS:  0010 DS: 0000 ES: 0000 CR0: 0000000080050033
CR2: 0000000001f0c000 CR3: 00000001d760a000 CR4: 00000000001606b0
DR0: 0000000000000000 DR1: 0000000000000000 DR2: 0000000000000000
DR3: 0000000000000000 DR6: 00000000fffe0ff0 DR7: 0000000000000400
Stack:
 ffffffff81b0a7dc ffff8801db7181e0 ffff8801da698000 0000000000000001
 ffff8801da6a0000 dffffc0000000000 ffff8801da698000 ffff8801db707f60
 ffffffff81b0a9dc ffff8801db707f90 ffffffff8116ece7 0000000000000000
Call Trace:
 [<ffffffff81b0a9dc>] debug_smp_processor_id+0x1c/0x20 lib/smp_processor_id.c:56
 [<ffffffff8116ece7>] scheduler_ipi+0x57/0x370 kernel/sched/core.c:1849
 [<ffffffff810848c4>] __smp_reschedule_interrupt arch/x86/kernel/smp.c:257 [inline]
 [<ffffffff810848c4>] smp_reschedule_interrupt+0x64/0x80 arch/x86/kernel/smp.c:263
 [<ffffffff8271a59d>] reschedule_interrupt+0x9d/0xb0 arch/x86/entry/entry_64.S:791
 <EOI> d [<ffffffff810a1dc2>] ? native_safe_halt+0x2/0x10 arch/x86/include/asm/irqflags.h:52
 [<ffffffff81022d50>] arch_cpu_idle+0x10/0x20 arch/x86/kernel/process.c:423
 [<ffffffff811eb2b8>] default_idle_call+0x48/0x70 kernel/sched/idle.c:93
 [<ffffffff811eba91>] cpuidle_idle_call kernel/sched/idle.c:157 [inline]
 [<ffffffff811eba91>] cpu_idle_loop kernel/sched/idle.c:253 [inline]
 [<ffffffff811eba91>] cpu_startup_entry+0x6d1/0x810 kernel/sched/idle.c:301
 [<ffffffff8108719d>] start_secondary+0x31d/0x410 arch/x86/kernel/smpboot.c:245
Code: 90 50 12 00 00 83 fa 02 75 20 48 8b 88 58 12 00 00 8b 80 54 12 00 00 48 8b 11 48 83 c2 01 48 39 d0 76 07 48 89 34 d1 48 89 11 5d <c3> 0f 1f 00 55 ba 58 00 00 00 48 89 e5 41 55 49 89 fd 48 8b 3d 

Crashes (26):
Time Kernel Commit Syzkaller Config Log Report Syz repro C repro VM info Assets (help?) Manager Title
2019/02/04 02:41 https://android.googlesource.com/kernel/common android-4.4 b3e9e81ee068 c198d5dd .config console log report ci-android-44-kasan-gce
2019/01/30 09:06 https://android.googlesource.com/kernel/common android-4.4 b3e9e81ee068 aa432daf .config console log report ci-android-44-kasan-gce
2018/04/01 09:48 https://android.googlesource.com/kernel/common android-4.4 38f41ec1cb31 0174c6c8 .config console log report ci-android-44-kasan-gce
2018/03/25 01:43 https://android.googlesource.com/kernel/common android-4.4 d63fdf61a4dc 2e9d9054 .config console log report ci-android-44-kasan-gce
2018/03/13 12:44 https://android.googlesource.com/kernel/common android-4.4 d63fdf61a4dc 08dacaa0 .config console log report ci-android-44-kasan-gce
2018/03/07 16:08 https://android.googlesource.com/kernel/common android-4.4 d63fdf61a4dc a5e76540 .config console log report ci-android-44-kasan-gce
2018/01/31 14:37 https://android.googlesource.com/kernel/common android-4.4 fe09418d6f88 02553e22 .config console log report ci-android-44-kasan-gce
2018/01/27 19:37 https://android.googlesource.com/kernel/common android-4.4 202e079275c6 08146b1a .config console log report ci-android-44-kasan-gce
2018/01/25 09:08 https://android.googlesource.com/kernel/common android-4.4 e70c132b2dac 6b2a715e .config console log report ci-android-44-kasan-gce
2018/01/19 21:34 https://android.googlesource.com/kernel/common android-4.4 d96d95dd1d8b fbbdcd92 .config console log report ci-android-44-kasan-gce
2018/01/16 12:45 https://android.googlesource.com/kernel/common android-4.4 c2f631bf4969 4198e588 .config console log report ci-android-44-kasan-gce
2017/12/22 05:51 https://android.googlesource.com/kernel/common android-4.4 610c835673f3 81fe66b4 .config console log report ci-android-44-kasan-gce-386
2017/12/20 18:52 https://android.googlesource.com/kernel/common android-4.4 79f138ac8c95 90a46995 .config console log report ci-android-44-kasan-gce-386
2017/12/17 02:44 https://android.googlesource.com/kernel/common android-4.4 dcfa5fe36a67 b6f0c91b .config console log report ci-android-44-kasan-gce
2017/12/08 20:46 https://android.googlesource.com/kernel/common android-4.4 ed884ebd80a9 5ad0ce95 .config console log report ci-android-44-kasan-gce
2018/04/26 05:52 https://android.googlesource.com/kernel/common android-4.4 bd23e3af1765 73417389 .config console log report ci-android-44-kasan-gce-386
2018/04/23 13:34 https://android.googlesource.com/kernel/common android-4.4 38f41ec1cb31 20941ab3 .config console log report ci-android-44-kasan-gce-386
2018/04/22 12:18 https://android.googlesource.com/kernel/common android-4.4 38f41ec1cb31 d23fcf6c .config console log report ci-android-44-kasan-gce-386
2018/04/10 04:22 https://android.googlesource.com/kernel/common android-4.4 38f41ec1cb31 b9f65507 .config console log report ci-android-44-kasan-gce-386
2018/04/09 15:44 https://android.googlesource.com/kernel/common android-4.4 38f41ec1cb31 f13fb445 .config console log report ci-android-44-kasan-gce-386
2018/04/09 11:55 https://android.googlesource.com/kernel/common android-4.4 38f41ec1cb31 f13fb445 .config console log report ci-android-44-kasan-gce-386
2018/04/04 07:43 https://android.googlesource.com/kernel/common android-4.4 38f41ec1cb31 676bd07e .config console log report ci-android-44-kasan-gce-386
2018/04/02 08:45 https://android.googlesource.com/kernel/common android-4.4 38f41ec1cb31 dc889257 .config console log report ci-android-44-kasan-gce-386
2018/04/01 14:53 https://android.googlesource.com/kernel/common android-4.4 38f41ec1cb31 0a78e248 .config console log report ci-android-44-kasan-gce-386
2018/02/02 15:59 https://android.googlesource.com/kernel/common android-4.4 a81d32264721 826b35d6 .config console log report ci-android-44-kasan-gce-386
2018/01/30 15:13 https://android.googlesource.com/kernel/common android-4.4 962d1f3fe2f4 a899be78 .config console log report ci-android-44-kasan-gce-386
* Struck through repros no longer work on HEAD.