=============================
[ BUG: Invalid wait context ]
6.13.0-rc1-syzkaller-00005-gceb8bf2ceaa7 #0 Not tainted
-----------------------------
syz.0.15/6016 is trying to lock:
ffffffff8e3a2778 (stack_list_lock){-.-.}-{3:3}, at: add_stack_record_to_list mm/page_owner.c:182 [inline]
ffffffff8e3a2778 (stack_list_lock){-.-.}-{3:3}, at: inc_stack_record_count mm/page_owner.c:214 [inline]
ffffffff8e3a2778 (stack_list_lock){-.-.}-{3:3}, at: __set_page_owner+0x3ea/0x560 mm/page_owner.c:329
other info that might help us debug this:
context-{2:2}
no locks held by syz.0.15/6016.
stack backtrace:
CPU: 0 UID: 0 PID: 6016 Comm: syz.0.15 Not tainted 6.13.0-rc1-syzkaller-00005-gceb8bf2ceaa7 #0
Hardware name: Google Google Compute Engine/Google Compute Engine, BIOS Google 09/13/2024
Call Trace:
__dump_stack lib/dump_stack.c:94 [inline]
dump_stack_lvl+0x116/0x1f0 lib/dump_stack.c:120
print_lock_invalid_wait_context kernel/locking/lockdep.c:4826 [inline]
check_wait_context kernel/locking/lockdep.c:4898 [inline]
__lock_acquire+0x878/0x3c40 kernel/locking/lockdep.c:5176
lock_acquire.part.0+0x11b/0x380 kernel/locking/lockdep.c:5849
__raw_spin_lock_irqsave include/linux/spinlock_api_smp.h:110 [inline]
_raw_spin_lock_irqsave+0x3a/0x60 kernel/locking/spinlock.c:162
add_stack_record_to_list mm/page_owner.c:182 [inline]
inc_stack_record_count mm/page_owner.c:214 [inline]
__set_page_owner+0x3ea/0x560 mm/page_owner.c:329
set_page_owner include/linux/page_owner.h:32 [inline]
post_alloc_hook+0x2d1/0x350 mm/page_alloc.c:1556
prep_new_page mm/page_alloc.c:1564 [inline]
get_page_from_freelist+0xfce/0x2f80 mm/page_alloc.c:3474
__alloc_pages_noprof+0x223/0x25b0 mm/page_alloc.c:4751
alloc_pages_mpol_noprof+0x2c9/0x610 mm/mempolicy.c:2265
stack_depot_save_flags+0x566/0x8f0 lib/stackdepot.c:627
kasan_save_stack+0x42/0x60 mm/kasan/common.c:48
__kasan_record_aux_stack+0xba/0xd0 mm/kasan/generic.c:544
task_work_add+0xc0/0x3b0 kernel/task_work.c:77
__run_posix_cpu_timers kernel/time/posix-cpu-timers.c:1223 [inline]
run_posix_cpu_timers+0x69f/0x7d0 kernel/time/posix-cpu-timers.c:1422
update_process_times+0x1a1/0x2d0 kernel/time/timer.c:2526
tick_sched_handle kernel/time/tick-sched.c:276 [inline]
tick_nohz_handler+0x376/0x530 kernel/time/tick-sched.c:297
__run_hrtimer kernel/time/hrtimer.c:1739 [inline]
__hrtimer_run_queues+0x5fb/0xae0 kernel/time/hrtimer.c:1803
hrtimer_interrupt+0x392/0x8e0 kernel/time/hrtimer.c:1865
local_apic_timer_interrupt arch/x86/kernel/apic/apic.c:1038 [inline]
__sysvec_apic_timer_interrupt+0x10f/0x400 arch/x86/kernel/apic/apic.c:1055
instr_sysvec_apic_timer_interrupt arch/x86/kernel/apic/apic.c:1049 [inline]
sysvec_apic_timer_interrupt+0x9f/0xc0 arch/x86/kernel/apic/apic.c:1049
asm_sysvec_apic_timer_interrupt+0x1a/0x20 arch/x86/include/asm/idtentry.h:702
RIP: 0010:obj_cgroup_charge+0x143/0x4d0 mm/memcontrol.c:2905
Code: 0f 85 10 03 00 00 48 03 1c c5 e0 2b a7 8d 48 89 df e8 71 ef fe ff 4d 85 e4 0f 85 0b 01 00 00 9c 58 f6 c4 02 0f 85 05 02 00 00 <45> 84 ff 0f 85 ef 00 00 00 49 89 ef 81 e5 ff 0f 00 00 4c 89 ef 49
RSP: 0018:ffffc9000449fbd8 EFLAGS: 00000246
RAX: 0000000000000002 RBX: ffff8880b8639a20 RCX: 1ffffffff20bd839
RDX: 0000000000000000 RSI: ffffffff8b6cd840 RDI: ffffffff8bd1b460
RBP: 0000000000000848 R08: 0000000000000001 R09: 0000000000000001
R10: ffffffff905f0417 R11: 0000000000000000 R12: 0000000000000200
R13: ffff888033b3f680 R14: 0000000000000cc0 R15: 0000000000000001
__memcg_slab_post_alloc_hook+0x1b6/0x9b0 mm/memcontrol.c:2998
memcg_slab_post_alloc_hook mm/slub.c:2152 [inline]
slab_post_alloc_hook mm/slub.c:4114 [inline]
slab_alloc_node mm/slub.c:4153 [inline]
kmem_cache_alloc_noprof+0x366/0x3d0 mm/slub.c:4160
sk_prot_alloc+0x60/0x2a0 net/core/sock.c:2159
sk_alloc+0x36/0xb90 net/core/sock.c:2218
unix_create1+0xa6/0x6c0 net/unix/af_unix.c:1024
unix_create+0x10e/0x1d0 net/unix/af_unix.c:1094
__sock_create+0x335/0x8d0 net/socket.c:1558
sock_create net/socket.c:1616 [inline]
__sys_socketpair+0x25d/0x5a0 net/socket.c:1767
__do_sys_socketpair net/socket.c:1816 [inline]
__se_sys_socketpair net/socket.c:1813 [inline]
__x64_sys_socketpair+0x96/0x100 net/socket.c:1813
do_syscall_x64 arch/x86/entry/common.c:52 [inline]
do_syscall_64+0xcd/0x250 arch/x86/entry/common.c:83
entry_SYSCALL_64_after_hwframe+0x77/0x7f
RIP: 0033:0x7f2d4c77ff19
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 a8 ff ff ff f7 d8 64 89 01 48
RSP: 002b:00007f2d4d55e058 EFLAGS: 00000246 ORIG_RAX: 0000000000000035
RAX: ffffffffffffffda RBX: 00007f2d4c946160 RCX: 00007f2d4c77ff19
RDX: 0000000000000000 RSI: 0000000000000002 RDI: 0000000000000001
RBP: 00007f2d4c7f3986 R08: 0000000000000000 R09: 0000000000000000
R10: 0000000020000500 R11: 0000000000000246 R12: 0000000000000000
R13: 0000000000000000 R14: 00007f2d4c946160 R15: 00007ffd17c39ee8
----------------
Code disassembly (best guess):
0: 0f 85 10 03 00 00 jne 0x316
6: 48 03 1c c5 e0 2b a7 add -0x7258d420(,%rax,8),%rbx
d: 8d
e: 48 89 df mov %rbx,%rdi
11: e8 71 ef fe ff call 0xfffeef87
16: 4d 85 e4 test %r12,%r12
19: 0f 85 0b 01 00 00 jne 0x12a
1f: 9c pushf
20: 58 pop %rax
21: f6 c4 02 test $0x2,%ah
24: 0f 85 05 02 00 00 jne 0x22f
* 2a: 45 84 ff test %r15b,%r15b <-- trapping instruction
2d: 0f 85 ef 00 00 00 jne 0x122
33: 49 89 ef mov %rbp,%r15
36: 81 e5 ff 0f 00 00 and $0xfff,%ebp
3c: 4c 89 ef mov %r13,%rdi
3f: 49 rex.WB