syzbot


possible deadlock in __hrtimer_run_queues (2)

Status: fixed on 2024/05/10 00:32
Reported-by: syzbot+79106cee474c774bb6eb@syzkaller.appspotmail.com
Fix commit: a44770fed865 bpf, sockmap: Prevent lock inversion deadlock in map delete elem
First crash: 232d, last: 226d
Fix bisection: fixed by (bisect log) :
commit a44770fed86515eedb5a7c00b787f847ebb134a5
Author: Jakub Sitnicki <jakub@cloudflare.com>
Date: Tue Apr 2 10:46:21 2024 +0000

  bpf, sockmap: Prevent lock inversion deadlock in map delete elem

  
Bug presence (1)
Date Name Commit Repro Result
2024/04/24 upstream (ToT) 9d1ddab261f3 C Didn't crash
Similar bugs (5)
Kernel Title Repro Cause bisect Fix bisect Count Last Reported Patched Status
upstream possible deadlock in __hrtimer_run_queues (2) kernel C error done 16 209d 241d 26/28 fixed on 2024/06/20 20:31
linux-5.15 possible deadlock in __hrtimer_run_queues 3 542d 552d 0/3 auto-obsoleted due to no activity on 2023/09/06 10:20
upstream possible deadlock in __hrtimer_run_queues kernel 24 530d 559d 0/28 auto-obsoleted due to no activity on 2023/08/23 09:03
linux-6.1 possible deadlock in __hrtimer_run_queues 1 548d 548d 0/3 auto-obsoleted due to no activity on 2023/08/31 12:31
linux-5.15 possible deadlock in __hrtimer_run_queues (2) origin:lts-only C done 26 1d13h 238d 0/3 upstream: reported C repro on 2024/03/28 04:51

Sample crash report:
------------[ cut here ]------------
======================================================
WARNING: possible circular locking dependency detected
6.1.84-syzkaller #0 Not tainted
------------------------------------------------------
swapper/1/0 is trying to acquire lock:
ffffffff8d006b38 ((console_sem).lock){-...}-{2:2}, at: down_trylock+0x1c/0xa0 kernel/locking/semaphore.c:139

but task is already holding lock:
ffff8880b992a4d8 (hrtimer_bases.lock){-.-.}-{2:2}, at: __run_hrtimer kernel/time/hrtimer.c:1690 [inline]
ffff8880b992a4d8 (hrtimer_bases.lock){-.-.}-{2:2}, at: __hrtimer_run_queues+0x6d3/0xe50 kernel/time/hrtimer.c:1750

which lock already depends on the new lock.


the existing dependency chain (in reverse order) is:

-> #4 (hrtimer_bases.lock){-.-.}-{2:2}:
       lock_acquire+0x1f8/0x5a0 kernel/locking/lockdep.c:5662
       __raw_spin_lock_irqsave include/linux/spinlock_api_smp.h:110 [inline]
       _raw_spin_lock_irqsave+0xd1/0x120 kernel/locking/spinlock.c:162
       lock_hrtimer_base kernel/time/hrtimer.c:173 [inline]
       hrtimer_start_range_ns+0xd8/0xc50 kernel/time/hrtimer.c:1297
       hrtimer_start_expires include/linux/hrtimer.h:434 [inline]
       do_start_rt_bandwidth kernel/sched/rt.c:120 [inline]
       start_rt_bandwidth kernel/sched/rt.c:131 [inline]
       inc_rt_group kernel/sched/rt.c:1245 [inline]
       inc_rt_tasks kernel/sched/rt.c:1289 [inline]
       __enqueue_rt_entity kernel/sched/rt.c:1465 [inline]
       enqueue_rt_entity kernel/sched/rt.c:1514 [inline]
       enqueue_task_rt+0x6a8/0xf80 kernel/sched/rt.c:1549
       enqueue_task+0x181/0x3a0 kernel/sched/core.c:2060
       activate_task kernel/sched/core.c:2088 [inline]
       ttwu_do_activate+0x1b4/0x370 kernel/sched/core.c:3700
       sched_ttwu_pending+0x34e/0x730 kernel/sched/core.c:3775
       __flush_smp_call_function_queue+0x771/0xd00 kernel/smp.c:691
       __sysvec_call_function_single+0xbb/0x360 arch/x86/kernel/smp.c:267
       sysvec_call_function_single+0x89/0xb0 arch/x86/kernel/smp.c:262
       asm_sysvec_call_function_single+0x16/0x20 arch/x86/include/asm/idtentry.h:661
       native_safe_halt arch/x86/include/asm/irqflags.h:51 [inline]
       arch_safe_halt arch/x86/include/asm/irqflags.h:89 [inline]
       acpi_safe_halt drivers/acpi/processor_idle.c:112 [inline]
       acpi_idle_do_entry+0x10f/0x340 drivers/acpi/processor_idle.c:572
       acpi_idle_enter+0x352/0x4f0 drivers/acpi/processor_idle.c:709
       cpuidle_enter_state+0x516/0xf80 drivers/cpuidle/cpuidle.c:239
       cpuidle_enter+0x59/0x90 drivers/cpuidle/cpuidle.c:356
       call_cpuidle kernel/sched/idle.c:155 [inline]
       cpuidle_idle_call kernel/sched/idle.c:236 [inline]
       do_idle+0x3ce/0x680 kernel/sched/idle.c:303
       cpu_startup_entry+0x3d/0x60 kernel/sched/idle.c:401
       start_secondary+0xe4/0xf0 arch/x86/kernel/smpboot.c:281
       secondary_startup_64_no_verify+0xcf/0xdb

