[v6.1] INFO: task hung in truncate_inode_pages_final

0 views
Skip to first unread message

syzbot

unread,
Oct 25, 2023, 1:01:12 AM10/25/23
to syzkaller...@googlegroups.com
Hello,

syzbot found the following issue on:

HEAD commit: 7d24402875c7 Linux 6.1.59
git tree: linux-6.1.y
console output: https://syzkaller.appspot.com/x/log.txt?x=1209e82d680000
kernel config: https://syzkaller.appspot.com/x/.config?x=f4e0bf6ab3a898ce
dashboard link: https://syzkaller.appspot.com/bug?extid=84ce17c50fe335d1f70c
compiler: Debian clang version 15.0.6, GNU ld (GNU Binutils for Debian) 2.40
userspace arch: arm64

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

Downloadable assets:
disk image: https://storage.googleapis.com/syzbot-assets/8d6fe63103c3/disk-7d244028.raw.xz
vmlinux: https://storage.googleapis.com/syzbot-assets/91b66825c240/vmlinux-7d244028.xz
kernel image: https://storage.googleapis.com/syzbot-assets/2c90616935ea/Image-7d244028.gz.xz

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

INFO: task syz-executor.5:4257 blocked for more than 143 seconds.
Not tainted 6.1.59-syzkaller #0
"echo 0 > /proc/sys/kernel/hung_task_timeout_secs" disables this message.
task:syz-executor.5 state:D stack:0 pid:4257 ppid:1 flags:0x0000000d
Call trace:
__switch_to+0x320/0x754 arch/arm64/kernel/process.c:553
context_switch kernel/sched/core.c:5241 [inline]
__schedule+0xee4/0x1c98 kernel/sched/core.c:6554
schedule+0xc4/0x170 kernel/sched/core.c:6630
io_schedule+0x8c/0x188 kernel/sched/core.c:8782
folio_wait_bit_common+0x65c/0xb90 mm/filemap.c:1296
__folio_lock+0x2c/0x3c mm/filemap.c:1659
folio_lock include/linux/pagemap.h:939 [inline]
truncate_inode_pages_range+0x978/0xf10 mm/truncate.c:423
truncate_inode_pages mm/truncate.c:452 [inline]
truncate_inode_pages_final+0x90/0xc0 mm/truncate.c:487
evict+0x26c/0x68c fs/inode.c:666
dispose_list fs/inode.c:697 [inline]
evict_inodes+0x6b4/0x74c fs/inode.c:747
generic_shutdown_super+0x9c/0x328 fs/super.c:480
kill_block_super+0x70/0xdc fs/super.c:1459
deactivate_locked_super+0xac/0x124 fs/super.c:332
deactivate_super+0xf0/0x110 fs/super.c:363
cleanup_mnt+0x394/0x41c fs/namespace.c:1186
__cleanup_mnt+0x20/0x30 fs/namespace.c:1193
task_work_run+0x240/0x2f0 kernel/task_work.c:179
resume_user_mode_work include/linux/resume_user_mode.h:49 [inline]
do_notify_resume+0x2148/0x3474 arch/arm64/kernel/signal.c:1132
prepare_exit_to_user_mode arch/arm64/kernel/entry-common.c:137 [inline]
exit_to_user_mode arch/arm64/kernel/entry-common.c:142 [inline]
el0_svc+0x9c/0x168 arch/arm64/kernel/entry-common.c:638
el0t_64_sync_handler+0x84/0xf0 arch/arm64/kernel/entry-common.c:655
el0t_64_sync+0x18c/0x190 arch/arm64/kernel/entry.S:585

