Warning: Permanently added '10.128.1.115' (ECDSA) to the list of known hosts. executing program executing program syzkaller login: [ 70.553767][ T8443] [ 70.556127][ T8443] ====================================================== [ 70.563122][ T8443] WARNING: possible circular locking dependency detected [ 70.570115][ T8443] 5.14.0-rc5-syzkaller #0 Not tainted [ 70.575459][ T8443] ------------------------------------------------------ [ 70.582450][ T8443] systemd-udevd/8443 is trying to acquire lock: [ 70.588666][ T8443] ffffffff8c487968 (loop_ctl_mutex){+.+.}-{3:3}, at: loop_add+0x9c/0x8c0 [ 70.597097][ T8443] [ 70.597097][ T8443] but task is already holding lock: [ 70.604445][ T8443] ffffffff8c1f3f08 (major_names_lock){+.+.}-{3:3}, at: blk_request_module+0x25/0x1d0 [ 70.613911][ T8443] [ 70.613911][ T8443] which lock already depends on the new lock. [ 70.613911][ T8443] [ 70.624291][ T8443] [ 70.624291][ T8443] the existing dependency chain (in reverse order) is: [ 70.633280][ T8443] [ 70.633280][ T8443] -> #3 (major_names_lock){+.+.}-{3:3}: [ 70.640985][ T8443] __mutex_lock+0x12a/0x10a0 [ 70.646094][ T8443] __register_blkdev+0x2b/0x3e0 [ 70.651482][ T8443] register_mtd_blktrans+0x85/0x3c0 [ 70.657182][ T8443] do_one_initcall+0x103/0x650 [ 70.662449][ T8443] kernel_init_freeable+0x6b8/0x741 [ 70.668147][ T8443] kernel_init+0x1a/0x1d0 [ 70.672976][ T8443] ret_from_fork+0x1f/0x30 [ 70.677893][ T8443] [ 70.677893][ T8443] -> #2 (mtd_table_mutex){+.+.}-{3:3}: [ 70.685510][ T8443] __mutex_lock+0x12a/0x10a0 [ 70.690603][ T8443] blktrans_open+0x69/0x600 [ 70.695606][ T8443] blkdev_get_whole+0xa1/0x420 [ 70.700867][ T8443] blkdev_get_by_dev.part.0+0x30c/0xdd0 [ 70.706912][ T8443] blkdev_open+0x295/0x300 [ 70.711828][ T8443] do_dentry_open+0x4c8/0x11d0 [ 70.717092][ T8443] path_openat+0x1c23/0x27f0 [ 70.722192][ T8443] do_filp_open+0x1aa/0x400 [ 70.727200][ T8443] do_sys_openat2+0x16d/0x420 [ 70.732378][ T8443] __x64_sys_open+0x119/0x1c0 [ 70.737565][ T8443] do_syscall_64+0x35/0xb0 [ 70.742484][ T8443] entry_SYSCALL_64_after_hwframe+0x44/0xae [ 70.748892][ T8443] [ 70.748892][ T8443] -> #1 (&disk->open_mutex){+.+.}-{3:3}: [ 70.756683][ T8443] __mutex_lock+0x12a/0x10a0 [ 70.761794][ T8443] del_gendisk+0x8b/0x770 [ 70.766637][ T8443] loop_control_ioctl+0x3b5/0x450 [ 70.772160][ T8443] __do_compat_sys_ioctl+0x1c7/0x290 [ 70.777957][ T8443] __do_fast_syscall_32+0x65/0xf0 [ 70.783482][ T8443] do_fast_syscall_32+0x2f/0x70 [ 70.788846][ T8443] entry_SYSENTER_compat_after_hwframe+0x4d/0x5c [ 70.795677][ T8443] [ 70.795677][ T8443] -> #0 (loop_ctl_mutex){+.+.}-{3:3}: [ 70.803204][ T8443] __lock_acquire+0x2a07/0x54a0 [ 70.808553][ T8443] lock_acquire+0x1ab/0x510 [ 70.813553][ T8443] __mutex_lock+0x12a/0x10a0 [ 70.818645][ T8443] loop_add+0x9c/0x8c0 [ 70.823211][ T8443] loop_probe+0x6a/0x80 [ 70.827877][ T8443] blk_request_module+0x111/0x1d0 [ 70.833401][ T8443] blkdev_get_no_open+0x1d5/0x250 [ 70.838923][ T8443] blkdev_get_by_dev.part.0+0x25/0xdd0 [ 70.844882][ T8443] blkdev_open+0x295/0x300 [ 70.849795][ T8443] do_dentry_open+0x4c8/0x11d0 [ 70.855060][ T8443] path_openat+0x1c23/0x27f0 [ 70.860150][ T8443] do_filp_open+0x1aa/0x400 [ 70.865149][ T8443] do_sys_openat2+0x16d/0x420 [ 70.870326][ T8443] __x64_sys_open+0x119/0x1c0 [ 70.875502][ T8443] do_syscall_64+0x35/0xb0 [ 70.880417][ T8443] entry_SYSCALL_64_after_hwframe+0x44/0xae [ 70.886812][ T8443] [ 70.886812][ T8443] other info that might help us debug this: [ 70.886812][ T8443] [ 70.897012][ T8443] Chain exists of: [ 70.897012][ T8443] loop_ctl_mutex --> mtd_table_mutex --> major_names_lock [ 70.897012][ T8443] [ 70.910011][ T8443] Possible unsafe locking scenario: [ 70.910011][ T8443] [ 70.917449][ T8443] CPU0 CPU1 [ 70.922788][ T8443] ---- ---- [ 70.928126][ T8443] lock(major_names_lock); [ 70.932608][ T8443] lock(mtd_table_mutex); [ 70.939517][ T8443] lock(major_names_lock); [ 70.946514][ T8443] lock(loop_ctl_mutex); [ 70.950830][ T8443] [ 70.950830][ T8443] *** DEADLOCK *** [ 70.950830][ T8443] [ 70.958956][ T8443] 1 lock held by systemd-udevd/8443: [ 70.964232][ T8443] #0: ffffffff8c1f3f08 (major_names_lock){+.+.}-{3:3}, at: blk_request_module+0x25/0x1d0 [ 70.974128][ T8443] [ 70.974128][ T8443] stack backtrace: [ 70.980002][ T8443] CPU: 1 PID: 8443 Comm: systemd-udevd Not tainted 5.14.0-rc5-syzkaller #0 [ 70.988576][ T8443] Hardware name: Google Google Compute Engine/Google Compute Engine, BIOS Google 01/01/2011 [ 70.998609][ T8443] Call Trace: [ 71.001873][ T8443] dump_stack_lvl+0xcd/0x134 [ 71.006476][ T8443] check_noncircular+0x25f/0x2e0 [ 71.011399][ T8443] ? lockdep_hardirqs_on_prepare+0x400/0x400 [ 71.017370][ T8443] ? print_circular_bug+0x1e0/0x1e0 [ 71.022553][ T8443] ? lock_chain_count+0x20/0x20 [ 71.027399][ T8443] ? lockdep_lock+0xc6/0x200 [ 71.031982][ T8443] ? call_rcu_zapped+0xb0/0xb0 [ 71.036728][ T8443] __lock_acquire+0x2a07/0x54a0 [ 71.041564][ T8443] ? lockdep_hardirqs_on_prepare+0x400/0x400 [ 71.047524][ T8443] lock_acquire+0x1ab/0x510 [ 71.052006][ T8443] ? loop_add+0x9c/0x8c0 [ 71.056229][ T8443] ? lock_release+0x720/0x720 [ 71.060893][ T8443] ? path_openat+0x1c23/0x27f0 [ 71.065653][ T8443] ? do_filp_open+0x1aa/0x400 [ 71.070318][ T8443] ? do_sys_openat2+0x16d/0x420 [ 71.075150][ T8443] ? __x64_sys_open+0x119/0x1c0 [ 71.079982][ T8443] __mutex_lock+0x12a/0x10a0 [ 71.084553][ T8443] ? loop_add+0x9c/0x8c0 [ 71.088775][ T8443] ? loop_add+0x9c/0x8c0 [ 71.092995][ T8443] ? mutex_lock_io_nested+0xf00/0xf00 [ 71.098351][ T8443] ? rcu_read_lock_sched_held+0x3a/0x70 [ 71.103894][ T8443] loop_add+0x9c/0x8c0 [ 71.107942][ T8443] ? find_inode_fast+0x16f/0x220 [ 71.112862][ T8443] loop_probe+0x6a/0x80 [ 71.116996][ T8443] ? loop_add+0x8c0/0x8c0 [ 71.121303][ T8443] blk_request_module+0x111/0x1d0 [ 71.126310][ T8443] blkdev_get_no_open+0x1d5/0x250 [ 71.131313][ T8443] blkdev_get_by_dev.part.0+0x25/0xdd0 [ 71.136750][ T8443] ? devcgroup_check_permission+0x1bb/0x410 [ 71.142640][ T8443] blkdev_open+0x295/0x300 [ 71.147035][ T8443] do_dentry_open+0x4c8/0x11d0 [ 71.151786][ T8443] ? blkdev_get_by_dev+0x80/0x80 [ 71.156715][ T8443] ? __sanitizer_cov_trace_const_cmp4+0x1c/0x70 [ 71.162945][ T8443] ? may_open+0x1f6/0x420 [ 71.167255][ T8443] path_openat+0x1c23/0x27f0 [ 71.171823][ T8443] ? path_lookupat+0x860/0x860 [ 71.176578][ T8443] ? lockdep_hardirqs_on_prepare+0x400/0x400 [ 71.182550][ T8443] do_filp_open+0x1aa/0x400 [ 71.187042][ T8443] ? may_open_dev+0xf0/0xf0 [ 71.191526][ T8443] ? rwlock_bug.part.0+0x90/0x90 [ 71.196445][ T8443] ? __sanitizer_cov_trace_const_cmp8+0x1d/0x70 [ 71.202664][ T8443] ? _find_next_bit+0x1e3/0x260 [ 71.207506][ T8443] ? _raw_spin_unlock+0x24/0x40 [ 71.212334][ T8443] ? alloc_fd+0x2f0/0x670 [ 71.216645][ T8443] do_sys_openat2+0x16d/0x420 [ 71.221303][ T8443] ? build_open_flags+0x6f0/0x6f0 [ 71.226313][ T8443] ? __context_tracking_exit+0xb8/0xe0 [ 71.231758][ T8443] __x64_sys_open+0x119/0x1c0 [ 71.236427][ T8443] ? do_sys_open+0x140/0x140 [ 71.240995][ T8443] ? __secure_computing+0x104/0x360 [ 71.246178][ T8443] do_syscall_64+0x35/0xb0 [ 71.250576][ T8443] entry_SYSCALL_64_after_hwframe+0x44/0xae [ 71.256450][ T8443] RIP: 0033:0x7f9fb155b840 [ 71.260845][ T8443] Code: 73 01 c3 48 8b 0d 68 77 20 00 f7 d8 64 89 01 48 83 c8 ff c3 66 0f 1f 44 00 00 83 3d 89 bb 20 00 00 75 10 b8 02 00 00 00 0f 05 <48> 3d 01 f0 ff ff 73 31 c3 48 83 ec 08 e8 1e f6 ff ff 48 89 04 24 [ 71.280430][ T8443] RSP: 002b:00007ffe5e1bbbf8 EFLAGS: 00000246 ORIG_RAX: 0000000000000002 [ 71.288817][ T8443] RAX: ffffffffffffffda RBX: 0000560727dc3e10 RCX: 00007f9fb155b840 [ 71.296766][ T8443] RDX: 0000560727869fe3 RSI: 00000000000a0800 RDI: 0000560727dc2590 executing program executing program [ 71.304721][ T8443] RBP: 00007ffe5e1bbd70 R08: 0000560727869670 R09: 0000000000000010 [ 71.312669][ T8443] R10: 0000560727869d0c R11: 0000000000000246 R12: 00007ffe5e1bbcc0 [ 71.320619][ T8443] R13: 0000560727dc3f10 R14: 0000000000000003 R15: 000000000000000e executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program