==================================================================
BUG: KASAN: stack-out-of-bounds in unwind_next_frame+0x1aa1/0x22d0
Read of size 8 at addr ffff88801fcaf430 by task syz-executor.2/4489
CPU: 1 PID: 4489 Comm: syz-executor.2 Not tainted 6.2.0-rc8-next-20230217 #1
Hardware name: QEMU Standard PC (i440FX + PIIX, 1996), BIOS 1.12.0-1 04/01/2014
Call Trace:
dump_stack_lvl+0x91/0xf0
print_report+0xcc/0x620
kasan_report+0xc0/0xf0
unwind_next_frame+0x1aa1/0x22d0
arch_stack_walk+0x87/0xf0
stack_trace_save+0x90/0xd0
kasan_save_stack+0x22/0x50
kasan_set_track+0x25/0x30
kasan_save_free_info+0x2e/0x50
__kasan_slab_free+0x10a/0x190
kmem_cache_free+0xff/0x510
rcu_core+0x822/0x1d40
__do_softirq+0x258/0x8a2
__irq_exit_rcu+0xcc/0x110
irq_exit_rcu+0x9/0x20
sysvec_apic_timer_interrupt+0x6e/0x90
asm_sysvec_apic_timer_interrupt+0x1a/0x20
RIP: 0010:core_kernel_text+0x82/0xa0
Code: 82 b2 04 01 76 0b 44 89 e0 5b 41 5c e9 eb dc 29 03 48 81 fb 00 f0 5d 86 72 ec 48 81 fb 41 cb 71 86 73 e3 41 bc 01 00 00 00 5b <44> 89 e0 41 5c e9 c8 dc 29 03 48 c7 c7 84 35 d2 85 e8 98 53 60 00
RSP: 0018:ffff88801fcaf200 EFLAGS: 00000287
RAX: dffffc0000000000 RBX: ffffffff835cc91b RCX: 0000000000000001
RDX: 1ffff11003f95e55 RSI: ffff88801fcafae8 RDI: ffffffff835cc91b
RBP: ffffffff835cc91b R08: 0000000000000001 R09: ffff88801fcaf290
R10: 0000000000038001 R11: 0000000000000001 R12: 0000000000000001
R13: 0000000000000000 R14: ffff8880430f5040 R15: ffff88800c7a0260
__ip_append_data+0x2d2d/0x3aa0
asm_sysvec_apic_timer_interrupt+0x1a/0x20
RIP: 0010:__raw_spin_lock_init+0xac/0x110
Code: c0 03 38 d0 7c 04 84 d2 75 64 48 8d 7b 10 c7 43 04 ad 4e ad de 48 b8 00 00 00 00 00 fc ff df 48 89 fa 48 c1 ea 03 80 3c 02 00 <75> 56 48 8d 7b 08 48 c7 43 10 ff ff ff ff 48 b8 00 00 00 00 00 fc
RSP: 1189:ffff88801fcaf450 EFLAGS: 00000246
RAX: dffffc0000000000 RBX: ffff88800c7a0260 RCX: 0000000000000000
RDX: 1ffff110018f404e RSI: 0000000000000001 RDI: ffff88800c7a0270
RBP: ffffffff83a56331 R08: 0000000000000002 R09: 0000000000000000
R10: fffffbfff0ba4bca R11: 0000000000000001 R12: ffffffff83a00f09
R13: ffffffff83917175 R14: ffffffff83910cfd R15: ffffffff8360072c
__create_object+0x3b2/0xc90
kmem_cache_alloc_node+0x215/0x330
__alloc_skb+0x28c/0x330
__ip_append_data+0x2d2d/0x3aa0
ip_append_data+0x115/0x1a0
raw_sendmsg+0xa99/0x2c80
inet_sendmsg+0x121/0x150
sock_sendmsg+0x19b/0x200
____sys_sendmsg+0x74e/0x980
___sys_sendmsg+0x110/0x1b0
__sys_sendmsg+0xf7/0x1d0
do_syscall_64+0x3f/0x90
entry_SYSCALL_64_after_hwframe+0x72/0xdc
RIP: 0033:0x7f9915900b19
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:00007f9912e76188 EFLAGS: 00000246 ORIG_RAX: 000000000000002e
RAX: ffffffffffffffda RBX: 00007f9915a13f60 RCX: 00007f9915900b19
RDX: 0000000000000000 RSI: 0000000020000780 RDI: 0000000000000005
RBP: 00007f991595af6d R08: 0000000000000000 R09: 0000000000000000
R10: 0000000000000000 R11: 0000000000000246 R12: 0000000000000000
R13: 00007ffeeb36c06f R14: 00007f9912e76300 R15: 0000000000022000
The buggy address belongs to stack of task syz-executor.2/4489
and is located at offset 168 in frame:
set_track_prepare+0x0/0xd0
This frame has 1 object:
[32, 160) 'entries'
The buggy address belongs to the physical page:
page:000000003a3ec3bd refcount:0 mapcount:0 mapping:0000000000000000 index:0x0 pfn:0x1fcaf
flags: 0x100000000000000(node=0|zone=1)
raw: 0100000000000000 0000000000000000 ffffea00007f2bc8 0000000000000000
raw: 0000000000000000 0000000000000000 00000000ffffffff 0000000000000000
page dumped because: kasan: bad access detected
Memory state around the buggy address:
ffff88801fcaf300: f1 f1 f1 00 00 00 f3 f3 f3 f3 f3 00 00 00 00 00
ffff88801fcaf380: 00 f1 f1 f1 f1 00 00 00 00 00 00 00 00 00 00 00
>ffff88801fcaf400: 00 00 00 00 00 f3 f3 f3 f3 00 00 00 00 00 00 00
^
ffff88801fcaf480: 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00
ffff88801fcaf500: 00 00 00 00 00 f1 f1 f1 f1 f1 f1 01 f2 04 f3 f3
==================================================================
----------------
Code disassembly (best guess), 1 bytes skipped:
0: b2 04 mov $0x4,%dl
2: 01 76 0b add %esi,0xb(%rsi)
5: 44 89 e0 mov %r12d,%eax
8: 5b pop %rbx
9: 41 5c pop %r12
b: e9 eb dc 29 03 jmpq 0x329dcfb
10: 48 81 fb 00 f0 5d 86 cmp $0xffffffff865df000,%rbx
17: 72 ec jb 0x5
19: 48 81 fb 41 cb 71 86 cmp $0xffffffff8671cb41,%rbx
20: 73 e3 jae 0x5
22: 41 bc 01 00 00 00 mov $0x1,%r12d
28: 5b pop %rbx
* 29: 44 89 e0 mov %r12d,%eax <-- trapping instruction
2c: 41 5c pop %r12
2e: e9 c8 dc 29 03 jmpq 0x329dcfb
33: 48 c7 c7 84 35 d2 85 mov $0xffffffff85d23584,%rdi
3a: e8 98 53 60 00 callq 0x6053d7