INFO: task systemd-udevd:2972 blocked for more than 143 seconds. Not tainted 5.16.0-rc1-next-20211118-syzkaller #0 "echo 0 > /proc/sys/kernel/hung_task_timeout_secs" disables this message. task:systemd-udevd state:D stack:22872 pid: 2972 ppid: 1 flags:0x00000000 Call Trace: context_switch kernel/sched/core.c:4987 [inline] __schedule+0xa9a/0x4940 kernel/sched/core.c:6268 schedule+0xd2/0x260 kernel/sched/core.c:6341 schedule_preempt_disabled+0xf/0x20 kernel/sched/core.c:6400 __mutex_lock_common kernel/locking/mutex.c:680 [inline] __mutex_lock+0xa32/0x12f0 kernel/locking/mutex.c:740 blkdev_get_by_dev.part.0+0x9b/0xb50 block/bdev.c:819 blkdev_get_by_dev+0x6b/0x80 block/bdev.c:859 blkdev_open+0x154/0x2e0 block/fops.c:501 do_dentry_open+0x4c8/0x1250 fs/open.c:822 do_open fs/namei.c:3426 [inline] path_openat+0x1cad/0x2750 fs/namei.c:3559 do_filp_open+0x1aa/0x400 fs/namei.c:3586 do_sys_openat2+0x16d/0x4d0 fs/open.c:1212 do_sys_open fs/open.c:1228 [inline] __do_sys_open fs/open.c:1236 [inline] __se_sys_open fs/open.c:1232 [inline] __x64_sys_open+0x119/0x1c0 fs/open.c:1232 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:0x7f0824470840 RSP: 002b:00007ffc6d002848 EFLAGS: 00000246 ORIG_RAX: 0000000000000002 RAX: ffffffffffffffda RBX: 00007ffc6d002910 RCX: 00007f0824470840 RDX: 0000560f658f4fe3 RSI: 00000000000a0800 RDI: 0000560f665963b0 RBP: 0000000000000000 R08: 0000560f658f4670 R09: 0000000000000010 R10: 0000000000000000 R11: 0000000000000246 R12: 00007ffc6d0029f0 R13: 0000560f66586010 R14: 0000560f66594e20 R15: 00007ffc6d0028c0 INFO: task syz-executor.4:19985 can't die for more than 143 seconds. task:syz-executor.4 state:D stack:28000 pid:19985 ppid: 7973 flags:0x00000004 Call Trace: context_switch kernel/sched/core.c:4987 [inline] __schedule+0xa9a/0x4940 kernel/sched/core.c:6268 schedule+0xd2/0x260 kernel/sched/core.c:6341 blk_mq_freeze_queue_wait+0x112/0x160 block/blk-mq.c:178 lo_release+0x160/0x1f0 drivers/block/loop.c:1768 blkdev_put_whole block/bdev.c:694 [inline] blkdev_put+0x2fb/0x9e0 block/bdev.c:956 blkdev_close+0x6a/0x80 block/fops.c:515 __fput+0x286/0x9f0 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:207 __syscall_exit_to_user_mode_work kernel/entry/common.c:289 [inline] syscall_exit_to_user_mode+0x19/0x60 kernel/entry/common.c:300 do_syscall_64+0x42/0xb0 arch/x86/entry/common.c:86 entry_SYSCALL_64_after_hwframe+0x44/0xae RIP: 0033:0x7f77f901f72b RSP: 002b:00007ffeea2bb2e0 EFLAGS: 00000293 ORIG_RAX: 0000000000000003 RAX: 0000000000000000 RBX: 0000000000000005 RCX: 00007f77f901f72b RDX: 0000001b31624c5c RSI: ffffffff83d614c5 RDI: 0000000000000004 RBP: 0000000000000001 R08: 0000000000000000 R09: 0000001b31620148 R10: 0000000000000a54 R11: 0000000000000293 R12: 00007f77f9180b60 R13: 00007f77f9180b60 R14: 00007f77f917ff60 R15: 0000000000095ac4 INFO: task syz-executor.4:19985 blocked for more than 143 seconds. Not tainted 5.16.0-rc1-next-20211118-syzkaller #0 "echo 0 > /proc/sys/kernel/hung_task_timeout_secs" disables this message. task:syz-executor.4 state:D stack:28000 pid:19985 ppid: 7973 flags:0x00000004 Call Trace: context_switch kernel/sched/core.c:4987 [inline] __schedule+0xa9a/0x4940 kernel/sched/core.c:6268 schedule+0xd2/0x260 kernel/sched/core.c:6341 blk_mq_freeze_queue_wait+0x112/0x160 block/blk-mq.c:178 lo_release+0x160/0x1f0 drivers/block/loop.c:1768 blkdev_put_whole block/bdev.c:694 [inline] blkdev_put+0x2fb/0x9e0 block/bdev.c:956 blkdev_close+0x6a/0x80 block/fops.c:515 __fput+0x286/0x9f0 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:207 __syscall_exit_to_user_mode_work kernel/entry/common.c:289 [inline] syscall_exit_to_user_mode+0x19/0x60 kernel/entry/common.c:300 do_syscall_64+0x42/0xb0 arch/x86/entry/common.c:86 entry_SYSCALL_64_after_hwframe+0x44/0xae RIP: 0033:0x7f77f901f72b RSP: 002b:00007ffeea2bb2e0 EFLAGS: 00000293 ORIG_RAX: 0000000000000003 RAX: 0000000000000000 RBX: 0000000000000005 RCX: 00007f77f901f72b RDX: 0000001b31624c5c RSI: ffffffff83d614c5 RDI: 0000000000000004 RBP: 0000000000000001 R08: 0000000000000000 R09: 0000001b31620148 R10: 0000000000000a54 R11: 0000000000000293 R12: 00007f77f9180b60 R13: 00007f77f9180b60 R14: 00007f77f917ff60 R15: 0000000000095ac4 Showing all locks held in the system: 1 lock held by ksoftirqd/0/13: #0: ffff8880b9c39a98 (&rq->__lock){-.-.}-{2:2}, at: raw_spin_rq_lock_nested+0x2b/0x120 kernel/sched/core.c:478 1 lock held by khungtaskd/27: #0: ffffffff8bb83ba0 (rcu_read_lock){....}-{1:2}, at: debug_show_all_locks+0x53/0x260 kernel/locking/lockdep.c:6458 1 lock held by systemd-udevd/2972: #0: ffff88801abba918 (&disk->open_mutex){+.+.}-{3:3}, at: blkdev_get_by_dev.part.0+0x9b/0xb50 block/bdev.c:819 1 lock held by in:imklog/6217: #0: ffff88807bbfb770 (&f->f_pos_lock){+.+.}-{3:3}, at: __fdget_pos+0xe9/0x100 fs/file.c:990 2 locks held by agetty/6232: #0: ffff88807e6f4098 (&tty->ldisc_sem){++++}-{0:0}, at: tty_ldisc_ref_wait+0x22/0x80 drivers/tty/tty_ldisc.c:252 #1: ffffc900027ec2e8 (&ldata->atomic_read_lock){+.+.}-{3:3}, at: n_tty_read+0xcf0/0x1230 drivers/tty/n_tty.c:2113 2 locks held by syz-executor.4/19985: #0: ffff88801abba918 (&disk->open_mutex){+.+.}-{3:3}, at: blkdev_put+0x97/0x9e0 block/bdev.c:914 #1: ffff88801aba6360 (&lo->lo_mutex){+.+.}-{3:3}, at: lo_release+0x4d/0x1f0 drivers/block/loop.c:1748 ============================================= NMI backtrace for cpu 0 CPU: 0 PID: 27 Comm: khungtaskd Not tainted 5.16.0-rc1-next-20211118-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+0x1b3/0x230 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+0x405/0x4f0 kernel/kthread.c:327 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: 2967 Comm: systemd-journal Not tainted 5.16.0-rc1-next-20211118-syzkaller #0 Hardware name: Google Google Compute Engine/Google Compute Engine, BIOS Google 01/01/2011 RIP: 0010:map_id_range_down_base kernel/user_namespace.c:290 [inline] RIP: 0010:map_id_range_down+0x2e6/0x340 kernel/user_namespace.c:302 Code: c0 03 38 d0 7c 04 84 d2 75 3c 44 03 6b 04 41 29 ed e9 ed fe ff ff e8 69 c4 03 00 48 8b 4c 24 08 48 8d 44 6d 00 48 8d 5c 81 08 72 ff ff ff 48 89 df e8 7d 8d 4a 00 e9 07 fe ff ff e8 73 8d 4a RSP: 0018:ffffc90001f7fa18 EFLAGS: 00000293 RAX: 0000000000000000 RBX: ffffffff8ba415a8 RCX: ffffffff8ba415a0 RDX: ffff88807a9657c0 RSI: ffffffff8173df97 RDI: 0000000000000003 RBP: 0000000000000000 R08: 0000000000000000 R09: 0000000000000000 R10: ffffffff8173de51 R11: 0000000000000000 R12: 0000000000000000 R13: 0000000000000000 R14: 00000000fffffffe R15: 0000000000000001 FS: 00007f240c4418c0(0000) GS:ffff8880b9d00000(0000) knlGS:0000000000000000 CS: 0010 DS: 0000 ES: 0000 CR0: 0000000080050033 CR2: 00007f2409b01000 CR3: 000000001c20e000 CR4: 00000000003506e0 DR0: 0000000000000000 DR1: 0000000000000000 DR2: 0000000000000000 DR3: 0000000000000000 DR6: 00000000fffe0ff0 DR7: 0000000000000400 Call Trace: map_id_down kernel/user_namespace.c:317 [inline] make_kuid+0x1e/0x30 kernel/user_namespace.c:394 kuid_into_mnt include/linux/fs.h:1638 [inline] i_uid_into_mnt include/linux/fs.h:1666 [inline] acl_permission_check fs/namei.c:341 [inline] generic_permission+0x88/0x5b0 fs/namei.c:403 do_inode_permission fs/namei.c:464 [inline] inode_permission.part.0+0x95/0x440 fs/namei.c:524 inode_permission fs/namei.c:505 [inline] may_lookup fs/namei.c:1683 [inline] link_path_walk.part.0+0x277/0xd00 fs/namei.c:2239 link_path_walk fs/namei.c:2221 [inline] path_lookupat+0xc8/0x860 fs/namei.c:2448 filename_lookup+0x1c6/0x590 fs/namei.c:2478 user_path_at_empty+0x42/0x60 fs/namei.c:2801 user_path_at include/linux/namei.h:57 [inline] do_faccessat+0x127/0x850 fs/open.c:421 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:0x7f240b6fc9c7 Code: 83 c4 08 48 3d 01 f0 ff ff 73 01 c3 48 8b 0d c8 d4 2b 00 f7 d8 64 89 01 48 83 c8 ff c3 66 0f 1f 44 00 00 b8 15 00 00 00 0f 05 <48> 3d 01 f0 ff ff 73 01 c3 48 8b 0d a1 d4 2b 00 f7 d8 64 89 01 48 RSP: 002b:00007fff525fc528 EFLAGS: 00000246 ORIG_RAX: 0000000000000015 RAX: ffffffffffffffda RBX: 00007fff525ff440 RCX: 00007f240b6fc9c7 RDX: 00007f240c16da00 RSI: 0000000000000000 RDI: 0000560bb13969a3 RBP: 00007fff525fc560 R08: 0000000000000000 R09: 0000000000000000 R10: 0000000000000069 R11: 0000000000000246 R12: 0000000000000000 R13: 0000000000000000 R14: 00007fff525ff440 R15: 00007fff525fca50 ---------------- Code disassembly (best guess): 0: c0 03 38 rolb $0x38,(%rbx) 3: d0 7c 04 84 sarb -0x7c(%rsp,%rax,1) 7: d2 75 3c shlb %cl,0x3c(%rbp) a: 44 03 6b 04 add 0x4(%rbx),%r13d e: 41 29 ed sub %ebp,%r13d 11: e9 ed fe ff ff jmpq 0xffffff03 16: e8 69 c4 03 00 callq 0x3c484 1b: 48 8b 4c 24 08 mov 0x8(%rsp),%rcx 20: 48 8d 44 6d 00 lea 0x0(%rbp,%rbp,2),%rax 25: 48 8d 5c 81 08 lea 0x8(%rcx,%rax,4),%rbx * 2a: e9 72 ff ff ff jmpq 0xffffffa1 <-- trapping instruction 2f: 48 89 df mov %rbx,%rdi 32: e8 7d 8d 4a 00 callq 0x4a8db4 37: e9 07 fe ff ff jmpq 0xfffffe43 3c: e8 .byte 0xe8 3d: 73 8d jae 0xffffffcc 3f: 4a rex.WX