syzbot


INFO: task hung in blkdev_put (2)

Status: auto-closed as invalid on 2020/02/22 04:07
Subsystems: fs
[Documentation on labels]
First crash: 1660d, last: 1615d
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 1460d 1460d 0/26 auto-closed as invalid on 2020/06/25 13:28
android-49 INFO: task hung in blkdev_put (2) 3 1623d 1643d 0/3 auto-closed as invalid on 2020/03/14 12:22
linux-4.19 INFO: task hung in blkdev_put C error 31 607d 1372d 0/1 upstream: reported C repro on 2020/07/23 21:33
upstream INFO: task hung in blkdev_put udf 320 1902d 2328d 0/26 closed as dup on 2018/11/11 08:29
linux-4.14 INFO: task hung in blkdev_put 2 1686d 1835d 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 4 31d 308d 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 556d 1334d 0/1 upstream: reported C repro on 2020/08/30 21:52
upstream INFO: task hung in blkdev_put (4) block C done 486 44d 1300d 0/26 upstream: reported C repro on 2020/10/03 13:09
android-49 INFO: task hung in blkdev_put 220 1821d 1838d 0/3 auto-closed as invalid on 2019/10/25 08:47
linux-4.14 INFO: task hung in blkdev_put (2) 2 1489d 1527d 0/1 auto-closed as invalid on 2020/07/26 14:38
android-414 INFO: task hung in blkdev_put 119 1608d 1840d 0/1 auto-closed as invalid on 2020/03/30 04:06
android-44 INFO: task hung in blkdev_put 26 1908d 1838d 0/2 auto-closed as invalid on 2019/08/03 02:42
android-44 INFO: task hung in blkdev_put (2) 3 1619d 1696d 0/2 auto-closed as invalid on 2020/03/18 19:27
linux-6.1 INFO: task hung in blkdev_put origin:upstream C 89 3d12h 366d 0/3 upstream: reported C repro on 2023/04/25 09:01

Sample crash report:
INFO: task syz-executor.0:32485 blocked for more than 143 seconds.
      Not tainted 5.4.0-rc8-syzkaller #0
"echo 0 > /proc/sys/kernel/hung_task_timeout_secs" disables this message.
syz-executor.0  D27984 32485   8051 0x00004006
Call Trace:
 context_switch kernel/sched/core.c:3384 [inline]
 __schedule+0x7b7/0xc30 kernel/sched/core.c:4078
 schedule+0x131/0x1e0 kernel/sched/core.c:4145
 schedule_preempt_disabled+0x13/0x20 kernel/sched/core.c:4204
 __mutex_lock_common+0x1411/0x2e20 kernel/locking/mutex.c:1033
 __mutex_lock kernel/locking/mutex.c:1103 [inline]
 mutex_lock_nested+0x1b/0x30 kernel/locking/mutex.c:1118
 blkdev_put+0x34/0x3b0 fs/block_dev.c:1887
 blkdev_close+0x7b/0xa0 fs/block_dev.c:1936
 __fput+0x2e4/0x740 fs/file_table.c:280
 ____fput+0x15/0x20 fs/file_table.c:313
 task_work_run+0x17e/0x1b0 kernel/task_work.c:113
 get_signal+0x1ca8/0x1d60 kernel/signal.c:2528
 do_signal+0x37/0x640 arch/x86/kernel/signal.c:815
 exit_to_usermode_loop arch/x86/entry/common.c:159 [inline]
 prepare_exit_to_usermode+0x303/0x580 arch/x86/entry/common.c:194
 syscall_return_slowpath+0x113/0x4a0 arch/x86/entry/common.c:274
 do_syscall_64+0x11f/0x1c0 arch/x86/entry/common.c:300
 entry_SYSCALL_64_after_hwframe+0x49/0xbe
