INFO: task udevd:15987 blocked for more than 143 seconds.
Not tainted 5.18.0-rc3-next-20220419-syzkaller #0
"echo 0 > /proc/sys/kernel/hung_task_timeout_secs" disables this message.
task:udevd state:D stack:26136 pid:15987 ppid: 2961 flags:0x00004000
Call Trace:
context_switch kernel/sched/core.c:5107 [inline]
__schedule+0xa9a/0x4cc0 kernel/sched/core.c:6422
schedule+0xd2/0x1f0 kernel/sched/core.c:6494
io_schedule+0xba/0x130 kernel/sched/core.c:8609
folio_wait_bit_common+0x4f2/0xa90 mm/filemap.c:1324
folio_wait_bit mm/filemap.c:1473 [inline]
folio_wait_locked include/linux/pagemap.h:976 [inline]
folio_wait_locked include/linux/pagemap.h:973 [inline]
do_read_cache_folio+0x506/0x760 mm/filemap.c:3521
do_read_cache_page mm/filemap.c:3593 [inline]
read_cache_page+0x59/0x2a0 mm/filemap.c:3602
read_mapping_page include/linux/pagemap.h:759 [inline]
read_part_sector+0xf6/0x920 block/partitions/core.c:715
adfspart_check_ICS+0x9a/0x690 block/partitions/acorn.c:360
check_partition block/partitions/core.c:147 [inline]
blk_add_partitions block/partitions/core.c:600 [inline]
bdev_disk_changed block/partitions/core.c:686 [inline]
bdev_disk_changed+0x629/0xf60 block/partitions/core.c:653
blkdev_get_whole+0x18a/0x2d0 block/bdev.c:686
blkdev_get_by_dev.part.0+0x5ec/0xb90 block/bdev.c:823
blkdev_get_by_dev+0x6b/0x80 block/bdev.c:857
blkdev_open+0x13c/0x2c0 block/fops.c:503
do_dentry_open+0x4a1/0x11f0 fs/open.c:824
do_open fs/namei.c:3469 [inline]
path_openat+0x1c71/0x2910 fs/namei.c:3602
do_filp_open+0x1aa/0x400 fs/namei.c:3629
do_sys_openat2+0x16d/0x4c0 fs/open.c:1212
do_sys_open fs/open.c:1228 [inline]
__do_sys_openat fs/open.c:1244 [inline]
__se_sys_openat fs/open.c:1239 [inline]
__x64_sys_openat+0x13f/0x1f0 fs/open.c:1239
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:0x7f32bbb25697
RSP: 002b:00007fff2644fa50 EFLAGS: 00000246 ORIG_RAX: 0000000000000101
RAX: ffffffffffffffda RBX: 00005561b3fd6950 RCX: 00007f32bbb25697
RDX: 00000000000a0800 RSI: 00005561b3fc3860 RDI: 00000000ffffff9c
RBP: 00005561b3fc3860 R08: 0000000000000001 R09: 00007fff2645c080
R10: 0000000000000000 R11: 0000000000000246 R12: 00000000000a0800
R13: 00005561b3fd75c0 R14: 0000000000000001 R15: 00005561b3fc2910
INFO: task syz-executor.2:21464 can't die for more than 143 seconds.
task:syz-executor.2 state:D stack:28032 pid:21464 ppid: 3626 flags:0x00000004
Call Trace:
context_switch kernel/sched/core.c:5107 [inline]
__schedule+0xa9a/0x4cc0 kernel/sched/core.c:6422
schedule+0xd2/0x1f0 kernel/sched/core.c:6494
schedule_preempt_disabled+0xf/0x20 kernel/sched/core.c:6553
__mutex_lock_common kernel/locking/mutex.c:679 [inline]
__mutex_lock+0xa70/0x1350 kernel/locking/mutex.c:747
blkdev_put+0xbc/0x770 block/bdev.c:912
blkdev_close+0x64/0x80 block/fops.c:517
__fput+0x277/0x9d0 fs/file_table.c:317
task_work_run+0xdd/0x1a0 kernel/task_work.c:164
resume_user_mode_work include/linux/resume_user_mode.h:49 [inline]
exit_to_user_mode_loop kernel/entry/common.c:169 [inline]
exit_to_user_mode_prepare+0x23c/0x250 kernel/entry/common.c:201
__syscall_exit_to_user_mode_work kernel/entry/common.c:283 [inline]
syscall_exit_to_user_mode+0x19/0x50 kernel/entry/common.c:294
do_syscall_64+0x42/0xb0 arch/x86/entry/common.c:86
entry_SYSCALL_64_after_hwframe+0x44/0xae
RIP: 0033:0x7f5b59e3bd2b
RSP: 002b:00007ffd2b0dc670 EFLAGS: 00000293 ORIG_RAX: 0000000000000003
RAX: 0000000000000000 RBX: 0000000000000004 RCX: 00007f5b59e3bd2b
RDX: 00007f5b59fa0350 RSI: ffffffffffffffff RDI: 0000000000000003
RBP: 00007f5b59f9d960 R08: 0000000000000000 R09: 00007f5b59fa0358
R10: 00007ffd2b0dc770 R11: 0000000000000293 R12: 00000000000a703d
R13: 00007ffd2b0dc770 R14: 00007f5b59f9c030 R15: 0000000000000032
INFO: task syz-executor.2:21464 blocked for more than 143 seconds.
Not tainted 5.18.0-rc3-next-20220419-syzkaller #0
"echo 0 > /proc/sys/kernel/hung_task_timeout_secs" disables this message.
task:syz-executor.2 state:D stack:28032 pid:21464 ppid: 3626 flags:0x00000004
Call Trace:
context_switch kernel/sched/core.c:5107 [inline]
__schedule+0xa9a/0x4cc0 kernel/sched/core.c:6422
schedule+0xd2/0x1f0 kernel/sched/core.c:6494
schedule_preempt_disabled+0xf/0x20 kernel/sched/core.c:6553
__mutex_lock_common kernel/locking/mutex.c:679 [inline]
__mutex_lock+0xa70/0x1350 kernel/locking/mutex.c:747
blkdev_put+0xbc/0x770 block/bdev.c:912
blkdev_close+0x64/0x80 block/fops.c:517
__fput+0x277/0x9d0 fs/file_table.c:317
task_work_run+0xdd/0x1a0 kernel/task_work.c:164
resume_user_mode_work include/linux/resume_user_mode.h:49 [inline]
exit_to_user_mode_loop kernel/entry/common.c:169 [inline]
exit_to_user_mode_prepare+0x23c/0x250 kernel/entry/common.c:201
__syscall_exit_to_user_mode_work kernel/entry/common.c:283 [inline]
syscall_exit_to_user_mode+0x19/0x50 kernel/entry/common.c:294
do_syscall_64+0x42/0xb0 arch/x86/entry/common.c:86
entry_SYSCALL_64_after_hwframe+0x44/0xae
RIP: 0033:0x7f5b59e3bd2b
RSP: 002b:00007ffd2b0dc670 EFLAGS: 00000293 ORIG_RAX: 0000000000000003
RAX: 0000000000000000 RBX: 0000000000000004 RCX: 00007f5b59e3bd2b
RDX: 00007f5b59fa0350 RSI: ffffffffffffffff RDI: 0000000000000003
RBP: 00007f5b59f9d960 R08: 0000000000000000 R09: 00007f5b59fa0358
R10: 00007ffd2b0dc770 R11: 0000000000000293 R12: 00000000000a703d
R13: 00007ffd2b0dc770 R14: 00007f5b59f9c030 R15: 0000000000000032
Showing all locks held in the system:
1 lock held by khungtaskd/28:
#0: ffffffff8bd84f60 (rcu_read_lock){....}-{1:2}, at: debug_show_all_locks+0x53/0x260 kernel/locking/lockdep.c:6491
2 locks held by getty/3270:
#0: ffff8881489d2098 (&tty->ldisc_sem){++++}-{0:0}, at: tty_ldisc_ref_wait+0x22/0x80 drivers/tty/tty_ldisc.c:244
#1: ffffc90002e732e8 (&ldata->atomic_read_lock){+.+.}-{3:3}, at: n_tty_read+0xe50/0x13c0 drivers/tty/n_tty.c:2111
1 lock held by udevd/15987:
#0: ffff8881486b8118 (&disk->open_mutex){+.+.}-{3:3}, at: blkdev_get_by_dev.part.0+0x9b/0xb90 block/bdev.c:814
1 lock held by syz-executor.2/21464:
#0: ffff8881486b8118 (&disk->open_mutex){+.+.}-{3:3}, at: blkdev_put+0xbc/0x770 block/bdev.c:912
=============================================
NMI backtrace for cpu 1
CPU: 1 PID: 28 Comm: khungtaskd Not tainted 5.18.0-rc3-next-20220419-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:106
nmi_cpu_backtrace.cold+0x47/0x144 lib/nmi_backtrace.c:111
nmi_trigger_cpumask_backtrace+0x1e6/0x230 lib/nmi_backtrace.c:62
trigger_all_cpu_backtrace include/linux/nmi.h:146 [inline]
check_hung_uninterruptible_tasks kernel/hung_task.c:256 [inline]
watchdog+0xcb7/0xed0 kernel/hung_task.c:413
kthread+0x2e9/0x3a0 kernel/kthread.c:376
ret_from_fork+0x1f/0x30 arch/x86/entry/entry_64.S:298
Sending NMI from CPU 1 to CPUs 0:
NMI backtrace for cpu 0
CPU: 0 PID: 3591 Comm: syz-fuzzer Not tainted 5.18.0-rc3-next-20220419-syzkaller #0
Hardware name: Google Google Compute Engine/Google Compute Engine, BIOS Google 01/01/2011
RIP: 0010:mark_lock.part.0+0x136/0x1910 kernel/locking/lockdep.c:4611
Code: 78 50 48 ba 00 00 00 00 00 fc ff df 48 89 f9 48 c1 e9 03 80 3c 11 00 0f 85 65 13 00 00 48 89 ee 48 23 70 50 0f 84 d3 06 00 00 <41> ba 01 00 00 00 48 b8 00 00 00 00 00 fc ff df 48 01 c3 48 c7 03
RSP: 0018:ffffc9000397f6e0 EFLAGS: 00000006
RAX: ffffffff900534a0 RBX: 1ffff9200072fee3 RCX: 1ffffffff200a69e
RDX: dffffc0000000000 RSI: 0000000000000100 RDI: ffffffff900534f0
RBP: 0000000000000100 R08: 0000000000000000 R09: ffffffff9004b897
R10: fffffbfff2009712 R11: 0000000000000001 R12: ffff88801ce5a7f8
R13: 0000000000000008 R14: 00000000000000a0 R15: ffff88801ce5a818
FS: 0000000001829750(0000) GS:ffff8880b9c00000(0000) knlGS:0000000000000000
CS: 0010 DS: 0000 ES: 0000 CR0: 0000000080050033
CR2: 000000c005c85000 CR3: 0000000020385000 CR4: 00000000003506f0
DR0: 0000000000000000 DR1: 0000000000000000 DR2: 0000000000000000
DR3: 0000000000000000 DR6: 00000000fffe0ff0 DR7: 0000000000000400
Call Trace:
mark_lock kernel/locking/lockdep.c:4596 [inline]
mark_usage kernel/locking/lockdep.c:4553 [inline]
__lock_acquire+0x8ab/0x5660 kernel/locking/lockdep.c:5007
lock_acquire kernel/locking/lockdep.c:5665 [inline]
lock_acquire+0x1ab/0x570 kernel/locking/lockdep.c:5630
do_write_seqcount_begin_nested include/linux/seqlock.h:516 [inline]
do_write_seqcount_begin include/linux/seqlock.h:541 [inline]
psi_group_change+0x137/0xc70 kernel/sched/psi.c:709
psi_enqueue kernel/sched/stats.h:136 [inline]
enqueue_task+0x1b6/0x3c0 kernel/sched/core.c:2058
activate_task kernel/sched/core.c:2087 [inline]
ttwu_do_activate+0x157/0x330 kernel/sched/core.c:3666
ttwu_queue kernel/sched/core.c:3862 [inline]
try_to_wake_up+0x557/0x1800 kernel/sched/core.c:4185
wake_up_process kernel/sched/core.c:4269 [inline]
wake_up_q+0x7e/0xf0 kernel/sched/core.c:1016
futex_wake+0x3e9/0x490 kernel/futex/waitwake.c:184
do_futex+0x266/0x300 kernel/futex/syscalls.c:111
__do_sys_futex kernel/futex/syscalls.c:183 [inline]
__se_sys_futex kernel/futex/syscalls.c:164 [inline]
__x64_sys_futex+0x1b0/0x4a0 kernel/futex/syscalls.c:164
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:0x4668c3
Code: 24 20 c3 cc cc cc cc 48 8b 7c 24 08 8b 74 24 10 8b 54 24 14 4c 8b 54 24 18 4c 8b 44 24 20 44 8b 4c 24 28 b8 ca 00 00 00 0f 05 <89> 44 24 30 c3 cc cc cc cc cc cc cc cc cc cc cc cc cc cc cc cc cc
RSP: 002b:00007ffdc0f94928 EFLAGS: 00000206 ORIG_RAX: 00000000000000ca
RAX: ffffffffffffffda RBX: 0000000000000001 RCX: 00000000004668c3
RDX: 0000000000000001 RSI: 0000000000000081 RDI: 000000c0001d3150
RBP: 00007ffdc0f94978 R08: 0000000000000000 R09: 0000000000000000
R10: 0000000000000000 R11: 0000000000000206 R12: 00007ffdc0f94990
R13: 0000000000002d00 R14: 00000000018292e0 R15: 0000000000001018
----------------
Code disassembly (best guess):
0: 78 50 js 0x52
2: 48 ba 00 00 00 00 00 movabs $0xdffffc0000000000,%rdx
9: fc ff df
c: 48 89 f9 mov %rdi,%rcx
f: 48 c1 e9 03 shr $0x3,%rcx
13: 80 3c 11 00 cmpb $0x0,(%rcx,%rdx,1)
17: 0f 85 65 13 00 00 jne 0x1382
1d: 48 89 ee mov %rbp,%rsi
20: 48 23 70 50 and 0x50(%rax),%rsi
24: 0f 84 d3 06 00 00 je 0x6fd
* 2a: 41 ba 01 00 00 00 mov $0x1,%r10d <-- trapping instruction
30: 48 b8 00 00 00 00 00 movabs $0xdffffc0000000000,%rax
37: fc ff df
3a: 48 01 c3 add %rax,%rbx
3d: 48 rex.W
3e: c7 .byte 0xc7
3f: 03 .byte 0x3