-> #3 (&rt_b->rt_runtime_lock){-...}-{2:2}:
       lock_acquire+0x1f8/0x5a0 kernel/locking/lockdep.c:5662
       __raw_spin_lock include/linux/spinlock_api_smp.h:133 [inline]
       _raw_spin_lock+0x2a/0x40 kernel/locking/spinlock.c:154
       __enable_runtime kernel/sched/rt.c:880 [inline]
       rq_online_rt+0x13c/0x340 kernel/sched/rt.c:2493
       set_rq_online kernel/sched/core.c:9331 [inline]
       sched_cpu_activate+0x45c/0x7c0 kernel/sched/core.c:9439
       cpuhp_invoke_callback+0x49f/0x820 kernel/cpu.c:192
       cpuhp_thread_fun+0x418/0x800 kernel/cpu.c:837
       smpboot_thread_fn+0x52c/0xa30 kernel/smpboot.c:164
       kthread+0x28d/0x320 kernel/kthread.c:376
       ret_from_fork+0x1f/0x30 arch/x86/entry/entry_64.S:307

-> #2 (&rq->__lock){-.-.}-{2:2}:
       lock_acquire+0x1f8/0x5a0 kernel/locking/lockdep.c:5662
       _raw_spin_lock_nested+0x2d/0x40 kernel/locking/spinlock.c:378
       raw_spin_rq_lock_nested+0x26/0x140 kernel/sched/core.c:537
       raw_spin_rq_lock kernel/sched/sched.h:1354 [inline]
       rq_lock kernel/sched/sched.h:1644 [inline]
       task_fork_fair+0x5d/0x350 kernel/sched/fair.c:11869
       sched_cgroup_fork+0x374/0x400 kernel/sched/core.c:4686
       copy_process+0x2442/0x4060 kernel/fork.c:2384
       kernel_clone+0x222/0x920 kernel/fork.c:2682
       user_mode_thread+0x12e/0x190 kernel/fork.c:2758
       rest_init+0x23/0x300 init/main.c:697
       start_kernel+0x0/0x53f init/main.c:892
       start_kernel+0x496/0x53f init/main.c:1139
       secondary_startup_64_no_verify+0xcf/0xdb

-> #1 (&p->pi_lock){-.-.}-{2:2}:
       lock_acquire+0x1f8/0x5a0 kernel/locking/lockdep.c:5662
       __raw_spin_lock_irqsave include/linux/spinlock_api_smp.h:110 [inline]
       _raw_spin_lock_irqsave+0xd1/0x120 kernel/locking/spinlock.c:162
       try_to_wake_up+0xad/0x12e0 kernel/sched/core.c:4112
       up+0x6e/0x90 kernel/locking/semaphore.c:191
       __up_console_sem+0x11a/0x1e0 kernel/printk/printk.c:260
       __console_unlock kernel/printk/printk.c:2697 [inline]
       console_unlock+0x591/0x7c0 kernel/printk/printk.c:2908
       vprintk_emit+0x523/0x740 kernel/printk/printk.c:2303
       dev_vprintk_emit+0x2aa/0x323 drivers/base/core.c:4902
       dev_printk_emit+0xd9/0x118 drivers/base/core.c:4913
       _dev_warn+0x11e/0x165 drivers/base/core.c:4969
       firmware_fallback_sysfs+0x674/0x940 drivers/base/firmware_loader/fallback.c:229
       _request_firmware+0xc13/0x1200 drivers/base/firmware_loader/main.c:856
       request_firmware_work_func+0x126/0x270 drivers/base/firmware_loader/main.c:1105
       process_one_work+0x8a9/0x11d0 kernel/workqueue.c:2292
       worker_thread+0xa47/0x1200 kernel/workqueue.c:2439
       kthread+0x28d/0x320 kernel/kthread.c:376
       ret_from_fork+0x1f/0x30 arch/x86/entry/entry_64.S:307

