syzbot


INFO: task can't die in prepare_to_wait_event

Status: auto-closed as invalid on 2021/11/16 17:43
Subsystems: v9fs
[Documentation on labels]
Reported-by: syzbot+bc313ac0a1ab26c0818f@syzkaller.appspotmail.com
First crash: 955d, last: 952d

Sample crash report:
INFO: task syz-executor.5:24492 can't die for more than 143 seconds.
task:syz-executor.5  state:R  running task     stack:27120 pid:24492 ppid: 23743 flags:0x00004002
Call Trace:
 context_switch kernel/sched/core.c:4955 [inline]
 __schedule+0x940/0x26f0 kernel/sched/core.c:6236
 preempt_schedule_common+0x45/0xc0 kernel/sched/core.c:6408
 preempt_schedule_thunk+0x16/0x18 arch/x86/entry/thunk_64.S:35
 __raw_spin_unlock_irqrestore include/linux/spinlock_api_smp.h:161 [inline]
 _raw_spin_unlock_irqrestore+0x57/0x70 kernel/locking/spinlock.c:194
 spin_unlock_irqrestore include/linux/spinlock.h:423 [inline]
 prepare_to_wait_event+0xc8/0x690 kernel/sched/wait.c:325
 p9_client_rpc+0x41a/0x1240 net/9p/client.c:761
 p9_client_read_once+0x22c/0x5f0 net/9p/client.c:1607
 p9_client_read+0x13b/0x1a0 net/9p/client.c:1566
 v9fs_dir_readdir+0x4ac/0x6d0 fs/9p/vfs_dir.c:112
 iterate_dir+0x576/0x700 fs/readdir.c:65
 __do_sys_getdents64 fs/readdir.c:369 [inline]
 __se_sys_getdents64 fs/readdir.c:354 [inline]
 __x64_sys_getdents64+0x13a/0x2c0 fs/readdir.c:354
 do_syscall_x64 arch/x86/entry/common.c:50 [inline]
 do_syscall_64+0x35/0xb0 arch/x86/entry/common.c:80
 entry_SYSCALL_64_after_hwframe+0x44/0xae
RIP: 0033:0x7f9477bd4739
RSP: 002b:00007f947512a188 EFLAGS: 00000246 ORIG_RAX: 00000000000000d9
RAX: ffffffffffffffda RBX: 00007f9477cd9038 RCX: 00007f9477bd4739
RDX: 0000000000000034 RSI: 0000000000000000 RDI: 0000000000000007
RBP: 00007f9477c2ecc4 R08: 0000000000000000 R09: 0000000000000000
R10: 0000000000000000 R11: 0000000000000246 R12: 00007f9477cd9038
R13: 00007ffd613cb67f R14: 00007f947512a300 R15: 0000000000022000

Showing all locks held in the system:
2 locks held by ksoftirqd/1/19:
 #0: ffff8880b9d31a58 (&rq->__lock){-.-.}-{2:2}, at: raw_spin_rq_lock_nested kernel/sched/core.c:474 [inline]
 #0: ffff8880b9d31a58 (&rq->__lock){-.-.}-{2:2}, at: raw_spin_rq_lock kernel/sched/sched.h:1323 [inline]
 #0: ffff8880b9d31a58 (&rq->__lock){-.-.}-{2:2}, at: rq_lock kernel/sched/sched.h:1626 [inline]
 #0: ffff8880b9d31a58 (&rq->__lock){-.-.}-{2:2}, at: __schedule+0x236/0x26f0 kernel/sched/core.c:6150
 #1: ffff8880b9d1f9c8 (&per_cpu_ptr(group->pcpu, cpu)->seq){-.-.}-{0:0}, at: psi_task_switch+0x39d/0x480 kernel/sched/psi.c:880
1 lock held by khungtaskd/26:
 #0: ffffffff8b980460 (rcu_read_lock){....}-{1:2}, at: debug_show_all_locks+0x53/0x260 kernel/locking/lockdep.c:6446
1 lock held by in:imklog/6241:
 #0: ffff888023812870 (&f->f_pos_lock){+.+.}-{3:3}, at: __fdget_pos+0xe9/0x100 fs/file.c:990
2 locks held by agetty/6463:
 #0: ffff88801b77c098 (&tty->ldisc_sem){++++}-{0:0}, at: tty_ldisc_ref_wait+0x22/0x80 drivers/tty/tty_ldisc.c:252
 #1: ffffc900011d82e8 (&ldata->atomic_read_lock){+.+.}-{3:3}, at: n_tty_read+0xcf0/0x1230 drivers/tty/n_tty.c:2113
2 locks held by syz-executor.5/24492:
2 locks held by syz-executor.1/24495:
 #0: ffff888039a45770 (&f->f_pos_lock){+.+.}-{3:3}, at: __fdget_pos+0xe9/0x100 fs/file.c:990
 #1: ffff8880493fbbb0 (&sb->s_type->i_mutex_key#37){++++}-{3:3}, at: iterate_dir+0xcd/0x700 fs/readdir.c:55
2 locks held by syz-executor.4/24504:
2 locks held by syz-executor.2/24543:
 #0: ffff888042582370 (&f->f_pos_lock){+.+.}-{3:3}, at: __fdget_pos+0xe9/0x100 fs/file.c:990
 #1: ffff8880493f9bf8 (&sb->s_type->i_mutex_key#37){++++}-{3:3}, at: iterate_dir+0xcd/0x700 fs/readdir.c:55
2 locks held by syz-executor.0/24553:
 #0: ffff8880534e39f0 (&f->f_pos_lock){+.+.}-{3:3}, at: __fdget_pos+0xe9/0x100 fs/file.c:990
 #1: ffff8880493fa250 (&sb->s_type->i_mutex_key#37){++++}-{3:3}, at: iterate_dir+0xcd/0x700 fs/readdir.c:55

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


Crashes (2):
Time Kernel Commit Syzkaller Config Log Report Syz repro C repro VM info Assets (help?) Manager Title
2021/09/17 17:42 linux-next 9004fd387338 70b76c1d .config console log report info ci-upstream-linux-next-kasan-gce-root INFO: task can't die in prepare_to_wait_event
2021/09/14 15:31 linux-next 815c5020b5ab 07e953c1 .config console log report info ci-upstream-linux-next-kasan-gce-root INFO: task can't die in prepare_to_wait_event
* Struck through repros no longer work on HEAD.