[ OK ] Reached target Login Prompts. [ OK ] Reached target Multi-User System. [ OK ] Reached target Graphical Interface. Starting Update UTMP about System Runlevel Changes... [ OK ] Started Update UTMP about System Runlevel Changes. Debian GNU/Linux 9 syzkaller ttyS0 Warning: Permanently added '10.128.0.141' (ECDSA) to the list of known hosts. executing program executing program syzkaller login: [ 56.942581][ T8424] [ 56.945106][ T8424] ====================================================== [ 56.952650][ T8424] WARNING: possible circular locking dependency detected [ 56.959989][ T8424] 5.13.0-rc6-syzkaller #0 Not tainted [ 56.965505][ T8424] ------------------------------------------------------ [ 56.972597][ T8424] systemd-udevd/8424 is trying to acquire lock: [ 56.978808][ T8424] ffffffff8ca6dd68 (loop_ctl_mutex){+.+.}-{3:3}, at: loop_probe+0xc7/0x150 [ 56.987597][ T8424] [ 56.987597][ T8424] but task is already holding lock: [ 56.994934][ T8424] ffffffff8c7e02e8 (major_names_lock){+.+.}-{3:3}, at: blk_request_module+0x25/0x1d0 [ 57.004386][ T8424] [ 57.004386][ T8424] which lock already depends on the new lock. [ 57.004386][ T8424] [ 57.014760][ T8424] [ 57.014760][ T8424] the existing dependency chain (in reverse order) is: [ 57.023744][ T8424] [ 57.023744][ T8424] -> #3 (major_names_lock){+.+.}-{3:3}: [ 57.031444][ T8424] __mutex_lock+0x139/0x10c0 [ 57.036542][ T8424] __register_blkdev+0x2b/0x3e0 [ 57.041889][ T8424] register_mtd_blktrans+0x85/0x3c0 [ 57.048123][ T8424] do_one_initcall+0x103/0x650 [ 57.053388][ T8424] kernel_init_freeable+0x6c4/0x74d [ 57.059173][ T8424] kernel_init+0xd/0x1b8 [ 57.063913][ T8424] ret_from_fork+0x1f/0x30 [ 57.068828][ T8424] [ 57.068828][ T8424] -> #2 (mtd_table_mutex){+.+.}-{3:3}: [ 57.076442][ T8424] __mutex_lock+0x139/0x10c0 [ 57.081892][ T8424] blktrans_open+0x69/0x600 [ 57.086894][ T8424] __blkdev_get+0x182/0xa30 [ 57.091910][ T8424] blkdev_get_by_dev+0x200/0x660 [ 57.097344][ T8424] blkdev_open+0x154/0x2b0 [ 57.102258][ T8424] do_dentry_open+0x4b9/0x11b0 [ 57.107522][ T8424] path_openat+0x1c0e/0x27e0 [ 57.112608][ T8424] do_filp_open+0x190/0x3d0 [ 57.117628][ T8424] do_sys_openat2+0x16d/0x420 [ 57.122803][ T8424] __x64_sys_open+0x119/0x1c0 [ 57.128149][ T8424] do_syscall_64+0x3a/0xb0 [ 57.133325][ T8424] entry_SYSCALL_64_after_hwframe+0x44/0xae [ 57.139803][ T8424] [ 57.139803][ T8424] -> #1 (&bdev->bd_mutex){+.+.}-{3:3}: [ 57.147642][ T8424] __mutex_lock+0x139/0x10c0 [ 57.152940][ T8424] del_gendisk+0x24b/0xa00 [ 57.157857][ T8424] loop_control_ioctl+0x3e7/0x4c0 [ 57.163396][ T8424] __x64_sys_ioctl+0x193/0x200 [ 57.168658][ T8424] do_syscall_64+0x3a/0xb0 [ 57.173575][ T8424] entry_SYSCALL_64_after_hwframe+0x44/0xae [ 57.179966][ T8424] [ 57.179966][ T8424] -> #0 (loop_ctl_mutex){+.+.}-{3:3}: [ 57.187493][ T8424] __lock_acquire+0x2a17/0x5230 [ 57.193257][ T8424] lock_acquire+0x1ab/0x740 [ 57.199011][ T8424] __mutex_lock+0x139/0x10c0 [ 57.204761][ T8424] loop_probe+0xc7/0x150 [ 57.209506][ T8424] blk_request_module+0x111/0x1d0 [ 57.215034][ T8424] blkdev_get_no_open+0x1d8/0x250 [ 57.220653][ T8424] blkdev_get_by_dev+0x76/0x660 [ 57.226086][ T8424] blkdev_open+0x154/0x2b0 [ 57.230999][ T8424] do_dentry_open+0x4b9/0x11b0 [ 57.236276][ T8424] path_openat+0x1c0e/0x27e0 [ 57.241378][ T8424] do_filp_open+0x190/0x3d0 [ 57.246382][ T8424] do_sys_openat2+0x16d/0x420 [ 57.251644][ T8424] __x64_sys_open+0x119/0x1c0 [ 57.257650][ T8424] do_syscall_64+0x3a/0xb0 [ 57.262566][ T8424] entry_SYSCALL_64_after_hwframe+0x44/0xae [ 57.268970][ T8424] [ 57.268970][ T8424] other info that might help us debug this: [ 57.268970][ T8424] [ 57.279255][ T8424] Chain exists of: [ 57.279255][ T8424] loop_ctl_mutex --> mtd_table_mutex --> major_names_lock [ 57.279255][ T8424] [ 57.292260][ T8424] Possible unsafe locking scenario: [ 57.292260][ T8424] [ 57.299681][ T8424] CPU0 CPU1 [ 57.305018][ T8424] ---- ---- [ 57.310527][ T8424] lock(major_names_lock); [ 57.315091][ T8424] lock(mtd_table_mutex); [ 57.322173][ T8424] lock(major_names_lock); [ 57.329253][ T8424] lock(loop_ctl_mutex); [ 57.333642][ T8424] [ 57.333642][ T8424] *** DEADLOCK *** [ 57.333642][ T8424] [ 57.341756][ T8424] 1 lock held by systemd-udevd/8424: [ 57.347012][ T8424] #0: ffffffff8c7e02e8 (major_names_lock){+.+.}-{3:3}, at: blk_request_module+0x25/0x1d0 [ 57.357186][ T8424] [ 57.357186][ T8424] stack backtrace: [ 57.363044][ T8424] CPU: 1 PID: 8424 Comm: systemd-udevd Not tainted 5.13.0-rc6-syzkaller #0 [ 57.371781][ T8424] Hardware name: Google Google Compute Engine/Google Compute Engine, BIOS Google 01/01/2011 [ 57.381815][ T8424] Call Trace: [ 57.385072][ T8424] dump_stack+0x141/0x1d7 [ 57.389382][ T8424] check_noncircular+0x25f/0x2e0 [ 57.394298][ T8424] ? print_circular_bug+0x1e0/0x1e0 [ 57.399473][ T8424] ? mark_lock+0xef/0x17b0 [ 57.403869][ T8424] ? lockdep_lock+0xc6/0x200 [ 57.408437][ T8424] ? call_rcu_zapped+0xb0/0xb0 [ 57.413191][ T8424] ? tomoyo_check_open_permission+0x172/0x380 [ 57.419410][ T8424] ? security_file_open+0x52/0x4f0 [ 57.424759][ T8424] __lock_acquire+0x2a17/0x5230 [ 57.429591][ T8424] ? lockdep_hardirqs_on_prepare+0x400/0x400 [ 57.435724][ T8424] lock_acquire+0x1ab/0x740 [ 57.440206][ T8424] ? loop_probe+0xc7/0x150 [ 57.444948][ T8424] ? lock_release+0x720/0x720 [ 57.449778][ T8424] __mutex_lock+0x139/0x10c0 [ 57.454348][ T8424] ? loop_probe+0xc7/0x150 [ 57.458925][ T8424] ? loop_probe+0xc7/0x150 [ 57.463319][ T8424] ? mutex_lock_io_nested+0xf20/0xf20 [ 57.468668][ T8424] ? __mutex_lock+0x5d5/0x10c0 [ 57.473421][ T8424] ? blk_request_module+0x25/0x1d0 [ 57.478784][ T8424] ? find_held_lock+0x2d/0x110 [ 57.483526][ T8424] ? mutex_lock_io_nested+0xf20/0xf20 [ 57.489133][ T8424] ? ilookup+0xb3/0x230 [ 57.493268][ T8424] loop_probe+0xc7/0x150 [ 57.497487][ T8424] ? loop_control_ioctl+0x4c0/0x4c0 [ 57.502662][ T8424] ? find_inode_fast+0x16f/0x220 [ 57.507576][ T8424] ? do_raw_spin_unlock+0x171/0x230 [ 57.512749][ T8424] ? loop_control_ioctl+0x4c0/0x4c0 [ 57.517924][ T8424] blk_request_module+0x111/0x1d0 [ 57.522926][ T8424] blkdev_get_no_open+0x1d8/0x250 [ 57.527930][ T8424] blkdev_get_by_dev+0x76/0x660 [ 57.532759][ T8424] blkdev_open+0x154/0x2b0 [ 57.537166][ T8424] do_dentry_open+0x4b9/0x11b0 [ 57.541908][ T8424] ? blkdev_get_by_dev+0x660/0x660 [ 57.546996][ T8424] ? may_open+0x1f6/0x420 [ 57.551304][ T8424] path_openat+0x1c0e/0x27e0 [ 57.555875][ T8424] ? path_lookupat+0x850/0x850 [ 57.560616][ T8424] ? lockdep_hardirqs_on_prepare+0x400/0x400 [ 57.566574][ T8424] do_filp_open+0x190/0x3d0 [ 57.571060][ T8424] ? may_open_dev+0xf0/0xf0 [ 57.575541][ T8424] ? do_raw_spin_lock+0x120/0x2b0 [ 57.580553][ T8424] ? rwlock_bug.part.0+0x90/0x90 [ 57.585552][ T8424] ? __sanitizer_cov_trace_const_cmp8+0x1d/0x70 [ 57.591873][ T8424] ? _find_next_bit+0x1e3/0x260 [ 57.596716][ T8424] ? _raw_spin_unlock+0x24/0x40 [ 57.601630][ T8424] ? alloc_fd+0x2e6/0x660 [ 57.605935][ T8424] do_sys_openat2+0x16d/0x420 [ 57.610589][ T8424] ? build_open_flags+0x6f0/0x6f0 [ 57.615590][ T8424] ? __context_tracking_exit+0xb8/0xe0 [ 57.621026][ T8424] __x64_sys_open+0x119/0x1c0 [ 57.625944][ T8424] ? do_sys_open+0x140/0x140 [ 57.630597][ T8424] ? __secure_computing+0x104/0x360 [ 57.636033][ T8424] do_syscall_64+0x3a/0xb0 [ 57.640519][ T8424] entry_SYSCALL_64_after_hwframe+0x44/0xae [ 57.646388][ T8424] RIP: 0033:0x7f6ca7053840 [ 57.650785][ T8424] 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 [ 57.670631][ T8424] RSP: 002b:00007ffe0f040b28 EFLAGS: 00000246 ORIG_RAX: 0000000000000002 [ 57.679021][ T8424] RAX: ffffffffffffffda RBX: 0000556eb7b758f0 RCX: 00007f6ca7053840 [ 57.687079][ T8424] RDX: 0000556eb6d32fe3 RSI: 00000000000a0800 RDI: 0000556eb7b75830 [ 57.695112][ T8424] RBP: 00007ffe0f040ca0 R08: 0000556eb6d32670 R09: 0000000000000010 [ 57.703230][ T8424] R10: 00007f6ca6dcdd70 R11: 0000000000000246 R12: 00007ffe0f040bf0 [ 57.711179][ T8424] R13: 0000556eb7b77010 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