loop7: detected capacity change from 0 to 15 ext4: Unknown parameter '呃冰AihIt"鹙񲯣v;崇! 礥殐轄魵7(2~鎉3鬩萎录恰姨 I榃"揀f巩鴂耼摿T帑諌(Q蠧!傶;k!│e' ======================================================== WARNING: possible irq lock inversion dependency detected 6.4.0-rc7-next-20230621 #1 Not tainted -------------------------------------------------------- systemd-udevd/103 just changed the state of lock: ffffffff85814e18 (blkg_stat_lock){+.-.}-{2:2}, at: __blkcg_rstat_flush.isra.0+0x11f/0x4e0 but this lock was taken by another, HARDIRQ-safe lock in the past: (per_cpu_ptr(&cgroup_rstat_cpu_lock, cpu)){-.-.}-{2:2} and interrupts could create inverse lock ordering between them. other info that might help us debug this: Possible interrupt unsafe locking scenario: CPU0 CPU1 ---- ---- lock(blkg_stat_lock); local_irq_disable(); lock(per_cpu_ptr(&cgroup_rstat_cpu_lock, cpu)); lock(blkg_stat_lock); lock(per_cpu_ptr(&cgroup_rstat_cpu_lock, cpu)); *** DEADLOCK *** 2 locks held by systemd-udevd/103: #0: ffffffff8560b520 (rcu_callback){....}-{0:0}, at: rcu_core+0x83e/0x2860 #1: ffffffff8560b640 (rcu_read_lock){....}-{1:2}, at: __blkcg_rstat_flush.isra.0+0x93/0x4e0 the shortest dependencies between 2nd lock and 1st lock: -> (per_cpu_ptr(&cgroup_rstat_cpu_lock, cpu)){-.-.}-{2:2} { IN-HARDIRQ-W at: lock_acquire+0x19a/0x4c0 _raw_spin_lock_irqsave+0x3a/0x60 cgroup_rstat_updated+0xcb/0x2e0 __cgroup_account_cputime_field+0xa0/0x120 account_system_index_time+0x199/0x2c0 update_process_times+0x26/0x150 tick_sched_handle+0x8e/0x170 tick_sched_timer+0xe6/0x110 __hrtimer_run_queues+0x17f/0xb60 hrtimer_interrupt+0x2ef/0x750 __sysvec_apic_timer_interrupt+0xff/0x380 sysvec_apic_timer_interrupt+0x69/0x90 asm_sysvec_apic_timer_interrupt+0x1a/0x20 _raw_spin_unlock_irq+0x2b/0x40 flush_workqueue_prep_pwqs+0x129/0x4d0 __flush_workqueue+0x52a/0x1110 cgroup_procs_write_finish+0xeb/0x170 __cgroup_procs_write+0x371/0x6b0 cgroup_procs_write+0x26/0x60 cgroup_file_write+0x1e5/0x7c0 kernfs_fop_write_iter+0x3f7/0x610 vfs_write+0x97d/0xda0 ksys_write+0x122/0x250 do_syscall_64+0x3f/0x90 entry_SYSCALL_64_after_hwframe+0x6e/0xd8 IN-SOFTIRQ-W at: lock_acquire+0x19a/0x4c0 _raw_spin_lock_irqsave+0x3a/0x60 cgroup_rstat_updated+0xcb/0x2e0 __cgroup_account_cputime+0x75/0xc0 update_curr+0x350/0x6d0 dequeue_task_fair+0x20e/0x14a0 load_balance+0xcb4/0x2790 rebalance_domains+0x66c/0xc00 __do_softirq+0x1b7/0x7d4 irq_exit_rcu+0x93/0xc0 sysvec_apic_timer_interrupt+0x6e/0x90 asm_sysvec_apic_timer_interrupt+0x1a/0x20 strncpy+0x5a/0xb0 __create_object+0x7df/0xc90 kmem_cache_alloc_bulk+0x3b4/0x6a0 mas_alloc_nodes+0x337/0x890 mas_node_count_gfp+0x106/0x140 mas_wr_spanning_store.isra.0+0x264/0xfc0 mas_wr_store_entry.isra.0+0xa32/0x1050 mas_store_gfp+0xce/0x1f0 do_vmi_align_munmap+0x964/0x12e0 do_vmi_munmap+0x1f1/0x2b0 mmap_region+0x1fe/0x26c0 do_mmap+0x854/0xf00 vm_mmap_pgoff+0x1a6/0x3a0 ksys_mmap_pgoff+0x3af/0x500 do_syscall_64+0x3f/0x90 entry_SYSCALL_64_after_hwframe+0x6e/0xd8 INITIAL USE at: lock_acquire+0x19a/0x4c0 _raw_spin_lock_irqsave+0x3a/0x60 cgroup_rstat_flush_locked+0x131/0xd80 cgroup_rstat_flush+0x37/0x50 do_flush_stats+0x97/0xf0 flush_memcg_stats_dwork+0x9/0x50 process_one_work+0xabf/0x1770 worker_thread+0x64f/0x12a0 kthread+0x33f/0x440 ret_from_fork+0x2c/0x50 } ... key at: [] __key.0+0x0/0x40 ... acquired at: _raw_spin_lock+0x2b/0x40 __blkcg_rstat_flush.isra.0+0x11f/0x4e0 blkcg_rstat_flush+0x87/0xb0 cgroup_rstat_flush_locked+0x706/0xd80 cgroup_rstat_flush+0x37/0x50 do_flush_stats+0x97/0xf0 flush_memcg_stats_dwork+0x9/0x50 process_one_work+0xabf/0x1770 worker_thread+0x64f/0x12a0 kthread+0x33f/0x440 ret_from_fork+0x2c/0x50 -> (blkg_stat_lock){+.-.}-{2:2} { HARDIRQ-ON-W at: lock_acquire+0x19a/0x4c0 _raw_spin_lock+0x2b/0x40 __blkcg_rstat_flush.isra.0+0x11f/0x4e0 __blkg_release+0xfa/0x3b0 rcu_core+0x8c8/0x2860 __do_softirq+0x1b7/0x7d4 irq_exit_rcu+0x93/0xc0 sysvec_apic_timer_interrupt+0x38/0x90 asm_sysvec_apic_timer_interrupt+0x1a/0x20 IN-SOFTIRQ-W at: lock_acquire+0x19a/0x4c0 _raw_spin_lock+0x2b/0x40 __blkcg_rstat_flush.isra.0+0x11f/0x4e0 __blkg_release+0xfa/0x3b0 rcu_core+0x8c8/0x2860 __do_softirq+0x1b7/0x7d4 irq_exit_rcu+0x93/0xc0 sysvec_apic_timer_interrupt+0x38/0x90 asm_sysvec_apic_timer_interrupt+0x1a/0x20 INITIAL USE at: lock_acquire+0x19a/0x4c0 _raw_spin_lock+0x2b/0x40 __blkcg_rstat_flush.isra.0+0x11f/0x4e0 blkcg_rstat_flush+0x87/0xb0 cgroup_rstat_flush_locked+0x706/0xd80 cgroup_rstat_flush+0x37/0x50 do_flush_stats+0x97/0xf0 flush_memcg_stats_dwork+0x9/0x50 process_one_work+0xabf/0x1770 worker_thread+0x64f/0x12a0 kthread+0x33f/0x440 ret_from_fork+0x2c/0x50 } ... key at: [] blkg_stat_lock+0x18/0x60 ... acquired at: __lock_acquire+0x8b8/0x6340 lock_acquire+0x19a/0x4c0 _raw_spin_lock+0x2b/0x40 __blkcg_rstat_flush.isra.0+0x11f/0x4e0 __blkg_release+0xfa/0x3b0 rcu_core+0x8c8/0x2860 __do_softirq+0x1b7/0x7d4 irq_exit_rcu+0x93/0xc0 sysvec_apic_timer_interrupt+0x38/0x90 asm_sysvec_apic_timer_interrupt+0x1a/0x20 stack backtrace: CPU: 1 PID: 103 Comm: systemd-udevd Not tainted 6.4.0-rc7-next-20230621 #1 Hardware name: QEMU Standard PC (i440FX + PIIX, 1996), BIOS 1.12.0-1 04/01/2014 Call Trace: dump_stack_lvl+0x91/0xf0 print_irq_inversion_bug.part.0+0x3d5/0x570 mark_lock.part.0+0x900/0x2f50 __lock_acquire+0x8b8/0x6340 lock_acquire+0x19a/0x4c0 _raw_spin_lock+0x2b/0x40 __blkcg_rstat_flush.isra.0+0x11f/0x4e0 __blkg_release+0xfa/0x3b0 rcu_core+0x8c8/0x2860 __do_softirq+0x1b7/0x7d4 irq_exit_rcu+0x93/0xc0 sysvec_apic_timer_interrupt+0x38/0x90 asm_sysvec_apic_timer_interrupt+0x1a/0x20 RIP: 0033:0x7f2f7265dd62 Code: c0 f6 c2 40 75 52 89 d0 45 31 d2 25 00 00 41 00 3d 00 00 41 00 74 41 64 8b 04 25 18 00 00 00 85 c0 75 65 b8 01 01 00 00 0f 05 <48> 3d 00 f0 ff ff 0f 87 a2 00 00 00 48 8b 4c 24 38 64 48 2b 0c 25 RSP: 002b:00007ffe64bfbd40 EFLAGS: 00000246 RAX: 0000000000000012 RBX: 0000000000000001 RCX: 00007f2f7265dd62 RDX: 00000000002a0000 RSI: 0000555764cea561 RDI: 0000000000000011 RBP: 0000555764cea560 R08: 00005557625178f0 R09: 00007f2f7272dbe0 R10: 0000000000000000 R11: 0000000000000246 R12: 0000555764d18cc0 R13: 0000000000000011 R14: 0000000000000006 R15: 0000555764cea561 EXT4-fs (loop6): unmounting filesystem 00000000-0000-0000-0000-000000000000. FAULT_INJECTION: forcing a failure. name fail_usercopy, interval 1, probability 0, space 0, times 1 CPU: 1 PID: 4877 Comm: syz-executor.2 Not tainted 6.4.0-rc7-next-20230621 #1 Hardware name: QEMU Standard PC (i440FX + PIIX, 1996), BIOS 1.12.0-1 04/01/2014 Call Trace: dump_stack_lvl+0xc1/0xf0 should_fail_ex+0x4b4/0x5b0 _copy_from_user+0x30/0xf0 copy_from_sockptr_offset.constprop.0+0x156/0x190 packet_setsockopt+0x187a/0x3990 __sys_setsockopt+0x184/0x320 __x64_sys_setsockopt+0xbe/0x160 do_syscall_64+0x3f/0x90 entry_SYSCALL_64_after_hwframe+0x6e/0xd8 RIP: 0033:0x7f28aed17b19 Code: ff ff c3 66 2e 0f 1f 84 00 00 00 00 00 0f 1f 40 00 48 89 f8 48 89 f7 48 89 d6 48 89 ca 4d 89 c2 4d 89 c8 4c 8b 4c 24 08 0f 05 <48> 3d 01 f0 ff ff 73 01 c3 48 c7 c1 bc ff ff ff f7 d8 64 89 01 48 RSP: 002b:00007f28ac28d188 EFLAGS: 00000246 ORIG_RAX: 0000000000000036 RAX: ffffffffffffffda RBX: 00007f28aee2af60 RCX: 00007f28aed17b19 RDX: 0000000000000005 RSI: 0000000000000107 RDI: 0000000000000004 RBP: 00007f28ac28d1d0 R08: 0000000000000010 R09: 0000000000000000 R10: 00000000200002c0 R11: 0000000000000246 R12: 0000000000000001 R13: 00007fff13028b4f R14: 00007f28ac28d300 R15: 0000000000022000 loop7: detected capacity change from 0 to 15 ext4: Unknown parameter '呃冰AihIt"鹙񲯣v;崇! 礥殐轄魵7(2~鎉3鬩萎录恰姨 I榃"揀f巩鴂耼摿T帑諌(Q蠧!傶;k!│e' FAULT_INJECTION: forcing a failure. name fail_usercopy, interval 1, probability 0, space 0, times 0 CPU: 1 PID: 4900 Comm: syz-executor.2 Not tainted 6.4.0-rc7-next-20230621 #1 Hardware name: QEMU Standard PC (i440FX + PIIX, 1996), BIOS 1.12.0-1 04/01/2014 Call Trace: dump_stack_lvl+0xc1/0xf0 should_fail_ex+0x4b4/0x5b0 _copy_to_user+0x30/0xc0 simple_read_from_buffer+0xd0/0x170 proc_fail_nth_read+0x1a2/0x240 vfs_read+0x1de/0x8f0 ksys_read+0x122/0x250 do_syscall_64+0x3f/0x90 entry_SYSCALL_64_after_hwframe+0x6e/0xd8 RIP: 0033:0x7f28aecca69c Code: ec 28 48 89 54 24 18 48 89 74 24 10 89 7c 24 08 e8 f9 fc ff ff 48 8b 54 24 18 48 8b 74 24 10 41 89 c0 8b 7c 24 08 31 c0 0f 05 <48> 3d 00 f0 ff ff 77 34 44 89 c7 48 89 44 24 08 e8 2f fd ff ff 48 RSP: 002b:00007f28ac28d170 EFLAGS: 00000246 ORIG_RAX: 0000000000000000 RAX: ffffffffffffffda RBX: 0000000000000000 RCX: 00007f28aecca69c RDX: 000000000000000f RSI: 00007f28ac28d1e0 RDI: 0000000000000005 RBP: 00007f28ac28d1d0 R08: 0000000000000000 R09: 0000000000000000 R10: 00000000200002c0 R11: 0000000000000246 R12: 0000000000000001 R13: 00007fff13028b4f R14: 00007f28ac28d300 R15: 0000000000022000 loop7: detected capacity change from 0 to 15 ext4: Unknown parameter '呃冰AihIt"鹙񲯣v;崇! 礥殐轄魵7(2~鎉3鬩萎录恰姨 I榃"揀f巩鴂耼摿T帑諌(Q蠧!傶;k!│e' loop6: detected capacity change from 0 to 15 ext4: Unknown parameter '呃冰AihIt"鹙񲯣v;崇! 礥殐轄魵7(2~鎉3鬩萎录恰姨 I榃"揀f巩鴂耼摿T帑諌(Q蠧!傶;k!│e' loop7: detected capacity change from 0 to 15 ext4: Unknown parameter '呃冰AihIt"鹙񲯣v;崇! 礥殐轄魵7(2~鎉3鬩萎录恰姨 I榃"揀f巩鴂耼摿T帑諌(Q蠧!傶;k!│e' loop6: detected capacity change from 0 to 15 ext4: Unknown parameter '呃冰AihIt"鹙񲯣v;崇! 礥殐轄魵7(2~鎉3鬩萎录恰姨 I榃"揀f巩鴂耼摿T帑諌(Q蠧!傶;k!│e'