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

CPU: 1 UID: 0 PID: 17777 Comm: syz.2.5094 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:lock_release+0x2b5/0x3e0
Code: 51 48 c7 44 24 20 00 00 00 00 9c 8f 44 24 20 f7 44 24 20 00 02 00 00 75 56 f7 c3 00 02 00 00 74 01 fb 65 48 8b 05 7b 81 02 11 <48> 3b 44 24 28 0f 85 8b 00 00 00 48 83 c4 30 5b 41 5c 41 5d 41 5e
RSP: 0018:ffffc9000a0974f0 EFLAGS: 00000206
RAX: 132846b2c882b300 RBX: 0000000000000202 RCX: 132846b2c882b300
RDX: 0000000000000003 RSI: ffffffff8dba3969 RDI: ffffffff8be32680
RBP: ffff88804af844e8 R08: 0000000000000000 R09: ffffffff822e5b0a
R10: dffffc0000000000 R11: fffff94000146db9 R12: 0000000000000003
R13: 0000000000000003 R14: ffffffff8e139fa0 R15: ffff88804af83980
 pfn_valid+0x3b2/0x490
 page_table_check_clear+0x21/0x700
 unmap_page_range+0x3445/0x4370
 unmap_vmas+0x399/0x580
 exit_mmap+0x248/0xb50
 __mmput+0x118/0x430
 exit_mm+0x1da/0x2c0
 do_exit+0x648/0x2300
 do_group_exit+0x21c/0x2d0
 __x64_sys_exit_group+0x3f/0x40
 x64_sys_call+0x21f7/0x2200
 do_syscall_64+0xfa/0x3b0
 entry_SYSCALL_64_after_hwframe+0x77/0x7f
RIP: 0033:0x7fdf0218ebe9
Code: Unable to access opcode bytes at 0x7fdf0218ebbf.
RSP: 002b:00007ffe45a15848 EFLAGS: 00000246 ORIG_RAX: 00000000000000e7
RAX: ffffffffffffffda RBX: 0000000000000000 RCX: 00007fdf0218ebe9
RDX: 0000000000000064 RSI: 0000000000000000 RDI: 0000000000000000
RBP: 00007ffe45a158ac R08: 0000000145a1593f R09: 00000000000927c0
R10: 0000000000000001 R11: 0000000000000246 R12: 0000000000000705
R13: 00000000000927c0 R14: 0000000000043539 R15: 00007ffe45a15900
 </TASK>

Allocated by task 16678:
 kasan_save_track+0x3e/0x80
 __kasan_kmalloc+0x93/0xb0
 __kmalloc_noprof+0x27a/0x4f0
 hash_ip4_add+0x18ba/0x1ec0
 hash_ip4_uadt+0x640/0x850
 call_ad+0x383/0xb00
 ip_set_ad+0x791/0x930
 nfnetlink_rcv_msg+0xb4d/0x1130
 netlink_rcv_skb+0x208/0x470
 nfnetlink_rcv+0x26a/0x2520
 netlink_unicast+0x82f/0x9e0
 netlink_sendmsg+0x805/0xb30
 __sock_sendmsg+0x21c/0x270
 ____sys_sendmsg+0x505/0x830
 ___sys_sendmsg+0x21f/0x2a0
 __x64_sys_sendmsg+0x19b/0x260
 do_syscall_64+0xfa/0x3b0
 entry_SYSCALL_64_after_hwframe+0x77/0x7f

Freed by task 7342:
 kasan_save_track+0x3e/0x80
 kasan_save_free_info+0x46/0x50
 __kasan_slab_free+0x5b/0x80
 kmem_cache_free_bulk+0x2d1/0x520
 kvfree_rcu_bulk+0xe5/0x1f0
 kfree_rcu_work+0xed/0x170
 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
 kvfree_call_rcu+0xbb/0x410
 hash_ip4_flush+0x53c/0x710
 ip_set_flush+0x542/0x670
 nfnetlink_rcv_msg+0xb4d/0x1130
 netlink_rcv_skb+0x208/0x470
 nfnetlink_rcv+0x26a/0x2520
 netlink_unicast+0x82f/0x9e0
 netlink_sendmsg+0x805/0xb30
 __sock_sendmsg+0x21c/0x270
 ____sys_sendmsg+0x505/0x830
 ___sys_sendmsg+0x21f/0x2a0
 __x64_sys_sendmsg+0x19b/0x260
 do_syscall_64+0xfa/0x3b0
 entry_SYSCALL_64_after_hwframe+0x77/0x7f

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

The buggy address belongs to the physical page:
page: refcount:0 mapcount:0 mapping:0000000000000000 index:0xffff888113ffc000 pfn:0x113ffc
head: order:2 mapcount:0 entire_mapcount:0 nr_pages_mapped:0 pincount:0
flags: 0x57ff00000000240(workingset|head|node=1|zone=2|lastcpupid=0x7ff)
page_type: f5(slab)
raw: 057ff00000000240 ffff88801a441c80 ffffea0004799e10 ffffea00044b5310
raw: ffff888113ffc000 000000000010000b 00000000f5000000 0000000000000000
head: 057ff00000000240 ffff88801a441c80 ffffea0004799e10 ffffea00044b5310
head: ffff888113ffc000 000000000010000b 00000000f5000000 0000000000000000
head: 057ff00000000002 ffffea00044fff01 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 0x52820(GFP_ATOMIC|__GFP_NOWARN|__GFP_NORETRY|__GFP_COMP), pid 12, tgid 12 (kworker/u8:0), ts 66881916242, free_ts 66862450877
 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_cache_noprof+0x296/0x3d0
 batadv_forw_packet_alloc+0x1e9/0x390
 batadv_iv_ogm_queue_add+0x85f/0xd30
 batadv_iv_ogm_schedule+0x866/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
page last free pid 974 tgid 974 stack trace:
 __free_frozen_pages+0xbc4/0xd30
 stack_depot_save_flags+0x436/0x860
 kasan_save_track+0x4f/0x80
 __kasan_slab_alloc+0x6c/0x80
 kmem_cache_alloc_noprof+0x1c1/0x3c0
 skb_clone+0x212/0x3a0
 maybe_deliver+0x98/0x160
 br_flood+0x31a/0x6a0
 br_dev_xmit+0x11b3/0x1840
 dev_hard_start_xmit+0x2d7/0x830
 __dev_queue_xmit+0x1b8d/0x3b50
 ip6_finish_output2+0x11bc/0x16a0
 NF_HOOK+0x9e/0x380
 mld_sendpack+0x800/0xd80
 mld_ifc_work+0x83e/0xd60
 process_scheduled_works+0xae1/0x17b0

Memory state around the buggy address:
 ffff888113ffe700: fc fc fc fc fc fc fc fc fc fc fc fc fc fc fc fc
 ffff888113ffe780: fc fc fc fc fc fc fc fc fc fc fc fc fc fc fc fc
>ffff888113ffe800: fa fb fb fb fb fb fb fb fb fb fb fb fb fb fb fb
                                  ^
 ffff888113ffe880: fb fb fb fb fb fb fb fb fb fb fb fb fb fb fb fb
 ffff888113ffe900: fb fb fb fb fb fb fb fb fb fb fb fb fb fb fb fb
==================================================================