RIP: 0033:0x45a639
Code: 03 00 00 48 29 f0 48 3d f8 12 00 00 76 7d 48 81 ec 08 10 00 00 48 89 ac 24 00 10 00 00 48 8d ac 24 00 10 00 00 48 8b 59 20 48 <85> db 75 67 48 8b b4 24 20 10 00 00 8b 8c 24 28 10 00 00 48 89 e7
RSP: 002b:00007f186af88c78 EFLAGS: 00000246 ORIG_RAX: 0000000000000010
RAX: fffffffffffffe00 RBX: 0000000000000002 RCX: 000000000045a639
RDX: 0000000000000000 RSI: 000000000000ab03 RDI: 0000000000000003
RBP: 000000000075bf20 R08: 0000000000000000 R09: 0000000000000000
R10: 0000000000000000 R11: 0000000000000246 R12: 00007f186af896d4
R13: 00000000004c425a R14: 00000000004d8878 R15: 00000000ffffffff
INFO: task syz-executor.0:32553 blocked for more than 143 seconds.
      Not tainted 5.4.0-rc8-syzkaller #0
"echo 0 > /proc/sys/kernel/hung_task_timeout_secs" disables this message.
syz-executor.0  D25272 32553   8051 0x00004004
Call Trace:
 context_switch kernel/sched/core.c:3384 [inline]
 __schedule+0x7b7/0xc30 kernel/sched/core.c:4078
 schedule+0x131/0x1e0 kernel/sched/core.c:4145
 io_schedule+0x8b/0x100 kernel/sched/core.c:5789
 wait_on_page_bit_common+0x918/0xc90 mm/filemap.c:1175
 wait_on_page_bit mm/filemap.c:1224 [inline]
 wait_on_page_locked include/linux/pagemap.h:527 [inline]
 wait_on_page_read mm/filemap.c:2768 [inline]
 do_read_cache_page+0xa11/0xcb0 mm/filemap.c:2811
 read_cache_page+0x4d/0x70 mm/filemap.c:2895
 read_mapping_page include/linux/pagemap.h:396 [inline]
 read_dev_sector+0x6f/0x270 block/partition-generic.c:667
 read_part_sector block/partitions/check.h:38 [inline]
 adfspart_check_ICS+0xbd/0xa70 block/partitions/acorn.c:361
 check_partition+0x368/0x640 block/partitions/check.c:167
 rescan_partitions+0x1a8/0xec0 block/partition-generic.c:531
 __blkdev_get+0xd28/0x12f0 fs/block_dev.c:1637
 blkdev_get+0x34b/0x3f0 fs/block_dev.c:1707
 blkdev_open+0x1e3/0x2c0 fs/block_dev.c:1846
 do_dentry_open+0x740/0x10c0 fs/open.c:797
 vfs_open+0x73/0x80 fs/open.c:914
 do_last fs/namei.c:3408 [inline]
 path_openat+0x1397/0x4420 fs/namei.c:3525
 do_filp_open+0x192/0x3d0 fs/namei.c:3555
 do_sys_open+0x29f/0x560 fs/open.c:1097
 __do_sys_open fs/open.c:1115 [inline]
 __se_sys_open fs/open.c:1110 [inline]
 __x64_sys_open+0x87/0x90 fs/open.c:1110
 do_syscall_64+0xf7/0x1c0 arch/x86/entry/common.c:290
 entry_SYSCALL_64_after_hwframe+0x49/0xbe
RIP: 0033:0x4143d1
Code: ff 4d 29 e9 48 83 fb 01 0f 85 f4 00 00 00 4d 8d 51 07 49 c1 ea 03 4d 89 cb 49 83 e1 07 49 89 d4 4d 29 d4 4d 89 e2 49 f7 c3 07 <00> 00 00 0f 84 c4 00 00 00 45 0f b6 12 49 8d 49 f8 48 f7 d9 49 d3
RSP: 002b:00007f186af67bb0 EFLAGS: 00000293 ORIG_RAX: 0000000000000002
RAX: ffffffffffffffda RBX: 0000000000000002 RCX: 00000000004143d1
RDX: 00007f186af67bdf RSI: 0000000000000002 RDI: 00007f186af67bd0
RBP: 000000000075bfc8 R08: 0000000000000000 R09: 000000000000000f
R10: 0000000000000004 R11: 0000000000000293 R12: 00007f186af686d4
R13: 00000000004ca597 R14: 00000000004e2628 R15: 00000000ffffffff

