[ OK ] Listening on Load/Save RF Kill Switch Status /dev/rfkill Watch. [ OK ] Started Getty on tty6. [ OK ] Started Getty on tty5. [ OK ] Started Getty on tty4. [ OK ] Started Getty on tty3. [ OK ] Started Getty on tty2. [ OK ] Started Getty on tty1. [ OK ] Started Serial Getty on ttyS0. [ OK ] Reached target Login Prompts. [ OK ] Reached target Multi-User System. [ OK ] Reached target Graphical Interface. Starting Update UTMP about System Runlevel Changes... Starting Load/Save RF Kill Switch Status... [ OK ] Started Update UTMP about System Runlevel Changes. [ OK ] Started Load/Save RF Kill Switch Status. Debian GNU/Linux 9 syzkaller ttyS0 Warning: Permanently added '10.128.1.70' (ECDSA) to the list of known hosts. executing program syzkaller login: [ 79.815464][ T37] audit: type=1400 audit(1623723380.881:8): avc: denied { execmem } for pid=8415 comm="syz-executor580" scontext=system_u:system_r:kernel_t:s0 tcontext=system_u:system_r:kernel_t:s0 tclass=process permissive=1 executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program [ 81.088763][ T8549] [ 81.091304][ T8549] ====================================================== [ 81.098587][ T8549] WARNING: possible circular locking dependency detected [ 81.105979][ T8549] 5.13.0-rc6-syzkaller #0 Not tainted [ 81.111339][ T8549] ------------------------------------------------------ [ 81.118752][ T8549] systemd-udevd/8549 is trying to acquire lock: [ 81.125086][ T8549] ffffffff8ca6c708 (loop_ctl_mutex){+.+.}-{3:3}, at: loop_probe+0xc7/0x150 [ 81.133716][ T8549] [ 81.133716][ T8549] but task is already holding lock: [ 81.141081][ T8549] ffffffff8c7dec88 (major_names_lock){+.+.}-{3:3}, at: blk_request_module+0x25/0x1d0 [ 81.150554][ T8549] [ 81.150554][ T8549] which lock already depends on the new lock. [ 81.150554][ T8549] [ 81.160944][ T8549] [ 81.160944][ T8549] the existing dependency chain (in reverse order) is: [ 81.169953][ T8549] [ 81.169953][ T8549] -> #3 (major_names_lock){+.+.}-{3:3}: [ 81.177758][ T8549] __mutex_lock+0x139/0x10c0 [ 81.182884][ T8549] __register_blkdev+0x2b/0x3e0 [ 81.188365][ T8549] register_mtd_blktrans+0x85/0x3c0 [ 81.194090][ T8549] do_one_initcall+0x103/0x650 [ 81.199407][ T8549] kernel_init_freeable+0x6c4/0x74d [ 81.205142][ T8549] kernel_init+0xd/0x1b8 [ 81.210003][ T8549] ret_from_fork+0x1f/0x30 [ 81.214956][ T8549] [ 81.214956][ T8549] -> #2 (mtd_table_mutex){+.+.}-{3:3}: [ 81.222582][ T8549] __mutex_lock+0x139/0x10c0 [ 81.227682][ T8549] blktrans_open+0x69/0x600 [ 81.233923][ T8549] __blkdev_get+0x182/0xa30 [ 81.238936][ T8549] blkdev_get_by_dev+0x200/0x660 [ 81.244383][ T8549] blkdev_open+0x154/0x2b0 [ 81.249306][ T8549] do_dentry_open+0x4b9/0x11b0 [ 81.254579][ T8549] path_openat+0x1c0e/0x27e0 [ 81.259857][ T8549] do_filp_open+0x190/0x3d0 [ 81.264875][ T8549] do_sys_openat2+0x16d/0x420 [ 81.270335][ T8549] __x64_sys_open+0x119/0x1c0 [ 81.275533][ T8549] do_syscall_64+0x3a/0xb0 [ 81.280663][ T8549] entry_SYSCALL_64_after_hwframe+0x44/0xae [ 81.287312][ T8549] [ 81.287312][ T8549] -> #1 (&bdev->bd_mutex){+.+.}-{3:3}: [ 81.294990][ T8549] __mutex_lock+0x139/0x10c0 [ 81.300093][ T8549] del_gendisk+0x24b/0xa00 [ 81.305020][ T8549] loop_control_ioctl+0x3e7/0x4c0 [ 81.310574][ T8549] __x64_sys_ioctl+0x193/0x200 [ 81.315852][ T8549] do_syscall_64+0x3a/0xb0 [ 81.320924][ T8549] entry_SYSCALL_64_after_hwframe+0x44/0xae [ 81.327595][ T8549] [ 81.327595][ T8549] -> #0 (loop_ctl_mutex){+.+.}-{3:3}: [ 81.335435][ T8549] __lock_acquire+0x2a17/0x5230 [ 81.340894][ T8549] lock_acquire+0x1ab/0x740 [ 81.345921][ T8549] __mutex_lock+0x139/0x10c0 [ 81.351208][ T8549] loop_probe+0xc7/0x150 [ 81.356210][ T8549] blk_request_module+0x111/0x1d0 [ 81.361941][ T8549] blkdev_get_no_open+0x1d8/0x250 [ 81.367497][ T8549] blkdev_get_by_dev+0x76/0x660 [ 81.372855][ T8549] blkdev_open+0x154/0x2b0 [ 81.377779][ T8549] do_dentry_open+0x4b9/0x11b0 [ 81.383063][ T8549] path_openat+0x1c0e/0x27e0 [ 81.388167][ T8549] do_filp_open+0x190/0x3d0 [ 81.393267][ T8549] do_sys_openat2+0x16d/0x420 [ 81.398596][ T8549] __x64_sys_open+0x119/0x1c0 [ 81.403895][ T8549] do_syscall_64+0x3a/0xb0 [ 81.408830][ T8549] entry_SYSCALL_64_after_hwframe+0x44/0xae [ 81.415246][ T8549] [ 81.415246][ T8549] other info that might help us debug this: [ 81.415246][ T8549] [ 81.425459][ T8549] Chain exists of: [ 81.425459][ T8549] loop_ctl_mutex --> mtd_table_mutex --> major_names_lock [ 81.425459][ T8549] [ 81.438583][ T8549] Possible unsafe locking scenario: [ 81.438583][ T8549] [ 81.446021][ T8549] CPU0 CPU1 [ 81.451374][ T8549] ---- ---- [ 81.456919][ T8549] lock(major_names_lock); [ 81.461421][ T8549] lock(mtd_table_mutex); [ 81.468462][ T8549] lock(major_names_lock); [ 81.475471][ T8549] lock(loop_ctl_mutex); [ 81.479785][ T8549] [ 81.479785][ T8549] *** DEADLOCK *** [ 81.479785][ T8549] [ 81.488185][ T8549] 1 lock held by systemd-udevd/8549: [ 81.493452][ T8549] #0: ffffffff8c7dec88 (major_names_lock){+.+.}-{3:3}, at: blk_request_module+0x25/0x1d0 [ 81.503376][ T8549] [ 81.503376][ T8549] stack backtrace: [ 81.509250][ T8549] CPU: 0 PID: 8549 Comm: systemd-udevd Not tainted 5.13.0-rc6-syzkaller #0 [ 81.517829][ T8549] Hardware name: Google Google Compute Engine/Google Compute Engine, BIOS Google 01/01/2011 [ 81.528009][ T8549] Call Trace: [ 81.531279][ T8549] dump_stack+0x141/0x1d7 [ 81.535599][ T8549] check_noncircular+0x25f/0x2e0 [ 81.540626][ T8549] ? print_circular_bug+0x1e0/0x1e0 [ 81.545995][ T8549] ? mark_lock+0xef/0x17b0 [ 81.550406][ T8549] ? lockdep_lock+0xc6/0x200 [ 81.555072][ T8549] ? call_rcu_zapped+0xb0/0xb0 [ 81.559822][ T8549] __lock_acquire+0x2a17/0x5230 [ 81.564670][ T8549] ? lockdep_hardirqs_on_prepare+0x400/0x400 [ 81.570644][ T8549] lock_acquire+0x1ab/0x740 [ 81.575234][ T8549] ? loop_probe+0xc7/0x150 [ 81.579640][ T8549] ? lock_release+0x720/0x720 [ 81.584830][ T8549] __mutex_lock+0x139/0x10c0 [ 81.589497][ T8549] ? loop_probe+0xc7/0x150 [ 81.594121][ T8549] ? loop_probe+0xc7/0x150 [ 81.598531][ T8549] ? mutex_lock_io_nested+0xf20/0xf20 [ 81.603895][ T8549] ? __mutex_lock+0x5d5/0x10c0 [ 81.608653][ T8549] ? blk_request_module+0x25/0x1d0 [ 81.614101][ T8549] ? find_held_lock+0x2d/0x110 [ 81.618855][ T8549] ? mutex_lock_io_nested+0xf20/0xf20 [ 81.624221][ T8549] ? ilookup+0xb3/0x230 [ 81.628372][ T8549] loop_probe+0xc7/0x150 [ 81.632606][ T8549] ? loop_control_ioctl+0x4c0/0x4c0 [ 81.637788][ T8549] ? find_inode_fast+0x16f/0x220 [ 81.642843][ T8549] ? do_raw_spin_unlock+0x171/0x230 [ 81.648132][ T8549] ? loop_control_ioctl+0x4c0/0x4c0 [ 81.653321][ T8549] blk_request_module+0x111/0x1d0 [ 81.658337][ T8549] blkdev_get_no_open+0x1d8/0x250 [ 81.663353][ T8549] blkdev_get_by_dev+0x76/0x660 [ 81.668196][ T8549] blkdev_open+0x154/0x2b0 [ 81.672621][ T8549] do_dentry_open+0x4b9/0x11b0 [ 81.677564][ T8549] ? blkdev_get_by_dev+0x660/0x660 [ 81.682667][ T8549] ? may_open+0x1f6/0x420 [ 81.686985][ T8549] path_openat+0x1c0e/0x27e0 [ 81.691565][ T8549] ? path_lookupat+0x850/0x850 [ 81.696414][ T8549] ? lockdep_hardirqs_on_prepare+0x400/0x400 [ 81.702403][ T8549] do_filp_open+0x190/0x3d0 [ 81.706994][ T8549] ? may_open_dev+0xf0/0xf0 [ 81.711498][ T8549] ? do_raw_spin_lock+0x120/0x2b0 [ 81.716516][ T8549] ? rwlock_bug.part.0+0x90/0x90 [ 81.721663][ T8549] ? __sanitizer_cov_trace_const_cmp8+0x1d/0x70 [ 81.728160][ T8549] ? _find_next_bit+0x1e3/0x260 [ 81.733197][ T8549] ? _raw_spin_unlock+0x24/0x40 [ 81.738286][ T8549] ? alloc_fd+0x2e6/0x660 [ 81.742612][ T8549] do_sys_openat2+0x16d/0x420 [ 81.747302][ T8549] ? build_open_flags+0x6f0/0x6f0 [ 81.752362][ T8549] ? __context_tracking_exit+0xb8/0xe0 [ 81.757908][ T8549] __x64_sys_open+0x119/0x1c0 [ 81.762595][ T8549] ? do_sys_open+0x140/0x140 [ 81.767204][ T8549] ? __secure_computing+0x104/0x360 [ 81.772494][ T8549] do_syscall_64+0x3a/0xb0 [ 81.776928][ T8549] entry_SYSCALL_64_after_hwframe+0x44/0xae [ 81.782941][ T8549] RIP: 0033:0x7f8157894840 [ 81.787449][ T8549] 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 [ 81.807246][ T8549] RSP: 002b:00007ffece171da8 EFLAGS: 00000246 ORIG_RAX: 0000000000000002 [ 81.815667][ T8549] RAX: ffffffffffffffda RBX: 00005577e3282d60 RCX: 00007f8157894840 [ 81.823756][ T8549] RDX: 00005577e1847fe3 RSI: 00000000000a0800 RDI: 00005577e3282050 [ 81.831723][ T8549] RBP: 00007ffece171f20 R08: 00005577e1847670 R09: 0000000000000010 executing program executing program executing program [ 81.839691][ T8549] R10: 00005577e1847d0c R11: 0000000000000246 R12: 00007ffece171e70 [ 81.847662][ T8549] R13: 00005577e3281c00 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