================================ WARNING: inconsistent lock state 6.10.0-rc1-syzkaller-g2317dc2c22cc #0 Not tainted -------------------------------- inconsistent {HARDIRQ-ON-W} -> {IN-HARDIRQ-W} usage. syz-executor.3/5614 [HC1[1]:SC0[0]:HE0:SE1] takes: ffff8880b9438828 (lock#10){?.+.}-{2:2}, at: local_lock_acquire include/linux/local_lock_internal.h:29 [inline] ffff8880b9438828 (lock#10){?.+.}-{2:2}, at: __mmap_lock_do_trace_start_locking+0x83/0x620 mm/mmap_lock.c:230 {HARDIRQ-ON-W} state was registered at: lock_acquire+0x1ed/0x550 kernel/locking/lockdep.c:5754 local_lock_acquire include/linux/local_lock_internal.h:29 [inline] __mmap_lock_do_trace_start_locking+0x9c/0x620 mm/mmap_lock.c:230 __mmap_lock_trace_start_locking include/linux/mmap_lock.h:29 [inline] mmap_read_lock include/linux/mmap_lock.h:143 [inline] exit_mm+0x2c1/0x310 kernel/exit.c:541 do_exit+0x9aa/0x27e0 kernel/exit.c:861 do_group_exit+0x207/0x2c0 kernel/exit.c:1023 get_signal+0x16a1/0x1740 kernel/signal.c:2909 arch_do_signal_or_restart+0x96/0x860 arch/x86/kernel/signal.c:310 exit_to_user_mode_loop kernel/entry/common.c:111 [inline] exit_to_user_mode_prepare include/linux/entry-common.h:328 [inline] __syscall_exit_to_user_mode_work kernel/entry/common.c:207 [inline] syscall_exit_to_user_mode+0xc9/0x370 kernel/entry/common.c:218 do_syscall_64+0x100/0x230 arch/x86/entry/common.c:89 entry_SYSCALL_64_after_hwframe+0x77/0x7f irq event stamp: 1150 hardirqs last enabled at (1149): [] irqentry_exit+0x63/0x90 kernel/entry/common.c:357 hardirqs last disabled at (1150): [] sysvec_apic_timer_interrupt+0xe/0xc0 arch/x86/kernel/apic/apic.c:1043 softirqs last enabled at (1012): [] __do_softirq kernel/softirq.c:588 [inline] softirqs last enabled at (1012): [] invoke_softirq kernel/softirq.c:428 [inline] softirqs last enabled at (1012): [] __irq_exit_rcu+0xf4/0x1c0 kernel/softirq.c:637 softirqs last disabled at (981): [] __do_softirq kernel/softirq.c:588 [inline] softirqs last disabled at (981): [] invoke_softirq kernel/softirq.c:428 [inline] softirqs last disabled at (981): [] __irq_exit_rcu+0xf4/0x1c0 kernel/softirq.c:637 other info that might help us debug this: Possible unsafe locking scenario: CPU0 ---- lock(lock#10); lock(lock#10); *** DEADLOCK *** 3 locks held by syz-executor.3/5614: #0: ffff8880b942c898 (hrtimer_bases.lock){-.-.}-{2:2}, at: hrtimer_interrupt+0xfb/0x990 kernel/time/hrtimer.c:1794 #1: ffffffff8e34e088 (tk_core.seq.seqcount){----}-{0:0}, at: ktime_get_update_offsets_now+0x3c/0x250 kernel/time/timekeeping.c:2320 #2: ffffffff8e333f60 (rcu_read_lock){....}-{1:2}, at: trace_call_bpf+0xbc/0x8a0 stack backtrace: CPU: 0 PID: 5614 Comm: syz-executor.3 Not tainted 6.10.0-rc1-syzkaller-g2317dc2c22cc #0 Hardware name: Google Google Compute Engine/Google Compute Engine, BIOS Google 04/02/2024 Call Trace: __dump_stack lib/dump_stack.c:88 [inline] dump_stack_lvl+0x241/0x360 lib/dump_stack.c:114 valid_state+0x13a/0x1c0 kernel/locking/lockdep.c:4013 mark_lock_irq+0xbb/0xc20 kernel/locking/lockdep.c:4216 mark_lock+0x223/0x350 kernel/locking/lockdep.c:4678 mark_usage kernel/locking/lockdep.c:4564 [inline] __lock_acquire+0xb8e/0x1fd0 kernel/locking/lockdep.c:5091 lock_acquire+0x1ed/0x550 kernel/locking/lockdep.c:5754 local_lock_acquire include/linux/local_lock_internal.h:29 [inline] __mmap_lock_do_trace_start_locking+0x9c/0x620 mm/mmap_lock.c:230 __mmap_lock_trace_start_locking include/linux/mmap_lock.h:29 [inline] mmap_read_trylock include/linux/mmap_lock.h:162 [inline] stack_map_get_build_id_offset+0x98a/0x9d0 kernel/bpf/stackmap.c:141 __bpf_get_stack+0x4ad/0x5a0 kernel/bpf/stackmap.c:449 bpf_prog_e6cf5f9c69743609+0x42/0x46 bpf_dispatcher_nop_func include/linux/bpf.h:1243 [inline] __bpf_prog_run include/linux/filter.h:691 [inline] bpf_prog_run include/linux/filter.h:698 [inline] bpf_prog_run_array include/linux/bpf.h:2103 [inline] trace_call_bpf+0x369/0x8a0 kernel/trace/bpf_trace.c:147 perf_trace_run_bpf_submit+0x7c/0x1d0 kernel/events/core.c:10269 perf_trace_lock+0x388/0x490 include/trace/events/lock.h:50 trace_lock_release include/trace/events/lock.h:69 [inline] lock_release+0x986/0x9f0 kernel/locking/lockdep.c:5765 seqcount_lockdep_reader_access+0x10f/0x220 include/linux/seqlock.h:71 ktime_get_update_offsets_now+0x3c/0x250 kernel/time/timekeeping.c:2320 hrtimer_update_base kernel/time/hrtimer.c:634 [inline] hrtimer_interrupt+0x133/0x990 kernel/time/hrtimer.c:1795 local_apic_timer_interrupt arch/x86/kernel/apic/apic.c:1032 [inline] __sysvec_apic_timer_interrupt+0x110/0x3f0 arch/x86/kernel/apic/apic.c:1049 instr_sysvec_apic_timer_interrupt arch/x86/kernel/apic/apic.c:1043 [inline] sysvec_apic_timer_interrupt+0xa1/0xc0 arch/x86/kernel/apic/apic.c:1043 asm_sysvec_apic_timer_interrupt+0x1a/0x20 arch/x86/include/asm/idtentry.h:702 RIP: 0010:finish_task_switch+0x1ea/0x870 kernel/sched/core.c:5282 Code: c9 50 e8 99 c9 0b 00 48 83 c4 08 4c 89 f7 e8 cd 38 00 00 0f 1f 44 00 00 4c 89 f7 e8 d0 86 2a 0a e8 5b f8 36 00 fb 48 8b 5d c0 <48> 8d bb f8 15 00 00 48 89 f8 48 c1 e8 03 49 be 00 00 00 00 00 fc RSP: 0018:ffffc900042673a8 EFLAGS: 00000286 RAX: 4aaa250f69085e00 RBX: ffff888064c0bc00 RCX: ffffffff947a0603 RDX: dffffc0000000000 RSI: ffffffff8bcaba80 RDI: ffffffff8c1ff240 RBP: ffffc900042673f0 R08: ffffffff8fad452f R09: 1ffffffff1f5a8a5 R10: dffffc0000000000 R11: fffffbfff1f5a8a6 R12: 1ffff11017287ea7 R13: dffffc0000000000 R14: ffff8880b943e7c0 R15: ffff8880b943f538 context_switch kernel/sched/core.c:5411 [inline] __schedule+0x17f0/0x4a20 kernel/sched/core.c:6745 preempt_schedule_irq+0xfb/0x1c0 kernel/sched/core.c:7067 irqentry_exit+0x5e/0x90 kernel/entry/common.c:354 asm_sysvec_apic_timer_interrupt+0x1a/0x20 arch/x86/include/asm/idtentry.h:702 RIP: 0010:obj_cgroup_put include/linux/memcontrol.h:821 [inline] RIP: 0010:mod_objcg_state+0x5d9/0x930 mm/memcontrol.c:3537 Code: 3c 23 00 74 08 4c 89 f7 e8 54 fd f7 ff f6 84 24 81 00 00 00 02 0f 85 89 00 00 00 41 f7 c7 00 02 00 00 74 01 fb 48 8b 7c 24 28 <48> 85 ff 74 05 e8 0d ab 00 00 48 c7 44 24 60 0e 36 e0 45 48 8b 44 RSP: 0018:ffffc90004267780 EFLAGS: 00000206 RAX: 4aaa250f69085e00 RBX: 1ffff9200084cf00 RCX: ffffffff947a0603 RDX: dffffc0000000000 RSI: ffffffff8bcaba80 RDI: 0000000000000000 RBP: ffffc90004267888 R08: ffffffff8fad452f R09: 1ffffffff1f5a8a5 R10: dffffc0000000000 R11: fffffbfff1f5a8a6 R12: dffffc0000000000 R13: 0000000000000058 R14: ffffc90004267800 R15: 0000000000000246 __memcg_slab_post_alloc_hook+0x20f/0x7e0 mm/memcontrol.c:3783 memcg_slab_post_alloc_hook mm/slub.c:2103 [inline] slab_post_alloc_hook mm/slub.c:3961 [inline] slab_alloc_node mm/slub.c:4000 [inline] kmem_cache_alloc_node_noprof+0x222/0x320 mm/slub.c:4043 alloc_task_struct_node kernel/fork.c:176 [inline] dup_task_struct+0x57/0x8c0 kernel/fork.c:1107 copy_process+0x5d1/0x3dc0 kernel/fork.c:2220 kernel_clone+0x226/0x8f0 kernel/fork.c:2797 __do_sys_clone3 kernel/fork.c:3098 [inline] __se_sys_clone3+0x2cb/0x350 kernel/fork.c:3082 do_syscall_x64 arch/x86/entry/common.c:52 [inline] do_syscall_64+0xf3/0x230 arch/x86/entry/common.c:83 entry_SYSCALL_64_after_hwframe+0x77/0x7f RIP: 0033:0x7f46d10a8cd9 Code: ff ff eb d2 e8 f8 62 fd ff 0f 1f 84 00 00 00 00 00 b8 ea ff ff ff 48 85 ff 74 2c 48 85 d2 74 27 49 89 c8 b8 b3 01 00 00 0f 05 <48> 85 c0 7c 18 74 01 c3 31 ed 48 83 e4 f0 4c 89 c7 ff d2 48 89 c7 RSP: 002b:00007ffd26cfca58 EFLAGS: 00000206 ORIG_RAX: 00000000000001b3 RAX: ffffffffffffffda RBX: 00007f46d10513a0 RCX: 00007f46d10a8cd9 RDX: 00007f46d10513a0 RSI: 0000000000000058 RDI: 00007ffd26cfcaa0 RBP: 00007f46d1e896c0 R08: 00007f46d1e896c0 R09: 00007ffd26cfcb87 R10: 0000000000000008 R11: 0000000000000206 R12: ffffffffffffffb0 R13: 000000000000000b R14: 00007ffd26cfcaa0 R15: 00007ffd26cfcb88 ---------------- Code disassembly (best guess): 0: c9 leave 1: 50 push %rax 2: e8 99 c9 0b 00 call 0xbc9a0 7: 48 83 c4 08 add $0x8,%rsp b: 4c 89 f7 mov %r14,%rdi e: e8 cd 38 00 00 call 0x38e0 13: 0f 1f 44 00 00 nopl 0x0(%rax,%rax,1) 18: 4c 89 f7 mov %r14,%rdi 1b: e8 d0 86 2a 0a call 0xa2a86f0 20: e8 5b f8 36 00 call 0x36f880 25: fb sti 26: 48 8b 5d c0 mov -0x40(%rbp),%rbx * 2a: 48 8d bb f8 15 00 00 lea 0x15f8(%rbx),%rdi <-- trapping instruction 31: 48 89 f8 mov %rdi,%rax 34: 48 c1 e8 03 shr $0x3,%rax 38: 49 rex.WB 39: be 00 00 00 00 mov $0x0,%esi 3e: 00 fc add %bh,%ah