-> #0 ((console_sem).lock){-...}-{2:2}:
       check_prev_add kernel/locking/lockdep.c:3090 [inline]
       check_prevs_add kernel/locking/lockdep.c:3209 [inline]
       validate_chain+0x1661/0x5950 kernel/locking/lockdep.c:3825
       __lock_acquire+0x125b/0x1f80 kernel/locking/lockdep.c:5049
       lock_acquire+0x1f8/0x5a0 kernel/locking/lockdep.c:5662
       __raw_spin_lock_irqsave include/linux/spinlock_api_smp.h:110 [inline]
       _raw_spin_lock_irqsave+0xd1/0x120 kernel/locking/spinlock.c:162
       down_trylock+0x1c/0xa0 kernel/locking/semaphore.c:139
       __down_trylock_console_sem+0x105/0x250 kernel/printk/printk.c:243
       console_trylock kernel/printk/printk.c:2650 [inline]
       console_trylock_spinning kernel/printk/printk.c:1896 [inline]
       vprintk_emit+0x1ee/0x740 kernel/printk/printk.c:2302
       _printk+0xd1/0x111 kernel/printk/printk.c:2328
       __report_bug lib/bug.c:195 [inline]
       report_bug+0x342/0x500 lib/bug.c:219
       handle_bug+0x3d/0x70 arch/x86/kernel/traps.c:324
       exc_invalid_op+0x16/0x40 arch/x86/kernel/traps.c:345
       asm_exc_invalid_op+0x16/0x20 arch/x86/include/asm/idtentry.h:568
       __local_bh_disable_ip+0x1ec/0x210 kernel/softirq.c:345
       __raw_spin_lock_bh include/linux/spinlock_api_smp.h:125 [inline]
       _raw_spin_lock_bh+0x18/0x40 kernel/locking/spinlock.c:178
       sock_hash_delete_elem+0xac/0x2f0 net/core/sock_map.c:932
       bpf_prog_a8aaa52f2e199321+0x42/0x46
       bpf_dispatcher_nop_func include/linux/bpf.h:989 [inline]
       __bpf_prog_run include/linux/filter.h:603 [inline]
       bpf_prog_run include/linux/filter.h:610 [inline]
       __bpf_trace_run kernel/trace/bpf_trace.c:2273 [inline]
       bpf_trace_run2+0x1fd/0x410 kernel/trace/bpf_trace.c:2312
       trace_hrtimer_start include/trace/events/timer.h:202 [inline]
       debug_activate kernel/time/hrtimer.c:476 [inline]
       enqueue_hrtimer+0x382/0x410 kernel/time/hrtimer.c:1084
       __run_hrtimer kernel/time/hrtimer.c:1703 [inline]
       __hrtimer_run_queues+0x728/0xe50 kernel/time/hrtimer.c:1750
       hrtimer_interrupt+0x392/0x980 kernel/time/hrtimer.c:1812
       local_apic_timer_interrupt arch/x86/kernel/apic/apic.c:1095 [inline]
       __sysvec_apic_timer_interrupt+0x156/0x580 arch/x86/kernel/apic/apic.c:1112
       sysvec_apic_timer_interrupt+0x8c/0xb0 arch/x86/kernel/apic/apic.c:1106
       asm_sysvec_apic_timer_interrupt+0x16/0x20 arch/x86/include/asm/idtentry.h:653
       native_safe_halt arch/x86/include/asm/irqflags.h:51 [inline]
       arch_safe_halt arch/x86/include/asm/irqflags.h:89 [inline]
       acpi_safe_halt drivers/acpi/processor_idle.c:112 [inline]
       acpi_idle_do_entry+0x10f/0x340 drivers/acpi/processor_idle.c:572
       acpi_idle_enter+0x352/0x4f0 drivers/acpi/processor_idle.c:709
       cpuidle_enter_state+0x516/0xf80 drivers/cpuidle/cpuidle.c:239
       cpuidle_enter+0x59/0x90 drivers/cpuidle/cpuidle.c:356
       call_cpuidle kernel/sched/idle.c:155 [inline]
       cpuidle_idle_call kernel/sched/idle.c:236 [inline]
       do_idle+0x3ce/0x680 kernel/sched/idle.c:303
       cpu_startup_entry+0x3d/0x60 kernel/sched/idle.c:401
       start_secondary+0xe4/0xf0 arch/x86/kernel/smpboot.c:281
       secondary_startup_64_no_verify+0xcf/0xdb

