[ OK ] Reached target Multi-User System. [ OK ] Reached target Graphical Interface. Starting Update UTMP about System Runlevel Changes... [ OK ] Started Load/Save RF Kill Switch Status. [ OK ] Started Update UTMP about System Runlevel Changes. Debian GNU/Linux 9 syzkaller ttyS0 Warning: Permanently added '10.128.0.115' (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 syzkaller login: [ 56.073492][ T8524] [ 56.077101][ T8524] ====================================================== [ 56.084442][ T8524] WARNING: possible circular locking dependency detected [ 56.091433][ T8524] 5.14.0-rc5-syzkaller #0 Not tainted [ 56.096770][ T8524] ------------------------------------------------------ [ 56.103755][ T8524] systemd-udevd/8524 is trying to acquire lock: [ 56.109962][ T8524] ffffffff8c486b88 (loop_ctl_mutex){+.+.}-{3:3}, at: loop_add+0x9c/0x8c0 [ 56.118816][ T8524] [ 56.118816][ T8524] but task is already holding lock: [ 56.127101][ T8524] ffffffff8c1f3fe8 (major_names_lock){+.+.}-{3:3}, at: blk_request_module+0x25/0x1d0 [ 56.136546][ T8524] [ 56.136546][ T8524] which lock already depends on the new lock. [ 56.136546][ T8524] [ 56.146915][ T8524] [ 56.146915][ T8524] the existing dependency chain (in reverse order) is: [ 56.155896][ T8524] [ 56.155896][ T8524] -> #3 (major_names_lock){+.+.}-{3:3}: [ 56.163590][ T8524] __mutex_lock+0x12a/0x10a0 [ 56.168684][ T8524] __register_blkdev+0x2b/0x3e0 [ 56.174030][ T8524] register_mtd_blktrans+0x85/0x3c0 [ 56.179722][ T8524] do_one_initcall+0x103/0x650 [ 56.184980][ T8524] kernel_init_freeable+0x6b8/0x741 [ 56.190672][ T8524] kernel_init+0x1a/0x1d0 [ 56.195499][ T8524] ret_from_fork+0x1f/0x30 [ 56.200407][ T8524] [ 56.200407][ T8524] -> #2 (mtd_table_mutex){+.+.}-{3:3}: [ 56.208015][ T8524] __mutex_lock+0x12a/0x10a0 [ 56.213099][ T8524] blktrans_open+0x69/0x600 [ 56.218094][ T8524] blkdev_get_whole+0xa1/0x420 [ 56.223351][ T8524] blkdev_get_by_dev.part.0+0x30c/0xdd0 [ 56.229389][ T8524] blkdev_open+0x295/0x300 [ 56.234298][ T8524] do_dentry_open+0x4c8/0x11d0 [ 56.239555][ T8524] path_openat+0x1c23/0x27f0 [ 56.244637][ T8524] do_filp_open+0x1aa/0x400 [ 56.249630][ T8524] do_sys_openat2+0x16d/0x420 [ 56.254801][ T8524] __x64_sys_open+0x119/0x1c0 [ 56.259970][ T8524] do_syscall_64+0x35/0xb0 [ 56.264878][ T8524] entry_SYSCALL_64_after_hwframe+0x44/0xae [ 56.271263][ T8524] [ 56.271263][ T8524] -> #1 (&disk->open_mutex){+.+.}-{3:3}: [ 56.279043][ T8524] __mutex_lock+0x12a/0x10a0 [ 56.284128][ T8524] del_gendisk+0x8b/0x770 [ 56.288948][ T8524] loop_control_ioctl+0x3b5/0x450 [ 56.294464][ T8524] __x64_sys_ioctl+0x193/0x200 [ 56.299721][ T8524] do_syscall_64+0x35/0xb0 [ 56.304632][ T8524] entry_SYSCALL_64_after_hwframe+0x44/0xae [ 56.311014][ T8524] [ 56.311014][ T8524] -> #0 (loop_ctl_mutex){+.+.}-{3:3}: [ 56.318534][ T8524] __lock_acquire+0x2a07/0x54a0 [ 56.323875][ T8524] lock_acquire+0x1ab/0x510 [ 56.328868][ T8524] __mutex_lock+0x12a/0x10a0 [ 56.333948][ T8524] loop_add+0x9c/0x8c0 [ 56.338505][ T8524] loop_probe+0x6a/0x80 [ 56.343151][ T8524] blk_request_module+0x111/0x1d0 [ 56.348666][ T8524] blkdev_get_no_open+0x1d5/0x250 [ 56.354184][ T8524] blkdev_get_by_dev.part.0+0x25/0xdd0 [ 56.360134][ T8524] blkdev_open+0x295/0x300 [ 56.365042][ T8524] do_dentry_open+0x4c8/0x11d0 [ 56.370298][ T8524] path_openat+0x1c23/0x27f0 [ 56.375380][ T8524] do_filp_open+0x1aa/0x400 [ 56.380373][ T8524] do_sys_openat2+0x16d/0x420 [ 56.385550][ T8524] __x64_sys_open+0x119/0x1c0 [ 56.390724][ T8524] do_syscall_64+0x35/0xb0 [ 56.395633][ T8524] entry_SYSCALL_64_after_hwframe+0x44/0xae [ 56.402020][ T8524] [ 56.402020][ T8524] other info that might help us debug this: [ 56.402020][ T8524] [ 56.412215][ T8524] Chain exists of: [ 56.412215][ T8524] loop_ctl_mutex --> mtd_table_mutex --> major_names_lock [ 56.412215][ T8524] [ 56.425212][ T8524] Possible unsafe locking scenario: [ 56.425212][ T8524] [ 56.432632][ T8524] CPU0 CPU1 [ 56.437964][ T8524] ---- ---- [ 56.443298][ T8524] lock(major_names_lock); [ 56.447768][ T8524] lock(mtd_table_mutex); [ 56.454668][ T8524] lock(major_names_lock); [ 56.461655][ T8524] lock(loop_ctl_mutex); [ 56.465955][ T8524] [ 56.465955][ T8524] *** DEADLOCK *** [ 56.465955][ T8524] [ 56.474068][ T8524] 1 lock held by systemd-udevd/8524: [ 56.479320][ T8524] #0: ffffffff8c1f3fe8 (major_names_lock){+.+.}-{3:3}, at: blk_request_module+0x25/0x1d0 [ 56.489204][ T8524] [ 56.489204][ T8524] stack backtrace: [ 56.495061][ T8524] CPU: 1 PID: 8524 Comm: systemd-udevd Not tainted 5.14.0-rc5-syzkaller #0 [ 56.503615][ T8524] Hardware name: Google Google Compute Engine/Google Compute Engine, BIOS Google 01/01/2011 [ 56.513641][ T8524] Call Trace: [ 56.516891][ T8524] dump_stack_lvl+0xcd/0x134 [ 56.521460][ T8524] check_noncircular+0x25f/0x2e0 [ 56.526367][ T8524] ? lockdep_hardirqs_on_prepare+0x400/0x400 [ 56.532316][ T8524] ? print_circular_bug+0x1e0/0x1e0 [ 56.537485][ T8524] ? lock_chain_count+0x20/0x20 [ 56.542307][ T8524] ? lockdep_lock+0xc6/0x200 [ 56.546870][ T8524] ? call_rcu_zapped+0xb0/0xb0 [ 56.551606][ T8524] __lock_acquire+0x2a07/0x54a0 [ 56.556430][ T8524] ? lockdep_hardirqs_on_prepare+0x400/0x400 [ 56.562382][ T8524] lock_acquire+0x1ab/0x510 [ 56.566855][ T8524] ? loop_add+0x9c/0x8c0 [ 56.571219][ T8524] ? lock_release+0x720/0x720 [ 56.575869][ T8524] ? path_openat+0x1c23/0x27f0 [ 56.580601][ T8524] ? do_filp_open+0x1aa/0x400 [ 56.585249][ T8524] ? do_sys_openat2+0x16d/0x420 [ 56.590071][ T8524] ? __x64_sys_open+0x119/0x1c0 [ 56.594899][ T8524] __mutex_lock+0x12a/0x10a0 [ 56.599461][ T8524] ? loop_add+0x9c/0x8c0 [ 56.603674][ T8524] ? loop_add+0x9c/0x8c0 [ 56.607885][ T8524] ? mutex_lock_io_nested+0xf00/0xf00 [ 56.613234][ T8524] ? rcu_read_lock_sched_held+0x3a/0x70 [ 56.618754][ T8524] loop_add+0x9c/0x8c0 [ 56.622794][ T8524] ? find_inode_fast+0x16f/0x220 [ 56.627703][ T8524] loop_probe+0x6a/0x80 [ 56.631828][ T8524] ? loop_add+0x8c0/0x8c0 [ 56.636128][ T8524] blk_request_module+0x111/0x1d0 [ 56.641125][ T8524] blkdev_get_no_open+0x1d5/0x250 [ 56.646120][ T8524] blkdev_get_by_dev.part.0+0x25/0xdd0 [ 56.651549][ T8524] ? devcgroup_check_permission+0x1bb/0x410 [ 56.657417][ T8524] blkdev_open+0x295/0x300 [ 56.661806][ T8524] do_dentry_open+0x4c8/0x11d0 [ 56.666539][ T8524] ? blkdev_get_by_dev+0x80/0x80 [ 56.671448][ T8524] ? __sanitizer_cov_trace_const_cmp4+0x1c/0x70 [ 56.677662][ T8524] ? may_open+0x1f6/0x420 [ 56.681963][ T8524] path_openat+0x1c23/0x27f0 [ 56.686526][ T8524] ? path_lookupat+0x860/0x860 [ 56.691262][ T8524] ? lockdep_hardirqs_on_prepare+0x400/0x400 [ 56.697215][ T8524] do_filp_open+0x1aa/0x400 [ 56.701694][ T8524] ? may_open_dev+0xf0/0xf0 [ 56.706168][ T8524] ? rwlock_bug.part.0+0x90/0x90 [ 56.711078][ T8524] ? __sanitizer_cov_trace_const_cmp8+0x1d/0x70 [ 56.717290][ T8524] ? _find_next_bit+0x1e3/0x260 [ 56.722112][ T8524] ? _raw_spin_unlock+0x24/0x40 [ 56.726931][ T8524] ? alloc_fd+0x2f0/0x670 [ 56.731235][ T8524] do_sys_openat2+0x16d/0x420 [ 56.735886][ T8524] ? build_open_flags+0x6f0/0x6f0 [ 56.740880][ T8524] ? __context_tracking_exit+0xb8/0xe0 [ 56.746315][ T8524] __x64_sys_open+0x119/0x1c0 [ 56.750968][ T8524] ? do_sys_open+0x140/0x140 [ 56.755533][ T8524] ? __secure_computing+0x104/0x360 [ 56.760705][ T8524] do_syscall_64+0x35/0xb0 [ 56.765092][ T8524] entry_SYSCALL_64_after_hwframe+0x44/0xae [ 56.770957][ T8524] RIP: 0033:0x7f977a2cf840 [ 56.775344][ T8524] 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 [ 56.794921][ T8524] RSP: 002b:00007ffe56d6e938 EFLAGS: 00000246 ORIG_RAX: 0000000000000002 [ 56.803307][ T8524] RAX: ffffffffffffffda RBX: 000055dc66d158f0 RCX: 00007f977a2cf840 [ 56.811255][ T8524] RDX: 000055dc65a0cfe3 RSI: 00000000000a0800 RDI: 000055dc66d15830 executing program executing program executing program executing program executing program executing program [ 56.819199][ T8524] RBP: 00007ffe56d6eab0 R08: 000055dc65a0c670 R09: 0000000000000010 [ 56.827142][ T8524] R10: 00007f977a049d70 R11: 0000000000000246 R12: 00007ffe56d6ea00 [ 56.835086][ T8524] R13: 000055dc66d17010 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 executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program