Warning: Permanently added '10.128.0.21' (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 syzkaller login: [ 74.721179][ T8498] [ 74.723531][ T8498] ====================================================== [ 74.731207][ T8498] WARNING: possible circular locking dependency detected [ 74.738657][ T8498] 5.14.0-rc5-syzkaller #0 Not tainted [ 74.744288][ T8498] ------------------------------------------------------ [ 74.751278][ T8498] systemd-udevd/8498 is trying to acquire lock: [ 74.757517][ T8498] ffffffff8c487968 (loop_ctl_mutex){+.+.}-{3:3}, at: loop_add+0x9c/0x8c0 [ 74.766028][ T8498] [ 74.766028][ T8498] but task is already holding lock: [ 74.773453][ T8498] ffffffff8c1f3f08 (major_names_lock){+.+.}-{3:3}, at: blk_request_module+0x25/0x1d0 [ 74.783013][ T8498] [ 74.783013][ T8498] which lock already depends on the new lock. [ 74.783013][ T8498] [ 74.793663][ T8498] [ 74.793663][ T8498] the existing dependency chain (in reverse order) is: [ 74.802665][ T8498] [ 74.802665][ T8498] -> #3 (major_names_lock){+.+.}-{3:3}: [ 74.810381][ T8498] __mutex_lock+0x12a/0x10a0 [ 74.815659][ T8498] __register_blkdev+0x2b/0x3e0 [ 74.821024][ T8498] register_mtd_blktrans+0x85/0x3c0 [ 74.826813][ T8498] do_one_initcall+0x103/0x650 [ 74.832085][ T8498] kernel_init_freeable+0x6b8/0x741 [ 74.837801][ T8498] kernel_init+0x1a/0x1d0 [ 74.842631][ T8498] ret_from_fork+0x1f/0x30 [ 74.847566][ T8498] [ 74.847566][ T8498] -> #2 (mtd_table_mutex){+.+.}-{3:3}: [ 74.855368][ T8498] __mutex_lock+0x12a/0x10a0 [ 74.860462][ T8498] blktrans_open+0x69/0x600 [ 74.865482][ T8498] blkdev_get_whole+0xa1/0x420 [ 74.871803][ T8498] blkdev_get_by_dev.part.0+0x30c/0xdd0 [ 74.878119][ T8498] blkdev_open+0x295/0x300 [ 74.883053][ T8498] do_dentry_open+0x4c8/0x11d0 [ 74.888341][ T8498] path_openat+0x1c23/0x27f0 [ 74.893439][ T8498] do_filp_open+0x1aa/0x400 [ 74.898504][ T8498] do_sys_openat2+0x16d/0x420 [ 74.903783][ T8498] __x64_sys_open+0x119/0x1c0 [ 74.908961][ T8498] do_syscall_64+0x35/0xb0 [ 74.913886][ T8498] entry_SYSCALL_64_after_hwframe+0x44/0xae [ 74.920297][ T8498] [ 74.920297][ T8498] -> #1 (&disk->open_mutex){+.+.}-{3:3}: [ 74.928122][ T8498] __mutex_lock+0x12a/0x10a0 [ 74.933219][ T8498] del_gendisk+0x8b/0x770 [ 74.939007][ T8498] loop_control_ioctl+0x3b5/0x450 [ 74.944536][ T8498] __do_compat_sys_ioctl+0x1c7/0x290 [ 74.950335][ T8498] __do_fast_syscall_32+0x65/0xf0 [ 74.955871][ T8498] do_fast_syscall_32+0x2f/0x70 [ 74.961236][ T8498] entry_SYSENTER_compat_after_hwframe+0x4d/0x5c [ 74.968073][ T8498] [ 74.968073][ T8498] -> #0 (loop_ctl_mutex){+.+.}-{3:3}: [ 74.975619][ T8498] __lock_acquire+0x2a07/0x54a0 [ 74.981160][ T8498] lock_acquire+0x1ab/0x510 [ 74.986354][ T8498] __mutex_lock+0x12a/0x10a0 [ 74.991624][ T8498] loop_add+0x9c/0x8c0 [ 74.996197][ T8498] loop_probe+0x6a/0x80 [ 75.000851][ T8498] blk_request_module+0x111/0x1d0 [ 75.006380][ T8498] blkdev_get_no_open+0x1d5/0x250 [ 75.011924][ T8498] blkdev_get_by_dev.part.0+0x25/0xdd0 [ 75.019190][ T8498] blkdev_open+0x295/0x300 [ 75.024256][ T8498] do_dentry_open+0x4c8/0x11d0 [ 75.029529][ T8498] path_openat+0x1c23/0x27f0 [ 75.034672][ T8498] do_filp_open+0x1aa/0x400 [ 75.039902][ T8498] do_sys_openat2+0x16d/0x420 [ 75.045288][ T8498] __x64_sys_open+0x119/0x1c0 [ 75.050570][ T8498] do_syscall_64+0x35/0xb0 [ 75.055590][ T8498] entry_SYSCALL_64_after_hwframe+0x44/0xae [ 75.062162][ T8498] [ 75.062162][ T8498] other info that might help us debug this: [ 75.062162][ T8498] [ 75.072459][ T8498] Chain exists of: [ 75.072459][ T8498] loop_ctl_mutex --> mtd_table_mutex --> major_names_lock [ 75.072459][ T8498] [ 75.085653][ T8498] Possible unsafe locking scenario: [ 75.085653][ T8498] [ 75.093123][ T8498] CPU0 CPU1 [ 75.098477][ T8498] ---- ---- [ 75.103821][ T8498] lock(major_names_lock); [ 75.108320][ T8498] lock(mtd_table_mutex); [ 75.115254][ T8498] lock(major_names_lock); [ 75.122263][ T8498] lock(loop_ctl_mutex); [ 75.126568][ T8498] [ 75.126568][ T8498] *** DEADLOCK *** [ 75.126568][ T8498] [ 75.134773][ T8498] 1 lock held by systemd-udevd/8498: [ 75.140208][ T8498] #0: ffffffff8c1f3f08 (major_names_lock){+.+.}-{3:3}, at: blk_request_module+0x25/0x1d0 [ 75.150228][ T8498] [ 75.150228][ T8498] stack backtrace: [ 75.156184][ T8498] CPU: 0 PID: 8498 Comm: systemd-udevd Not tainted 5.14.0-rc5-syzkaller #0 [ 75.164933][ T8498] Hardware name: Google Google Compute Engine/Google Compute Engine, BIOS Google 01/01/2011 [ 75.175061][ T8498] Call Trace: [ 75.178339][ T8498] dump_stack_lvl+0xcd/0x134 [ 75.182931][ T8498] check_noncircular+0x25f/0x2e0 [ 75.189099][ T8498] ? lockdep_hardirqs_on_prepare+0x400/0x400 [ 75.195072][ T8498] ? print_circular_bug+0x1e0/0x1e0 [ 75.200368][ T8498] ? lock_chain_count+0x20/0x20 [ 75.205320][ T8498] ? lockdep_lock+0xc6/0x200 [ 75.209983][ T8498] ? call_rcu_zapped+0xb0/0xb0 [ 75.214842][ T8498] __lock_acquire+0x2a07/0x54a0 [ 75.220041][ T8498] ? lockdep_hardirqs_on_prepare+0x400/0x400 [ 75.226028][ T8498] lock_acquire+0x1ab/0x510 [ 75.230512][ T8498] ? loop_add+0x9c/0x8c0 [ 75.234737][ T8498] ? lock_release+0x720/0x720 [ 75.239393][ T8498] ? path_openat+0x1c23/0x27f0 [ 75.244144][ T8498] ? do_filp_open+0x1aa/0x400 [ 75.249304][ T8498] ? do_sys_openat2+0x16d/0x420 [ 75.254155][ T8498] ? __x64_sys_open+0x119/0x1c0 [ 75.259344][ T8498] __mutex_lock+0x12a/0x10a0 [ 75.263928][ T8498] ? loop_add+0x9c/0x8c0 [ 75.268168][ T8498] ? loop_add+0x9c/0x8c0 [ 75.272482][ T8498] ? mutex_lock_io_nested+0xf00/0xf00 [ 75.277846][ T8498] ? rcu_read_lock_sched_held+0x3a/0x70 [ 75.283394][ T8498] loop_add+0x9c/0x8c0 [ 75.287923][ T8498] ? find_inode_fast+0x16f/0x220 [ 75.293155][ T8498] loop_probe+0x6a/0x80 [ 75.297585][ T8498] ? loop_add+0x8c0/0x8c0 [ 75.301994][ T8498] blk_request_module+0x111/0x1d0 [ 75.307121][ T8498] blkdev_get_no_open+0x1d5/0x250 [ 75.312137][ T8498] blkdev_get_by_dev.part.0+0x25/0xdd0 [ 75.317688][ T8498] ? devcgroup_check_permission+0x1bb/0x410 [ 75.323580][ T8498] blkdev_open+0x295/0x300 [ 75.328094][ T8498] do_dentry_open+0x4c8/0x11d0 [ 75.332842][ T8498] ? blkdev_get_by_dev+0x80/0x80 [ 75.337787][ T8498] ? __sanitizer_cov_trace_const_cmp4+0x1c/0x70 [ 75.344116][ T8498] ? may_open+0x1f6/0x420 [ 75.349427][ T8498] path_openat+0x1c23/0x27f0 [ 75.354291][ T8498] ? path_lookupat+0x860/0x860 [ 75.359300][ T8498] ? lockdep_hardirqs_on_prepare+0x400/0x400 [ 75.365469][ T8498] do_filp_open+0x1aa/0x400 [ 75.370159][ T8498] ? may_open_dev+0xf0/0xf0 [ 75.374655][ T8498] ? rwlock_bug.part.0+0x90/0x90 [ 75.379666][ T8498] ? __sanitizer_cov_trace_const_cmp8+0x1d/0x70 [ 75.386160][ T8498] ? _find_next_bit+0x1e3/0x260 [ 75.391721][ T8498] ? _raw_spin_unlock+0x24/0x40 [ 75.396576][ T8498] ? alloc_fd+0x2f0/0x670 [ 75.400893][ T8498] do_sys_openat2+0x16d/0x420 [ 75.405557][ T8498] ? build_open_flags+0x6f0/0x6f0 [ 75.410572][ T8498] ? __context_tracking_exit+0xb8/0xe0 [ 75.416031][ T8498] __x64_sys_open+0x119/0x1c0 [ 75.420702][ T8498] ? do_sys_open+0x140/0x140 [ 75.425328][ T8498] ? __secure_computing+0x104/0x360 [ 75.430520][ T8498] do_syscall_64+0x35/0xb0 [ 75.434922][ T8498] entry_SYSCALL_64_after_hwframe+0x44/0xae [ 75.440892][ T8498] RIP: 0033:0x7f5ee5cac840 [ 75.445396][ T8498] 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 [ 75.465346][ T8498] RSP: 002b:00007ffc8cfa5558 EFLAGS: 00000246 ORIG_RAX: 0000000000000002 [ 75.473924][ T8498] RAX: ffffffffffffffda RBX: 000056341f507e10 RCX: 00007f5ee5cac840 [ 75.481884][ T8498] RDX: 000056341ed82fe3 RSI: 00000000000a0800 RDI: 000056341f506520 [ 75.490114][ T8498] RBP: 00007ffc8cfa56d0 R08: 000056341ed82670 R09: 0000000000000010 [ 75.498077][ T8498] R10: 000056341ed82d0c R11: 0000000000000246 R12: 00007ffc8cfa5620 [ 75.506030][ T8498] R13: 000056341f507f10 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