INFO: task udevd:5158 blocked for more than 143 seconds.
Not tainted 6.3.0-rc6-next-20230414-syzkaller-12018-gd3f2cd248191 #0
"echo 0 > /proc/sys/kernel/hung_task_timeout_secs" disables this message.
task:udevd state:D stack:26480 pid:5158 ppid:4442 flags:0x00004006
Call Trace:
context_switch kernel/sched/core.c:5334 [inline]
__schedule+0x1d23/0x5650 kernel/sched/core.c:6659
schedule+0xde/0x1a0 kernel/sched/core.c:6735
io_schedule+0xbe/0x130 kernel/sched/core.c:8969
folio_wait_bit_common+0x394/0x9b0 mm/filemap.c:1301
__folio_lock mm/filemap.c:1664 [inline]
folio_lock include/linux/pagemap.h:955 [inline]
folio_lock include/linux/pagemap.h:951 [inline]
__filemap_get_folio+0x789/0x990 mm/filemap.c:1931
truncate_inode_pages_range+0x350/0xf10 mm/truncate.c:394
kill_bdev block/bdev.c:76 [inline]
blkdev_flush_mapping+0x140/0x310 block/bdev.c:584
blkdev_put_whole+0xd1/0xf0 block/bdev.c:615
blkdev_put+0x224/0x770 block/bdev.c:875
blkdev_close+0x68/0x80 block/fops.c:507
__fput+0x27c/0xa90 fs/file_table.c:321
task_work_run+0x16f/0x270 kernel/task_work.c:179
exit_task_work include/linux/task_work.h:38 [inline]
do_exit+0xb0d/0x29f0 kernel/exit.c:871
do_group_exit+0xd4/0x2a0 kernel/exit.c:1021
get_signal+0x2315/0x25b0 kernel/signal.c:2859
arch_do_signal_or_restart+0x79/0x5c0 arch/x86/kernel/signal.c:307
exit_to_user_mode_loop kernel/entry/common.c:168 [inline]
exit_to_user_mode_prepare+0x11f/0x240 kernel/entry/common.c:204
__syscall_exit_to_user_mode_work kernel/entry/common.c:286 [inline]
syscall_exit_to_user_mode+0x1d/0x50 kernel/entry/common.c:297
do_syscall_64+0x46/0xb0 arch/x86/entry/common.c:86
entry_SYSCALL_64_after_hwframe+0x63/0xcd
RIP: 0033:0x7fa010925697
RSP: 002b:00007ffe241b0b50 EFLAGS: 00000246 ORIG_RAX: 0000000000000101
RAX: 0000000000000008 RBX: 0000559f866b3080 RCX: 00007fa010925697
RDX: 00000000000a0800 RSI: 0000559f866b0680 RDI: 00000000ffffff9c
RBP: 0000559f866b0680 R08: 0000000000000001 R09: 00007ffe241fa080
R10: 0000000000000000 R11: 0000000000000246 R12: 00000000000a0800
R13: 0000559f86696c20 R14: 0000000000000001 R15: 0000559f8668d910
INFO: task syz-executor.0:5212 blocked for more than 143 seconds.
Not tainted 6.3.0-rc6-next-20230414-syzkaller-12018-gd3f2cd248191 #0
"echo 0 > /proc/sys/kernel/hung_task_timeout_secs" disables this message.
task:syz-executor.0 state:D stack:27912 pid:5212 ppid:5191 flags:0x00000004
Call Trace:
context_switch kernel/sched/core.c:5334 [inline]
__schedule+0x1d23/0x5650 kernel/sched/core.c:6659
schedule+0xde/0x1a0 kernel/sched/core.c:6735
schedule_preempt_disabled+0x13/0x20 kernel/sched/core.c:6794
__mutex_lock_common kernel/locking/mutex.c:679 [inline]
__mutex_lock+0xa3b/0x1350 kernel/locking/mutex.c:747
blkdev_get_by_dev.part.0+0x9b/0xb80 block/bdev.c:735
blkdev_get_by_dev+0x6f/0x90 block/bdev.c:778
blkdev_open+0x140/0x2c0 block/fops.c:493
do_dentry_open+0x6cc/0x13f0 fs/open.c:920
do_open fs/namei.c:3560 [inline]
path_openat+0x1baa/0x2750 fs/namei.c:3715
do_filp_open+0x1ba/0x410 fs/namei.c:3742
do_sys_openat2+0x16d/0x4c0 fs/open.c:1356
do_sys_open fs/open.c:1372 [inline]
__do_sys_openat fs/open.c:1388 [inline]
__se_sys_openat fs/open.c:1383 [inline]
__x64_sys_openat+0x143/0x1f0 fs/open.c:1383
do_syscall_x64 arch/x86/entry/common.c:50 [inline]
do_syscall_64+0x39/0xb0 arch/x86/entry/common.c:80
entry_SYSCALL_64_after_hwframe+0x63/0xcd
RIP: 0033:0x418484
RSP: 002b:00007fa073daacc0 EFLAGS: 00000293 ORIG_RAX: 0000000000000101
RAX: ffffffffffffffda RBX: 6666666666666667 RCX: 0000000000418484
RDX: 0000000000000000 RSI: 00007fa073daad60 RDI: 00000000ffffff9c
RBP: 00007fa073daad60 R08: 0000000000000000 R09: 002364626e2f7665
R10: 0000000000000000 R11: 0000000000000293 R12: 0000000000000000
R13: 00007ffc2e4e0abf R14: 00007fa073dab300 R15: 0000000000022000
Showing all locks held in the system:
1 lock held by rcu_tasks_kthre/13:
#0: ffffffff8c796bb0 (rcu_tasks.tasks_gp_mutex){+.+.}-{3:3}, at: rcu_tasks_one_gp+0x31/0xd80 kernel/rcu/tasks.h:518
1 lock held by rcu_tasks_trace/14:
#0: ffffffff8c7968b0 (rcu_tasks_trace.tasks_gp_mutex){+.+.}-{3:3}, at: rcu_tasks_one_gp+0x31/0xd80 kernel/rcu/tasks.h:518
1 lock held by khungtaskd/28:
#0: ffffffff8c7977c0 (rcu_read_lock){....}-{1:2}, at: debug_show_all_locks+0x51/0x390 kernel/locking/lockdep.c:6545
3 locks held by kworker/u4:4/75:
#0: ffff8880b993c658 (&rq->__lock){-.-.}-{2:2}, at: raw_spin_rq_lock_nested+0x2f/0x120 kernel/sched/core.c:558
#1: ffff8880b9928848 (&per_cpu_ptr(group->pcpu, cpu)->seq){-.-.}-{0:0}, at: psi_task_switch+0x216/0x950 kernel/sched/psi.c:984
#2: ffff8880b99296d8 (&base->lock){-.-.}-{2:2}, at: lock_timer_base+0x5a/0x1f0 kernel/time/timer.c:999
2 locks held by getty/4762:
#0: ffff88802812f098 (&tty->ldisc_sem){++++}-{0:0}, at: tty_ldisc_ref_wait+0x26/0x80 drivers/tty/tty_ldisc.c:243
#1: ffffc900015b02f0 (&ldata->atomic_read_lock){+.+.}-{3:3}, at: n_tty_read+0xef4/0x13e0 drivers/tty/n_tty.c:2176
1 lock held by udevd/5158:
#0: ffff888146ea14c8 (&disk->open_mutex){+.+.}-{3:3}, at: blkdev_put+0xc0/0x770 block/bdev.c:833
1 lock held by syz-executor.0/5212:
#0: ffff888146ea14c8 (&disk->open_mutex){+.+.}-{3:3}, at: blkdev_get_by_dev.part.0+0x9b/0xb80 block/bdev.c:735
=============================================
NMI backtrace for cpu 0
CPU: 0 PID: 28 Comm: khungtaskd Not tainted 6.3.0-rc6-next-20230414-syzkaller-12018-gd3f2cd248191 #0
Hardware name: Google Google Compute Engine/Google Compute Engine, BIOS Google 03/30/2023
Call Trace:
__dump_stack lib/dump_stack.c:88 [inline]
dump_stack_lvl+0xd9/0x150 lib/dump_stack.c:106
nmi_cpu_backtrace+0x29c/0x350 lib/nmi_backtrace.c:113
nmi_trigger_cpumask_backtrace+0x2a4/0x300 lib/nmi_backtrace.c:62
trigger_all_cpu_backtrace include/linux/nmi.h:148 [inline]
check_hung_uninterruptible_tasks kernel/hung_task.c:222 [inline]
watchdog+0xe16/0x1090 kernel/hung_task.c:379
kthread+0x33e/0x440 kernel/kthread.c:379
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: 75 Comm: kworker/u4:4 Not tainted 6.3.0-rc6-next-20230414-syzkaller-12018-gd3f2cd248191 #0
Hardware name: Google Google Compute Engine/Google Compute Engine, BIOS Google 03/30/2023
Workqueue: events_unbound toggle_allocation_gate
RIP: 0010:hlock_class kernel/locking/lockdep.c:223 [inline]
RIP: 0010:check_wait_context kernel/locking/lockdep.c:4771 [inline]
RIP: 0010:__lock_acquire+0x6d7/0x5df0 kernel/locking/lockdep.c:5024
Code: 00 00 45 3b a5 30 0a 00 00 0f 8d 99 00 00 00 49 63 c4 48 8d 04 80 49 8d 1c c6 48 8d 7b 20 48 89 fa 48 c1 ea 03 42 0f b6 14 3a <84> d2 74 09 80 fa 03 0f 8e 79 2c 00 00 0f b7 53 20 66 81 e2 ff 1f
RSP: 0018:ffffc900015a77c0 EFLAGS: 00000802
RAX: 000000000000000f RBX: ffff888018b027f0 RCX: ffffffff8164d149
RDX: 0000000000000000 RSI: 0000000000000008 RDI: ffff888018b02810
RBP: 0000000000000004 R08: 0000000000000000 R09: ffffffff91510c47
R10: fffffbfff22a2188 R11: 0000000000000000 R12: 0000000000000003
R13: ffff888018b01d40 R14: ffff888018b02778 R15: dffffc0000000000
FS: 0000000000000000(0000) GS:ffff8880b9900000(0000) knlGS:0000000000000000
CS: 0010 DS: 0000 ES: 0000 CR0: 0000000080050033
CR2: 00005593a3418d98 CR3: 000000000c571000 CR4: 00000000003506e0
DR0: 0000000000000000 DR1: 0000000000000000 DR2: 0000000000000000
DR3: 0000000000000000 DR6: 00000000fffe0ff0 DR7: 0000000000000400
Call Trace:
lock_acquire.part.0+0x11c/0x370 kernel/locking/lockdep.c:5691
__mutex_lock_common kernel/locking/mutex.c:603 [inline]
__mutex_lock+0x12f/0x1350 kernel/locking/mutex.c:747
arch_jump_label_transform_queue+0x5c/0x100 arch/x86/kernel/jump_label.c:136
__jump_label_update+0x12e/0x410 kernel/jump_label.c:475
jump_label_update+0x32f/0x410 kernel/jump_label.c:829
static_key_disable_cpuslocked+0x156/0x1b0 kernel/jump_label.c:235
static_key_disable+0x1a/0x20 kernel/jump_label.c:243
toggle_allocation_gate mm/kfence/core.c:836 [inline]
toggle_allocation_gate+0x143/0x230 mm/kfence/core.c:823
process_one_work+0x99a/0x15e0 kernel/workqueue.c:2405
worker_thread+0x67d/0x10c0 kernel/workqueue.c:2552
kthread+0x33e/0x440 kernel/kthread.c:379
ret_from_fork+0x1f/0x30 arch/x86/entry/entry_64.S:308