R10: 0000000000000000 R11: 0000000000000246 R12: 0000000000000001 R13: 00007ffd83fc04ef R14: 00007f8869c32300 R15: 0000000000022000 ================================================================== BUG: KASAN: stack-out-of-bounds in unwind_next_frame+0x1aa1/0x22d0 Read of size 8 at addr ffff88801e4b7430 by task syz-executor.2/6597 CPU: 1 PID: 6597 Comm: syz-executor.2 Not tainted 6.2.0-rc7-next-20230213 #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: 81 b1 04 01 76 0b 44 89 e0 5b 41 5c e9 ab 29 29 03 48 81 fb 00 d0 5c 86 72 ec 48 81 fb 31 a2 70 86 73 e3 41 bc 01 00 00 00 5b <44> 89 e0 41 5c e9 88 29 29 03 48 c7 c7 04 34 d1 85 e8 98 2a 60 00 RSP: 0018:ffff88801e4b7200 EFLAGS: 00000283 RAX: dffffc0000000000 RBX: ffffffff813a4a70 RCX: ffff88801e4b72f0 RDX: 1ffff11003c96e55 RSI: ffff88801e4b72e8 RDI: ffffffff813a4a70 RBP: ffffffff813a4a70 R08: 0000000000000001 R09: ffff88801e4b7290 R10: 0000000000038001 R11: 0000000000000001 R12: 0000000000000001 R13: 0000000000000000 R14: ffff88801e798000 R15: ffff88801437d4c0 __ip_append_data+0x2d2d/0x3aa0 asm_sysvec_apic_timer_interrupt+0x1a/0x20 RIP: 0010:__raw_spin_lock_init+0x66/0x110 Code: da 48 b8 00 00 00 00 00 fc ff df 48 c1 ea 03 0f b6 04 02 5a 84 c0 74 08 3c 03 0f 8e 9b 00 00 00 48 8d 7b 04 c7 03 00 00 00 00 <48> b8 00 00 00 00 00 fc ff df 48 89 fa 48 c1 ea 03 0f b6 14 02 48 RSP: 19c5:ffff88801e4b7450 EFLAGS: 00000246 RAX: 0000000000000000 RBX: ffff88801437d4c0 RCX: 0000000000000000 RDX: 0000000000000000 RSI: 0000000000000001 RDI: ffff88801437d4c4 RBP: ffffffff848fe540 R08: 0000000000000002 R09: 0000000000000000 R10: fffffbfff0ba2b9a R11: 0000000000000001 R12: ffffffff87b109c0 R13: 0000000000000002 R14: ffff88801437d508 R15: ffff88801437d4c0 __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:0x7f08cad68b19 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:00007f08c82de188 EFLAGS: 00000246 ORIG_RAX: 000000000000002e RAX: ffffffffffffffda RBX: 00007f08cae7bf60 RCX: 00007f08cad68b19 RDX: 0000000000000000 RSI: 0000000020000780 RDI: 0000000000000004 RBP: 00007f08cadc2f6d R08: 0000000000000000 R09: 0000000000000000 R10: 0000000000000000 R11: 0000000000000246 R12: 0000000000000000 R13: 00007ffe6c3ef2ff R14: 00007f08c82de300 R15: 0000000000022000 The buggy address belongs to stack of task syz-executor.2/6597 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:0000000042b68e10 refcount:0 mapcount:0 mapping:0000000000000000 index:0x2 pfn:0x1e4b7 flags: 0x100000000000000(node=0|zone=1) raw: 0100000000000000 0000000000000000 ffffffff00000101 0000000000000000 raw: 0000000000000002 0000000000000000 00000000ffffffff 0000000000000000 page dumped because: kasan: bad access detected Memory state around the buggy address: ffff88801e4b7300: f1 f1 f1 00 00 00 f3 f3 f3 f3 f3 00 00 00 00 00 ffff88801e4b7380: 00 f1 f1 f1 f1 00 00 00 00 00 00 00 00 00 00 00 >ffff88801e4b7400: 00 00 00 00 00 f3 f3 f3 f3 00 00 00 00 00 00 00 ^ ffff88801e4b7480: 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 ffff88801e4b7500: 00 00 00 00 00 f1 f1 f1 f1 f1 f1 01 f2 04 f3 f3 ================================================================== ---------------- Code disassembly (best guess): 0: 81 b1 04 01 76 0b 44 xorl $0x5be08944,0xb760104(%rcx) 7: 89 e0 5b a: 41 5c pop %r12 c: e9 ab 29 29 03 jmpq 0x32929bc 11: 48 81 fb 00 d0 5c 86 cmp $0xffffffff865cd000,%rbx 18: 72 ec jb 0x6 1a: 48 81 fb 31 a2 70 86 cmp $0xffffffff8670a231,%rbx 21: 73 e3 jae 0x6 23: 41 bc 01 00 00 00 mov $0x1,%r12d 29: 5b pop %rbx * 2a: 44 89 e0 mov %r12d,%eax <-- trapping instruction 2d: 41 5c pop %r12 2f: e9 88 29 29 03 jmpq 0x32929bc 34: 48 c7 c7 04 34 d1 85 mov $0xffffffff85d13404,%rdi 3b: e8 98 2a 60 00 callq 0x602ad8