other info that might help us debug this:

Chain exists of:
  (console_sem).lock --> &rt_b->rt_runtime_lock --> hrtimer_bases.lock

 Possible unsafe locking scenario:

       CPU0                    CPU1
       ----                    ----
  lock(hrtimer_bases.lock);
                               lock(&rt_b->rt_runtime_lock);
                               lock(hrtimer_bases.lock);
  lock((console_sem).lock);

 *** DEADLOCK ***

2 locks held by swapper/1/0:
 #0: ffff8880b992a4d8 (hrtimer_bases.lock){-.-.}-{2:2}, at: __run_hrtimer kernel/time/hrtimer.c:1690 [inline]
 #0: ffff8880b992a4d8 (hrtimer_bases.lock){-.-.}-{2:2}, at: __hrtimer_run_queues+0x6d3/0xe50 kernel/time/hrtimer.c:1750
 #1: ffffffff8d12a980 (rcu_read_lock){....}-{1:2}, at: rcu_lock_acquire include/linux/rcupdate.h:350 [inline]
 #1: ffffffff8d12a980 (rcu_read_lock){....}-{1:2}, at: rcu_read_lock include/linux/rcupdate.h:791 [inline]
 #1: ffffffff8d12a980 (rcu_read_lock){....}-{1:2}, at: __bpf_trace_run kernel/trace/bpf_trace.c:2272 [inline]
 #1: ffffffff8d12a980 (rcu_read_lock){....}-{1:2}, at: bpf_trace_run2+0x110/0x410 kernel/trace/bpf_trace.c:2312

stack backtrace:
CPU: 1 PID: 0 Comm: swapper/1 Not tainted 6.1.84-syzkaller #0
Hardware name: Google Google Compute Engine/Google Compute Engine, BIOS Google 03/27/2024
Call Trace:
 <IRQ>
 __dump_stack lib/dump_stack.c:88 [inline]
 dump_stack_lvl+0x1e3/0x2cb lib/dump_stack.c:106
 check_noncircular+0x2fa/0x3b0 kernel/locking/lockdep.c:2170
 check_prev_add kernel/locking/lockdep.c:3090 [inline]
 check_prevs_add kernel/locking/lockdep.c:3209 [inline]
 validate_chain+0x1661/0x5950 kernel/locking/lockdep.c:3825
 __lock_acquire+0x125b/0x1f80 kernel/locking/lockdep.c:5049
 lock_acquire+0x1f8/0x5a0 kernel/locking/lockdep.c:5662
 __raw_spin_lock_irqsave include/linux/spinlock_api_smp.h:110 [inline]
 _raw_spin_lock_irqsave+0xd1/0x120 kernel/locking/spinlock.c:162
 down_trylock+0x1c/0xa0 kernel/locking/semaphore.c:139
 __down_trylock_console_sem+0x105/0x250 kernel/printk/printk.c:243
 console_trylock kernel/printk/printk.c:2650 [inline]
 console_trylock_spinning kernel/printk/printk.c:1896 [inline]
 vprintk_emit+0x1ee/0x740 kernel/printk/printk.c:2302
 _printk+0xd1/0x111 kernel/printk/printk.c:2328
 __report_bug lib/bug.c:195 [inline]
 report_bug+0x342/0x500 lib/bug.c:219
 handle_bug+0x3d/0x70 arch/x86/kernel/traps.c:324
 exc_invalid_op+0x16/0x40 arch/x86/kernel/traps.c:345
 asm_exc_invalid_op+0x16/0x20 arch/x86/include/asm/idtentry.h:568
