==================================================================
BUG: KASAN: slab-use-after-free in rose_timer_expiry+0x471/0x4b0
Read of size 2 at addr ffff88802f85cc2a by task syz-executor/5846

CPU: 0 UID: 0 PID: 5846 Comm: syz-executor Not tainted 6.16.0-syzkaller-12063-g37816488247d-dirty #0 PREEMPT(full) 
Hardware name: QEMU Standard PC (Q35 + ICH9, 2009), BIOS 1.16.2-debian-1.16.2-1 04/01/2014
Call Trace:
 <IRQ>
 dump_stack_lvl+0x189/0x250
 print_report+0xca/0x240
 kasan_report+0x118/0x150
 rose_timer_expiry+0x471/0x4b0
 call_timer_fn+0x17e/0x5f0
 __run_timer_base+0x61a/0x860
 run_timer_softirq+0xb7/0x180
 handle_softirqs+0x286/0x870
 __irq_exit_rcu+0xca/0x1f0
 irq_exit_rcu+0x9/0x30
 sysvec_apic_timer_interrupt+0xa6/0xc0
 </IRQ>
 <TASK>
 asm_sysvec_apic_timer_interrupt+0x1a/0x20
RIP: 0010:native_apic_msr_write+0x39/0x50
Code: 74 2a 83 ff 30 74 25 eb 10 81 ff d0 00 00 00 74 1b 81 ff e0 00 00 00 74 13 c1 ef 04 81 c7 00 08 00 00 89 f9 89 f0 31 d2 0f 30 <66> 90 c3 cc cc cc cc cc f3 0f 1e fa 89 f6 31 d2 e9 c2 d9 8d 03 66
RSP: 0018:ffffc9000407fb28 EFLAGS: 00000246
RAX: 00000000000000f6 RBX: 0000000000000200 RCX: 000000000000083f
RDX: 0000000000000000 RSI: 00000000000000f6 RDI: 000000000000083f
RBP: ffffc9000407fbf0 R08: ffffc9000407fb87 R09: 1ffff9200080ff70
R10: dffffc0000000000 R11: fffff5200080ff71 R12: ffffc90029c62001
R13: 0000000000000000 R14: 0000000000000000 R15: ffff88804b0314b0
 arch_irq_work_raise+0x6d/0x80
 __irq_work_queue_local+0x1d7/0x550
 irq_work_queue+0x99/0x140
 bpf_ringbuf_discard+0x11b/0x170
 bpf_prog_fe0ed97373b08409+0x4b/0x4f
 bpf_trace_run3+0x298/0x4e0
 kmem_cache_free+0x35c/0x400
 do_mkdirat+0x54e/0x590
 __x64_sys_mkdirat+0x87/0xa0
 do_syscall_64+0xfa/0x3b0
 entry_SYSCALL_64_after_hwframe+0x77/0x7f
RIP: 0033:0x7effcd78d457
Code: 73 01 c3 48 c7 c1 a8 ff ff ff f7 d8 64 89 01 48 83 c8 ff c3 66 2e 0f 1f 84 00 00 00 00 00 0f 1f 44 00 00 b8 02 01 00 00 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:00007ffe39dca318 EFLAGS: 00000206 ORIG_RAX: 0000000000000102
RAX: ffffffffffffffda RBX: 00007ffe39dca370 RCX: 00007effcd78d457
RDX: 00000000000001ff RSI: 00007ffe39dca370 RDI: 00000000ffffff9c
RBP: 00007ffe39dca35c R08: 0000000000000006 R09: 00007ffe39dca0b4
R10: 0000000000000000 R11: 0000000000000206 R12: 000000000000069b
R13: 00000000000927c0 R14: 00000000000b8c9a R15: 00007ffe39dca3b0
 </TASK>

