Starting Load/Save RF Kill Switch Status... Debian GNU/Linux 9 syzkaller ttyS0 Warning: Permanently added '10.128.0.60' (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 syzkaller login: [ 73.025791][ T8622] [ 73.028157][ T8622] ====================================================== [ 73.035168][ T8622] WARNING: possible circular locking dependency detected [ 73.042165][ T8622] 5.14.0-rc5-syzkaller #0 Not tainted [ 73.047513][ T8622] ------------------------------------------------------ [ 73.054517][ T8622] systemd-udevd/8622 is trying to acquire lock: [ 73.060730][ T8622] ffffffff8c486b88 (loop_ctl_mutex){+.+.}-{3:3}, at: loop_add+0x9c/0x8c0 [ 73.069156][ T8622] [ 73.069156][ T8622] but task is already holding lock: [ 73.076521][ T8622] ffffffff8c1f3fe8 (major_names_lock){+.+.}-{3:3}, at: blk_request_module+0x25/0x1d0 [ 73.086252][ T8622] [ 73.086252][ T8622] which lock already depends on the new lock. [ 73.086252][ T8622] [ 73.096636][ T8622] [ 73.096636][ T8622] the existing dependency chain (in reverse order) is: [ 73.105637][ T8622] [ 73.105637][ T8622] -> #3 (major_names_lock){+.+.}-{3:3}: [ 73.113377][ T8622] __mutex_lock+0x12a/0x10a0 [ 73.118498][ T8622] __register_blkdev+0x2b/0x3e0 [ 73.123867][ T8622] register_mtd_blktrans+0x85/0x3c0 [ 73.129578][ T8622] do_one_initcall+0x103/0x650 [ 73.134855][ T8622] kernel_init_freeable+0x6b8/0x741 [ 73.140569][ T8622] kernel_init+0x1a/0x1d0 [ 73.145418][ T8622] ret_from_fork+0x1f/0x30 [ 73.150349][ T8622] [ 73.150349][ T8622] -> #2 (mtd_table_mutex){+.+.}-{3:3}: [ 73.157984][ T8622] __mutex_lock+0x12a/0x10a0 [ 73.163091][ T8622] blktrans_open+0x69/0x600 [ 73.168108][ T8622] blkdev_get_whole+0xa1/0x420 [ 73.173382][ T8622] blkdev_get_by_dev.part.0+0x30c/0xdd0 [ 73.179439][ T8622] blkdev_open+0x295/0x300 [ 73.184367][ T8622] do_dentry_open+0x4c8/0x11d0 [ 73.189647][ T8622] path_openat+0x1c23/0x27f0 [ 73.194752][ T8622] do_filp_open+0x1aa/0x400 [ 73.199818][ T8622] do_sys_openat2+0x16d/0x420 [ 73.205045][ T8622] __x64_sys_open+0x119/0x1c0 [ 73.210236][ T8622] do_syscall_64+0x35/0xb0 [ 73.215170][ T8622] entry_SYSCALL_64_after_hwframe+0x44/0xae [ 73.221668][ T8622] [ 73.221668][ T8622] -> #1 (&disk->open_mutex){+.+.}-{3:3}: [ 73.229483][ T8622] __mutex_lock+0x12a/0x10a0 [ 73.234630][ T8622] del_gendisk+0x8b/0x770 [ 73.239494][ T8622] loop_control_ioctl+0x3b5/0x450 [ 73.245045][ T8622] __do_compat_sys_ioctl+0x1c7/0x290 [ 73.250855][ T8622] __do_fast_syscall_32+0x65/0xf0 [ 73.256402][ T8622] do_fast_syscall_32+0x2f/0x70 [ 73.261771][ T8622] entry_SYSENTER_compat_after_hwframe+0x4d/0x5c [ 73.268620][ T8622] [ 73.268620][ T8622] -> #0 (loop_ctl_mutex){+.+.}-{3:3}: [ 73.276170][ T8622] __lock_acquire+0x2a07/0x54a0 [ 73.281537][ T8622] lock_acquire+0x1ab/0x510 [ 73.286551][ T8622] __mutex_lock+0x12a/0x10a0 [ 73.291658][ T8622] loop_add+0x9c/0x8c0 [ 73.296241][ T8622] loop_probe+0x6a/0x80 [ 73.300909][ T8622] blk_request_module+0x111/0x1d0 [ 73.306464][ T8622] blkdev_get_no_open+0x1d5/0x250 [ 73.312017][ T8622] blkdev_get_by_dev.part.0+0x25/0xdd0 [ 73.317993][ T8622] blkdev_open+0x295/0x300 [ 73.322934][ T8622] do_dentry_open+0x4c8/0x11d0 [ 73.328213][ T8622] path_openat+0x1c23/0x27f0 [ 73.333313][ T8622] do_filp_open+0x1aa/0x400 [ 73.338330][ T8622] do_sys_openat2+0x16d/0x420 [ 73.343609][ T8622] __x64_sys_open+0x119/0x1c0 [ 73.348804][ T8622] do_syscall_64+0x35/0xb0 [ 73.353744][ T8622] entry_SYSCALL_64_after_hwframe+0x44/0xae [ 73.360272][ T8622] [ 73.360272][ T8622] other info that might help us debug this: [ 73.360272][ T8622] [ 73.370490][ T8622] Chain exists of: [ 73.370490][ T8622] loop_ctl_mutex --> mtd_table_mutex --> major_names_lock [ 73.370490][ T8622] [ 73.383548][ T8622] Possible unsafe locking scenario: [ 73.383548][ T8622] [ 73.390983][ T8622] CPU0 CPU1 [ 73.396331][ T8622] ---- ---- [ 73.401676][ T8622] lock(major_names_lock); [ 73.406167][ T8622] lock(mtd_table_mutex); [ 73.413085][ T8622] lock(major_names_lock); [ 73.420106][ T8622] lock(loop_ctl_mutex); [ 73.424424][ T8622] [ 73.424424][ T8622] *** DEADLOCK *** [ 73.424424][ T8622] [ 73.432552][ T8622] 1 lock held by systemd-udevd/8622: [ 73.437834][ T8622] #0: ffffffff8c1f3fe8 (major_names_lock){+.+.}-{3:3}, at: blk_request_module+0x25/0x1d0 [ 73.447775][ T8622] [ 73.447775][ T8622] stack backtrace: [ 73.453643][ T8622] CPU: 0 PID: 8622 Comm: systemd-udevd Not tainted 5.14.0-rc5-syzkaller #0 [ 73.462232][ T8622] Hardware name: Google Google Compute Engine/Google Compute Engine, BIOS Google 01/01/2011 [ 73.472277][ T8622] Call Trace: [ 73.475547][ T8622] dump_stack_lvl+0xcd/0x134 [ 73.480140][ T8622] check_noncircular+0x25f/0x2e0 [ 73.485078][ T8622] ? lockdep_hardirqs_on_prepare+0x400/0x400 [ 73.491053][ T8622] ? print_circular_bug+0x1e0/0x1e0 [ 73.496275][ T8622] ? lock_chain_count+0x20/0x20 [ 73.501120][ T8622] ? lockdep_lock+0xc6/0x200 [ 73.505886][ T8622] ? call_rcu_zapped+0xb0/0xb0 [ 73.510671][ T8622] __lock_acquire+0x2a07/0x54a0 [ 73.515517][ T8622] ? lockdep_hardirqs_on_prepare+0x400/0x400 [ 73.521493][ T8622] lock_acquire+0x1ab/0x510 [ 73.526001][ T8622] ? loop_add+0x9c/0x8c0 [ 73.530241][ T8622] ? lock_release+0x720/0x720 [ 73.534919][ T8622] ? path_openat+0x1c23/0x27f0 [ 73.539684][ T8622] ? do_filp_open+0x1aa/0x400 [ 73.544440][ T8622] ? do_sys_openat2+0x16d/0x420 [ 73.549285][ T8622] ? __x64_sys_open+0x119/0x1c0 [ 73.554149][ T8622] __mutex_lock+0x12a/0x10a0 [ 73.558738][ T8622] ? loop_add+0x9c/0x8c0 [ 73.562986][ T8622] ? loop_add+0x9c/0x8c0 [ 73.567230][ T8622] ? mutex_lock_io_nested+0xf00/0xf00 [ 73.572606][ T8622] ? rcu_read_lock_sched_held+0x3a/0x70 [ 73.578165][ T8622] loop_add+0x9c/0x8c0 [ 73.582232][ T8622] ? find_inode_fast+0x16f/0x220 [ 73.587166][ T8622] loop_probe+0x6a/0x80 [ 73.591319][ T8622] ? loop_add+0x8c0/0x8c0 [ 73.595650][ T8622] blk_request_module+0x111/0x1d0 [ 73.600675][ T8622] blkdev_get_no_open+0x1d5/0x250 [ 73.605705][ T8622] blkdev_get_by_dev.part.0+0x25/0xdd0 [ 73.611156][ T8622] ? devcgroup_check_permission+0x1bb/0x410 [ 73.617048][ T8622] blkdev_open+0x295/0x300 [ 73.621458][ T8622] do_dentry_open+0x4c8/0x11d0 [ 73.626307][ T8622] ? blkdev_get_by_dev+0x80/0x80 [ 73.631234][ T8622] ? __sanitizer_cov_trace_const_cmp4+0x1c/0x70 [ 73.637559][ T8622] ? may_open+0x1f6/0x420 [ 73.641880][ T8622] path_openat+0x1c23/0x27f0 [ 73.646466][ T8622] ? path_lookupat+0x860/0x860 [ 73.651234][ T8622] ? lockdep_hardirqs_on_prepare+0x400/0x400 [ 73.657210][ T8622] do_filp_open+0x1aa/0x400 [ 73.661719][ T8622] ? may_open_dev+0xf0/0xf0 [ 73.666219][ T8622] ? rwlock_bug.part.0+0x90/0x90 [ 73.671153][ T8622] ? __sanitizer_cov_trace_const_cmp8+0x1d/0x70 [ 73.677389][ T8622] ? _find_next_bit+0x1e3/0x260 [ 73.682244][ T8622] ? _raw_spin_unlock+0x24/0x40 [ 73.687087][ T8622] ? alloc_fd+0x2f0/0x670 [ 73.691416][ T8622] do_sys_openat2+0x16d/0x420 [ 73.696099][ T8622] ? build_open_flags+0x6f0/0x6f0 [ 73.701125][ T8622] ? __context_tracking_exit+0xb8/0xe0 [ 73.706611][ T8622] __x64_sys_open+0x119/0x1c0 [ 73.711285][ T8622] ? do_sys_open+0x140/0x140 [ 73.715873][ T8622] ? __secure_computing+0x104/0x360 [ 73.721080][ T8622] do_syscall_64+0x35/0xb0 [ 73.725490][ T8622] entry_SYSCALL_64_after_hwframe+0x44/0xae [ 73.731388][ T8622] RIP: 0033:0x7fa101f28840 [ 73.735800][ T8622] 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 [ 73.755932][ T8622] RSP: 002b:00007ffe156b1be8 EFLAGS: 00000246 ORIG_RAX: 0000000000000002 [ 73.764339][ T8622] RAX: ffffffffffffffda RBX: 00005608b6c168f0 RCX: 00007fa101f28840 executing program executing program executing program executing program [ 73.772301][ T8622] RDX: 00005608b4c39fe3 RSI: 00000000000a0800 RDI: 00005608b6c16830 [ 73.780283][ T8622] RBP: 00007ffe156b1d60 R08: 00005608b4c39670 R09: 0000000000000010 [ 73.788612][ T8622] R10: 00005608b4c39d0c R11: 0000000000000246 R12: 00007ffe156b1cb0 [ 73.796575][ T8622] R13: 00005608b6c18010 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