RIP: 0010:__local_bh_disable_ip+0x1ec/0x210 kernel/softirq.c:321
Code: 00 00 43 c6 44 2c 0b 00 65 48 8b 04 25 28 00 00 00 48 3b 84 24 80 00 00 00 75 2d 48 8d 65 d8 5b 41 5c 41 5d 41 5e 41 5f 5d c3 <0f> 0b e9 a0 fe ff ff e8 f8 0e 36 09 41 f7 c6 00 02 00 00 0f 85 52
RSP: 0018:ffffc900001e0b00 EFLAGS: 00010006
RAX: 0000000080010003 RBX: ffffffff889819dc RCX: ffff88813fef9dc0
RDX: dffffc0000000000 RSI: 0000000000000201 RDI: ffffffff889819dc
RBP: ffffc900001e0bc8 R08: 0000000000000005 R09: ffffffff88985b7e
R10: 000000000000000c R11: ffff88813fef9dc0 R12: dffffc0000000000
R13: 1ffff9200003c164 R14: ffffc900001e0b60 R15: 0000000000000201
 __raw_spin_lock_bh include/linux/spinlock_api_smp.h:125 [inline]
 _raw_spin_lock_bh+0x18/0x40 kernel/locking/spinlock.c:178
 sock_hash_delete_elem+0xac/0x2f0 net/core/sock_map.c:932
 bpf_prog_a8aaa52f2e199321+0x42/0x46
 bpf_dispatcher_nop_func include/linux/bpf.h:989 [inline]
 __bpf_prog_run include/linux/filter.h:603 [inline]
 bpf_prog_run include/linux/filter.h:610 [inline]
 __bpf_trace_run kernel/trace/bpf_trace.c:2273 [inline]
 bpf_trace_run2+0x1fd/0x410 kernel/trace/bpf_trace.c:2312
 trace_hrtimer_start include/trace/events/timer.h:202 [inline]
 debug_activate kernel/time/hrtimer.c:476 [inline]
 enqueue_hrtimer+0x382/0x410 kernel/time/hrtimer.c:1084
 __run_hrtimer kernel/time/hrtimer.c:1703 [inline]
 __hrtimer_run_queues+0x728/0xe50 kernel/time/hrtimer.c:1750
 hrtimer_interrupt+0x392/0x980 kernel/time/hrtimer.c:1812
 local_apic_timer_interrupt arch/x86/kernel/apic/apic.c:1095 [inline]
 __sysvec_apic_timer_interrupt+0x156/0x580 arch/x86/kernel/apic/apic.c:1112
 sysvec_apic_timer_interrupt+0x8c/0xb0 arch/x86/kernel/apic/apic.c:1106
 </IRQ>
 <TASK>
 asm_sysvec_apic_timer_interrupt+0x16/0x20 arch/x86/include/asm/idtentry.h:653
RIP: 0010:native_save_fl arch/x86/include/asm/irqflags.h:22 [inline]
RIP: 0010:arch_local_save_flags arch/x86/include/asm/irqflags.h:70 [inline]
RIP: 0010:arch_irqs_disabled arch/x86/include/asm/irqflags.h:130 [inline]
RIP: 0010:acpi_safe_halt drivers/acpi/processor_idle.c:113 [inline]
RIP: 0010:acpi_idle_do_entry+0x10f/0x340 drivers/acpi/processor_idle.c:572
Code: 39 f6 f6 48 83 e3 08 0f 85 0b 01 00 00 4c 8d 74 24 20 e8 24 f6 fc f6 0f 1f 44 00 00 e8 8a 35 f6 f6 0f 00 2d 93 f5 b2 00 fb f4 <4c> 89 f3 48 c1 eb 03 42 80 3c 3b 00 74 08 4c 89 f7 e8 7b ac 4d f7
RSP: 0018:ffffc90000177b80 EFLAGS: 000002d3
RAX: ffffffff8a945166 RBX: 0000000000000000 RCX: ffff88813fef9dc0
RDX: 0000000000000000 RSI: ffffffff8aebeec0 RDI: ffffffff8b3d2d20
RBP: ffffc90000177c10 R08: ffffffff8a945148 R09: ffffed1027fdf3b9
R10: 0000000000000000 R11: dffffc0000000001 R12: 1ffff9200002ef70
R13: ffff888141ba8004 R14: ffffc90000177ba0 R15: dffffc0000000000
 acpi_idle_enter+0x352/0x4f0 drivers/acpi/processor_idle.c:709
 cpuidle_enter_state+0x516/0xf80 drivers/cpuidle/cpuidle.c:239
 cpuidle_enter+0x59/0x90 drivers/cpuidle/cpuidle.c:356
 call_cpuidle kernel/sched/idle.c:155 [inline]
 cpuidle_idle_call kernel/sched/idle.c:236 [inline]
 do_idle+0x3ce/0x680 kernel/sched/idle.c:303
 cpu_startup_entry+0x3d/0x60 kernel/sched/idle.c:401
 start_secondary+0xe4/0xf0 arch/x86/kernel/smpboot.c:281
 secondary_startup_64_no_verify+0xcf/0xdb
 </TASK>
