Warning: Permanently added '10.128.1.59' (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 syzkaller login: [ 57.593266][ T8612] [ 57.595696][ T8612] ====================================================== [ 57.602687][ T8612] WARNING: possible circular locking dependency detected [ 57.609677][ T8612] 5.14.0-rc5-syzkaller #0 Not tainted [ 57.615016][ T8612] ------------------------------------------------------ [ 57.622001][ T8612] systemd-udevd/8612 is trying to acquire lock: [ 57.628207][ T8612] ffffffff8c487968 (loop_ctl_mutex){+.+.}-{3:3}, at: loop_add+0x9c/0x8c0 [ 57.636713][ T8612] [ 57.636713][ T8612] but task is already holding lock: [ 57.644046][ T8612] ffffffff8c1f3f08 (major_names_lock){+.+.}-{3:3}, at: blk_request_module+0x25/0x1d0 [ 57.653492][ T8612] [ 57.653492][ T8612] which lock already depends on the new lock. [ 57.653492][ T8612] [ 57.664035][ T8612] [ 57.664035][ T8612] the existing dependency chain (in reverse order) is: [ 57.673017][ T8612] [ 57.673017][ T8612] -> #3 (major_names_lock){+.+.}-{3:3}: [ 57.680713][ T8612] __mutex_lock+0x12a/0x10a0 [ 57.685806][ T8612] __register_blkdev+0x2b/0x3e0 [ 57.691323][ T8612] register_mtd_blktrans+0x85/0x3c0 [ 57.697015][ T8612] do_one_initcall+0x103/0x650 [ 57.702275][ T8612] kernel_init_freeable+0x6b8/0x741 [ 57.707972][ T8612] kernel_init+0x1a/0x1d0 [ 57.712794][ T8612] ret_from_fork+0x1f/0x30 [ 57.717706][ T8612] [ 57.717706][ T8612] -> #2 (mtd_table_mutex){+.+.}-{3:3}: [ 57.726357][ T8612] __mutex_lock+0x12a/0x10a0 [ 57.731444][ T8612] blktrans_open+0x69/0x600 [ 57.737486][ T8612] blkdev_get_whole+0xa1/0x420 [ 57.742970][ T8612] blkdev_get_by_dev.part.0+0x30c/0xdd0 [ 57.749007][ T8612] blkdev_open+0x295/0x300 [ 57.753915][ T8612] do_dentry_open+0x4c8/0x11d0 [ 57.759215][ T8612] path_openat+0x1c23/0x27f0 [ 57.764306][ T8612] do_filp_open+0x1aa/0x400 [ 57.769304][ T8612] do_sys_openat2+0x16d/0x420 [ 57.774534][ T8612] __x64_sys_open+0x119/0x1c0 [ 57.779708][ T8612] do_syscall_64+0x35/0xb0 [ 57.784617][ T8612] entry_SYSCALL_64_after_hwframe+0x44/0xae [ 57.791004][ T8612] [ 57.791004][ T8612] -> #1 (&disk->open_mutex){+.+.}-{3:3}: [ 57.798789][ T8612] __mutex_lock+0x12a/0x10a0 [ 57.804741][ T8612] del_gendisk+0x8b/0x770 [ 57.809651][ T8612] loop_control_ioctl+0x3b5/0x450 [ 57.815171][ T8612] __x64_sys_ioctl+0x193/0x200 [ 57.821036][ T8612] do_syscall_64+0x35/0xb0 [ 57.825946][ T8612] entry_SYSCALL_64_after_hwframe+0x44/0xae [ 57.832328][ T8612] [ 57.832328][ T8612] -> #0 (loop_ctl_mutex){+.+.}-{3:3}: [ 57.839893][ T8612] __lock_acquire+0x2a07/0x54a0 [ 57.845237][ T8612] lock_acquire+0x1ab/0x510 [ 57.850231][ T8612] __mutex_lock+0x12a/0x10a0 [ 57.855316][ T8612] loop_add+0x9c/0x8c0 [ 57.859877][ T8612] loop_probe+0x6a/0x80 [ 57.865228][ T8612] blk_request_module+0x111/0x1d0 [ 57.870749][ T8612] blkdev_get_no_open+0x1d5/0x250 [ 57.876265][ T8612] blkdev_get_by_dev.part.0+0x25/0xdd0 [ 57.882217][ T8612] blkdev_open+0x295/0x300 [ 57.887126][ T8612] do_dentry_open+0x4c8/0x11d0 [ 57.892388][ T8612] path_openat+0x1c23/0x27f0 [ 57.897469][ T8612] do_filp_open+0x1aa/0x400 [ 57.902466][ T8612] do_sys_openat2+0x16d/0x420 [ 57.907633][ T8612] __x64_sys_open+0x119/0x1c0 [ 57.912804][ T8612] do_syscall_64+0x35/0xb0 [ 57.917714][ T8612] entry_SYSCALL_64_after_hwframe+0x44/0xae [ 57.924100][ T8612] [ 57.924100][ T8612] other info that might help us debug this: [ 57.924100][ T8612] [ 57.934294][ T8612] Chain exists of: [ 57.934294][ T8612] loop_ctl_mutex --> mtd_table_mutex --> major_names_lock [ 57.934294][ T8612] [ 57.947288][ T8612] Possible unsafe locking scenario: [ 57.947288][ T8612] [ 57.954705][ T8612] CPU0 CPU1 [ 57.960039][ T8612] ---- ---- [ 57.965374][ T8612] lock(major_names_lock); [ 57.969846][ T8612] lock(mtd_table_mutex); [ 57.976751][ T8612] lock(major_names_lock); [ 57.983745][ T8612] lock(loop_ctl_mutex); [ 57.988045][ T8612] [ 57.988045][ T8612] *** DEADLOCK *** [ 57.988045][ T8612] [ 57.996155][ T8612] 1 lock held by systemd-udevd/8612: [ 58.001421][ T8612] #0: ffffffff8c1f3f08 (major_names_lock){+.+.}-{3:3}, at: blk_request_module+0x25/0x1d0 [ 58.011319][ T8612] [ 58.011319][ T8612] stack backtrace: [ 58.017189][ T8612] CPU: 0 PID: 8612 Comm: systemd-udevd Not tainted 5.14.0-rc5-syzkaller #0 [ 58.025746][ T8612] Hardware name: Google Google Compute Engine/Google Compute Engine, BIOS Google 01/01/2011 [ 58.035855][ T8612] Call Trace: [ 58.039110][ T8612] dump_stack_lvl+0xcd/0x134 [ 58.043682][ T8612] check_noncircular+0x25f/0x2e0 [ 58.048593][ T8612] ? lockdep_hardirqs_on_prepare+0x400/0x400 [ 58.054547][ T8612] ? print_circular_bug+0x1e0/0x1e0 [ 58.059714][ T8612] ? lock_chain_count+0x20/0x20 [ 58.064536][ T8612] ? lockdep_lock+0xc6/0x200 [ 58.069099][ T8612] ? call_rcu_zapped+0xb0/0xb0 [ 58.073840][ T8612] __lock_acquire+0x2a07/0x54a0 [ 58.078665][ T8612] ? lockdep_hardirqs_on_prepare+0x400/0x400 [ 58.084634][ T8612] lock_acquire+0x1ab/0x510 [ 58.089108][ T8612] ? loop_add+0x9c/0x8c0 [ 58.093324][ T8612] ? lock_release+0x720/0x720 [ 58.097973][ T8612] ? path_openat+0x1c23/0x27f0 [ 58.102709][ T8612] ? do_filp_open+0x1aa/0x400 [ 58.107356][ T8612] ? do_sys_openat2+0x16d/0x420 [ 58.112181][ T8612] ? __x64_sys_open+0x119/0x1c0 [ 58.117006][ T8612] __mutex_lock+0x12a/0x10a0 [ 58.121570][ T8612] ? loop_add+0x9c/0x8c0 [ 58.125783][ T8612] ? loop_add+0x9c/0x8c0 [ 58.129999][ T8612] ? mutex_lock_io_nested+0xf00/0xf00 [ 58.135344][ T8612] ? rcu_read_lock_sched_held+0x3a/0x70 [ 58.140868][ T8612] loop_add+0x9c/0x8c0 [ 58.144908][ T8612] ? find_inode_fast+0x16f/0x220 [ 58.149819][ T8612] loop_probe+0x6a/0x80 [ 58.153946][ T8612] ? loop_add+0x8c0/0x8c0 [ 58.158248][ T8612] blk_request_module+0x111/0x1d0 [ 58.163250][ T8612] blkdev_get_no_open+0x1d5/0x250 [ 58.168245][ T8612] blkdev_get_by_dev.part.0+0x25/0xdd0 [ 58.173677][ T8612] ? devcgroup_check_permission+0x1bb/0x410 [ 58.179543][ T8612] blkdev_open+0x295/0x300 [ 58.183930][ T8612] do_dentry_open+0x4c8/0x11d0 [ 58.188666][ T8612] ? blkdev_get_by_dev+0x80/0x80 [ 58.193574][ T8612] ? __sanitizer_cov_trace_const_cmp4+0x1c/0x70 [ 58.199786][ T8612] ? may_open+0x1f6/0x420 [ 58.204086][ T8612] path_openat+0x1c23/0x27f0 [ 58.208650][ T8612] ? path_lookupat+0x860/0x860 [ 58.213386][ T8612] ? lockdep_hardirqs_on_prepare+0x400/0x400 [ 58.219339][ T8612] do_filp_open+0x1aa/0x400 [ 58.223815][ T8612] ? may_open_dev+0xf0/0xf0 [ 58.228290][ T8612] ? rwlock_bug.part.0+0x90/0x90 [ 58.233200][ T8612] ? __sanitizer_cov_trace_const_cmp8+0x1d/0x70 [ 58.239410][ T8612] ? _find_next_bit+0x1e3/0x260 [ 58.244232][ T8612] ? _raw_spin_unlock+0x24/0x40 [ 58.249231][ T8612] ? alloc_fd+0x2f0/0x670 [ 58.253539][ T8612] do_sys_openat2+0x16d/0x420 [ 58.258195][ T8612] ? build_open_flags+0x6f0/0x6f0 [ 58.263195][ T8612] ? __context_tracking_exit+0xb8/0xe0 [ 58.268748][ T8612] __x64_sys_open+0x119/0x1c0 [ 58.273400][ T8612] ? do_sys_open+0x140/0x140 [ 58.277964][ T8612] ? __secure_computing+0x104/0x360 [ 58.283141][ T8612] do_syscall_64+0x35/0xb0 [ 58.287532][ T8612] entry_SYSCALL_64_after_hwframe+0x44/0xae [ 58.293399][ T8612] RIP: 0033:0x7f7181699840 [ 58.297785][ T8612] 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 [ 58.318580][ T8612] RSP: 002b:00007ffe9c9aba38 EFLAGS: 00000246 ORIG_RAX: 0000000000000002 [ 58.328008][ T8612] RAX: ffffffffffffffda RBX: 00005570f9b62380 RCX: 00007f7181699840 [ 58.335954][ T8612] RDX: 00005570f9762fe3 RSI: 00000000000a0800 RDI: 00005570f9b62230 executing program [ 58.343896][ T8612] RBP: 00007ffe9c9abbb0 R08: 00005570f9762670 R09: 0000000000000010 [ 58.352017][ T8612] R10: 00007f7181413d70 R11: 0000000000000246 R12: 00007ffe9c9abb00 [ 58.359964][ T8612] R13: 00005570f9b637e0 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