Warning: Permanently added '10.128.0.39' (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 syzkaller login: [ 50.286099][ T8501] [ 50.288534][ T8501] ====================================================== [ 50.295581][ T8501] WARNING: possible circular locking dependency detected [ 50.302621][ T8501] 5.14.0-rc5-syzkaller #0 Not tainted [ 50.308074][ T8501] ------------------------------------------------------ [ 50.315093][ T8501] systemd-udevd/8501 is trying to acquire lock: [ 50.321329][ T8501] ffffffff8ce84528 (loop_ctl_mutex){+.+.}-{3:3}, at: loop_add+0x89/0x7f0 [ 50.329767][ T8501] [ 50.329767][ T8501] but task is already holding lock: [ 50.337110][ T8501] ffffffff8cceaf88 (major_names_lock){+.+.}-{3:3}, at: blk_request_module+0x2f/0x1c0 [ 50.346569][ T8501] [ 50.346569][ T8501] which lock already depends on the new lock. [ 50.346569][ T8501] [ 50.356947][ T8501] [ 50.356947][ T8501] the existing dependency chain (in reverse order) is: [ 50.365957][ T8501] [ 50.365957][ T8501] -> #3 (major_names_lock){+.+.}-{3:3}: [ 50.373665][ T8501] lock_acquire+0x182/0x4a0 [ 50.378672][ T8501] __mutex_lock_common+0x1ad/0x3770 [ 50.384388][ T8501] mutex_lock_nested+0x1a/0x20 [ 50.389652][ T8501] __register_blkdev+0x2c/0x360 [ 50.395001][ T8501] register_mtd_blktrans+0x94/0x3d0 [ 50.400704][ T8501] do_one_initcall+0x197/0x3f0 [ 50.405968][ T8501] do_initcall_level+0x14a/0x1f5 [ 50.411409][ T8501] do_initcalls+0x4b/0x8c [ 50.416240][ T8501] kernel_init_freeable+0x3f1/0x57e [ 50.421939][ T8501] kernel_init+0x19/0x2a0 [ 50.426783][ T8501] ret_from_fork+0x1f/0x30 [ 50.431718][ T8501] [ 50.431718][ T8501] -> #2 (mtd_table_mutex){+.+.}-{3:3}: [ 50.439341][ T8501] lock_acquire+0x182/0x4a0 [ 50.444352][ T8501] __mutex_lock_common+0x1ad/0x3770 [ 50.450058][ T8501] mutex_lock_nested+0x1a/0x20 [ 50.455325][ T8501] blktrans_open+0x61/0x430 [ 50.460330][ T8501] blkdev_get_whole+0x94/0x500 [ 50.465594][ T8501] blkdev_get_by_dev+0x339/0xdc0 [ 50.471030][ T8501] blkdev_open+0x132/0x2c0 [ 50.475955][ T8501] do_dentry_open+0x7cb/0x1020 [ 50.481232][ T8501] path_openat+0x27e7/0x36b0 [ 50.486322][ T8501] do_filp_open+0x253/0x4d0 [ 50.491324][ T8501] do_sys_openat2+0x124/0x460 [ 50.496499][ T8501] __x64_sys_open+0x221/0x270 [ 50.501676][ T8501] do_syscall_64+0x3d/0xb0 [ 50.506603][ T8501] entry_SYSCALL_64_after_hwframe+0x44/0xae [ 50.513007][ T8501] [ 50.513007][ T8501] -> #1 (&disk->open_mutex){+.+.}-{3:3}: [ 50.520983][ T8501] lock_acquire+0x182/0x4a0 [ 50.525989][ T8501] __mutex_lock_common+0x1ad/0x3770 [ 50.531702][ T8501] mutex_lock_nested+0x1a/0x20 [ 50.536965][ T8501] del_gendisk+0x86/0x610 [ 50.541796][ T8501] loop_control_ioctl+0x409/0x510 [ 50.547323][ T8501] __se_sys_ioctl+0xfb/0x170 [ 50.552410][ T8501] do_syscall_64+0x3d/0xb0 [ 50.557329][ T8501] entry_SYSCALL_64_after_hwframe+0x44/0xae [ 50.563722][ T8501] [ 50.563722][ T8501] -> #0 (loop_ctl_mutex){+.+.}-{3:3}: [ 50.571255][ T8501] check_prevs_add+0x4f9/0x5b30 [ 50.576624][ T8501] __lock_acquire+0x4476/0x6100 [ 50.581979][ T8501] lock_acquire+0x182/0x4a0 [ 50.586992][ T8501] __mutex_lock_common+0x1ad/0x3770 [ 50.592701][ T8501] mutex_lock_killable_nested+0x1a/0x20 [ 50.598751][ T8501] loop_add+0x89/0x7f0 [ 50.603321][ T8501] blk_request_module+0x19d/0x1c0 [ 50.608844][ T8501] blkdev_get_no_open+0x44/0x1f0 [ 50.614296][ T8501] blkdev_get_by_dev+0x89/0xdc0 [ 50.619647][ T8501] blkdev_open+0x132/0x2c0 [ 50.624564][ T8501] do_dentry_open+0x7cb/0x1020 [ 50.629846][ T8501] path_openat+0x27e7/0x36b0 [ 50.634937][ T8501] do_filp_open+0x253/0x4d0 [ 50.639949][ T8501] do_sys_openat2+0x124/0x460 [ 50.645128][ T8501] __x64_sys_open+0x221/0x270 [ 50.650301][ T8501] do_syscall_64+0x3d/0xb0 [ 50.655218][ T8501] entry_SYSCALL_64_after_hwframe+0x44/0xae [ 50.661622][ T8501] [ 50.661622][ T8501] other info that might help us debug this: [ 50.661622][ T8501] [ 50.671841][ T8501] Chain exists of: [ 50.671841][ T8501] loop_ctl_mutex --> mtd_table_mutex --> major_names_lock [ 50.671841][ T8501] [ 50.684874][ T8501] Possible unsafe locking scenario: [ 50.684874][ T8501] [ 50.692316][ T8501] CPU0 CPU1 [ 50.697668][ T8501] ---- ---- [ 50.703008][ T8501] lock(major_names_lock); [ 50.707500][ T8501] lock(mtd_table_mutex); [ 50.714426][ T8501] lock(major_names_lock); [ 50.721427][ T8501] lock(loop_ctl_mutex); [ 50.725736][ T8501] [ 50.725736][ T8501] *** DEADLOCK *** [ 50.725736][ T8501] [ 50.733856][ T8501] 1 lock held by systemd-udevd/8501: [ 50.739124][ T8501] #0: ffffffff8cceaf88 (major_names_lock){+.+.}-{3:3}, at: blk_request_module+0x2f/0x1c0 [ 50.749018][ T8501] [ 50.749018][ T8501] stack backtrace: [ 50.754883][ T8501] CPU: 0 PID: 8501 Comm: systemd-udevd Not tainted 5.14.0-rc5-syzkaller #0 [ 50.763819][ T8501] Hardware name: Google Google Compute Engine/Google Compute Engine, BIOS Google 01/01/2011 [ 50.773880][ T8501] Call Trace: [ 50.777156][ T8501] dump_stack_lvl+0x1ae/0x29f [ 50.781843][ T8501] ? show_regs_print_info+0x12/0x12 [ 50.787032][ T8501] ? log_buf_vmcoreinfo_setup+0x498/0x498 [ 50.792735][ T8501] ? save_trace+0x5a/0x9f0 [ 50.797153][ T8501] print_circular_bug+0xb17/0xdc0 [ 50.802186][ T8501] ? hlock_conflict+0x1f0/0x1f0 [ 50.807020][ T8501] ? __bfs+0x369/0x700 [ 50.811073][ T8501] ? check_path+0x40/0x40 [ 50.815400][ T8501] ? noop_count+0x30/0x30 [ 50.819707][ T8501] ? stack_trace_save+0x1e0/0x1e0 [ 50.824716][ T8501] ? save_trace+0x5a/0x9f0 [ 50.829111][ T8501] check_noncircular+0x2cc/0x390 [ 50.834030][ T8501] ? add_chain_block+0x850/0x850 [ 50.838946][ T8501] ? stack_trace_save+0x104/0x1e0 [ 50.843961][ T8501] check_prevs_add+0x4f9/0x5b30 [ 50.848789][ T8501] ? add_lock_to_list+0x1c7/0x2d0 [ 50.853801][ T8501] ? reacquire_held_locks+0x5f0/0x5f0 [ 50.859154][ T8501] ? mark_lock+0x199/0x1eb0 [ 50.863649][ T8501] ? __bfs+0x700/0x700 [ 50.867701][ T8501] ? __bfs+0x700/0x700 [ 50.871747][ T8501] ? __lock_acquire+0x1385/0x6100 [ 50.876754][ T8501] ? mark_lock+0x199/0x1eb0 [ 50.881236][ T8501] ? __lock_acquire+0x1385/0x6100 [ 50.886242][ T8501] ? __bfs+0x700/0x700 [ 50.890296][ T8501] ? trace_lock_acquire+0x190/0x190 [ 50.895473][ T8501] ? mark_lock+0x199/0x1eb0 [ 50.899958][ T8501] ? __lock_acquire+0x1385/0x6100 [ 50.904963][ T8501] ? mark_lock+0x199/0x1eb0 [ 50.909446][ T8501] ? mark_lock+0x199/0x1eb0 [ 50.913932][ T8501] ? __bfs+0x700/0x700 [ 50.917996][ T8501] ? __lock_acquire+0x145b/0x6100 [ 50.923015][ T8501] ? trace_lock_acquire+0x190/0x190 [ 50.928194][ T8501] ? __bfs+0x700/0x700 [ 50.932246][ T8501] ? lockdep_lock+0x102/0x2c0 [ 50.936904][ T8501] ? lockdep_count_forward_deps+0x240/0x240 [ 50.942777][ T8501] ? mark_lock+0x199/0x1eb0 [ 50.947260][ T8501] __lock_acquire+0x4476/0x6100 [ 50.952093][ T8501] ? __bfs+0x700/0x700 [ 50.956139][ T8501] ? stack_trace_save+0x1e0/0x1e0 [ 50.961142][ T8501] ? rcu_read_lock_sched_held+0x87/0x110 [ 50.966759][ T8501] ? trace_lock_acquire+0x190/0x190 [ 50.971936][ T8501] ? rcu_read_lock_sched_held+0x87/0x110 [ 50.977548][ T8501] ? __bpf_trace_rcu_stall_warning+0x10/0x10 [ 50.983514][ T8501] ? lockdep_hardirqs_on_prepare+0x3e2/0x750 [ 50.989475][ T8501] ? __lock_acquire+0x6100/0x6100 [ 50.994486][ T8501] ? rcu_read_lock_sched_held+0x87/0x110 [ 51.000112][ T8501] ? __bpf_trace_rcu_stall_warning+0x10/0x10 [ 51.006075][ T8501] ? _raw_spin_unlock_irqrestore+0xc1/0x120 [ 51.011951][ T8501] lock_acquire+0x182/0x4a0 [ 51.016439][ T8501] ? loop_add+0x89/0x7f0 [ 51.020665][ T8501] ? read_lock_is_recursive+0x10/0x10 [ 51.026020][ T8501] ? ____kasan_kmalloc+0xc4/0xf0 [ 51.030936][ T8501] ? kmem_cache_alloc_trace+0x96/0x340 [ 51.036374][ T8501] ? __might_sleep+0x100/0x100 [ 51.041116][ T8501] ? blkdev_get_by_dev+0x89/0xdc0 [ 51.046119][ T8501] ? blkdev_open+0x132/0x2c0 [ 51.050687][ T8501] ? do_dentry_open+0x7cb/0x1020 [ 51.055623][ T8501] ? path_openat+0x27e7/0x36b0 [ 51.060367][ T8501] ? do_filp_open+0x253/0x4d0 [ 51.065025][ T8501] ? do_sys_openat2+0x124/0x460 [ 51.069854][ T8501] ? __x64_sys_open+0x221/0x270 [ 51.074681][ T8501] ? do_syscall_64+0x3d/0xb0 [ 51.079255][ T8501] ? entry_SYSCALL_64_after_hwframe+0x44/0xae [ 51.085303][ T8501] ? __lock_acquire+0x6100/0x6100 [ 51.090326][ T8501] ? do_raw_spin_lock+0x151/0x8e0 [ 51.095331][ T8501] __mutex_lock_common+0x1ad/0x3770 [ 51.100523][ T8501] ? loop_add+0x89/0x7f0 [ 51.104753][ T8501] ? loop_add+0x53/0x7f0 [ 51.108984][ T8501] ? loop_add+0x89/0x7f0 [ 51.113203][ T8501] ? __bpf_trace_rcu_stall_warning+0x10/0x10 [ 51.119165][ T8501] ? mutex_lock_io_nested+0x60/0x60 [ 51.124359][ T8501] ? kmem_cache_alloc_trace+0x2ae/0x340 [ 51.129894][ T8501] ? kmem_cache_alloc_trace+0x96/0x340 [ 51.135346][ T8501] ? loop_add+0x53/0x7f0 [ 51.139583][ T8501] mutex_lock_killable_nested+0x1a/0x20 [ 51.145132][ T8501] loop_add+0x89/0x7f0 [ 51.149199][ T8501] ? loop_info64_to_compat+0x5b0/0x5b0 [ 51.154642][ T8501] blk_request_module+0x19d/0x1c0 [ 51.159652][ T8501] blkdev_get_no_open+0x44/0x1f0 [ 51.164573][ T8501] blkdev_get_by_dev+0x89/0xdc0 [ 51.169406][ T8501] ? __fsnotify_update_child_dentry_flags+0x2d0/0x2d0 [ 51.176165][ T8501] blkdev_open+0x132/0x2c0 [ 51.180565][ T8501] ? block_ioctl+0xf0/0xf0 [ 51.184965][ T8501] do_dentry_open+0x7cb/0x1020 [ 51.189730][ T8501] path_openat+0x27e7/0x36b0 [ 51.194308][ T8501] ? stack_trace_snprint+0xe0/0xe0 [ 51.199409][ T8501] ? do_filp_open+0x4d0/0x4d0 [ 51.204069][ T8501] ? alloc_fd+0x5e1/0x680 [ 51.208379][ T8501] ? rcu_read_lock_sched_held+0x87/0x110 [ 51.214019][ T8501] ? __bpf_trace_rcu_stall_warning+0x10/0x10 [ 51.219986][ T8501] do_filp_open+0x253/0x4d0 [ 51.224490][ T8501] ? vfs_tmpfile+0x230/0x230 [ 51.229061][ T8501] ? alloc_fd+0x5e1/0x680 [ 51.233372][ T8501] ? do_raw_spin_unlock+0x134/0x8a0 [ 51.238551][ T8501] ? _raw_spin_unlock+0x24/0x40 [ 51.243394][ T8501] ? alloc_fd+0x5e1/0x680 [ 51.247716][ T8501] do_sys_openat2+0x124/0x460 [ 51.252375][ T8501] ? __context_tracking_exit+0x7a/0xd0 [ 51.257827][ T8501] ? do_sys_open+0x220/0x220 [ 51.262393][ T8501] ? __context_tracking_enter+0xa5/0xf0 [ 51.267939][ T8501] __x64_sys_open+0x221/0x270 [ 51.272596][ T8501] ? do_sys_openat2+0x460/0x460 [ 51.277427][ T8501] ? vtime_user_enter+0x1ea/0x2d0 [ 51.282446][ T8501] ? __secure_computing+0x19b/0x320 [ 51.287628][ T8501] ? syscall_enter_from_user_mode+0xf0/0x1b0 [ 51.293602][ T8501] do_syscall_64+0x3d/0xb0 [ 51.298001][ T8501] entry_SYSCALL_64_after_hwframe+0x44/0xae [ 51.303873][ T8501] RIP: 0033:0x7f553a3fa840 [ 51.308268][ T8501] 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 [ 51.327863][ T8501] RSP: 002b:00007ffc0da5c5f8 EFLAGS: 00000246 ORIG_RAX: 0000000000000002 [ 51.336280][ T8501] RAX: ffffffffffffffda RBX: 00005654499e88f0 RCX: 00007f553a3fa840 [ 51.344234][ T8501] RDX: 000056544845afe3 RSI: 00000000000a0800 RDI: 00005654499e8830 [ 51.352204][ T8501] RBP: 00007ffc0da5c770 R08: 000056544845a670 R09: 0000000000000010 [ 51.360165][ T8501] R10: 000056544845ad0c R11: 0000000000000246 R12: 00007ffc0da5c6c0 [ 51.368122][ T8501] R13: 00005654499ea010 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