WARNING: CPU: 1 PID: 0 at kernel/softirq.c:321 __local_bh_disable_ip+0x1ec/0x210 kernel/softirq.c:345
Modules linked in:
CPU: 1 PID: 0 Comm: swapper/1 Not tainted 6.1.84-syzkaller #0
Hardware name: Google Google Compute Engine/Google Compute Engine, BIOS Google 03/27/2024
RIP: 0010:__local_bh_disable_ip+0x1ec/0x210 kernel/softirq.c:321
Code: 00 00 43 c6 44 2c 0b 00 65 48 8b 04 25 28 00 00 00 48 3b 84 24 80 00 00 00 75 2d 48 8d 65 d8 5b 41 5c 41 5d 41 5e 41 5f 5d c3 <0f> 0b e9 a0 fe ff ff e8 f8 0e 36 09 41 f7 c6 00 02 00 00 0f 85 52
RSP: 0018:ffffc900001e0b00 EFLAGS: 00010006

RAX: 0000000080010003 RBX: ffffffff889819dc RCX: ffff88813fef9dc0
RDX: dffffc0000000000 RSI: 0000000000000201 RDI: ffffffff889819dc
RBP: ffffc900001e0bc8 R08: 0000000000000005 R09: ffffffff88985b7e
R10: 000000000000000c R11: ffff88813fef9dc0 R12: dffffc0000000000
R13: 1ffff9200003c164 R14: ffffc900001e0b60 R15: 0000000000000201
FS:  0000000000000000(0000) GS:ffff8880b9900000(0000) knlGS:0000000000000000
CS:  0010 DS: 0000 ES: 0000 CR0: 0000000080050033
CR2: 0000555556960ca8 CR3: 000000001afb8000 CR4: 00000000003506e0
DR0: 0000000000000000 DR1: 0000000000000000 DR2: 0000000000000000
DR3: 0000000000000000 DR6: 00000000fffe0ff0 DR7: 0000000000000400
Call Trace:
 <IRQ>
 __raw_spin_lock_bh include/linux/spinlock_api_smp.h:125 [inline]
 _raw_spin_lock_bh+0x18/0x40 kernel/locking/spinlock.c:178
 sock_hash_delete_elem+0xac/0x2f0 net/core/sock_map.c:932
 bpf_prog_a8aaa52f2e199321+0x42/0x46
 bpf_dispatcher_nop_func include/linux/bpf.h:989 [inline]
 __bpf_prog_run include/linux/filter.h:603 [inline]
 bpf_prog_run include/linux/filter.h:610 [inline]
 __bpf_trace_run kernel/trace/bpf_trace.c:2273 [inline]
 bpf_trace_run2+0x1fd/0x410 kernel/trace/bpf_trace.c:2312
 trace_hrtimer_start include/trace/events/timer.h:202 [inline]
 debug_activate kernel/time/hrtimer.c:476 [inline]
 enqueue_hrtimer+0x382/0x410 kernel/time/hrtimer.c:1084
 __run_hrtimer kernel/time/hrtimer.c:1703 [inline]
 __hrtimer_run_queues+0x728/0xe50 kernel/time/hrtimer.c:1750
 hrtimer_interrupt+0x392/0x980 kernel/time/hrtimer.c:1812
 local_apic_timer_interrupt arch/x86/kernel/apic/apic.c:1095 [inline]
 __sysvec_apic_timer_interrupt+0x156/0x580 arch/x86/kernel/apic/apic.c:1112
 sysvec_apic_timer_interrupt+0x8c/0xb0 arch/x86/kernel/apic/apic.c:1106
 </IRQ>
 <TASK>
 asm_sysvec_apic_timer_interrupt+0x16/0x20 arch/x86/include/asm/idtentry.h:653