Showing all locks held in the system:
1 lock held by rcu_tasks_kthre/12:
#0: ffff800015a84d70 (rcu_tasks.tasks_gp_mutex){+.+.}-{3:3}, at: rcu_tasks_one_gp+0x44/0xcf4 kernel/rcu/tasks.h:516
1 lock held by rcu_tasks_trace/13:
#0: ffff800015a85570 (rcu_tasks_trace.tasks_gp_mutex){+.+.}-{3:3}, at: rcu_tasks_one_gp+0x44/0xcf4 kernel/rcu/tasks.h:516
1 lock held by khungtaskd/28:
#0: ffff800015a84ba0 (rcu_read_lock){....}-{1:2}, at: rcu_lock_acquire+0xc/0x44 include/linux/rcupdate.h:305
1 lock held by klogd/3832:
2 locks held by getty/3981:
#0: ffff0000d61b6098 (&tty->ldisc_sem){++++}-{0:0}, at: ldsem_down_read+0x3c/0x4c drivers/tty/tty_ldsem.c:340
#1: ffff80001bd402f0 (&ldata->atomic_read_lock){+.+.}-{3:3}, at: n_tty_read+0x414/0x1214 drivers/tty/n_tty.c:2188
1 lock held by syz-executor.5/4257:
#0: ffff0000d01ae0e0 (&type->s_umount_key#61){+.+.}-{3:3}, at: deactivate_super+0xe8/0x110 fs/super.c:362

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



---
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.

If the bug is already fixed, let syzbot know by replying with:
#syz fix: exact-commit-title

If you want to overwrite bug's subsystems, reply with:
#syz set subsystems: new-subsystem
(See the list of subsystem names on the web dashboard)

If the bug is a duplicate of another bug, reply with:
#syz dup: exact-subject-of-another-report

If you want to undo deduplication, reply with:
#syz undup

syzbot

unread,
Oct 25, 2023, 3:39:45 AM10/25/23
to syzkaller...@googlegroups.com
syzbot has found a reproducer for the following issue on:

HEAD commit: 7d24402875c7 Linux 6.1.59
git tree: linux-6.1.y
console output: https://syzkaller.appspot.com/x/log.txt?x=16394705680000
kernel config: https://syzkaller.appspot.com/x/.config?x=f4e0bf6ab3a898ce
dashboard link: https://syzkaller.appspot.com/bug?extid=84ce17c50fe335d1f70c
compiler: Debian clang version 15.0.6, GNU ld (GNU Binutils for Debian) 2.40
userspace arch: arm64
syz repro: https://syzkaller.appspot.com/x/repro.syz?x=156bd295680000
C reproducer: https://syzkaller.appspot.com/x/repro.c?x=1109ec8b680000
mounted in repro: https://storage.googleapis.com/syzbot-assets/2e80de5df788/mount_0.gz

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

INFO: task syz-executor278:4270 blocked for more than 143 seconds.
Not tainted 6.1.59-syzkaller #0
"echo 0 > /proc/sys/kernel/hung_task_timeout_secs" disables this message.
task:syz-executor278 state:D stack:0 pid:4270 ppid:4268 flags:0x00000004
1 lock held by klogd/3831:
#0: ffff0001b4562598 (&rq->__lock){-.-.}-{2:2}, at: raw_spin_rq_lock_nested kernel/sched/core.c:537 [inline]
#0: ffff0001b4562598 (&rq->__lock){-.-.}-{2:2}, at: raw_spin_rq_lock kernel/sched/sched.h:1354 [inline]
#0: ffff0001b4562598 (&rq->__lock){-.-.}-{2:2}, at: rq_lock kernel/sched/sched.h:1644 [inline]
#0: ffff0001b4562598 (&rq->__lock){-.-.}-{2:2}, at: __schedule+0x2c4/0x1c98 kernel/sched/core.c:6471
2 locks held by getty/3985:
#0: ffff0000c4f29098 (&tty->ldisc_sem){++++}-{0:0}, at: ldsem_down_read+0x3c/0x4c drivers/tty/tty_ldsem.c:340
#1: ffff80001bd502f0 (&ldata->atomic_read_lock){+.+.}-{3:3}, at: n_tty_read+0x414/0x1214 drivers/tty/n_tty.c:2188
1 lock held by syz-executor278/4270:
#0: ffff0000d9b660e0 (&type->s_umount_key#40){+.+.}-{3:3}, at: deactivate_super+0xe8/0x110 fs/super.c:362

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



---
If you want syzbot to run the reproducer, reply with:
#syz test: git://repo/address.git branch-or-commit-hash
If you attach or paste a git patch, syzbot will apply it before testing.
Reply all
Reply to author
Forward
0 new messages