INFO: task can't die in blkdev_put

5 views
Skip to first unread message

syzbot

unread,
Oct 13, 2020, 6:52:23 AM10/13/20
to syzkaller-upst...@googlegroups.com
Hello,

syzbot found the following issue on:

HEAD commit: e4fb79c7 Add linux-next specific files for 20201008
git tree: linux-next
console output: https://syzkaller.appspot.com/x/log.txt?x=14142010500000
kernel config: https://syzkaller.appspot.com/x/.config?x=568d41fe4341ed0f
dashboard link: https://syzkaller.appspot.com/bug?extid=8c02745ed3190be1fe0f
compiler: gcc (GCC) 10.1.0-syz 20200507
CC: [linux-...@vger.kernel.org linux-...@vger.kernel.org vi...@zeniv.linux.org.uk]

Unfortunately, I don't have any reproducer for this issue yet.

IMPORTANT: if you fix the issue, please add the following tag to the commit:
Reported-by: syzbot+8c0274...@syzkaller.appspotmail.com

INFO: task syz-executor.2:14167 can't die for more than 143 seconds.
task:syz-executor.2 state:D stack:28136 pid:14167 ppid: 6927 flags:0x00000004
Call Trace:
context_switch kernel/sched/core.c:3773 [inline]
__schedule+0xec5/0x2200 kernel/sched/core.c:4522
schedule+0xcf/0x270 kernel/sched/core.c:4600
schedule_preempt_disabled+0xf/0x20 kernel/sched/core.c:4659
__mutex_lock_common kernel/locking/mutex.c:1033 [inline]
__mutex_lock+0x3e2/0x10e0 kernel/locking/mutex.c:1103
blkdev_put+0x30/0x520 fs/block_dev.c:1802
blkdev_close+0x8c/0xb0 fs/block_dev.c:1851
__fput+0x285/0x920 fs/file_table.c:281
task_work_run+0xdd/0x190 kernel/task_work.c:141
tracehook_notify_resume include/linux/tracehook.h:188 [inline]
exit_to_user_mode_loop kernel/entry/common.c:165 [inline]
exit_to_user_mode_prepare+0x1e2/0x1f0 kernel/entry/common.c:192
syscall_exit_to_user_mode+0x7a/0x2c0 kernel/entry/common.c:267
entry_SYSCALL_64_after_hwframe+0x44/0xa9
RIP: 0033:0x417781
Code: Unable to access opcode bytes at RIP 0x417757.
RSP: 002b:00007ffc3c0e9dd0 EFLAGS: 00000293 ORIG_RAX: 0000000000000003
RAX: 0000000000000000 RBX: 0000000000000004 RCX: 0000000000417781
RDX: 0000001b2ca20000 RSI: 0000000000000729 RDI: 0000000000000003
RBP: 0000000000000001 R08: 00000000c2940729 R09: 00000000c294072d
R10: 00007ffc3c0e9eb0 R11: 0000000000000293 R12: 000000000118c9a0
R13: 000000000118c9a0 R14: 00000000000003e8 R15: 000000000118bfd4
INFO: task syz-executor.2:14167 blocked for more than 143 seconds.
Not tainted 5.9.0-rc8-next-20201008-syzkaller #0
"echo 0 > /proc/sys/kernel/hung_task_timeout_secs" disables this message.
task:syz-executor.2 state:D stack:28136 pid:14167 ppid: 6927 flags:0x00000004
Call Trace:
context_switch kernel/sched/core.c:3773 [inline]
__schedule+0xec5/0x2200 kernel/sched/core.c:4522
schedule+0xcf/0x270 kernel/sched/core.c:4600
schedule_preempt_disabled+0xf/0x20 kernel/sched/core.c:4659
__mutex_lock_common kernel/locking/mutex.c:1033 [inline]
__mutex_lock+0x3e2/0x10e0 kernel/locking/mutex.c:1103
blkdev_put+0x30/0x520 fs/block_dev.c:1802
blkdev_close+0x8c/0xb0 fs/block_dev.c:1851
__fput+0x285/0x920 fs/file_table.c:281
task_work_run+0xdd/0x190 kernel/task_work.c:141
tracehook_notify_resume include/linux/tracehook.h:188 [inline]
exit_to_user_mode_loop kernel/entry/common.c:165 [inline]
exit_to_user_mode_prepare+0x1e2/0x1f0 kernel/entry/common.c:192
syscall_exit_to_user_mode+0x7a/0x2c0 kernel/entry/common.c:267
entry_SYSCALL_64_after_hwframe+0x44/0xa9
RIP: 0033:0x417781
Code: Unable to access opcode bytes at RIP 0x417757.
RSP: 002b:00007ffc3c0e9dd0 EFLAGS: 00000293 ORIG_RAX: 0000000000000003
RAX: 0000000000000000 RBX: 0000000000000004 RCX: 0000000000417781
RDX: 0000001b2ca20000 RSI: 0000000000000729 RDI: 0000000000000003
RBP: 0000000000000001 R08: 00000000c2940729 R09: 00000000c294072d
R10: 00007ffc3c0e9eb0 R11: 0000000000000293 R12: 000000000118c9a0
R13: 000000000118c9a0 R14: 00000000000003e8 R15: 000000000118bfd4
INFO: task syz-executor.2:14182 can't die for more than 143 seconds.
task:syz-executor.2 state:D stack:26504 pid:14182 ppid: 6927 flags:0x00004004
Call Trace:
context_switch kernel/sched/core.c:3773 [inline]
__schedule+0xec5/0x2200 kernel/sched/core.c:4522
schedule+0xcf/0x270 kernel/sched/core.c:4600
io_schedule+0xb5/0x120 kernel/sched/core.c:6294
wait_on_page_bit_common+0x32a/0xe30 mm/filemap.c:1273
wait_on_page_bit mm/filemap.c:1334 [inline]
wait_on_page_locked include/linux/pagemap.h:671 [inline]
wait_on_page_read mm/filemap.c:2955 [inline]
do_read_cache_page+0x957/0x1390 mm/filemap.c:2998
read_mapping_page include/linux/pagemap.h:497 [inline]
read_part_sector+0xf6/0x5b0 block/partitions/core.c:780
adfspart_check_ICS+0x9d/0xc90 block/partitions/acorn.c:360
check_partition block/partitions/core.c:140 [inline]
blk_add_partitions+0x456/0xe40 block/partitions/core.c:708
bdev_disk_changed+0x1ec/0x400 fs/block_dev.c:1417
__blkdev_get+0xee4/0x1870 fs/block_dev.c:1546
blkdev_get+0xd1/0x240 fs/block_dev.c:1634
blkdev_open+0x21d/0x2b0 fs/block_dev.c:1751
do_dentry_open+0x4b9/0x11b0 fs/open.c:817
do_open fs/namei.c:3252 [inline]
path_openat+0x1b9a/0x2730 fs/namei.c:3369
do_filp_open+0x17e/0x3c0 fs/namei.c:3396
do_sys_openat2+0x16d/0x420 fs/open.c:1168
do_sys_open fs/open.c:1184 [inline]
__do_sys_open fs/open.c:1192 [inline]
__se_sys_open fs/open.c:1188 [inline]
__x64_sys_open+0x119/0x1c0 fs/open.c:1188
do_syscall_64+0x2d/0x70 arch/x86/entry/common.c:46
entry_SYSCALL_64_after_hwframe+0x44/0xa9
RIP: 0033:0x417921
Code: Unable to access opcode bytes at RIP 0x4178f7.
RSP: 002b:00007f6e9c306820 EFLAGS: 00000293 ORIG_RAX: 0000000000000002
RAX: ffffffffffffffda RBX: 6666666666666667 RCX: 0000000000417921
RDX: 0000000000000000 RSI: 0000000000000000 RDI: 00007f6e9c306850
RBP: 000000000118c008 R08: 000000000000000f R09: 0000000000000000
R10: 00007f6e9c3079d0 R11: 0000000000000293 R12: 000000000118bfd4
R13: 00007ffc3c0e9d5f R14: 00007f6e9c3079c0 R15: 000000000118bfd4
INFO: task syz-executor.2:14182 blocked for more than 144 seconds.
Not tainted 5.9.0-rc8-next-20201008-syzkaller #0
"echo 0 > /proc/sys/kernel/hung_task_timeout_secs" disables this message.
task:syz-executor.2 state:D stack:26504 pid:14182 ppid: 6927 flags:0x00004004
Call Trace:
context_switch kernel/sched/core.c:3773 [inline]
__schedule+0xec5/0x2200 kernel/sched/core.c:4522
schedule+0xcf/0x270 kernel/sched/core.c:4600
io_schedule+0xb5/0x120 kernel/sched/core.c:6294
wait_on_page_bit_common+0x32a/0xe30 mm/filemap.c:1273
wait_on_page_bit mm/filemap.c:1334 [inline]
wait_on_page_locked include/linux/pagemap.h:671 [inline]
wait_on_page_read mm/filemap.c:2955 [inline]
do_read_cache_page+0x957/0x1390 mm/filemap.c:2998
read_mapping_page include/linux/pagemap.h:497 [inline]
read_part_sector+0xf6/0x5b0 block/partitions/core.c:780
adfspart_check_ICS+0x9d/0xc90 block/partitions/acorn.c:360
check_partition block/partitions/core.c:140 [inline]
blk_add_partitions+0x456/0xe40 block/partitions/core.c:708
bdev_disk_changed+0x1ec/0x400 fs/block_dev.c:1417
__blkdev_get+0xee4/0x1870 fs/block_dev.c:1546
blkdev_get+0xd1/0x240 fs/block_dev.c:1634
blkdev_open+0x21d/0x2b0 fs/block_dev.c:1751
do_dentry_open+0x4b9/0x11b0 fs/open.c:817
do_open fs/namei.c:3252 [inline]
path_openat+0x1b9a/0x2730 fs/namei.c:3369
do_filp_open+0x17e/0x3c0 fs/namei.c:3396
do_sys_openat2+0x16d/0x420 fs/open.c:1168
do_sys_open fs/open.c:1184 [inline]
__do_sys_open fs/open.c:1192 [inline]
__se_sys_open fs/open.c:1188 [inline]
__x64_sys_open+0x119/0x1c0 fs/open.c:1188
do_syscall_64+0x2d/0x70 arch/x86/entry/common.c:46
entry_SYSCALL_64_after_hwframe+0x44/0xa9
RIP: 0033:0x417921
Code: Unable to access opcode bytes at RIP 0x4178f7.
RSP: 002b:00007f6e9c306820 EFLAGS: 00000293 ORIG_RAX: 0000000000000002
RAX: ffffffffffffffda RBX: 6666666666666667 RCX: 0000000000417921
RDX: 0000000000000000 RSI: 0000000000000000 RDI: 00007f6e9c306850
RBP: 000000000118c008 R08: 000000000000000f R09: 0000000000000000
R10: 00007f6e9c3079d0 R11: 0000000000000293 R12: 000000000118bfd4
R13: 00007ffc3c0e9d5f R14: 00007f6e9c3079c0 R15: 000000000118bfd4
INFO: task systemd-udevd:14202 blocked for more than 144 seconds.
Not tainted 5.9.0-rc8-next-20201008-syzkaller #0
"echo 0 > /proc/sys/kernel/hung_task_timeout_secs" disables this message.
task:systemd-udevd state:D stack:28136 pid:14202 ppid: 3923 flags:0x00004100
Call Trace:
context_switch kernel/sched/core.c:3773 [inline]
__schedule+0xec5/0x2200 kernel/sched/core.c:4522
schedule+0xcf/0x270 kernel/sched/core.c:4600
schedule_preempt_disabled+0xf/0x20 kernel/sched/core.c:4659
__mutex_lock_common kernel/locking/mutex.c:1033 [inline]
__mutex_lock+0x3e2/0x10e0 kernel/locking/mutex.c:1103
__blkdev_get+0x457/0x1870 fs/block_dev.c:1479
blkdev_get+0xd1/0x240 fs/block_dev.c:1634
blkdev_open+0x21d/0x2b0 fs/block_dev.c:1751
do_dentry_open+0x4b9/0x11b0 fs/open.c:817
do_open fs/namei.c:3252 [inline]
path_openat+0x1b9a/0x2730 fs/namei.c:3369
do_filp_open+0x17e/0x3c0 fs/namei.c:3396
do_sys_openat2+0x16d/0x420 fs/open.c:1168
do_sys_open fs/open.c:1184 [inline]
__do_sys_open fs/open.c:1192 [inline]
__se_sys_open fs/open.c:1188 [inline]
__x64_sys_open+0x119/0x1c0 fs/open.c:1188
do_syscall_64+0x2d/0x70 arch/x86/entry/common.c:46
entry_SYSCALL_64_after_hwframe+0x44/0xa9
RIP: 0033:0x7fd9e4eb6840
Code: Unable to access opcode bytes at RIP 0x7fd9e4eb6816.
RSP: 002b:00007fff000148c8 EFLAGS: 00000246 ORIG_RAX: 0000000000000002
RAX: ffffffffffffffda RBX: 000056054edbcf60 RCX: 00007fd9e4eb6840
RDX: 000056054d0f3fe3 RSI: 00000000000a0800 RDI: 000056054edb7ec0
RBP: 00007fff00014a40 R08: 000056054d0f3670 R09: 0000000000000010
R10: 000056054d0f3d0c R11: 0000000000000246 R12: 00007fff00014990
R13: 000056054edac740 R14: 0000000000000003 R15: 000000000000000e

