================================ WARNING: inconsistent lock state 6.13.0-rc2-next-20241213 #1 Not tainted -------------------------------- inconsistent {HARDIRQ-ON-W} -> {IN-HARDIRQ-W} usage. syz-executor.2/14745 [HC1[1]:SC0[0]:HE0:SE1] takes: ffff88800f6c6f18 (&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: 106 hardirqs last enabled at (105): [] irqentry_exit+0x3b/0x90 hardirqs last disabled at (106): [] sysvec_apic_timer_interrupt+0xf/0x80 softirqs last enabled at (0): [] copy_process+0x1ec9/0x70e0 softirqs last disabled at (0): [<0000000000000000>] 0x0 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.2/14745: #0: ffff88803e4a8048 (&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: 0 UID: 0 PID: 14745 Comm: syz-executor.2 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:ffff888016e5fd50 EFLAGS: 00000286 RAX: 0000000000000067 RBX: 0000000000000212 RCX: 1ffffffff0c7f089 RDX: 0000000000000000 RSI: 0000000000000000 RDI: ffffffff84a79ddc RBP: ffff88803e4a8030 R08: 0000000000000001 R09: 0000000000000001 R10: ffffffff863fbe97 R11: 1ffffffff0f4f7ac R12: ffff88803e4a8000 R13: 0000000000000000 R14: ffffffff81623350 R15: ffff888016e5fe58 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:0x7f4fdb57db19 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:00007f4fd8af3188 EFLAGS: 00000246 ORIG_RAX: 00000000000000df RAX: ffffffffffffffda RBX: 00007f4fdb690f60 RCX: 00007f4fdb57db19 RDX: 0000000020000580 RSI: 0000000000000001 RDI: 0000000000000000 RBP: 00007f4fdb5d7f6d R08: 0000000000000000 R09: 0000000000000000 R10: 0000000000000000 R11: 0000000000000246 R12: 0000000000000000 R13: 00007ffdec274bcf R14: 00007f4fd8af3300 R15: 0000000000022000 hpet: Lost 4 RTC interrupts EXT4-fs (sda): re-mounted 7b5d9a40-9011-49ec-8035-27953f97a4d8 r/w. Quota mode: none. serio: Serial port ptm0 serio: Serial port ptm0 Process accounting resumed serio: Serial port ptm0 serio: Serial port ptm1 Process accounting resumed serio: Serial port ptm0 Process accounting resumed serio: Serial port ptm0 loop5: detected capacity change from 0 to 40 serio: Serial port ptm0 Process accounting resumed serio: Serial port ptm1 serio: Serial port ptm2 serio: Serial port ptm3 Process accounting resumed loop5: detected capacity change from 0 to 40 Process accounting resumed loop3: detected capacity change from 0 to 40 Process accounting resumed loop5: detected capacity change from 0 to 40 Process accounting resumed loop3: detected capacity change from 0 to 40 Process accounting resumed serio: Serial port ptm0 serio: Serial port ptm1 serio: Serial port ptm0 serio: Serial port ptm1 loop3: detected capacity change from 0 to 40 Process accounting resumed program syz-executor.0 is using a deprecated SCSI ioctl, please convert it to SG_IO program syz-executor.0 is using a deprecated SCSI ioctl, please convert it to SG_IO program syz-executor.0 is using a deprecated SCSI ioctl, please convert it to SG_IO program syz-executor.0 is using a deprecated SCSI ioctl, please convert it to SG_IO program syz-executor.0 is using a deprecated SCSI ioctl, please convert it to SG_IO audit: type=1401 audit(1734108217.702:13): op=fscreate invalid_context="./fi" audit: type=1401 audit(1734108217.930:14): op=fscreate invalid_context="./fi" audit: type=1401 audit(1734108218.105:15): op=fscreate invalid_context="./fi" audit: type=1401 audit(1734108218.133:16): op=fscreate invalid_context="./fi" audit: type=1401 audit(1734108218.251:17): op=fscreate invalid_context="./fi" audit: type=1401 audit(1734108218.293:18): op=fscreate invalid_context="./fi" ---------------- 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