Warning: Permanently added '10.128.1.69' (ECDSA) to the list of known hosts. executing program executing program executing program executing program executing program executing program syzkaller login: [ 74.088375][ T8506] [ 74.090749][ T8506] ====================================================== [ 74.097775][ T8506] WARNING: possible circular locking dependency detected [ 74.104796][ T8506] 5.14.0-rc5-syzkaller #0 Not tainted [ 74.110231][ T8506] ------------------------------------------------------ [ 74.117236][ T8506] systemd-udevd/8506 is trying to acquire lock: [ 74.123610][ T8506] ffffffff8c487968 (loop_ctl_mutex){+.+.}-{3:3}, at: loop_add+0x9c/0x8c0 [ 74.132055][ T8506] [ 74.132055][ T8506] but task is already holding lock: [ 74.139585][ T8506] ffffffff8c1f3f08 (major_names_lock){+.+.}-{3:3}, at: blk_request_module+0x25/0x1d0 [ 74.149056][ T8506] [ 74.149056][ T8506] which lock already depends on the new lock. [ 74.149056][ T8506] [ 74.159465][ T8506] [ 74.159465][ T8506] the existing dependency chain (in reverse order) is: [ 74.168462][ T8506] [ 74.168462][ T8506] -> #3 (major_names_lock){+.+.}-{3:3}: [ 74.176175][ T8506] __mutex_lock+0x12a/0x10a0 [ 74.181315][ T8506] __register_blkdev+0x2b/0x3e0 [ 74.186692][ T8506] register_mtd_blktrans+0x85/0x3c0 [ 74.192404][ T8506] do_one_initcall+0x103/0x650 [ 74.197685][ T8506] kernel_init_freeable+0x6b8/0x741 [ 74.203408][ T8506] kernel_init+0x1a/0x1d0 [ 74.208258][ T8506] ret_from_fork+0x1f/0x30 [ 74.213183][ T8506] [ 74.213183][ T8506] -> #2 (mtd_table_mutex){+.+.}-{3:3}: [ 74.220807][ T8506] __mutex_lock+0x12a/0x10a0 [ 74.225913][ T8506] blktrans_open+0x69/0x600 [ 74.230929][ T8506] blkdev_get_whole+0xa1/0x420 [ 74.236201][ T8506] blkdev_get_by_dev.part.0+0x30c/0xdd0 [ 74.242252][ T8506] blkdev_open+0x295/0x300 [ 74.247172][ T8506] do_dentry_open+0x4c8/0x11d0 [ 74.252438][ T8506] path_openat+0x1c23/0x27f0 [ 74.257535][ T8506] do_filp_open+0x1aa/0x400 [ 74.262541][ T8506] do_sys_openat2+0x16d/0x420 [ 74.267744][ T8506] __x64_sys_open+0x119/0x1c0 [ 74.272960][ T8506] do_syscall_64+0x35/0xb0 [ 74.277891][ T8506] entry_SYSCALL_64_after_hwframe+0x44/0xae [ 74.284289][ T8506] [ 74.284289][ T8506] -> #1 (&disk->open_mutex){+.+.}-{3:3}: [ 74.292087][ T8506] __mutex_lock+0x12a/0x10a0 [ 74.297189][ T8506] del_gendisk+0x8b/0x770 [ 74.302033][ T8506] loop_control_ioctl+0x3b5/0x450 [ 74.307568][ T8506] __x64_sys_ioctl+0x193/0x200 [ 74.312843][ T8506] do_syscall_64+0x35/0xb0 [ 74.317788][ T8506] entry_SYSCALL_64_after_hwframe+0x44/0xae [ 74.324189][ T8506] [ 74.324189][ T8506] -> #0 (loop_ctl_mutex){+.+.}-{3:3}: [ 74.331726][ T8506] __lock_acquire+0x2a07/0x54a0 [ 74.337090][ T8506] lock_acquire+0x1ab/0x510 [ 74.342104][ T8506] __mutex_lock+0x12a/0x10a0 [ 74.347208][ T8506] loop_add+0x9c/0x8c0 [ 74.351785][ T8506] loop_probe+0x6a/0x80 [ 74.356460][ T8506] blk_request_module+0x111/0x1d0 [ 74.362005][ T8506] blkdev_get_no_open+0x1d5/0x250 [ 74.367557][ T8506] blkdev_get_by_dev.part.0+0x25/0xdd0 [ 74.373520][ T8506] blkdev_open+0x295/0x300 [ 74.378455][ T8506] do_dentry_open+0x4c8/0x11d0 [ 74.383728][ T8506] path_openat+0x1c23/0x27f0 [ 74.388831][ T8506] do_filp_open+0x1aa/0x400 [ 74.394205][ T8506] do_sys_openat2+0x16d/0x420 [ 74.399387][ T8506] __x64_sys_open+0x119/0x1c0 [ 74.404574][ T8506] do_syscall_64+0x35/0xb0 [ 74.409503][ T8506] entry_SYSCALL_64_after_hwframe+0x44/0xae [ 74.415902][ T8506] [ 74.415902][ T8506] other info that might help us debug this: [ 74.415902][ T8506] [ 74.426142][ T8506] Chain exists of: [ 74.426142][ T8506] loop_ctl_mutex --> mtd_table_mutex --> major_names_lock [ 74.426142][ T8506] [ 74.439211][ T8506] Possible unsafe locking scenario: [ 74.439211][ T8506] [ 74.446645][ T8506] CPU0 CPU1 [ 74.451988][ T8506] ---- ---- [ 74.457332][ T8506] lock(major_names_lock); [ 74.461817][ T8506] lock(mtd_table_mutex); [ 74.468761][ T8506] lock(major_names_lock); [ 74.475766][ T8506] lock(loop_ctl_mutex); [ 74.480079][ T8506] [ 74.480079][ T8506] *** DEADLOCK *** [ 74.480079][ T8506] [ 74.488204][ T8506] 1 lock held by systemd-udevd/8506: [ 74.493557][ T8506] #0: ffffffff8c1f3f08 (major_names_lock){+.+.}-{3:3}, at: blk_request_module+0x25/0x1d0 [ 74.503481][ T8506] [ 74.503481][ T8506] stack backtrace: [ 74.509352][ T8506] CPU: 1 PID: 8506 Comm: systemd-udevd Not tainted 5.14.0-rc5-syzkaller #0 [ 74.517920][ T8506] Hardware name: Google Google Compute Engine/Google Compute Engine, BIOS Google 01/01/2011 [ 74.527964][ T8506] Call Trace: [ 74.531234][ T8506] dump_stack_lvl+0xcd/0x134 [ 74.535826][ T8506] check_noncircular+0x25f/0x2e0 [ 74.540756][ T8506] ? lockdep_hardirqs_on_prepare+0x400/0x400 [ 74.546738][ T8506] ? print_circular_bug+0x1e0/0x1e0 [ 74.551943][ T8506] ? lock_chain_count+0x20/0x20 [ 74.556780][ T8506] ? lockdep_lock+0xc6/0x200 [ 74.561359][ T8506] ? call_rcu_zapped+0xb0/0xb0 [ 74.566113][ T8506] __lock_acquire+0x2a07/0x54a0 [ 74.570969][ T8506] ? lockdep_hardirqs_on_prepare+0x400/0x400 [ 74.576938][ T8506] lock_acquire+0x1ab/0x510 [ 74.581428][ T8506] ? loop_add+0x9c/0x8c0 [ 74.585663][ T8506] ? lock_release+0x720/0x720 [ 74.590328][ T8506] ? path_openat+0x1c23/0x27f0 [ 74.595082][ T8506] ? do_filp_open+0x1aa/0x400 [ 74.599757][ T8506] ? do_sys_openat2+0x16d/0x420 [ 74.604594][ T8506] ? __x64_sys_open+0x119/0x1c0 [ 74.609436][ T8506] __mutex_lock+0x12a/0x10a0 [ 74.614034][ T8506] ? loop_add+0x9c/0x8c0 [ 74.618263][ T8506] ? loop_add+0x9c/0x8c0 [ 74.622517][ T8506] ? mutex_lock_io_nested+0xf00/0xf00 [ 74.627875][ T8506] ? rcu_read_lock_sched_held+0x3a/0x70 [ 74.633529][ T8506] loop_add+0x9c/0x8c0 [ 74.637596][ T8506] ? find_inode_fast+0x16f/0x220 [ 74.642523][ T8506] loop_probe+0x6a/0x80 [ 74.646672][ T8506] ? loop_add+0x8c0/0x8c0 [ 74.650987][ T8506] blk_request_module+0x111/0x1d0 [ 74.656004][ T8506] blkdev_get_no_open+0x1d5/0x250 [ 74.661067][ T8506] blkdev_get_by_dev.part.0+0x25/0xdd0 [ 74.666518][ T8506] ? devcgroup_check_permission+0x1bb/0x410 [ 74.672406][ T8506] blkdev_open+0x295/0x300 [ 74.676814][ T8506] do_dentry_open+0x4c8/0x11d0 [ 74.681622][ T8506] ? blkdev_get_by_dev+0x80/0x80 [ 74.686549][ T8506] ? __sanitizer_cov_trace_const_cmp4+0x1c/0x70 [ 74.692774][ T8506] ? may_open+0x1f6/0x420 [ 74.697089][ T8506] path_openat+0x1c23/0x27f0 [ 74.701668][ T8506] ? path_lookupat+0x860/0x860 [ 74.706449][ T8506] ? lockdep_hardirqs_on_prepare+0x400/0x400 [ 74.712435][ T8506] do_filp_open+0x1aa/0x400 [ 74.716930][ T8506] ? may_open_dev+0xf0/0xf0 [ 74.721509][ T8506] ? rwlock_bug.part.0+0x90/0x90 [ 74.726437][ T8506] ? __sanitizer_cov_trace_const_cmp8+0x1d/0x70 [ 74.732666][ T8506] ? _find_next_bit+0x1e3/0x260 [ 74.737506][ T8506] ? _raw_spin_unlock+0x24/0x40 [ 74.742361][ T8506] ? alloc_fd+0x2f0/0x670 [ 74.746702][ T8506] do_sys_openat2+0x16d/0x420 [ 74.751375][ T8506] ? build_open_flags+0x6f0/0x6f0 [ 74.756390][ T8506] ? __context_tracking_exit+0xb8/0xe0 [ 74.761845][ T8506] __x64_sys_open+0x119/0x1c0 [ 74.766544][ T8506] ? do_sys_open+0x140/0x140 [ 74.771122][ T8506] ? __secure_computing+0x104/0x360 [ 74.776312][ T8506] do_syscall_64+0x35/0xb0 [ 74.780731][ T8506] entry_SYSCALL_64_after_hwframe+0x44/0xae [ 74.786624][ T8506] RIP: 0033:0x7f85e3f2f840 [ 74.791030][ T8506] 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.810633][ T8506] RSP: 002b:00007ffd025521d8 EFLAGS: 00000246 ORIG_RAX: 0000000000000002 [ 74.819042][ T8506] RAX: ffffffffffffffda RBX: 000055a3be1d68f0 RCX: 00007f85e3f2f840 [ 74.827005][ T8506] RDX: 000055a3bd0befe3 RSI: 00000000000a0800 RDI: 000055a3be1d6830 [ 74.834961][ T8506] RBP: 00007ffd02552350 R08: 000055a3bd0be670 R09: 0000000000000010 [ 74.842919][ T8506] R10: 000055a3bd0bed0c R11: 0000000000000246 R12: 00007ffd025522a0 [ 74.850890][ T8506] R13: 000055a3be1d8010 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