Debian GNU/Linux 9 syzkaller ttyS0 Warning: Permanently added '10.128.0.136' (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 syzkaller login: [ 69.084581][ T8508] [ 69.086934][ T8508] ====================================================== [ 69.093940][ T8508] WARNING: possible circular locking dependency detected [ 69.100936][ T8508] 5.14.0-rc5-syzkaller #0 Not tainted [ 69.106280][ T8508] ------------------------------------------------------ [ 69.113271][ T8508] systemd-udevd/8508 is trying to acquire lock: [ 69.119524][ T8508] ffffffff8c487968 (loop_ctl_mutex){+.+.}-{3:3}, at: loop_add+0x9c/0x8c0 [ 69.127946][ T8508] [ 69.127946][ T8508] but task is already holding lock: [ 69.135283][ T8508] ffffffff8c1f3f08 (major_names_lock){+.+.}-{3:3}, at: blk_request_module+0x25/0x1d0 [ 69.144736][ T8508] [ 69.144736][ T8508] which lock already depends on the new lock. [ 69.144736][ T8508] [ 69.155110][ T8508] [ 69.155110][ T8508] the existing dependency chain (in reverse order) is: [ 69.164140][ T8508] [ 69.164140][ T8508] -> #3 (major_names_lock){+.+.}-{3:3}: [ 69.171843][ T8508] __mutex_lock+0x12a/0x10a0 [ 69.176949][ T8508] __register_blkdev+0x2b/0x3e0 [ 69.182306][ T8508] register_mtd_blktrans+0x85/0x3c0 [ 69.188021][ T8508] do_one_initcall+0x103/0x650 [ 69.193314][ T8508] kernel_init_freeable+0x6b8/0x741 [ 69.199017][ T8508] kernel_init+0x1a/0x1d0 [ 69.203844][ T8508] ret_from_fork+0x1f/0x30 [ 69.208864][ T8508] [ 69.208864][ T8508] -> #2 (mtd_table_mutex){+.+.}-{3:3}: [ 69.216490][ T8508] __mutex_lock+0x12a/0x10a0 [ 69.221589][ T8508] blktrans_open+0x69/0x600 [ 69.226595][ T8508] blkdev_get_whole+0xa1/0x420 [ 69.231857][ T8508] blkdev_get_by_dev.part.0+0x30c/0xdd0 [ 69.237902][ T8508] blkdev_open+0x295/0x300 [ 69.242815][ T8508] do_dentry_open+0x4c8/0x11d0 [ 69.248079][ T8508] path_openat+0x1c23/0x27f0 [ 69.253168][ T8508] do_filp_open+0x1aa/0x400 [ 69.258168][ T8508] do_sys_openat2+0x16d/0x420 [ 69.263346][ T8508] __x64_sys_open+0x119/0x1c0 [ 69.268527][ T8508] do_syscall_64+0x35/0xb0 [ 69.273448][ T8508] entry_SYSCALL_64_after_hwframe+0x44/0xae [ 69.279865][ T8508] [ 69.279865][ T8508] -> #1 (&disk->open_mutex){+.+.}-{3:3}: [ 69.287656][ T8508] __mutex_lock+0x12a/0x10a0 [ 69.295752][ T8508] del_gendisk+0x8b/0x770 [ 69.300625][ T8508] loop_control_ioctl+0x3b5/0x450 [ 69.306151][ T8508] __do_compat_sys_ioctl+0x1c7/0x290 [ 69.311940][ T8508] __do_fast_syscall_32+0x65/0xf0 [ 69.317494][ T8508] do_fast_syscall_32+0x2f/0x70 [ 69.322847][ T8508] entry_SYSENTER_compat_after_hwframe+0x4d/0x5c [ 69.329680][ T8508] [ 69.329680][ T8508] -> #0 (loop_ctl_mutex){+.+.}-{3:3}: [ 69.337224][ T8508] __lock_acquire+0x2a07/0x54a0 [ 69.342573][ T8508] lock_acquire+0x1ab/0x510 [ 69.347590][ T8508] __mutex_lock+0x12a/0x10a0 [ 69.352681][ T8508] loop_add+0x9c/0x8c0 [ 69.357248][ T8508] loop_probe+0x6a/0x80 [ 69.361918][ T8508] blk_request_module+0x111/0x1d0 [ 69.367445][ T8508] blkdev_get_no_open+0x1d5/0x250 [ 69.372967][ T8508] blkdev_get_by_dev.part.0+0x25/0xdd0 [ 69.378926][ T8508] blkdev_open+0x295/0x300 [ 69.383843][ T8508] do_dentry_open+0x4c8/0x11d0 [ 69.389107][ T8508] path_openat+0x1c23/0x27f0 [ 69.394196][ T8508] do_filp_open+0x1aa/0x400 [ 69.399197][ T8508] do_sys_openat2+0x16d/0x420 [ 69.404726][ T8508] __x64_sys_open+0x119/0x1c0 [ 69.409913][ T8508] do_syscall_64+0x35/0xb0 [ 69.414835][ T8508] entry_SYSCALL_64_after_hwframe+0x44/0xae [ 69.421232][ T8508] [ 69.421232][ T8508] other info that might help us debug this: [ 69.421232][ T8508] [ 69.431438][ T8508] Chain exists of: [ 69.431438][ T8508] loop_ctl_mutex --> mtd_table_mutex --> major_names_lock [ 69.431438][ T8508] [ 69.444442][ T8508] Possible unsafe locking scenario: [ 69.444442][ T8508] [ 69.451865][ T8508] CPU0 CPU1 [ 69.457220][ T8508] ---- ---- [ 69.462562][ T8508] lock(major_names_lock); [ 69.467040][ T8508] lock(mtd_table_mutex); [ 69.473966][ T8508] lock(major_names_lock); [ 69.480964][ T8508] lock(loop_ctl_mutex); [ 69.485269][ T8508] [ 69.485269][ T8508] *** DEADLOCK *** [ 69.485269][ T8508] [ 69.493389][ T8508] 1 lock held by systemd-udevd/8508: [ 69.498650][ T8508] #0: ffffffff8c1f3f08 (major_names_lock){+.+.}-{3:3}, at: blk_request_module+0x25/0x1d0 [ 69.508543][ T8508] [ 69.508543][ T8508] stack backtrace: [ 69.514407][ T8508] CPU: 1 PID: 8508 Comm: systemd-udevd Not tainted 5.14.0-rc5-syzkaller #0 [ 69.522971][ T8508] Hardware name: Google Google Compute Engine/Google Compute Engine, BIOS Google 01/01/2011 [ 69.533005][ T8508] Call Trace: [ 69.536262][ T8508] dump_stack_lvl+0xcd/0x134 [ 69.540840][ T8508] check_noncircular+0x25f/0x2e0 [ 69.545759][ T8508] ? lockdep_hardirqs_on_prepare+0x400/0x400 [ 69.551717][ T8508] ? print_circular_bug+0x1e0/0x1e0 [ 69.556893][ T8508] ? lock_chain_count+0x20/0x20 [ 69.561727][ T8508] ? lockdep_lock+0xc6/0x200 [ 69.566298][ T8508] ? call_rcu_zapped+0xb0/0xb0 [ 69.571047][ T8508] __lock_acquire+0x2a07/0x54a0 [ 69.575895][ T8508] ? lockdep_hardirqs_on_prepare+0x400/0x400 [ 69.581859][ T8508] lock_acquire+0x1ab/0x510 [ 69.586346][ T8508] ? loop_add+0x9c/0x8c0 [ 69.590570][ T8508] ? lock_release+0x720/0x720 [ 69.595223][ T8508] ? path_openat+0x1c23/0x27f0 [ 69.599973][ T8508] ? do_filp_open+0x1aa/0x400 [ 69.604631][ T8508] ? do_sys_openat2+0x16d/0x420 [ 69.609463][ T8508] ? __x64_sys_open+0x119/0x1c0 [ 69.614299][ T8508] __mutex_lock+0x12a/0x10a0 [ 69.618877][ T8508] ? loop_add+0x9c/0x8c0 [ 69.623100][ T8508] ? loop_add+0x9c/0x8c0 [ 69.627340][ T8508] ? mark_held_locks+0x9f/0xe0 [ 69.632084][ T8508] ? mutex_lock_io_nested+0xf00/0xf00 [ 69.637440][ T8508] ? rcu_read_lock_sched_held+0x3a/0x70 [ 69.642968][ T8508] loop_add+0x9c/0x8c0 [ 69.647017][ T8508] ? find_inode_fast+0x16f/0x220 [ 69.651937][ T8508] loop_probe+0x6a/0x80 [ 69.656075][ T8508] ? loop_add+0x8c0/0x8c0 [ 69.660384][ T8508] blk_request_module+0x111/0x1d0 [ 69.665393][ T8508] blkdev_get_no_open+0x1d5/0x250 [ 69.670412][ T8508] blkdev_get_by_dev.part.0+0x25/0xdd0 [ 69.675853][ T8508] ? devcgroup_check_permission+0x1bb/0x410 [ 69.681727][ T8508] blkdev_open+0x295/0x300 [ 69.686123][ T8508] do_dentry_open+0x4c8/0x11d0 [ 69.690871][ T8508] ? blkdev_get_by_dev+0x80/0x80 [ 69.695790][ T8508] ? __sanitizer_cov_trace_const_cmp4+0x1c/0x70 [ 69.702011][ T8508] ? may_open+0x1f6/0x420 [ 69.706319][ T8508] path_openat+0x1c23/0x27f0 [ 69.710895][ T8508] ? path_lookupat+0x860/0x860 [ 69.715642][ T8508] ? wp_page_copy+0xfa6/0x2450 [ 69.720387][ T8508] ? lockdep_hardirqs_on_prepare+0x400/0x400 [ 69.726351][ T8508] do_filp_open+0x1aa/0x400 [ 69.730836][ T8508] ? may_open_dev+0xf0/0xf0 [ 69.735324][ T8508] ? rwlock_bug.part.0+0x90/0x90 [ 69.740257][ T8508] ? __sanitizer_cov_trace_const_cmp8+0x1d/0x70 [ 69.746477][ T8508] ? _find_next_bit+0x1e3/0x260 [ 69.751317][ T8508] ? _raw_spin_unlock+0x24/0x40 [ 69.756154][ T8508] ? alloc_fd+0x2f0/0x670 [ 69.760481][ T8508] do_sys_openat2+0x16d/0x420 [ 69.765143][ T8508] ? build_open_flags+0x6f0/0x6f0 [ 69.770148][ T8508] ? __context_tracking_exit+0xb8/0xe0 [ 69.775595][ T8508] __x64_sys_open+0x119/0x1c0 [ 69.780267][ T8508] ? do_sys_open+0x140/0x140 [ 69.784838][ T8508] ? __secure_computing+0x104/0x360 [ 69.790020][ T8508] do_syscall_64+0x35/0xb0 [ 69.794431][ T8508] entry_SYSCALL_64_after_hwframe+0x44/0xae [ 69.800305][ T8508] RIP: 0033:0x7f1c0eff5840 [ 69.804705][ T8508] 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 [ 69.824305][ T8508] RSP: 002b:00007ffc324fc148 EFLAGS: 00000246 ORIG_RAX: 0000000000000002 executing program executing program [ 69.832702][ T8508] RAX: ffffffffffffffda RBX: 00005620c21a1e10 RCX: 00007f1c0eff5840 [ 69.840672][ T8508] RDX: 00005620c0552fe3 RSI: 00000000000a0800 RDI: 00005620c21a0590 [ 69.848624][ T8508] RBP: 00007ffc324fc2c0 R08: 00005620c0552670 R09: 0000000000000010 [ 69.856573][ T8508] R10: 00005620c0552d0c R11: 0000000000000246 R12: 00007ffc324fc210 [ 69.864537][ T8508] R13: 00005620c21a1f10 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 [ 70.962961][ T3267] ieee802154 phy0 wpan0: encryption failed: -22 [ 70.969246][ T3267] ieee802154 phy1 wpan1: encryption failed: -22 executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program