Showing all locks held in the system:
1 lock held by khungtaskd/1072:
 #0: ffffffff888d3e40 (rcu_read_lock){....}, at: rcu_lock_acquire+0x4/0x30 include/linux/rcupdate.h:207
1 lock held by rsyslogd/7924:
 #0: ffff8880961578a0 (&f->f_pos_lock){+.+.}, at: __fdget_pos+0x243/0x2e0 fs/file.c:801
2 locks held by getty/8014:
 #0: ffff8880a005c090 (&tty->ldisc_sem){++++}, at: tty_ldisc_ref_wait+0x25/0x70 drivers/tty/tty_ldisc.c:272
 #1: ffffc90005f352e0 (&ldata->atomic_read_lock){+.+.}, at: n_tty_read+0x221/0x1b00 drivers/tty/n_tty.c:2156
2 locks held by getty/8015:
 #0: ffff8880946ca090 (&tty->ldisc_sem){++++}, at: tty_ldisc_ref_wait+0x25/0x70 drivers/tty/tty_ldisc.c:272
 #1: ffffc90005f572e0 (&ldata->atomic_read_lock){+.+.}, at: n_tty_read+0x221/0x1b00 drivers/tty/n_tty.c:2156
2 locks held by getty/8016:
 #0: ffff8880a739f090 (&tty->ldisc_sem){++++}, at: tty_ldisc_ref_wait+0x25/0x70 drivers/tty/tty_ldisc.c:272
 #1: ffffc90005f4f2e0 (&ldata->atomic_read_lock){+.+.}, at: n_tty_read+0x221/0x1b00 drivers/tty/n_tty.c:2156
2 locks held by getty/8017:
 #0: ffff8880a7bac090 (&tty->ldisc_sem){++++}, at: tty_ldisc_ref_wait+0x25/0x70 drivers/tty/tty_ldisc.c:272
 #1: ffffc90005f532e0 (&ldata->atomic_read_lock){+.+.}, at: n_tty_read+0x221/0x1b00 drivers/tty/n_tty.c:2156
2 locks held by getty/8018:
 #0: ffff88809346d090 (&tty->ldisc_sem){++++}, at: tty_ldisc_ref_wait+0x25/0x70 drivers/tty/tty_ldisc.c:272
 #1: ffffc90005f492e0 (&ldata->atomic_read_lock){+.+.}, at: n_tty_read+0x221/0x1b00 drivers/tty/n_tty.c:2156
2 locks held by getty/8019:
 #0: ffff88809481d090 (&tty->ldisc_sem){++++}, at: tty_ldisc_ref_wait+0x25/0x70 drivers/tty/tty_ldisc.c:272
 #1: ffffc90005f5b2e0 (&ldata->atomic_read_lock){+.+.}, at: n_tty_read+0x221/0x1b00 drivers/tty/n_tty.c:2156
2 locks held by getty/8020:
 #0: ffff88809a836090 (&tty->ldisc_sem){++++}, at: tty_ldisc_ref_wait+0x25/0x70 drivers/tty/tty_ldisc.c:272
 #1: ffffc90005f292e0 (&ldata->atomic_read_lock){+.+.}, at: n_tty_read+0x221/0x1b00 drivers/tty/n_tty.c:2156
1 lock held by syz-executor.0/32485:
 #0: ffff8880900d13f8 (&bdev->bd_mutex){+.+.}, at: blkdev_put+0x34/0x3b0 fs/block_dev.c:1887
1 lock held by syz-executor.0/32553:
 #0: ffff8880900d13f8 (&bdev->bd_mutex){+.+.}, at: __blkdev_get+0x1de/0x12f0 fs/block_dev.c:1553

=============================================