RIP: 0010:native_save_fl arch/x86/include/asm/irqflags.h:22 [inline]
RIP: 0010:arch_local_save_flags arch/x86/include/asm/irqflags.h:70 [inline]
RIP: 0010:arch_irqs_disabled arch/x86/include/asm/irqflags.h:130 [inline]
RIP: 0010:acpi_safe_halt drivers/acpi/processor_idle.c:113 [inline]
RIP: 0010:acpi_idle_do_entry+0x10f/0x340 drivers/acpi/processor_idle.c:572
Code: 39 f6 f6 48 83 e3 08 0f 85 0b 01 00 00 4c 8d 74 24 20 e8 24 f6 fc f6 0f 1f 44 00 00 e8 8a 35 f6 f6 0f 00 2d 93 f5 b2 00 fb f4 <4c> 89 f3 48 c1 eb 03 42 80 3c 3b 00 74 08 4c 89 f7 e8 7b ac 4d f7
RSP: 0018:ffffc90000177b80 EFLAGS: 000002d3

RAX: ffffffff8a945166 RBX: 0000000000000000 RCX: ffff88813fef9dc0
RDX: 0000000000000000 RSI: ffffffff8aebeec0 RDI: ffffffff8b3d2d20
RBP: ffffc90000177c10 R08: ffffffff8a945148 R09: ffffed1027fdf3b9
R10: 0000000000000000 R11: dffffc0000000001 R12: 1ffff9200002ef70
R13: ffff888141ba8004 R14: ffffc90000177ba0 R15: dffffc0000000000
 acpi_idle_enter+0x352/0x4f0 drivers/acpi/processor_idle.c:709
 cpuidle_enter_state+0x516/0xf80 drivers/cpuidle/cpuidle.c:239
 cpuidle_enter+0x59/0x90 drivers/cpuidle/cpuidle.c:356
 call_cpuidle kernel/sched/idle.c:155 [inline]
 cpuidle_idle_call kernel/sched/idle.c:236 [inline]
 do_idle+0x3ce/0x680 kernel/sched/idle.c:303
 cpu_startup_entry+0x3d/0x60 kernel/sched/idle.c:401
 start_secondary+0xe4/0xf0 arch/x86/kernel/smpboot.c:281
 secondary_startup_64_no_verify+0xcf/0xdb
 </TASK>
----------------
Code disassembly (best guess):
   0:	39 f6                	cmp    %esi,%esi
   2:	f6 48 83 e3          	testb  $0xe3,-0x7d(%rax)
   6:	08 0f                	or     %cl,(%rdi)
   8:	85 0b                	test   %ecx,(%rbx)
   a:	01 00                	add    %eax,(%rax)
   c:	00 4c 8d 74          	add    %cl,0x74(%rbp,%rcx,4)
  10:	24 20                	and    $0x20,%al
  12:	e8 24 f6 fc f6       	call   0xf6fcf63b
  17:	0f 1f 44 00 00       	nopl   0x0(%rax,%rax,1)
  1c:	e8 8a 35 f6 f6       	call   0xf6f635ab
  21:	0f 00 2d 93 f5 b2 00 	verw   0xb2f593(%rip)        # 0xb2f5bb
  28:	fb                   	sti
  29:	f4                   	hlt
* 2a:	4c 89 f3             	mov    %r14,%rbx <-- trapping instruction
  2d:	48 c1 eb 03          	shr    $0x3,%rbx
  31:	42 80 3c 3b 00       	cmpb   $0x0,(%rbx,%r15,1)
  36:	74 08                	je     0x40
  38:	4c 89 f7             	mov    %r14,%rdi
  3b:	e8 7b ac 4d f7       	call   0xf74dacbb

Crashes (2):
Time Kernel Commit Syzkaller Config Log Report Syz repro C repro VM info Assets (help?) Manager Title
2024/04/09 11:49 linux-6.1.y 347385861c50 f3234354 .config console log report syz C [disk image] [vmlinux] [kernel image] ci2-linux-6-1-kasan-perf possible deadlock in __hrtimer_run_queues
2024/04/02 19:13 linux-6.1.y e5cd595e23c1 eb2966c4 .config console log report info [disk image] [vmlinux] [kernel image] ci2-linux-6-1-kasan possible deadlock in __hrtimer_run_queues
* Struck through repros no longer work on HEAD.