loop6: detected capacity change from 0 to 16382 ================================ WARNING: inconsistent lock state 6.13.0-rc2-next-20241213 #1 Not tainted -------------------------------- inconsistent {HARDIRQ-ON-W} -> {IN-HARDIRQ-W} usage. syz-executor.0/9511 [HC1[1]:SC0[0]:HE0:SE1] takes: ffff8880070f9298 (&sighand->siglock){?.+.}-{3:3}, at: __lock_task_sighand+0xd2/0x340 {HARDIRQ-ON-W} state was registered at: lockdep_hardirqs_on_prepare+0x12b/0x3f0 trace_hardirqs_on+0x36/0x40 _raw_spin_unlock_irq+0x23/0x40 mtree_erase+0x15c/0x1f0 free_pid+0x32/0x270 __change_pid+0x38e/0x580 release_task+0xf72/0x1600 wait_consider_task+0x2ef0/0x3c50 __do_wait+0x7af/0x8f0 do_wait+0x19a/0x530 kernel_wait+0xa0/0x160 call_usermodehelper_exec_work+0xf9/0x180 process_one_work+0x8ee/0x1a10 worker_thread+0x674/0xe70 kthread+0x3ab/0x720 ret_from_fork+0x48/0x80 ret_from_fork_asm+0x1a/0x30 irq event stamp: 226 hardirqs last enabled at (225): [] irqentry_exit+0x3b/0x90 hardirqs last disabled at (226): [] sysvec_apic_timer_interrupt+0xf/0x80 softirqs last enabled at (124): [] handle_softirqs+0x50c/0x770 softirqs last disabled at (15): [] __irq_exit_rcu+0xc4/0x100 other info that might help us debug this: Possible unsafe locking scenario: CPU0 ---- lock(&sighand->siglock); lock(&sighand->siglock); *** DEADLOCK *** 3 locks held by syz-executor.0/9511: #0: ffff888019c20048 (&new_timer->it_lock){-...}-{3:3}, at: posix_timer_fn+0x27/0x60 #1: ffffffff85c16400 (rcu_read_lock){....}-{1:3}, at: posixtimer_send_sigqueue+0xa6/0x1130 #2: ffffffff85c16400 (rcu_read_lock){....}-{1:3}, at: __lock_task_sighand+0x34/0x340 stack backtrace: CPU: 1 UID: 0 PID: 9511 Comm: syz-executor.0 Not tainted 6.13.0-rc2-next-20241213 #1 Hardware name: QEMU Standard PC (i440FX + PIIX, 1996), BIOS 1.12.0-1 04/01/2014 Call Trace: dump_stack_lvl+0xca/0x120 print_usage_bug.part.0+0x371/0x4d0 mark_lock+0xb92/0xed0 __lock_acquire+0x1595/0x4360 lock_acquire.part.0+0xeb/0x320 _raw_spin_lock_irqsave+0x3a/0x60 __lock_task_sighand+0xd2/0x340 posixtimer_send_sigqueue+0x205/0x1130 posix_timer_fn+0x32/0x60 __hrtimer_run_queues+0x1ab/0xa80 hrtimer_interrupt+0x369/0x830 __sysvec_apic_timer_interrupt+0xc2/0x330 sysvec_apic_timer_interrupt+0x6b/0x80 asm_sysvec_apic_timer_interrupt+0x1a/0x20 RIP: 0010:_raw_spin_unlock_irqrestore+0x34/0x50 Code: c7 18 53 48 89 f3 48 8b 74 24 10 e8 f6 96 a8 fc 48 89 ef e8 5e 05 a9 fc 80 e7 02 74 06 e8 14 5f d2 fc fb 65 ff 0d 24 09 5c 7b <74> 07 5b 5d e9 b3 1e 00 00 0f 1f 44 00 00 5b 5d e9 a7 1e 00 00 0f RSP: 0018:ffff88803e127d50 EFLAGS: 00000286 RAX: 00000000000000df RBX: 0000000000000212 RCX: 1ffffffff0c7f089 RDX: 0000000000000000 RSI: 0000000000000000 RDI: ffffffff84a79ddc RBP: ffff888019c20030 R08: 0000000000000001 R09: 0000000000000001 R10: ffffffff863fbe97 R11: 1ffffffff0f4f777 R12: ffff888019c20000 R13: 0000000000000000 R14: ffffffff81623350 R15: ffff88803e127e58 do_timer_settime.part.0+0x1f6/0x2a0 __x64_sys_timer_settime+0x220/0x310 do_syscall_64+0xbf/0x1d0 entry_SYSCALL_64_after_hwframe+0x77/0x7f RIP: 0033:0x7f3ceb30cb19 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:00007f3ce8882188 EFLAGS: 00000246 ORIG_RAX: 00000000000000df RAX: ffffffffffffffda RBX: 00007f3ceb41ff60 RCX: 00007f3ceb30cb19 RDX: 0000000020000040 RSI: 0000000000000001 RDI: 0000000000000000 RBP: 00007f3ceb366f6d R08: 0000000000000000 R09: 0000000000000000 R10: 0000000000000000 R11: 0000000000000246 R12: 0000000000000000 R13: 00007ffc940158df R14: 00007f3ce8882300 R15: 0000000000022000 FAT-fs (loop6): invalid media value (0x1c) FAT-fs (loop6): Can't find a valid FAT filesystem loop4: detected capacity change from 0 to 6 loop4: detected capacity change from 0 to 6 ---------------- Code disassembly (best guess), 1 bytes skipped: 0: 18 53 48 sbb %dl,0x48(%rbx) 3: 89 f3 mov %esi,%ebx 5: 48 8b 74 24 10 mov 0x10(%rsp),%rsi a: e8 f6 96 a8 fc callq 0xfca89705 f: 48 89 ef mov %rbp,%rdi 12: e8 5e 05 a9 fc callq 0xfca90575 17: 80 e7 02 and $0x2,%bh 1a: 74 06 je 0x22 1c: e8 14 5f d2 fc callq 0xfcd25f35 21: fb sti 22: 65 ff 0d 24 09 5c 7b decl %gs:0x7b5c0924(%rip) # 0x7b5c094d * 29: 74 07 je 0x32 <-- trapping instruction 2b: 5b pop %rbx 2c: 5d pop %rbp 2d: e9 b3 1e 00 00 jmpq 0x1ee5 32: 0f 1f 44 00 00 nopl 0x0(%rax,%rax,1) 37: 5b pop %rbx 38: 5d pop %rbp 39: e9 a7 1e 00 00 jmpq 0x1ee5 3e: 0f .byte 0xf