NMI backtrace for cpu 1
CPU: 1 PID: 1072 Comm: khungtaskd Not tainted 5.4.0-rc8-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+0x1fb/0x318 lib/dump_stack.c:118
 nmi_cpu_backtrace+0xaf/0x1a0 lib/nmi_backtrace.c:101
 nmi_trigger_cpumask_backtrace+0x174/0x290 lib/nmi_backtrace.c:62
 arch_trigger_cpumask_backtrace+0x10/0x20 arch/x86/kernel/apic/hw_nmi.c:38
 trigger_all_cpu_backtrace+0x17/0x20 include/linux/nmi.h:146
 check_hung_uninterruptible_tasks kernel/hung_task.c:205 [inline]
 watchdog+0xbb9/0xbd0 kernel/hung_task.c:289
 kthread+0x332/0x350 kernel/kthread.c:255
 ret_from_fork+0x24/0x30 arch/x86/entry/entry_64.S:352
Sending NMI from CPU 1 to CPUs 0:
NMI backtrace for cpu 0
CPU: 0 PID: 8190 Comm: kworker/u4:5 Not tainted 5.4.0-rc8-syzkaller #0
Hardware name: Google Google Compute Engine/Google Compute Engine, BIOS Google 01/01/2011
Workqueue: bat_events batadv_nc_worker
RIP: 0010:hlock_class kernel/locking/lockdep.c:163 [inline]
RIP: 0010:__lock_acquire+0xbe9/0x1be0 kernel/locking/lockdep.c:3952
Code: 08 8b 18 81 e3 ff 1f 00 00 48 89 d8 48 c1 e8 06 48 8d 3c c5 e0 14 5e 89 be 08 00 00 00 e8 ff dc 53 00 48 0f a3 1d b7 66 05 08 <72> 37 48 c7 c0 60 ed 9e 89 48 c1 e8 03 48 ba 00 00 00 00 00 fc ff
RSP: 0018:ffff8880558f7a70 EFLAGS: 00000057
RAX: 0000000000000001 RBX: 0000000000000029 RCX: ffffffff8158ae21
RDX: 0000000000000000 RSI: 0000000000000008 RDI: ffffffff895e14e0
RBP: ffff8880558f7bc8 R08: dffffc0000000000 R09: fffffbfff12bc29d
R10: fffffbfff12bc29d R11: 0000000000000000 R12: 1deecde6777f2100
R13: ffff8880586bc990 R14: ffffffff8920cfa0 R15: 0000000000000000
FS:  0000000000000000(0000) GS:ffff8880aea00000(0000) knlGS:0000000000000000
CS:  0010 DS: 0000 ES: 0000 CR0: 0000000080050033
CR2: ffffffffff600400 CR3: 000000008e1db000 CR4: 00000000001406f0
DR0: 0000000000000000 DR1: 0000000000000000 DR2: 0000000000000000
DR3: 0000000000000000 DR6: 00000000fffe0ff0 DR7: 0000000000000400
Call Trace:
 lock_acquire+0x158/0x250 kernel/locking/lockdep.c:4487
 rcu_lock_acquire+0x2e/0x40 include/linux/rcupdate.h:208
 rcu_read_lock include/linux/rcupdate.h:599 [inline]
 batadv_nc_purge_orig_hash net/batman-adv/network-coding.c:407 [inline]
 batadv_nc_worker+0xdc/0x600 net/batman-adv/network-coding.c:718
 process_one_work+0x7ef/0x10e0 kernel/workqueue.c:2269
 worker_thread+0xc01/0x1630 kernel/workqueue.c:2415
 kthread+0x332/0x350 kernel/kthread.c:255
 ret_from_fork+0x24/0x30 arch/x86/entry/entry_64.S:352

Crashes (2):
Time Kernel Commit Syzkaller Config Log Report Syz repro C repro VM info Assets (help?) Manager Title
2019/11/24 04:01 upstream 6b8a79467876 598ca6c8 .config console log report ci-upstream-kasan-gce-smack-root
2019/10/09 07:48 upstream d5001955c281 b1ebbfef .config console log report ci-upstream-kasan-gce-selinux-root
* Struck through repros no longer work on HEAD.