Showing all locks held in the system:
1 lock held by khungtaskd/1178:
#0: ffffffff8a554da0 (rcu_read_lock){....}-{1:2}, at: debug_show_all_locks+0x53/0x260 kernel/locking/lockdep.c:6242
1 lock held by in:imklog/6753:
#0: ffff8880112c41b0 (&f->f_pos_lock){+.+.}-{3:3}, at: __fdget_pos+0xe9/0x100 fs/file.c:932
1 lock held by syz-executor.2/14167:
#0: ffff88802e791140 (&bdev->bd_mutex){+.+.}-{3:3}, at: blkdev_put+0x30/0x520 fs/block_dev.c:1802
1 lock held by syz-executor.2/14182:
#0: ffff88802e791140 (&bdev->bd_mutex){+.+.}-{3:3}, at: __blkdev_get+0x457/0x1870 fs/block_dev.c:1479
1 lock held by systemd-udevd/14202:
#0: ffff88802e791140 (&bdev->bd_mutex){+.+.}-{3:3}, at: __blkdev_get+0x457/0x1870 fs/block_dev.c:1479

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

NMI backtrace for cpu 1
CPU: 1 PID: 1178 Comm: khungtaskd Not tainted 5.9.0-rc8-next-20201008-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+0x198/0x1fb lib/dump_stack.c:118
nmi_cpu_backtrace.cold+0x44/0xd7 lib/nmi_backtrace.c:105
nmi_trigger_cpumask_backtrace+0x1b3/0x230 lib/nmi_backtrace.c:62
trigger_all_cpu_backtrace include/linux/nmi.h:147 [inline]
check_hung_uninterruptible_tasks kernel/hung_task.c:253 [inline]
watchdog+0xd89/0xf30 kernel/hung_task.c:339
kthread+0x3af/0x4a0 kernel/kthread.c:292
ret_from_fork+0x1f/0x30 arch/x86/entry/entry_64.S:296
Sending NMI from CPU 1 to CPUs 0:
NMI backtrace for cpu 0
CPU: 0 PID: 3918 Comm: systemd-journal Not tainted 5.9.0-rc8-next-20201008-syzkaller #0
Hardware name: Google Google Compute Engine/Google Compute Engine, BIOS Google 01/01/2011
RIP: 0010:migrate_disable include/linux/preempt.h:308 [inline]
RIP: 0010:bpf_prog_run_pin_on_cpu include/linux/filter.h:596 [inline]
RIP: 0010:seccomp_run_filters kernel/seccomp.c:328 [inline]
RIP: 0010:__seccomp_filter+0x10f/0x1510 kernel/seccomp.c:941
Code: 0f 84 80 0b 00 00 e8 d0 88 ff ff 48 8d 7b 18 48 89 f8 48 c1 e8 03 42 80 3c 20 00 0f 85 12 11 00 00 bf 01 00 00 00 48 8b 6b 18 <e8> ec 61 da ff 31 d2 be 55 02 00 00 48 c7 c7 c0 06 b0 88 e8 99 a6
RSP: 0018:ffffc90004997d90 EFLAGS: 00000246
RAX: 1ffff11004ca7583 RBX: ffff88802653ac00 RCX: 1ffff92000932ff3
RDX: ffff888026402200 RSI: ffffffff8175d210 RDI: 0000000000000001
RBP: ffffc90000e1f000 R08: 0000000000000001 R09: 0000000000000001
R10: 0000000000000000 R11: 0000000000000000 R12: dffffc0000000000
R13: 0000000000000000 R14: 0000564c1e5ea1e0 R15: ffffc90004997e38
FS: 00007f64f3b468c0(0000) GS:ffff8880ae400000(0000) knlGS:0000000000000000
CS: 0010 DS: 0000 ES: 0000 CR0: 0000000080050033
CR2: 00007f64f0f6f000 CR3: 000000002653f000 CR4: 00000000001506f0
Call Trace:
__secure_computing+0xfc/0x360 kernel/seccomp.c:1074
syscall_trace_enter.constprop.0+0x80/0x250 kernel/entry/common.c:58
do_syscall_64+0xf/0x70 arch/x86/entry/common.c:41
entry_SYSCALL_64_after_hwframe+0x44/0xa9
RIP: 0033:0x7f64f2ddff17
Code: ff ff ff 48 8b 4d a0 0f b7 51 fe 48 8b 4d a8 66 89 54 08 fe e9 1a ff ff ff 66 2e 0f 1f 84 00 00 00 00 00 b8 27 00 00 00 0f 05 <c3> 0f 1f 84 00 00 00 00 00 b8 6e 00 00 00 0f 05 c3 0f 1f 84 00 00
RSP: 002b:00007ffc242a1b78 EFLAGS: 00000206 ORIG_RAX: 0000000000000027
RAX: ffffffffffffffda RBX: 0000564c1e5ea1e0 RCX: 00007f64f2ddff17
RDX: 00007ffc242a1c30 RSI: 0000000000000000 RDI: 0000564c1e5ea1e0
RBP: 0000000000000000 R08: 0000000000000000 R09: 0000000000000000
R10: 0000000000000069 R11: 0000000000000206 R12: 00007ffc242a1c30
R13: 0000000000000f4e R14: 00007ffc242a4a20 R15: 00007ffc242a2030


---
This report is generated by a bot. It may contain errors.
See https://goo.gl/tpsmEJ for more information about syzbot.
syzbot engineers can be reached at syzk...@googlegroups.com.

syzbot will keep track of this issue. See:
https://goo.gl/tpsmEJ#status for how to communicate with syzbot.

syzbot

unread,
Jan 19, 2021, 4:44:15 AM1/19/21
to syzkaller-upst...@googlegroups.com
Auto-closing this bug as obsolete.
Crashes did not happen for a while, no reproducer and no activity.
Reply all
Reply to author
Forward
0 new messages