INFO: task syz-executor.3:11560 blocked for more than 143 seconds.
Not tainted 6.1.0-rc5-next-20221116-syzkaller #0
"echo 0 > /proc/sys/kernel/hung_task_timeout_secs" disables this message.
task:syz-executor.3 state:D stack:27960 pid:11560 ppid:5343 flags:0x00004002
Call Trace:
context_switch kernel/sched/core.c:5229 [inline]
__schedule+0xb8a/0x5450 kernel/sched/core.c:6541
schedule+0xde/0x1b0 kernel/sched/core.c:6617
io_schedule+0xbe/0x130 kernel/sched/core.c:8797
folio_wait_bit_common+0x394/0x9b0 mm/filemap.c:1296
__folio_lock mm/filemap.c:1659 [inline]
folio_lock include/linux/pagemap.h:938 [inline]
folio_lock include/linux/pagemap.h:934 [inline]
__filemap_get_folio+0xb71/0xd80 mm/filemap.c:1931
truncate_inode_pages_range+0x350/0xec0 mm/truncate.c:377
kill_bdev block/bdev.c:76 [inline]
blkdev_flush_mapping+0x140/0x2f0 block/bdev.c:662
blkdev_put_whole+0xd1/0xf0 block/bdev.c:693
blkdev_put+0x22a/0x770 block/bdev.c:953
blkdev_close+0x68/0x80 block/fops.c:499
__fput+0x27c/0xa90 fs/file_table.c:320
task_work_run+0x16f/0x270 kernel/task_work.c:179
exit_task_work include/linux/task_work.h:38 [inline]
do_exit+0xaa8/0x28d0 kernel/exit.c:820
do_group_exit+0xd4/0x2a0 kernel/exit.c:950
get_signal+0x21b1/0x2440 kernel/signal.c:2858
arch_do_signal_or_restart+0x79/0x5c0 arch/x86/kernel/signal.c:306
exit_to_user_mode_loop kernel/entry/common.c:168 [inline]
exit_to_user_mode_prepare+0x15f/0x250 kernel/entry/common.c:203
__syscall_exit_to_user_mode_work kernel/entry/common.c:285 [inline]
syscall_exit_to_user_mode+0x1d/0x50 kernel/entry/common.c:296
do_syscall_64+0x46/0xb0 arch/x86/entry/common.c:86
entry_SYSCALL_64_after_hwframe+0x63/0xcd
RIP: 0033:0x7f8c9e28b639
RSP: 002b:00007f8c9eff1168 EFLAGS: 00000246 ORIG_RAX: 0000000000000010
RAX: 0000000000000000 RBX: 00007f8c9e3abf80 RCX: 00007f8c9e28b639
RDX: 0000000000000000 RSI: 000000000000ab03 RDI: 0000000000000003
RBP: 00007f8c9e2e6ae9 R08: 0000000000000000 R09: 0000000000000000
R10: 0000000000000000 R11: 0000000000000246 R12: 0000000000000000
R13: 00007ffe3570b37f R14: 00007f8c9eff1300 R15: 0000000000022000
Showing all locks held in the system:
2 locks held by kworker/u4:0/9:
#0: ffff8880b993b358 (&rq->__lock){-.-.}-{2:2}, at: raw_spin_rq_lock_nested+0x2f/0x120 kernel/sched/core.c:537
#1: ffffc900000e7da8 ((work_completion)(&(&bat_priv->nc.work)->work)){+.+.}-{0:0}, at: process_one_work+0x8a1/0x1710 kernel/workqueue.c:2264
1 lock held by rcu_tasks_kthre/12:
#0: ffffffff8c78fb30 (rcu_tasks.tasks_gp_mutex){+.+.}-{3:3}, at: rcu_tasks_one_gp+0x26/0xc70 kernel/rcu/tasks.h:507
1 lock held by rcu_tasks_trace/13:
#0: ffffffff8c78f830 (rcu_tasks_trace.tasks_gp_mutex){+.+.}-{3:3}, at: rcu_tasks_one_gp+0x26/0xc70 kernel/rcu/tasks.h:507
1 lock held by khungtaskd/28:
#0: ffffffff8c790680 (rcu_read_lock){....}-{1:2}, at: debug_show_all_locks+0x57/0x264 kernel/locking/lockdep.c:6494
2 locks held by getty/4975:
#0: ffff88814a201098 (&tty->ldisc_sem){++++}-{0:0}, at: tty_ldisc_ref_wait+0x26/0x80 drivers/tty/tty_ldisc.c:244
#1: ffffc900015b52f0 (&ldata->atomic_read_lock){+.+.}-{3:3}, at: n_tty_read+0xef4/0x13e0 drivers/tty/n_tty.c:2177
2 locks held by kworker/u4:13/5574:
1 lock held by syz-executor.3/11560:
#0: ffff88801e8e24c8 (&disk->open_mutex){+.+.}-{3:3}, at: blkdev_put+0xc0/0x770 block/bdev.c:911
1 lock held by syz-executor.3/11681:
#0: ffff88801e8e24c8 (&disk->open_mutex){+.+.}-{3:3}, at: blkdev_get_by_dev.part.0+0x9b/0xb90 block/bdev.c:813
1 lock held by syz-executor.3/11755:
#0: ffff88801e8e24c8 (&disk->open_mutex){+.+.}-{3:3}, at: blkdev_get_by_dev.part.0+0x9b/0xb90 block/bdev.c:813
=============================================
NMI backtrace for cpu 0
CPU: 0 PID: 28 Comm: khungtaskd Not tainted 6.1.0-rc5-next-20221116-syzkaller #0
Hardware name: Google Google Compute Engine/Google Compute Engine, BIOS Google 10/26/2022
Call Trace:
__dump_stack lib/dump_stack.c:88 [inline]
dump_stack_lvl+0xd1/0x138 lib/dump_stack.c:106
nmi_cpu_backtrace.cold+0x24/0x18a lib/nmi_backtrace.c:111
nmi_trigger_cpumask_backtrace+0x333/0x3c0 lib/nmi_backtrace.c:62
trigger_all_cpu_backtrace include/linux/nmi.h:148 [inline]
check_hung_uninterruptible_tasks kernel/hung_task.c:220 [inline]
watchdog+0xc75/0xfc0 kernel/hung_task.c:377
kthread+0x2e8/0x3a0 kernel/kthread.c:376
ret_from_fork+0x1f/0x30 arch/x86/entry/entry_64.S:308
Sending NMI from CPU 0 to CPUs 1:
NMI backtrace for cpu 1
CPU: 1 PID: 5574 Comm: kworker/u4:13 Not tainted 6.1.0-rc5-next-20221116-syzkaller #0
Hardware name: Google Google Compute Engine/Google Compute Engine, BIOS Google 10/26/2022
Workqueue: bat_events batadv_tt_purge
RIP: 0010:rcu_dynticks_curr_cpu_in_eqs include/linux/context_tracking.h:121 [inline]
RIP: 0010:rcu_is_watching+0xd/0xb0 kernel/rcu/tree.c:694
Code: fa 48 c7 c7 60 d3 4d 8a e8 90 45 9e 08 65 8a 05 15 68 99 7e 0f b6 c0 c3 0f 1f 44 00 00 f3 0f 1e fa 55 53 65 ff 05 5b 4e 99 7e 4e 45 9e 08 48 c7 c3 e8 5d 03 00 83 f8 07 89 c5 77 7a 48 8d 3c
RSP: 0018:ffffc900057b7ba0 EFLAGS: 00000286
RAX: 0000000000000001 RBX: 0000000000000003 RCX: ffffffff816378c9
RDX: dffffc0000000000 RSI: 0000000000000008 RDI: ffffffff8e74dc90
RBP: 1ffff92000af6f7b R08: 0000000000000000 R09: ffffffff8e74dc97
R10: fffffbfff1ce9b92 R11: 0000000000000000 R12: 0000000000000001
R13: dffffc0000000000 R14: 0000000000000001 R15: 0000000000000147
FS: 0000000000000000(0000) GS:ffff8880b9900000(0000) knlGS:0000000000000000
CS: 0010 DS: 0000 ES: 0000 CR0: 0000000080050033
CR2: 0000561a79718110 CR3: 0000000029edd000 CR4: 00000000003506e0
DR0: 0000000000000000 DR1: 0000000000000000 DR2: 0000000000000000
DR3: 0000000000000000 DR6: 00000000fffe0ff0 DR7: 0000000000000400
Call Trace:
rcu_read_lock_held_common kernel/rcu/update.c:108 [inline]
rcu_read_lock_sched_held+0x20/0x70 kernel/rcu/update.c:123
trace_lock_release include/trace/events/lock.h:69 [inline]
lock_release+0x5cf/0x810 kernel/locking/lockdep.c:5679
__raw_spin_unlock_bh include/linux/spinlock_api_smp.h:165 [inline]
_raw_spin_unlock_bh+0x16/0x30 kernel/locking/spinlock.c:210
spin_unlock_bh include/linux/spinlock.h:395 [inline]
batadv_tt_global_purge net/batman-adv/translation-table.c:2300 [inline]
batadv_tt_purge+0x3a7/0xaf0 net/batman-adv/translation-table.c:3562
process_one_work+0x9bf/0x1710 kernel/workqueue.c:2289
worker_thread+0x669/0x1090 kernel/workqueue.c:2436
kthread+0x2e8/0x3a0 kernel/kthread.c:376
ret_from_fork+0x1f/0x30 arch/x86/entry/entry_64.S:308