INFO: task systemd-udevd:23502 blocked for more than 143 seconds. Not tainted 5.14.0-rc3-next-20210730-syzkaller #0 "echo 0 > /proc/sys/kernel/hung_task_timeout_secs" disables this message. task:systemd-udevd state:D stack:26112 pid:23502 ppid: 2986 flags:0x00004000 Call Trace: context_switch kernel/sched/core.c:4700 [inline] __schedule+0x949/0x2710 kernel/sched/core.c:5957 schedule+0xd3/0x290 kernel/sched/core.c:6036 io_schedule+0xba/0x130 kernel/sched/core.c:8036 folio_wait_bit_common+0x4f2/0xa60 mm/filemap.c:1365 folio_wait_bit mm/filemap.c:1425 [inline] folio_wait_locked include/linux/pagemap.h:803 [inline] folio_wait_locked include/linux/pagemap.h:800 [inline] wait_on_page_locked include/linux/pagemap.h:815 [inline] wait_on_page_read mm/filemap.c:3429 [inline] do_read_cache_page+0x988/0x11a0 mm/filemap.c:3472 read_mapping_page include/linux/pagemap.h:602 [inline] read_part_sector+0x146/0x620 block/partitions/core.c:728 adfspart_check_ICS+0x9d/0xc90 block/partitions/acorn.c:360 check_partition block/partitions/core.c:147 [inline] blk_add_partitions block/partitions/core.c:613 [inline] bdev_disk_changed+0x7ac/0x1150 block/partitions/core.c:699 blkdev_get_whole+0x216/0x420 fs/block_dev.c:1238 blkdev_get_by_dev.part.0+0x31e/0xd40 fs/block_dev.c:1382 blkdev_get_by_dev fs/block_dev.c:1471 [inline] blkdev_open+0x295/0x300 fs/block_dev.c:1477 do_dentry_open+0x4c8/0x11d0 fs/open.c:826 do_open fs/namei.c:3374 [inline] path_openat+0x1c23/0x27f0 fs/namei.c:3507 do_filp_open+0x1aa/0x400 fs/namei.c:3534 do_sys_openat2+0x16d/0x420 fs/open.c:1204 do_sys_open fs/open.c:1220 [inline] __do_sys_open fs/open.c:1228 [inline] __se_sys_open fs/open.c:1224 [inline] __x64_sys_open+0x119/0x1c0 fs/open.c:1224 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:0x7f5f72f75840 RSP: 002b:00007ffde7ecd778 EFLAGS: 00000246 ORIG_RAX: 0000000000000002 RAX: ffffffffffffffda RBX: 0000559ec4175a20 RCX: 00007f5f72f75840 RDX: 0000559ec2ffdfe3 RSI: 00000000000a0800 RDI: 0000559ec416f850 RBP: 00007ffde7ecd8f0 R08: 0000559ec2ffd670 R09: 0000000000000010 R10: 0000559ec2ffdd0c R11: 0000000000000246 R12: 00007ffde7ecd840 R13: 0000559ec4163910 R14: 0000000000000003 R15: 000000000000000e INFO: task syz-executor.3:32242 can't die for more than 143 seconds. task:syz-executor.3 state:D stack:28176 pid:32242 ppid: 17357 flags:0x00000004 Call Trace: context_switch kernel/sched/core.c:4700 [inline] __schedule+0x949/0x2710 kernel/sched/core.c:5957 schedule+0xd3/0x290 kernel/sched/core.c:6036 schedule_preempt_disabled+0xf/0x20 kernel/sched/core.c:6095 __mutex_lock_common kernel/locking/mutex.c:1036 [inline] __mutex_lock+0xa46/0x1300 kernel/locking/mutex.c:1096 blkdev_put+0x97/0x9e0 fs/block_dev.c:1499 blkdev_close+0x8c/0xb0 fs/block_dev.c:1551 __fput+0x288/0x920 fs/file_table.c:280 task_work_run+0xdd/0x1a0 kernel/task_work.c:164 tracehook_notify_resume include/linux/tracehook.h:189 [inline] exit_to_user_mode_loop kernel/entry/common.c:175 [inline] exit_to_user_mode_prepare+0x27e/0x290 kernel/entry/common.c:209 __syscall_exit_to_user_mode_work kernel/entry/common.c:291 [inline] syscall_exit_to_user_mode+0x19/0x60 kernel/entry/common.c:302 do_syscall_64+0x42/0xb0 arch/x86/entry/common.c:86 entry_SYSCALL_64_after_hwframe+0x44/0xae RIP: 0033:0x4193fb RSP: 002b:00007ffd24d18860 EFLAGS: 00000293 ORIG_RAX: 0000000000000003 RAX: 0000000000000000 RBX: 0000000000000004 RCX: 00000000004193fb RDX: 0000001b30823cc8 RSI: ffffffff8135a2f2 RDI: 0000000000000003 RBP: 0000000000000001 R08: 0000000000000000 R09: 0000001b308230b8 R10: 0000000000001ac6 R11: 0000000000000293 R12: 000000000056cb00 R13: 000000000056cb00 R14: 000000000056bf80 R15: 00000000001a6335 INFO: task syz-executor.3:32242 blocked for more than 143 seconds. Not tainted 5.14.0-rc3-next-20210730-syzkaller #0 "echo 0 > /proc/sys/kernel/hung_task_timeout_secs" disables this message. task:syz-executor.3 state:D stack:28176 pid:32242 ppid: 17357 flags:0x00000004 Call Trace: context_switch kernel/sched/core.c:4700 [inline] __schedule+0x949/0x2710 kernel/sched/core.c:5957 schedule+0xd3/0x290 kernel/sched/core.c:6036 schedule_preempt_disabled+0xf/0x20 kernel/sched/core.c:6095 __mutex_lock_common kernel/locking/mutex.c:1036 [inline] __mutex_lock+0xa46/0x1300 kernel/locking/mutex.c:1096 blkdev_put+0x97/0x9e0 fs/block_dev.c:1499 blkdev_close+0x8c/0xb0 fs/block_dev.c:1551 __fput+0x288/0x920 fs/file_table.c:280 task_work_run+0xdd/0x1a0 kernel/task_work.c:164 tracehook_notify_resume include/linux/tracehook.h:189 [inline] exit_to_user_mode_loop kernel/entry/common.c:175 [inline] exit_to_user_mode_prepare+0x27e/0x290 kernel/entry/common.c:209 __syscall_exit_to_user_mode_work kernel/entry/common.c:291 [inline] syscall_exit_to_user_mode+0x19/0x60 kernel/entry/common.c:302 do_syscall_64+0x42/0xb0 arch/x86/entry/common.c:86 entry_SYSCALL_64_after_hwframe+0x44/0xae RIP: 0033:0x4193fb RSP: 002b:00007ffd24d18860 EFLAGS: 00000293 ORIG_RAX: 0000000000000003 RAX: 0000000000000000 RBX: 0000000000000004 RCX: 00000000004193fb RDX: 0000001b30823cc8 RSI: ffffffff8135a2f2 RDI: 0000000000000003 RBP: 0000000000000001 R08: 0000000000000000 R09: 0000001b308230b8 R10: 0000000000001ac6 R11: 0000000000000293 R12: 000000000056cb00 R13: 000000000056cb00 R14: 000000000056bf80 R15: 00000000001a6335 Showing all locks held in the system: 1 lock held by khungtaskd/26: #0: ffffffff8b97e980 (rcu_read_lock){....}-{1:2}, at: debug_show_all_locks+0x53/0x260 kernel/locking/lockdep.c:6446 1 lock held by in:imklog/6276: #0: ffff888073261c70 (&f->f_pos_lock){+.+.}-{3:3}, at: __fdget_pos+0xe9/0x100 fs/file.c:990 1 lock held by systemd-udevd/23502: #0: ffff88801b40a118 (&disk->open_mutex){+.+.}-{3:3}, at: blkdev_get_by_dev.part.0+0x98/0xd40 fs/block_dev.c:1375 1 lock held by syz-executor.3/32242: #0: ffff88801b40a118 (&disk->open_mutex){+.+.}-{3:3}, at: blkdev_put+0x97/0x9e0 fs/block_dev.c:1499 ============================================= NMI backtrace for cpu 0 CPU: 0 PID: 26 Comm: khungtaskd Not tainted 5.14.0-rc3-next-20210730-syzkaller #0 Hardware name: Google Google Compute Engine/Google Compute Engine, BIOS Google 01/01/2011 Call Trace: __dump_stack lib/dump_stack.c:88 [inline] dump_stack_lvl+0xcd/0x134 lib/dump_stack.c:105 nmi_cpu_backtrace.cold+0x28/0x11b lib/nmi_backtrace.c:105 nmi_trigger_cpumask_backtrace+0x1ae/0x220 lib/nmi_backtrace.c:62 trigger_all_cpu_backtrace include/linux/nmi.h:146 [inline] check_hung_uninterruptible_tasks kernel/hung_task.c:254 [inline] watchdog+0xcb7/0xed0 kernel/hung_task.c:339 kthread+0x3e5/0x4d0 kernel/kthread.c:319 ret_from_fork+0x1f/0x30 arch/x86/entry/entry_64.S:295 Sending NMI from CPU 0 to CPUs 1: NMI backtrace for cpu 1 CPU: 1 PID: 8552 Comm: kworker/u4:0 Not tainted 5.14.0-rc3-next-20210730-syzkaller #0 Hardware name: Google Google Compute Engine/Google Compute Engine, BIOS Google 01/01/2011 Workqueue: events_unbound toggle_allocation_gate RIP: 0010:__lock_is_held kernel/locking/lockdep.c:5365 [inline] RIP: 0010:lock_is_held_type+0x83/0x140 kernel/locking/lockdep.c:5668 Code: e2 8b 89 31 db e8 fd 0d 00 00 41 8b 84 24 f0 09 00 00 4d 8d ac 24 f8 09 00 00 65 ff 05 e6 4a d4 76 85 c0 7f 12 e9 88 00 00 00 <83> c3 01 41 3b 9c 24 f0 09 00 00 7d 7b 48 63 c3 48 89 ee 48 8d 04 RSP: 0018:ffffc900046d7a80 EFLAGS: 00000046 RAX: 0000000000000000 RBX: 0000000000000001 RCX: 0000000000000001 RDX: 0000000000000000 RSI: ffffffff8b84ab28 RDI: ffff8880157dc320 RBP: ffffffff8b84ab28 R08: 0000000000000000 R09: ffff8880109ae123 R10: ffffed1002135c24 R11: 000000000000003f R12: ffff8880157db900 R13: ffff8880157dc2f8 R14: 00000000ffffffff R15: ffff8880157dc320 FS: 0000000000000000(0000) GS:ffff8880b9d00000(0000) knlGS:0000000000000000 CS: 0010 DS: 0000 ES: 0000 CR0: 0000000080050033 CR2: 00007f1e11d6d000 CR3: 000000000b68e000 CR4: 00000000001506e0 DR0: 0000000000000000 DR1: 0000000000000000 DR2: 0000000000000000 DR3: 0000000000000000 DR6: 00000000fffe0ff0 DR7: 0000000000000400 Call Trace: lock_is_held include/linux/lockdep.h:283 [inline] text_poke+0x68/0x90 arch/x86/kernel/alternative.c:898 text_poke_bp_batch+0x3d7/0x560 arch/x86/kernel/alternative.c:1178 text_poke_flush arch/x86/kernel/alternative.c:1268 [inline] text_poke_flush arch/x86/kernel/alternative.c:1265 [inline] text_poke_finish+0x16/0x30 arch/x86/kernel/alternative.c:1275 arch_jump_label_transform_apply+0x13/0x20 arch/x86/kernel/jump_label.c:146 jump_label_update+0x1d5/0x430 kernel/jump_label.c:830 static_key_disable_cpuslocked+0x152/0x1b0 kernel/jump_label.c:207 static_key_disable+0x16/0x20 kernel/jump_label.c:215 toggle_allocation_gate mm/kfence/core.c:640 [inline] toggle_allocation_gate+0x185/0x390 mm/kfence/core.c:618 process_one_work+0x98d/0x1630 kernel/workqueue.c:2276 worker_thread+0x658/0x11f0 kernel/workqueue.c:2422 kthread+0x3e5/0x4d0 kernel/kthread.c:319 ret_from_fork+0x1f/0x30 arch/x86/entry/entry_64.S:295