Allocated by task 561:
 kasan_save_track+0x3e/0x80
 __kasan_kmalloc+0x93/0xb0
 __kmalloc_cache_noprof+0x230/0x3d0
 rfcomm_dlc_alloc+0x75/0x410
 rfcomm_sock_alloc+0x23/0x210
 rfcomm_sock_create+0xc2/0x2d0
 bt_sock_create+0x163/0x240
 __sock_create+0x4b3/0x9f0
 __sys_socket+0xd7/0x1b0
 __x64_sys_socket+0x7a/0x90
 do_syscall_64+0xfa/0x3b0
 entry_SYSCALL_64_after_hwframe+0x77/0x7f

Freed by task 560:
 kasan_save_track+0x3e/0x80
 kasan_save_free_info+0x46/0x50
 __kasan_slab_free+0x5b/0x80
 kfree+0x18e/0x440
 __sk_destruct+0x89/0x660
 rfcomm_sock_release+0xd8/0x120
 sock_close+0xc3/0x240
 __fput+0x44c/0xa70
 task_work_run+0x1d4/0x260
 exit_to_user_mode_loop+0xec/0x110
 do_syscall_64+0x2bd/0x3b0
 entry_SYSCALL_64_after_hwframe+0x77/0x7f

The buggy address belongs to the object at ffff88802f85cc00
 which belongs to the cache kmalloc-512 of size 512
The buggy address is located 42 bytes inside of
 freed 512-byte region [ffff88802f85cc00, ffff88802f85ce00)

The buggy address belongs to the physical page:
page: refcount:0 mapcount:0 mapping:0000000000000000 index:0x0 pfn:0x2f85c
head: order:2 mapcount:0 entire_mapcount:0 nr_pages_mapped:0 pincount:0
flags: 0xfff00000000040(head|node=0|zone=1|lastcpupid=0x7ff)
page_type: f5(slab)
raw: 00fff00000000040 ffff88801a441c80 ffffea0000bdc700 dead000000000002
raw: 0000000000000000 0000000000100010 00000000f5000000 0000000000000000
head: 00fff00000000040 ffff88801a441c80 ffffea0000bdc700 dead000000000002
head: 0000000000000000 0000000000100010 00000000f5000000 0000000000000000
head: 00fff00000000002 ffffea0000be1701 00000000ffffffff 00000000ffffffff
head: ffffffffffffffff 0000000000000000 00000000ffffffff 0000000000000004
page dumped because: kasan: bad access detected
page_owner tracks the page as allocated
page last allocated via order 2, migratetype Unmovable, gfp_mask 0xd20c0(__GFP_IO|__GFP_FS|__GFP_NOWARN|__GFP_NORETRY|__GFP_COMP|__GFP_NOMEMALLOC), pid 5850, tgid 5850 (syz-executor), ts 58995029782, free_ts 0
 post_alloc_hook+0x240/0x2a0
 get_page_from_freelist+0x21e4/0x22c0
 __alloc_frozen_pages_noprof+0x181/0x370
 alloc_pages_mpol+0x232/0x4a0
 allocate_slab+0x8a/0x370
 ___slab_alloc+0xbeb/0x1410
 __kmalloc_noprof+0x305/0x4f0
 fib6_info_alloc+0x30/0xf0
 ip6_route_info_create+0x142/0x860
 addrconf_f6i_alloc+0x1d2/0x450
 ipv6_add_addr+0x56e/0x1090
 addrconf_add_linklocal+0x28c/0x6c0
 addrconf_addr_gen+0x490/0x580
 addrconf_init_auto_addrs+0x62d/0xa30
 addrconf_notify+0xacc/0x1010
 notifier_call_chain+0x1b6/0x3e0
page_owner free stack trace missing

Memory state around the buggy address:
 ffff88802f85cb00: fc fc fc fc fc fc fc fc fc fc fc fc fc fc fc fc
 ffff88802f85cb80: fc fc fc fc fc fc fc fc fc fc fc fc fc fc fc fc
>ffff88802f85cc00: fa fb fb fb fb fb fb fb fb fb fb fb fb fb fb fb
                                  ^
 ffff88802f85cc80: fb fb fb fb fb fb fb fb fb fb fb fb fb fb fb fb
 ffff88802f85cd00: fb fb fb fb fb fb fb fb fb fb fb fb fb fb fb fb
==================================================================
