Warning: Permanently added '10.128.1.10' (ECDSA) to the list of known hosts. executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program syzkaller login: [ 69.622823][ T8674] [ 69.625198][ T8674] ====================================================== [ 69.632803][ T8674] WARNING: possible circular locking dependency detected [ 69.639799][ T8674] 5.13.0-next-20210707-syzkaller #0 Not tainted [ 69.646189][ T8674] ------------------------------------------------------ [ 69.653446][ T8674] systemd-udevd/8674 is trying to acquire lock: [ 69.659666][ T8674] ffffffff8c4875c8 (loop_ctl_mutex){+.+.}-{3:3}, at: loop_add+0x9c/0x8c0 [ 69.668163][ T8674] [ 69.668163][ T8674] but task is already holding lock: [ 69.675510][ T8674] ffffffff8c1f3e08 (major_names_lock){+.+.}-{3:3}, at: blk_request_module+0x25/0x1d0 [ 69.685297][ T8674] [ 69.685297][ T8674] which lock already depends on the new lock. [ 69.685297][ T8674] [ 69.696095][ T8674] [ 69.696095][ T8674] the existing dependency chain (in reverse order) is: [ 69.705287][ T8674] [ 69.705287][ T8674] -> #3 (major_names_lock){+.+.}-{3:3}: [ 69.713716][ T8674] __mutex_lock+0x12a/0x10a0 [ 69.719871][ T8674] __register_blkdev+0x2b/0x3e0 [ 69.725272][ T8674] register_mtd_blktrans+0x85/0x3c0 [ 69.732392][ T8674] do_one_initcall+0x103/0x650 [ 69.737668][ T8674] kernel_init_freeable+0x6b8/0x741 [ 69.743380][ T8674] kernel_init+0x1a/0x1d0 [ 69.748219][ T8674] ret_from_fork+0x1f/0x30 [ 69.753147][ T8674] [ 69.753147][ T8674] -> #2 (mtd_table_mutex){+.+.}-{3:3}: [ 69.760784][ T8674] __mutex_lock+0x12a/0x10a0 [ 69.765897][ T8674] blktrans_open+0x69/0x600 [ 69.770907][ T8674] blkdev_get_whole+0xa1/0x420 [ 69.776193][ T8674] blkdev_get_by_dev.part.0+0x30c/0xdd0 [ 69.782330][ T8674] blkdev_open+0x295/0x300 [ 69.787265][ T8674] do_dentry_open+0x4c8/0x11d0 [ 69.792535][ T8674] path_openat+0x1c23/0x27f0 [ 69.797630][ T8674] do_filp_open+0x1aa/0x400 [ 69.802638][ T8674] do_sys_openat2+0x16d/0x420 [ 69.807822][ T8674] __x64_sys_open+0x119/0x1c0 [ 69.813018][ T8674] do_syscall_64+0x35/0xb0 [ 69.817944][ T8674] entry_SYSCALL_64_after_hwframe+0x44/0xae [ 69.824356][ T8674] [ 69.824356][ T8674] -> #1 (&disk->open_mutex){+.+.}-{3:3}: [ 69.832170][ T8674] __mutex_lock+0x12a/0x10a0 [ 69.837264][ T8674] del_gendisk+0x8b/0x770 [ 69.842102][ T8674] loop_control_ioctl+0x3b5/0x450 [ 69.847632][ T8674] __x64_sys_ioctl+0x193/0x200 [ 69.852927][ T8674] do_syscall_64+0x35/0xb0 [ 69.857846][ T8674] entry_SYSCALL_64_after_hwframe+0x44/0xae [ 69.864256][ T8674] [ 69.864256][ T8674] -> #0 (loop_ctl_mutex){+.+.}-{3:3}: [ 69.871807][ T8674] __lock_acquire+0x2a07/0x54a0 [ 69.877180][ T8674] lock_acquire+0x1ab/0x510 [ 69.882187][ T8674] __mutex_lock+0x12a/0x10a0 [ 69.887280][ T8674] loop_add+0x9c/0x8c0 [ 69.891868][ T8674] loop_probe+0x6a/0x80 [ 69.896525][ T8674] blk_request_module+0x111/0x1d0 [ 69.902078][ T8674] blkdev_get_no_open+0x1d5/0x250 [ 69.907625][ T8674] blkdev_get_by_dev.part.0+0x25/0xdd0 [ 69.913620][ T8674] blkdev_open+0x295/0x300 [ 69.918554][ T8674] do_dentry_open+0x4c8/0x11d0 [ 69.923840][ T8674] path_openat+0x1c23/0x27f0 [ 69.928958][ T8674] do_filp_open+0x1aa/0x400 [ 69.934021][ T8674] do_sys_openat2+0x16d/0x420 [ 69.939203][ T8674] __x64_sys_open+0x119/0x1c0 [ 69.944390][ T8674] do_syscall_64+0x35/0xb0 [ 69.949311][ T8674] entry_SYSCALL_64_after_hwframe+0x44/0xae [ 69.955714][ T8674] [ 69.955714][ T8674] other info that might help us debug this: [ 69.955714][ T8674] [ 69.965926][ T8674] Chain exists of: [ 69.965926][ T8674] loop_ctl_mutex --> mtd_table_mutex --> major_names_lock [ 69.965926][ T8674] [ 69.978936][ T8674] Possible unsafe locking scenario: [ 69.978936][ T8674] [ 69.986369][ T8674] CPU0 CPU1 [ 69.991722][ T8674] ---- ---- [ 69.997262][ T8674] lock(major_names_lock); [ 70.001748][ T8674] lock(mtd_table_mutex); [ 70.008665][ T8674] lock(major_names_lock); [ 70.015668][ T8674] lock(loop_ctl_mutex); [ 70.019981][ T8674] [ 70.019981][ T8674] *** DEADLOCK *** [ 70.019981][ T8674] [ 70.028127][ T8674] 1 lock held by systemd-udevd/8674: [ 70.033416][ T8674] #0: ffffffff8c1f3e08 (major_names_lock){+.+.}-{3:3}, at: blk_request_module+0x25/0x1d0 [ 70.043318][ T8674] [ 70.043318][ T8674] stack backtrace: [ 70.049185][ T8674] CPU: 0 PID: 8674 Comm: systemd-udevd Not tainted 5.13.0-next-20210707-syzkaller #0 [ 70.058635][ T8674] Hardware name: Google Google Compute Engine/Google Compute Engine, BIOS Google 01/01/2011 [ 70.070668][ T8674] Call Trace: [ 70.073939][ T8674] dump_stack_lvl+0xcd/0x134 [ 70.078528][ T8674] check_noncircular+0x25f/0x2e0 [ 70.083472][ T8674] ? lockdep_hardirqs_on_prepare+0x400/0x400 [ 70.089445][ T8674] ? print_circular_bug+0x1e0/0x1e0 [ 70.094807][ T8674] ? lock_chain_count+0x20/0x20 [ 70.099824][ T8674] ? lockdep_lock+0xc6/0x200 [ 70.104584][ T8674] ? call_rcu_zapped+0xb0/0xb0 [ 70.109380][ T8674] __lock_acquire+0x2a07/0x54a0 [ 70.114232][ T8674] ? lockdep_hardirqs_on_prepare+0x400/0x400 [ 70.120206][ T8674] lock_acquire+0x1ab/0x510 [ 70.124711][ T8674] ? loop_add+0x9c/0x8c0 [ 70.128945][ T8674] ? lock_release+0x720/0x720 [ 70.133610][ T8674] ? path_openat+0x1c23/0x27f0 [ 70.138620][ T8674] ? do_filp_open+0x1aa/0x400 [ 70.143345][ T8674] ? do_sys_openat2+0x16d/0x420 [ 70.148781][ T8674] ? __x64_sys_open+0x119/0x1c0 [ 70.154059][ T8674] __mutex_lock+0x12a/0x10a0 [ 70.158668][ T8674] ? loop_add+0x9c/0x8c0 [ 70.162899][ T8674] ? loop_add+0x9c/0x8c0 [ 70.167123][ T8674] ? mutex_lock_io_nested+0xf00/0xf00 [ 70.172568][ T8674] ? rcu_read_lock_sched_held+0x3a/0x70 [ 70.178105][ T8674] loop_add+0x9c/0x8c0 [ 70.182408][ T8674] ? find_inode_fast+0x16f/0x220 [ 70.187420][ T8674] loop_probe+0x6a/0x80 [ 70.191651][ T8674] ? loop_add+0x8c0/0x8c0 [ 70.195964][ T8674] blk_request_module+0x111/0x1d0 [ 70.200975][ T8674] blkdev_get_no_open+0x1d5/0x250 [ 70.206075][ T8674] blkdev_get_by_dev.part.0+0x25/0xdd0 [ 70.211517][ T8674] ? devcgroup_check_permission+0x1bb/0x410 [ 70.217514][ T8674] blkdev_open+0x295/0x300 [ 70.222006][ T8674] do_dentry_open+0x4c8/0x11d0 [ 70.226757][ T8674] ? blkdev_get_by_dev+0x80/0x80 [ 70.231679][ T8674] ? __sanitizer_cov_trace_const_cmp4+0x1c/0x70 [ 70.238365][ T8674] ? may_open+0x1f6/0x420 [ 70.242936][ T8674] path_openat+0x1c23/0x27f0 [ 70.247750][ T8674] ? path_lookupat+0x860/0x860 [ 70.252508][ T8674] ? lockdep_hardirqs_on_prepare+0x400/0x400 [ 70.258582][ T8674] do_filp_open+0x1aa/0x400 [ 70.263718][ T8674] ? may_open_dev+0xf0/0xf0 [ 70.268211][ T8674] ? rwlock_bug.part.0+0x90/0x90 [ 70.273405][ T8674] ? __sanitizer_cov_trace_const_cmp8+0x1d/0x70 [ 70.279645][ T8674] ? _find_next_bit+0x1e3/0x260 [ 70.284498][ T8674] ? _raw_spin_unlock+0x24/0x40 [ 70.289346][ T8674] ? alloc_fd+0x2f0/0x670 [ 70.293799][ T8674] do_sys_openat2+0x16d/0x420 [ 70.298471][ T8674] ? build_open_flags+0x6f0/0x6f0 [ 70.304278][ T8674] ? __context_tracking_exit+0xb8/0xe0 [ 70.310463][ T8674] __x64_sys_open+0x119/0x1c0 [ 70.315134][ T8674] ? do_sys_open+0x140/0x140 [ 70.319888][ T8674] ? __secure_computing+0x104/0x360 [ 70.325168][ T8674] do_syscall_64+0x35/0xb0 [ 70.329793][ T8674] entry_SYSCALL_64_after_hwframe+0x44/0xae [ 70.335759][ T8674] RIP: 0033:0x7fb26e980840 [ 70.340270][ T8674] 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 [ 70.360760][ T8674] RSP: 002b:00007fff25793e98 EFLAGS: 00000246 ORIG_RAX: 0000000000000002 [ 70.370140][ T8674] RAX: ffffffffffffffda RBX: 0000563b22a5f910 RCX: 00007fb26e980840 [ 70.378668][ T8674] RDX: 0000563b21ce5fe3 RSI: 00000000000a0800 RDI: 0000563b22a5f850 [ 70.386808][ T8674] RBP: 00007fff25794010 R08: 0000563b21ce5670 R09: 0000000000000010 [ 70.395493][ T8674] R10: 0000563b21ce5d0c R11: 0000000000000246 R12: 00007fff25793f60 [ 70.404059][ T8674] R13: 0000563b22a61030 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 executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program