syzbot
INFO: task hung in blkdev_put
Status:
closed as dup on 2018/11/11 08:29
Subsystems:
udf
[Documentation on labels]
Reported-by: syzbot+a444b4083d33277c6e9b4605faf0a79773e29cc5@syzkaller.appspotmail.com
First crash: 3158d, last: 2722d
Sample crash report:
team0 (unregistering): Port device team_slave_1 removed
team0 (unregistering): Port device team_slave_0 removed
bond0 (unregistering): Releasing backup interface bond_slave_1
bond0 (unregistering): Releasing backup interface bond_slave_0
bond0 (unregistering): Released all slaves
INFO: task blkid:26300 blocked for more than 140 seconds.
Not tainted 5.0.0-rc5+ #65
"echo 0 > /proc/sys/kernel/hung_task_timeout_secs" disables this message.
blkid D26848 26300 16619 0x00000004
Call Trace:
context_switch kernel/sched/core.c:2844 [inline]
__schedule+0x817/0x1cc0 kernel/sched/core.c:3485
schedule+0x92/0x180 kernel/sched/core.c:3529
schedule_preempt_disabled+0x13/0x20 kernel/sched/core.c:3587
__mutex_lock_common kernel/locking/mutex.c:1002 [inline]
__mutex_lock+0x726/0x1310 kernel/locking/mutex.c:1072
mutex_lock_nested+0x16/0x20 kernel/locking/mutex.c:1087
blkdev_put+0x34/0x560 fs/block_dev.c:1847
blkdev_close+0x8b/0xb0 fs/block_dev.c:1896
__fput+0x2df/0x8d0 fs/file_table.c:278
____fput+0x16/0x20 fs/file_table.c:309
task_work_run+0x14a/0x1c0 kernel/task_work.c:113
tracehook_notify_resume include/linux/tracehook.h:188 [inline]
exit_to_usermode_loop+0x273/0x2c0 arch/x86/entry/common.c:166
prepare_exit_to_usermode arch/x86/entry/common.c:197 [inline]
syscall_return_slowpath arch/x86/entry/common.c:268 [inline]
do_syscall_64+0x52d/0x610 arch/x86/entry/common.c:293
entry_SYSCALL_64_after_hwframe+0x49/0xbe
RIP: 0033:0x7f708128c2b0
Code: Bad RIP value.
RSP: 002b:00007ffde3b32c98 EFLAGS: 00000246 ORIG_RAX: 0000000000000003
RAX: 0000000000000000 RBX: 00007f7081564d04 RCX: 00007f708128c2b0
RDX: 00007f7081542df0 RSI: 0000000000000017 RDI: 0000000000000003
RBP: 0000000000000000 R08: 0000000000000001 R09: 0000000000aa5118
R10: 0000000000000000 R11: 0000000000000246 R12: 0000000000aa5030
R13: 0000000000000000 R14: 0000000000000003 R15: 0000000000000002
INFO: task syz-executor.3:26302 blocked for more than 140 seconds.
Not tainted 5.0.0-rc5+ #65
"echo 0 > /proc/sys/kernel/hung_task_timeout_secs" disables this message.
syz-executor.3 D27088 26302 25525 0x00000004
Call Trace:
context_switch kernel/sched/core.c:2844 [inline]
__schedule+0x817/0x1cc0 kernel/sched/core.c:3485
schedule+0x92/0x180 kernel/sched/core.c:3529
__rwsem_down_read_failed_common kernel/locking/rwsem-xadd.c:287 [inline]
rwsem_down_read_failed+0x213/0x420 kernel/locking/rwsem-xadd.c:304
call_rwsem_down_read_failed+0x18/0x30 arch/x86/lib/rwsem.S:94
__down_read arch/x86/include/asm/rwsem.h:83 [inline]
down_read+0x49/0x90 kernel/locking/rwsem.c:26
__get_super.part.0+0x203/0x2e0 fs/super.c:699
__get_super include/linux/spinlock.h:329 [inline]
get_super+0x2e/0x50 fs/super.c:728
fsync_bdev+0x19/0xd0 fs/block_dev.c:506
invalidate_partition+0x36/0x60 block/genhd.c:1579
drop_partitions block/partition-generic.c:443 [inline]
rescan_partitions+0xef/0xa20 block/partition-generic.c:516
__blkdev_reread_part+0x1a2/0x230 block/ioctl.c:173
blkdev_reread_part+0x27/0x40 block/ioctl.c:193
loop_reread_partitions+0x1c/0x40 drivers/block/loop.c:633
loop_set_status+0xe57/0x1380 drivers/block/loop.c:1282
loop_set_status64+0xc2/0x120 drivers/block/loop.c:1402
lo_ioctl+0x43b/0x20d0 drivers/block/loop.c:1545
__blkdev_driver_ioctl block/ioctl.c:303 [inline]
blkdev_ioctl+0xee8/0x1c40 block/ioctl.c:605
block_ioctl+0xee/0x130 fs/block_dev.c:1914
vfs_ioctl fs/ioctl.c:46 [inline]
file_ioctl fs/ioctl.c:509 [inline]
do_vfs_ioctl+0xd6e/0x1390 fs/ioctl.c:696
ksys_ioctl+0xab/0xd0 fs/ioctl.c:713
__do_sys_ioctl fs/ioctl.c:720 [inline]
__se_sys_ioctl fs/ioctl.c:718 [inline]
__x64_sys_ioctl+0x73/0xb0 fs/ioctl.c:718
do_syscall_64+0x103/0x610 arch/x86/entry/common.c:290
entry_SYSCALL_64_after_hwframe+0x49/0xbe
RIP: 0033:0x457ca7
Code: Bad RIP value.
RSP: 002b:00007f4f2136aa18 EFLAGS: 00000202 ORIG_RAX: 0000000000000010
RAX: ffffffffffffffda RBX: 00007f4f2136b6d4 RCX: 0000000000457ca7
RDX: 00007f4f2136aab0 RSI: 0000000000004c04 RDI: 0000000000000005
RBP: 0000000000000001 R08: 0000000000000000 R09: 000000000000000a
R10: 0000000000000075 R11: 0000000000000202 R12: 00007f4f2136b6d4
R13: 0000000000000004 R14: 0000000000000005 R15: 0000000000000001
Showing all locks held in the system:
1 lock held by khungtaskd/1040:
#0: 000000008cc7c882 (rcu_read_lock){....}, at: debug_show_all_locks+0x5f/0x27e kernel/locking/lockdep.c:4389
1 lock held by rsyslogd/7411:
#0: 0000000008428165 (&f->f_pos_lock){+.+.}, at: __fdget_pos+0xee/0x110 fs/file.c:795
2 locks held by getty/7523:
#0: 0000000037064879 (&tty->ldisc_sem){++++}, at: ldsem_down_read+0x33/0x40 drivers/tty/tty_ldsem.c:341
#1: 000000006920e232 (&ldata->atomic_read_lock){+.+.}, at: n_tty_read+0x232/0x1b70 drivers/tty/n_tty.c:2154
2 locks held by getty/7524:
#0: 00000000a8c5ec47 (&tty->ldisc_sem){++++}, at: ldsem_down_read+0x33/0x40 drivers/tty/tty_ldsem.c:341
#1: 00000000e0377e04 (&ldata->atomic_read_lock){+.+.}, at: n_tty_read+0x232/0x1b70 drivers/tty/n_tty.c:2154
2 locks held by getty/7525:
#0: 0000000029b80dd9 (&tty->ldisc_sem){++++}, at: ldsem_down_read+0x33/0x40 drivers/tty/tty_ldsem.c:341
#1: 0000000061010b18 (&ldata->atomic_read_lock){+.+.}, at: n_tty_read+0x232/0x1b70 drivers/tty/n_tty.c:2154
2 locks held by getty/7526:
#0: 000000000ed0f017 (&tty->ldisc_sem){++++}, at: ldsem_down_read+0x33/0x40 drivers/tty/tty_ldsem.c:341
#1: 000000003bff5d1d (&ldata->atomic_read_lock){+.+.}, at: n_tty_read+0x232/0x1b70 drivers/tty/n_tty.c:2154
2 locks held by getty/7527:
#0: 00000000400c980c (&tty->ldisc_sem){++++}, at: ldsem_down_read+0x33/0x40 drivers/tty/tty_ldsem.c:341
#1: 00000000624b7484 (&ldata->atomic_read_lock){+.+.}, at: n_tty_read+0x232/0x1b70 drivers/tty/n_tty.c:2154
2 locks held by getty/7528:
#0: 000000003f7fdf3c (&tty->ldisc_sem){++++}, at: ldsem_down_read+0x33/0x40 drivers/tty/tty_ldsem.c:341
#1: 0000000008edd4b5 (&ldata->atomic_read_lock){+.+.}, at: n_tty_read+0x232/0x1b70 drivers/tty/n_tty.c:2154
2 locks held by getty/7529:
#0: 0000000095e3e19a (&tty->ldisc_sem){++++}, at: ldsem_down_read+0x33/0x40 drivers/tty/tty_ldsem.c:341
#1: 000000002fd39548 (&ldata->atomic_read_lock){+.+.}, at: n_tty_read+0x232/0x1b70 drivers/tty/n_tty.c:2154
1 lock held by syz-executor.1/26297:
1 lock held by blkid/26300:
#0: 00000000f60f9464 (&bdev->bd_mutex){+.+.}, at: blkdev_put+0x34/0x560 fs/block_dev.c:1847
2 locks held by syz-executor.3/26302:
#0: 00000000f60f9464 (&bdev->bd_mutex){+.+.}, at: blkdev_reread_part+0x1f/0x40 block/ioctl.c:192
#1: 000000003004df63 (&type->s_umount_key#85){.+.+}, at: __get_super.part.0+0x203/0x2e0 fs/super.c:699
=============================================
NMI backtrace for cpu 1
CPU: 1 PID: 1040 Comm: khungtaskd Not tainted 5.0.0-rc5+ #65
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+0x172/0x1f0 lib/dump_stack.c:113
nmi_cpu_backtrace.cold+0x63/0xa4 lib/nmi_backtrace.c:101
nmi_trigger_cpumask_backtrace+0x1be/0x236 lib/nmi_backtrace.c:62
arch_trigger_cpumask_backtrace+0x14/0x20 arch/x86/kernel/apic/hw_nmi.c:38
trigger_all_cpu_backtrace include/linux/nmi.h:146 [inline]
check_hung_uninterruptible_tasks kernel/hung_task.c:203 [inline]
watchdog+0x9df/0xee0 kernel/hung_task.c:287
kthread+0x357/0x430 kernel/kthread.c:246
ret_from_fork+0x3a/0x50 arch/x86/entry/entry_64.S:352
Sending NMI from CPU 1 to CPUs 0:
NMI backtrace for cpu 0
CPU: 0 PID: 26297 Comm: syz-executor.1 Not tainted 5.0.0-rc5+ #65
Hardware name: Google Google Compute Engine/Google Compute Engine, BIOS Google 01/01/2011
RIP: 0010:__read_once_size include/linux/compiler.h:193 [inline]
RIP: 0010:check_kcov_mode kernel/kcov.c:69 [inline]
RIP: 0010:write_comp_data+0x17/0x70 kernel/kcov.c:122
Code: c2 01 48 39 d0 76 07 48 89 34 d1 48 89 11 5d c3 0f 1f 00 65 4c 8b 04 25 40 ee 01 00 65 8b 05 f0 0c 92 7e a9 00 01 1f 00 75 51 <41> 8b 80 d8 12 00 00 83 f8 03 75 45 49 8b 80 e0 12 00 00 45 8b 80
RSP: 0018:ffff8880956ef410 EFLAGS: 00000246
RAX: 0000000080000000 RBX: 000000000000000c RCX: ffffffff86fffac9
RDX: 000000000000000c RSI: 0000000000000000 RDI: 0000000000000001
RBP: ffff8880956ef418 R08: ffff88809cb8a540 R09: ffffed1015d05bd0
R10: ffffed1015d05bcf R11: ffff8880ae82de7b R12: ffff88804ccb8742
R13: ffff8880956ef4d0 R14: 0000000000000000 R15: 000000000000000c
FS: 00007f8b8b226700(0000) GS:ffff8880ae800000(0000) knlGS:0000000000000000
CS: 0010 DS: 0000 ES: 0000 CR0: 0000000080050033
CR2: 0000000000457c7d CR3: 000000009bfde000 CR4: 00000000001406f0
DR0: 0000000000000000 DR1: 0000000000000000 DR2: 0000000000000000
DR3: 0000000000000000 DR6: 00000000fffe0ff0 DR7: 0000000000000400
Call Trace:
xas_load+0x119/0x150 lib/xarray.c:235
find_get_entry+0x13d/0x8d0 mm/filemap.c:1476
pagecache_get_page+0x4a/0x740 mm/filemap.c:1579
find_get_page_flags include/linux/pagemap.h:278 [inline]
__find_get_block_slow fs/buffer.c:206 [inline]
__find_get_block fs/buffer.c:1295 [inline]
__find_get_block+0x501/0xcf0 fs/buffer.c:1289
__getblk_slow fs/buffer.c:1040 [inline]
__getblk_gfp+0x1b1/0x960 fs/buffer.c:1321
__bread_gfp+0x2f/0x300 fs/buffer.c:1355
sb_bread include/linux/buffer_head.h:307 [inline]
udf_tread+0xf1/0x140 fs/udf/misc.c:44
udf_read_tagged+0x50/0x530 fs/udf/misc.c:210
udf_check_anchor_block+0x1ef/0x680 fs/udf/super.c:1775
udf_scan_anchors+0x4dd/0x680 fs/udf/super.c:1854
udf_find_anchor fs/udf/super.c:1880 [inline]
udf_load_vrs+0x8bf/0xc80 fs/udf/super.c:1937
udf_fill_super+0x7d8/0x16d1 fs/udf/super.c:2132
mount_bdev+0x307/0x3c0 fs/super.c:1159
udf_mount+0x35/0x40 fs/udf/super.c:131
mount_fs+0x106/0x3ff fs/super.c:1258
vfs_kern_mount.part.0+0x6f/0x410 fs/namespace.c:959
vfs_kern_mount fs/namespace.c:949 [inline]
do_new_mount fs/namespace.c:2513 [inline]
do_mount+0x581/0x2d30 fs/namespace.c:2847
ksys_mount+0xdb/0x150 fs/namespace.c:3063
__do_sys_mount fs/namespace.c:3077 [inline]
__se_sys_mount fs/namespace.c:3074 [inline]
__x64_sys_mount+0xbe/0x150 fs/namespace.c:3074
do_syscall_64+0x103/0x610 arch/x86/entry/common.c:290
entry_SYSCALL_64_after_hwframe+0x49/0xbe
RIP: 0033:0x457e39
Code: ad b8 fb ff c3 66 2e 0f 1f 84 00 00 00 00 00 66 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 0f 83 7b b8 fb ff c3 66 2e 0f 1f 84 00 00 00 00
RSP: 002b:00007f8b8b225c78 EFLAGS: 00000246 ORIG_RAX: 00000000000000a5
RAX: ffffffffffffffda RBX: 0000000000000005 RCX: 0000000000457e39
RDX: 0000000020000100 RSI: 0000000020000080 RDI: 00000000200000c0
RBP: 000000000073bfa0 R08: 0000000000000000 R09: 0000000000000000
R10: 0000000000000000 R11: 0000000000000246 R12: 00007f8b8b2266d4
R13: 00000000004c3c0d R14: 00000000004d6d48 R15: 00000000ffffffff
* Struck through repros no longer work on HEAD.