Warning: Permanently added '10.128.0.213' (ECDSA) to the list of known hosts. executing program executing program executing program executing program [ 47.684286][ T8448] [ 47.686686][ T8448] ====================================================== [ 47.693693][ T8448] WARNING: possible circular locking dependency detected [ 47.700697][ T8448] 5.14.0-rc5-syzkaller #0 Not tainted [ 47.706051][ T8448] ------------------------------------------------------ [ 47.713050][ T8448] systemd-udevd/8448 is trying to acquire lock: [ 47.719261][ T8448] ffffffff8ce84528 (loop_ctl_mutex){+.+.}-{3:3}, at: loop_add+0x89/0x7f0 [ 47.727682][ T8448] [ 47.727682][ T8448] but task is already holding lock: [ 47.735017][ T8448] ffffffff8cceaf88 (major_names_lock){+.+.}-{3:3}, at: blk_request_module+0x2f/0x1c0 [ 47.744477][ T8448] [ 47.744477][ T8448] which lock already depends on the new lock. [ 47.744477][ T8448] [ 47.754890][ T8448] [ 47.754890][ T8448] the existing dependency chain (in reverse order) is: [ 47.763875][ T8448] [ 47.763875][ T8448] -> #3 (major_names_lock){+.+.}-{3:3}: [ 47.771614][ T8448] lock_acquire+0x182/0x4a0 [ 47.776617][ T8448] __mutex_lock_common+0x1ad/0x3770 [ 47.782322][ T8448] mutex_lock_nested+0x1a/0x20 [ 47.787583][ T8448] __register_blkdev+0x2c/0x360 [ 47.792932][ T8448] register_mtd_blktrans+0x94/0x3d0 [ 47.798632][ T8448] do_one_initcall+0x197/0x3f0 [ 47.803891][ T8448] do_initcall_level+0x14a/0x1f5 [ 47.809329][ T8448] do_initcalls+0x4b/0x8c [ 47.814189][ T8448] kernel_init_freeable+0x3f1/0x57e [ 47.819888][ T8448] kernel_init+0x19/0x2a0 [ 47.824714][ T8448] ret_from_fork+0x1f/0x30 [ 47.829627][ T8448] [ 47.829627][ T8448] -> #2 (mtd_table_mutex){+.+.}-{3:3}: [ 47.837235][ T8448] lock_acquire+0x182/0x4a0 [ 47.842238][ T8448] __mutex_lock_common+0x1ad/0x3770 [ 47.847940][ T8448] mutex_lock_nested+0x1a/0x20 [ 47.853202][ T8448] blktrans_open+0x61/0x430 [ 47.858205][ T8448] blkdev_get_whole+0x94/0x500 [ 47.863472][ T8448] blkdev_get_by_dev+0x339/0xdc0 [ 47.868907][ T8448] blkdev_open+0x132/0x2c0 [ 47.873820][ T8448] do_dentry_open+0x7cb/0x1020 [ 47.879098][ T8448] path_openat+0x27e7/0x36b0 [ 47.884185][ T8448] do_filp_open+0x253/0x4d0 [ 47.889183][ T8448] do_sys_openat2+0x124/0x460 [ 47.894359][ T8448] __x64_sys_open+0x221/0x270 [ 47.899532][ T8448] do_syscall_64+0x3d/0xb0 [ 47.904449][ T8448] entry_SYSCALL_64_after_hwframe+0x44/0xae [ 47.910841][ T8448] [ 47.910841][ T8448] -> #1 (&disk->open_mutex){+.+.}-{3:3}: [ 47.918652][ T8448] lock_acquire+0x182/0x4a0 [ 47.923660][ T8448] __mutex_lock_common+0x1ad/0x3770 [ 47.929357][ T8448] mutex_lock_nested+0x1a/0x20 [ 47.934624][ T8448] del_gendisk+0x86/0x610 [ 47.939449][ T8448] loop_control_ioctl+0x409/0x510 [ 47.944969][ T8448] __se_sys_ioctl+0xfb/0x170 [ 47.950056][ T8448] do_syscall_64+0x3d/0xb0 [ 47.954990][ T8448] entry_SYSCALL_64_after_hwframe+0x44/0xae [ 47.961381][ T8448] [ 47.961381][ T8448] -> #0 (loop_ctl_mutex){+.+.}-{3:3}: [ 47.968909][ T8448] check_prevs_add+0x4f9/0x5b30 [ 47.974261][ T8448] __lock_acquire+0x4476/0x6100 [ 47.979613][ T8448] lock_acquire+0x182/0x4a0 [ 47.984626][ T8448] __mutex_lock_common+0x1ad/0x3770 [ 47.990322][ T8448] mutex_lock_killable_nested+0x1a/0x20 [ 47.996364][ T8448] loop_add+0x89/0x7f0 [ 48.000929][ T8448] blk_request_module+0x19d/0x1c0 [ 48.006488][ T8448] blkdev_get_no_open+0x44/0x1f0 [ 48.011925][ T8448] blkdev_get_by_dev+0x89/0xdc0 [ 48.017277][ T8448] blkdev_open+0x132/0x2c0 [ 48.022222][ T8448] do_dentry_open+0x7cb/0x1020 [ 48.027484][ T8448] path_openat+0x27e7/0x36b0 [ 48.032573][ T8448] do_filp_open+0x253/0x4d0 [ 48.037570][ T8448] do_sys_openat2+0x124/0x460 [ 48.042790][ T8448] __x64_sys_open+0x221/0x270 [ 48.047968][ T8448] do_syscall_64+0x3d/0xb0 [ 48.052883][ T8448] entry_SYSCALL_64_after_hwframe+0x44/0xae [ 48.059274][ T8448] [ 48.059274][ T8448] other info that might help us debug this: [ 48.059274][ T8448] [ 48.069486][ T8448] Chain exists of: [ 48.069486][ T8448] loop_ctl_mutex --> mtd_table_mutex --> major_names_lock [ 48.069486][ T8448] [ 48.082489][ T8448] Possible unsafe locking scenario: [ 48.082489][ T8448] [ 48.089924][ T8448] CPU0 CPU1 [ 48.095262][ T8448] ---- ---- [ 48.100601][ T8448] lock(major_names_lock); [ 48.105077][ T8448] lock(mtd_table_mutex); [ 48.111985][ T8448] lock(major_names_lock); [ 48.118976][ T8448] lock(loop_ctl_mutex); [ 48.123278][ T8448] [ 48.123278][ T8448] *** DEADLOCK *** [ 48.123278][ T8448] [ 48.131660][ T8448] 1 lock held by systemd-udevd/8448: [ 48.136915][ T8448] #0: ffffffff8cceaf88 (major_names_lock){+.+.}-{3:3}, at: blk_request_module+0x2f/0x1c0 [ 48.146810][ T8448] [ 48.146810][ T8448] stack backtrace: [ 48.152673][ T8448] CPU: 1 PID: 8448 Comm: systemd-udevd Not tainted 5.14.0-rc5-syzkaller #0 [ 48.161231][ T8448] Hardware name: Google Google Compute Engine/Google Compute Engine, BIOS Google 01/01/2011 [ 48.171260][ T8448] Call Trace: [ 48.174531][ T8448] dump_stack_lvl+0x1ae/0x29f [ 48.179212][ T8448] ? show_regs_print_info+0x12/0x12 [ 48.184386][ T8448] ? log_buf_vmcoreinfo_setup+0x498/0x498 [ 48.190083][ T8448] ? save_trace+0x5a/0x9f0 [ 48.194474][ T8448] print_circular_bug+0xb17/0xdc0 [ 48.199475][ T8448] ? hlock_conflict+0x1f0/0x1f0 [ 48.204297][ T8448] ? __bfs+0x369/0x700 [ 48.208342][ T8448] ? check_path+0x40/0x40 [ 48.212745][ T8448] ? noop_count+0x30/0x30 [ 48.217046][ T8448] ? stack_trace_save+0x1e0/0x1e0 [ 48.222047][ T8448] ? save_trace+0x5a/0x9f0 [ 48.226447][ T8448] check_noncircular+0x2cc/0x390 [ 48.231358][ T8448] ? add_chain_block+0x850/0x850 [ 48.236268][ T8448] ? stack_trace_save+0x104/0x1e0 [ 48.241270][ T8448] check_prevs_add+0x4f9/0x5b30 [ 48.246108][ T8448] ? add_lock_to_list+0x1c7/0x2d0 [ 48.251111][ T8448] ? reacquire_held_locks+0x5f0/0x5f0 [ 48.256469][ T8448] ? mark_lock+0x199/0x1eb0 [ 48.260947][ T8448] ? __bfs+0x700/0x700 [ 48.265002][ T8448] ? __bfs+0x700/0x700 [ 48.269056][ T8448] ? __lock_acquire+0x1385/0x6100 [ 48.274059][ T8448] ? mark_lock+0x199/0x1eb0 [ 48.278545][ T8448] ? __lock_acquire+0x1385/0x6100 [ 48.283548][ T8448] ? __bfs+0x700/0x700 [ 48.287591][ T8448] ? trace_lock_acquire+0x190/0x190 [ 48.292764][ T8448] ? mark_lock+0x199/0x1eb0 [ 48.297243][ T8448] ? __lock_acquire+0x1385/0x6100 [ 48.302247][ T8448] ? mark_lock+0x199/0x1eb0 [ 48.306724][ T8448] ? mark_lock+0x199/0x1eb0 [ 48.311203][ T8448] ? __bfs+0x700/0x700 [ 48.315248][ T8448] ? __lock_acquire+0x145b/0x6100 [ 48.320334][ T8448] ? trace_lock_acquire+0x190/0x190 [ 48.325510][ T8448] ? __bfs+0x700/0x700 [ 48.329559][ T8448] ? lockdep_lock+0x102/0x2c0 [ 48.334226][ T8448] ? lockdep_count_forward_deps+0x240/0x240 [ 48.340093][ T8448] ? mark_lock+0x199/0x1eb0 [ 48.344572][ T8448] __lock_acquire+0x4476/0x6100 [ 48.349404][ T8448] ? __bfs+0x700/0x700 [ 48.353446][ T8448] ? stack_trace_save+0x1e0/0x1e0 [ 48.358449][ T8448] ? rcu_read_lock_sched_held+0x87/0x110 [ 48.364062][ T8448] ? trace_lock_acquire+0x190/0x190 [ 48.369234][ T8448] ? rcu_read_lock_sched_held+0x87/0x110 [ 48.374841][ T8448] ? __bpf_trace_rcu_stall_warning+0x10/0x10 [ 48.380802][ T8448] ? lockdep_hardirqs_on_prepare+0x3e2/0x750 [ 48.386757][ T8448] ? __lock_acquire+0x6100/0x6100 [ 48.391758][ T8448] ? rcu_read_lock_sched_held+0x87/0x110 [ 48.397378][ T8448] ? __bpf_trace_rcu_stall_warning+0x10/0x10 [ 48.403339][ T8448] ? _raw_spin_unlock_irqrestore+0xc1/0x120 [ 48.409209][ T8448] lock_acquire+0x182/0x4a0 [ 48.413687][ T8448] ? loop_add+0x89/0x7f0 [ 48.417905][ T8448] ? read_lock_is_recursive+0x10/0x10 [ 48.423262][ T8448] ? ____kasan_kmalloc+0xc4/0xf0 [ 48.428175][ T8448] ? kmem_cache_alloc_trace+0x96/0x340 [ 48.433618][ T8448] ? __might_sleep+0x100/0x100 [ 48.438355][ T8448] ? blkdev_get_by_dev+0x89/0xdc0 [ 48.443354][ T8448] ? blkdev_open+0x132/0x2c0 [ 48.447916][ T8448] ? do_dentry_open+0x7cb/0x1020 [ 48.452827][ T8448] ? path_openat+0x27e7/0x36b0 [ 48.457564][ T8448] ? do_filp_open+0x253/0x4d0 [ 48.462217][ T8448] ? do_sys_openat2+0x124/0x460 [ 48.467052][ T8448] ? __x64_sys_open+0x221/0x270 [ 48.471885][ T8448] ? do_syscall_64+0x3d/0xb0 [ 48.476451][ T8448] ? entry_SYSCALL_64_after_hwframe+0x44/0xae [ 48.482493][ T8448] ? __lock_acquire+0x6100/0x6100 [ 48.487496][ T8448] ? do_raw_spin_lock+0x151/0x8e0 [ 48.492501][ T8448] __mutex_lock_common+0x1ad/0x3770 [ 48.497681][ T8448] ? loop_add+0x89/0x7f0 [ 48.501912][ T8448] ? loop_add+0x53/0x7f0 [ 48.506135][ T8448] ? loop_add+0x89/0x7f0 [ 48.510354][ T8448] ? __bpf_trace_rcu_stall_warning+0x10/0x10 [ 48.516399][ T8448] ? mutex_lock_io_nested+0x60/0x60 [ 48.521575][ T8448] ? kmem_cache_alloc_trace+0x2ae/0x340 [ 48.527094][ T8448] ? kmem_cache_alloc_trace+0x96/0x340 [ 48.532529][ T8448] ? loop_add+0x53/0x7f0 [ 48.536757][ T8448] mutex_lock_killable_nested+0x1a/0x20 [ 48.542280][ T8448] loop_add+0x89/0x7f0 [ 48.546326][ T8448] ? loop_info64_to_compat+0x5b0/0x5b0 [ 48.551759][ T8448] blk_request_module+0x19d/0x1c0 [ 48.556764][ T8448] blkdev_get_no_open+0x44/0x1f0 [ 48.561686][ T8448] blkdev_get_by_dev+0x89/0xdc0 [ 48.566529][ T8448] ? __fsnotify_update_child_dentry_flags+0x2d0/0x2d0 [ 48.573279][ T8448] blkdev_open+0x132/0x2c0 [ 48.577673][ T8448] ? block_ioctl+0xf0/0xf0 [ 48.582062][ T8448] do_dentry_open+0x7cb/0x1020 [ 48.586805][ T8448] path_openat+0x27e7/0x36b0 [ 48.591378][ T8448] ? stack_trace_snprint+0xe0/0xe0 [ 48.596467][ T8448] ? do_filp_open+0x4d0/0x4d0 [ 48.601122][ T8448] ? alloc_fd+0x5e1/0x680 [ 48.605441][ T8448] ? rcu_read_lock_sched_held+0x87/0x110 [ 48.611051][ T8448] ? __bpf_trace_rcu_stall_warning+0x10/0x10 [ 48.617021][ T8448] do_filp_open+0x253/0x4d0 [ 48.621523][ T8448] ? vfs_tmpfile+0x230/0x230 [ 48.626096][ T8448] ? alloc_fd+0x5e1/0x680 [ 48.630418][ T8448] ? do_raw_spin_unlock+0x134/0x8a0 [ 48.635597][ T8448] ? _raw_spin_unlock+0x24/0x40 [ 48.640423][ T8448] ? alloc_fd+0x5e1/0x680 [ 48.644728][ T8448] do_sys_openat2+0x124/0x460 [ 48.649378][ T8448] ? __context_tracking_exit+0x7a/0xd0 [ 48.654824][ T8448] ? do_sys_open+0x220/0x220 [ 48.659388][ T8448] ? __context_tracking_enter+0xa5/0xf0 [ 48.664913][ T8448] __x64_sys_open+0x221/0x270 [ 48.669567][ T8448] ? do_sys_openat2+0x460/0x460 [ 48.674402][ T8448] ? vtime_user_enter+0x1ea/0x2d0 [ 48.679403][ T8448] ? __secure_computing+0x19b/0x320 [ 48.684577][ T8448] ? syscall_enter_from_user_mode+0xf0/0x1b0 [ 48.690549][ T8448] do_syscall_64+0x3d/0xb0 [ 48.694944][ T8448] entry_SYSCALL_64_after_hwframe+0x44/0xae [ 48.700815][ T8448] RIP: 0033:0x7f59fb459840 [ 48.705204][ T8448] 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 [ 48.724785][ T8448] RSP: 002b:00007ffed1fd13e8 EFLAGS: 00000246 ORIG_RAX: 0000000000000002 [ 48.733174][ T8448] RAX: ffffffffffffffda RBX: 000055d1993ac8f0 RCX: 00007f59fb459840 [ 48.741120][ T8448] RDX: 000055d1985d2fe3 RSI: 00000000000a0800 RDI: 000055d1993ac830 [ 48.749069][ T8448] RBP: 00007ffed1fd1560 R08: 000055d1985d2670 R09: 0000000000000010 [ 48.757016][ T8448] R10: 000055d1985d2d0c R11: 0000000000000246 R12: 00007ffed1fd14b0 [ 48.764964][ T8448] R13: 000055d1993ae010 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