Warning: Permanently added '10.128.0.216' (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 executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program 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: [ 73.987101][ T8905] [ 73.989455][ T8905] ====================================================== [ 73.996613][ T8905] WARNING: possible circular locking dependency detected [ 74.003660][ T8905] 5.14.0-rc5-syzkaller #0 Not tainted [ 74.009009][ T8905] ------------------------------------------------------ [ 74.016011][ T8905] systemd-udevd/8905 is trying to acquire lock: [ 74.022240][ T8905] ffffffff8c487968 (loop_ctl_mutex){+.+.}-{3:3}, at: loop_add+0x9c/0x8c0 [ 74.030681][ T8905] [ 74.030681][ T8905] but task is already holding lock: [ 74.038030][ T8905] ffffffff8c1f3f08 (major_names_lock){+.+.}-{3:3}, at: blk_request_module+0x25/0x1d0 [ 74.047491][ T8905] [ 74.047491][ T8905] which lock already depends on the new lock. [ 74.047491][ T8905] [ 74.057880][ T8905] [ 74.057880][ T8905] the existing dependency chain (in reverse order) is: [ 74.066877][ T8905] [ 74.066877][ T8905] -> #3 (major_names_lock){+.+.}-{3:3}: [ 74.074586][ T8905] __mutex_lock+0x12a/0x10a0 [ 74.079694][ T8905] __register_blkdev+0x2b/0x3e0 [ 74.085049][ T8905] register_mtd_blktrans+0x85/0x3c0 [ 74.090761][ T8905] do_one_initcall+0x103/0x650 [ 74.096031][ T8905] kernel_init_freeable+0x6b8/0x741 [ 74.101735][ T8905] kernel_init+0x1a/0x1d0 [ 74.106570][ T8905] ret_from_fork+0x1f/0x30 [ 74.111490][ T8905] [ 74.111490][ T8905] -> #2 (mtd_table_mutex){+.+.}-{3:3}: [ 74.119109][ T8905] __mutex_lock+0x12a/0x10a0 [ 74.124211][ T8905] blktrans_open+0x69/0x600 [ 74.129323][ T8905] blkdev_get_whole+0xa1/0x420 [ 74.134598][ T8905] blkdev_get_by_dev.part.0+0x30c/0xdd0 [ 74.140658][ T8905] blkdev_open+0x295/0x300 [ 74.145592][ T8905] do_dentry_open+0x4c8/0x11d0 [ 74.150861][ T8905] path_openat+0x1c23/0x27f0 [ 74.155951][ T8905] do_filp_open+0x1aa/0x400 [ 74.160956][ T8905] do_sys_openat2+0x16d/0x420 [ 74.166137][ T8905] __x64_sys_open+0x119/0x1c0 [ 74.171313][ T8905] do_syscall_64+0x35/0xb0 [ 74.176249][ T8905] entry_SYSCALL_64_after_hwframe+0x44/0xae [ 74.182648][ T8905] [ 74.182648][ T8905] -> #1 (&disk->open_mutex){+.+.}-{3:3}: [ 74.190440][ T8905] __mutex_lock+0x12a/0x10a0 [ 74.195533][ T8905] del_gendisk+0x8b/0x770 [ 74.200369][ T8905] loop_control_ioctl+0x3b5/0x450 [ 74.205894][ T8905] __x64_sys_ioctl+0x193/0x200 [ 74.211163][ T8905] do_syscall_64+0x35/0xb0 [ 74.216079][ T8905] entry_SYSCALL_64_after_hwframe+0x44/0xae [ 74.222472][ T8905] [ 74.222472][ T8905] -> #0 (loop_ctl_mutex){+.+.}-{3:3}: [ 74.230001][ T8905] __lock_acquire+0x2a07/0x54a0 [ 74.235353][ T8905] lock_acquire+0x1ab/0x510 [ 74.240376][ T8905] __mutex_lock+0x12a/0x10a0 [ 74.245467][ T8905] loop_add+0x9c/0x8c0 [ 74.250034][ T8905] loop_probe+0x6a/0x80 [ 74.254691][ T8905] blk_request_module+0x111/0x1d0 [ 74.260234][ T8905] blkdev_get_no_open+0x1d5/0x250 [ 74.265769][ T8905] blkdev_get_by_dev.part.0+0x25/0xdd0 [ 74.271742][ T8905] blkdev_open+0x295/0x300 [ 74.276656][ T8905] do_dentry_open+0x4c8/0x11d0 [ 74.281936][ T8905] path_openat+0x1c23/0x27f0 [ 74.287043][ T8905] do_filp_open+0x1aa/0x400 [ 74.292044][ T8905] do_sys_openat2+0x16d/0x420 [ 74.297222][ T8905] __x64_sys_open+0x119/0x1c0 [ 74.302410][ T8905] do_syscall_64+0x35/0xb0 [ 74.307327][ T8905] entry_SYSCALL_64_after_hwframe+0x44/0xae [ 74.313722][ T8905] [ 74.313722][ T8905] other info that might help us debug this: [ 74.313722][ T8905] [ 74.323921][ T8905] Chain exists of: [ 74.323921][ T8905] loop_ctl_mutex --> mtd_table_mutex --> major_names_lock [ 74.323921][ T8905] [ 74.336931][ T8905] Possible unsafe locking scenario: [ 74.336931][ T8905] [ 74.344358][ T8905] CPU0 CPU1 [ 74.349697][ T8905] ---- ---- [ 74.355036][ T8905] lock(major_names_lock); [ 74.359527][ T8905] lock(mtd_table_mutex); [ 74.366435][ T8905] lock(major_names_lock); [ 74.373436][ T8905] lock(loop_ctl_mutex); [ 74.377739][ T8905] [ 74.377739][ T8905] *** DEADLOCK *** [ 74.377739][ T8905] [ 74.385857][ T8905] 1 lock held by systemd-udevd/8905: [ 74.391116][ T8905] #0: ffffffff8c1f3f08 (major_names_lock){+.+.}-{3:3}, at: blk_request_module+0x25/0x1d0 [ 74.401013][ T8905] [ 74.401013][ T8905] stack backtrace: [ 74.406875][ T8905] CPU: 0 PID: 8905 Comm: systemd-udevd Not tainted 5.14.0-rc5-syzkaller #0 [ 74.415453][ T8905] Hardware name: Google Google Compute Engine/Google Compute Engine, BIOS Google 01/01/2011 [ 74.425487][ T8905] Call Trace: [ 74.428748][ T8905] dump_stack_lvl+0xcd/0x134 [ 74.433325][ T8905] check_noncircular+0x25f/0x2e0 [ 74.438246][ T8905] ? lockdep_hardirqs_on_prepare+0x400/0x400 [ 74.444205][ T8905] ? print_circular_bug+0x1e0/0x1e0 [ 74.449397][ T8905] ? lock_chain_count+0x20/0x20 [ 74.454230][ T8905] ? lockdep_lock+0xc6/0x200 [ 74.458803][ T8905] ? call_rcu_zapped+0xb0/0xb0 [ 74.463556][ T8905] __lock_acquire+0x2a07/0x54a0 [ 74.468389][ T8905] ? lockdep_hardirqs_on_prepare+0x400/0x400 [ 74.474357][ T8905] lock_acquire+0x1ab/0x510 [ 74.478857][ T8905] ? loop_add+0x9c/0x8c0 [ 74.483083][ T8905] ? lock_release+0x720/0x720 [ 74.487739][ T8905] ? path_openat+0x1c23/0x27f0 [ 74.492482][ T8905] ? do_filp_open+0x1aa/0x400 [ 74.497144][ T8905] ? do_sys_openat2+0x16d/0x420 [ 74.501995][ T8905] ? __x64_sys_open+0x119/0x1c0 [ 74.506828][ T8905] __mutex_lock+0x12a/0x10a0 [ 74.511406][ T8905] ? loop_add+0x9c/0x8c0 [ 74.515626][ T8905] ? loop_add+0x9c/0x8c0 [ 74.519846][ T8905] ? mutex_lock_io_nested+0xf00/0xf00 [ 74.525199][ T8905] ? rcu_read_lock_sched_held+0x3a/0x70 [ 74.530730][ T8905] loop_add+0x9c/0x8c0 [ 74.534786][ T8905] ? find_inode_fast+0x16f/0x220 [ 74.539719][ T8905] loop_probe+0x6a/0x80 [ 74.543873][ T8905] ? loop_add+0x8c0/0x8c0 [ 74.548199][ T8905] blk_request_module+0x111/0x1d0 [ 74.553209][ T8905] blkdev_get_no_open+0x1d5/0x250 [ 74.558221][ T8905] blkdev_get_by_dev.part.0+0x25/0xdd0 [ 74.563683][ T8905] ? devcgroup_check_permission+0x1bb/0x410 [ 74.569564][ T8905] blkdev_open+0x295/0x300 [ 74.573964][ T8905] do_dentry_open+0x4c8/0x11d0 [ 74.578722][ T8905] ? blkdev_get_by_dev+0x80/0x80 [ 74.583638][ T8905] ? __sanitizer_cov_trace_const_cmp4+0x1c/0x70 [ 74.589860][ T8905] ? may_open+0x1f6/0x420 [ 74.594173][ T8905] path_openat+0x1c23/0x27f0 [ 74.598747][ T8905] ? path_lookupat+0x860/0x860 [ 74.603504][ T8905] ? lockdep_hardirqs_on_prepare+0x400/0x400 [ 74.609485][ T8905] do_filp_open+0x1aa/0x400 [ 74.613968][ T8905] ? may_open_dev+0xf0/0xf0 [ 74.618452][ T8905] ? rwlock_bug.part.0+0x90/0x90 [ 74.623372][ T8905] ? __sanitizer_cov_trace_const_cmp8+0x1d/0x70 [ 74.629593][ T8905] ? _find_next_bit+0x1e3/0x260 [ 74.634421][ T8905] ? _raw_spin_unlock+0x24/0x40 [ 74.639247][ T8905] ? alloc_fd+0x2f0/0x670 [ 74.643558][ T8905] do_sys_openat2+0x16d/0x420 [ 74.648219][ T8905] ? build_open_flags+0x6f0/0x6f0 [ 74.653225][ T8905] ? __context_tracking_exit+0xb8/0xe0 [ 74.658668][ T8905] __x64_sys_open+0x119/0x1c0 [ 74.663325][ T8905] ? do_sys_open+0x140/0x140 [ 74.667898][ T8905] ? __secure_computing+0x104/0x360 [ 74.673088][ T8905] do_syscall_64+0x35/0xb0 [ 74.677503][ T8905] entry_SYSCALL_64_after_hwframe+0x44/0xae [ 74.683378][ T8905] RIP: 0033:0x7f2ebdfe9840 [ 74.687774][ T8905] 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 [ 74.707364][ T8905] RSP: 002b:00007ffe5fde2b38 EFLAGS: 00000246 ORIG_RAX: 0000000000000002 [ 74.715760][ T8905] RAX: ffffffffffffffda RBX: 0000558ef40938f0 RCX: 00007f2ebdfe9840 [ 74.723725][ T8905] RDX: 0000558ef3bc7fe3 RSI: 00000000000a0800 RDI: 0000558ef4093830 [ 74.731675][ T8905] RBP: 00007ffe5fde2cb0 R08: 0000558ef3bc7670 R09: 0000000000000010 executing program executing program executing program executing program executing program executing program [ 74.739622][ T8905] R10: 0000558ef3bc7d0c R11: 0000000000000246 R12: 00007ffe5fde2c00 [ 74.747584][ T8905] R13: 0000558ef4095010 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