==================================================================
BUG: KASAN: slab-use-after-free in rose_timer_expiry+0x471/0x4b0
Read of size 2 at addr ffff888027b4b42a by task syz.2.2164/13644

CPU: 1 UID: 0 PID: 13644 Comm: syz.2.2164 Not tainted 6.16.0-syzkaller-06600-g1dbf1d590d10-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:unwind_next_frame+0x2d/0x2390
Code: fa 55 41 57 41 56 41 55 41 54 53 48 81 ec 98 00 00 00 49 89 fe 48 bd 00 00 00 00 00 fc ff df 48 8d 5f 48 48 89 d8 48 c1 e8 03 <48> 89 44 24 30 80 3c 28 00 74 08 48 89 df e8 00 07 b0 00 48 89 5c
RSP: 0018:ffffc90002c9ec78 EFLAGS: 00000a06
RAX: 1ffff92000593db2 RBX: ffffc90002c9ed90 RCX: 5aa7a7b5cbaab400
RDX: dffffc0000000000 RSI: ffffffff89784007 RDI: ffffc90002c9ed48
RBP: dffffc0000000000 R08: ffffc90002c9ee10 R09: 0000000000000007
R10: ffffc90002c9ed98 R11: ffffffff81ac3450 R12: ffff888107b1d640
R13: ffff88801a442000 R14: ffffc90002c9ed48 R15: ffffc90002c9ed48
 arch_stack_walk+0x11c/0x150
 stack_trace_save+0x9c/0xe0
 kasan_save_track+0x3e/0x80
 __kasan_kmalloc+0x93/0xb0
 __kmalloc_node_track_caller_noprof+0x271/0x4e0
 kmalloc_reserve+0x136/0x290
 __alloc_skb+0x142/0x2d0
 alloc_skb_with_frags+0xca/0x890
 sock_alloc_send_pskb+0x857/0x990
 llc_ui_sendmsg+0x477/0xdd0
 __sock_sendmsg+0x21c/0x270
 sock_sendmsg+0x158/0x230
 splice_to_socket+0x8ff/0xf10
 direct_splice_actor+0x101/0x160
 splice_direct_to_actor+0x5a8/0xcc0
 do_splice_direct+0x181/0x270
 do_sendfile+0x4da/0x7e0
 __se_sys_sendfile64+0x13e/0x190
 do_syscall_64+0xfa/0x3b0
 entry_SYSCALL_64_after_hwframe+0x77/0x7f
RIP: 0033:0x7f4698b8ebe9
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:00007f46999cf038 EFLAGS: 00000246 ORIG_RAX: 0000000000000028
RAX: ffffffffffffffda RBX: 00007f4698db6090 RCX: 00007f4698b8ebe9
RDX: 0000000000000000 RSI: 0000000000000003 RDI: 0000000000000004
RBP: 00007f4698c11e19 R08: 0000000000000000 R09: 0000000000000000
R10: 00000ffffffff000 R11: 0000000000000246 R12: 0000000000000000
R13: 00007f4698db6128 R14: 00007f4698db6090 R15: 00007ffd4505e668
 </TASK>

Allocated by task 12:
 kasan_save_track+0x3e/0x80
 __kasan_kmalloc+0x93/0xb0
 __kmalloc_cache_noprof+0x230/0x3d0
 batadv_forw_packet_alloc+0x1e9/0x390
 batadv_iv_ogm_queue_add+0x85f/0xd30
 batadv_iv_ogm_schedule+0xb48/0xf00
 batadv_iv_send_outstanding_bat_ogm_packet+0x6c6/0x7e0
 process_scheduled_works+0xae1/0x17b0
 worker_thread+0x8a0/0xda0
 kthread+0x711/0x8a0
 ret_from_fork+0x3fc/0x770
 ret_from_fork_asm+0x1a/0x30

Freed by task 12:
 kasan_save_track+0x3e/0x80
 kasan_save_free_info+0x46/0x50
 __kasan_slab_free+0x62/0x70
 kfree+0x18e/0x440
 process_scheduled_works+0xae1/0x17b0
 worker_thread+0x8a0/0xda0
 kthread+0x711/0x8a0
 ret_from_fork+0x3fc/0x770
 ret_from_fork_asm+0x1a/0x30

Last potentially related work creation:
 kasan_save_stack+0x3e/0x60
 kasan_record_aux_stack+0xbd/0xd0
 insert_work+0x3d/0x330
 __queue_work+0xcfc/0xfe0
 call_timer_fn+0x17e/0x5f0
 __run_timer_base+0x646/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
 asm_sysvec_apic_timer_interrupt+0x1a/0x20

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

The buggy address belongs to the physical page:
page: refcount:0 mapcount:0 mapping:0000000000000000 index:0xffff888027b48000 pfn:0x27b48
head: order:2 mapcount:0 entire_mapcount:0 nr_pages_mapped:0 pincount:0
flags: 0xfff00000000240(workingset|head|node=0|zone=1|lastcpupid=0x7ff)
page_type: f5(slab)
raw: 00fff00000000240 ffff88801a441c80 ffffea0000e7c810 ffffea0000e3d510
raw: ffff888027b48000 000000000010000f 00000000f5000000 0000000000000000
head: 00fff00000000240 ffff88801a441c80 ffffea0000e7c810 ffffea0000e3d510
head: ffff888027b48000 000000000010000f 00000000f5000000 0000000000000000
head: 00fff00000000002 ffffea00009ed201 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 5835, tgid 5835 (syz-executor), ts 55429149621, free_ts 55182736403
 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/0x3b0
 ___slab_alloc+0xbfc/0x1480
 __kmalloc_noprof+0x305/0x4f0
 fib6_info_alloc+0x30/0xf0
 ip6_route_info_create+0x142/0x860
 ip6_route_add+0x49/0x1b0
 inet6_addr_add+0x6b2/0xc00
 inet6_rtm_newaddr+0x93d/0xd20
 rtnetlink_rcv_msg+0x7cf/0xb70
 netlink_rcv_skb+0x208/0x470
 netlink_unicast+0x82f/0x9e0
 netlink_sendmsg+0x805/0xb30
page last free pid 5808 tgid 5808 stack trace:
 __free_frozen_pages+0xc71/0xe70
 __slab_free+0x326/0x400
 qlist_free_all+0x97/0x140
 kasan_quarantine_reduce+0x148/0x160
 __kasan_slab_alloc+0x22/0x80
 __kmalloc_cache_noprof+0x1be/0x3d0
 nsim_fib_event_work+0x1174/0x3180
 process_scheduled_works+0xae1/0x17b0
 worker_thread+0x8a0/0xda0
 kthread+0x711/0x8a0
 ret_from_fork+0x3fc/0x770
 ret_from_fork_asm+0x1a/0x30

Memory state around the buggy address:
 ffff888027b4b300: fc fc fc fc fc fc fc fc fc fc fc fc fc fc fc fc
 ffff888027b4b380: fc fc fc fc fc fc fc fc fc fc fc fc fc fc fc fc
>ffff888027b4b400: fa fb fb fb fb fb fb fb fb fb fb fb fb fb fb fb
                                  ^
 ffff888027b4b480: fb fb fb fb fb fb fb fb fb fb fb fb fb fb fb fb
 ffff888027b4b500: fb fb fb fb fb fb fb fb fb fb fb fb fb fb fb fb
==================================================================
