netlink: 48 bytes leftover after parsing attributes in process `syz.1.933'.
==================================================================
BUG: KASAN: slab-out-of-bounds in xfrm_alloc_spi+0x570/0xf30
Read of size 4 at addr ffff88804200bb44 by task syz.1.933/9268

CPU: 0 UID: 0 PID: 9268 Comm: syz.1.933 Not tainted 6.16.0-syzkaller-12063-g37816488247d #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:
 <TASK>
 dump_stack_lvl+0x189/0x250
 print_report+0xca/0x240
 kasan_report+0x118/0x150
 xfrm_alloc_spi+0x570/0xf30
 xfrm_alloc_userspi+0x70b/0xc90
 xfrm_user_rcv_msg+0x7a3/0xab0
 netlink_rcv_skb+0x208/0x470
 xfrm_netlink_rcv+0x79/0x90
 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
RIP: 0033:0x7f6787f8ebe9
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:00007f6788d13038 EFLAGS: 00000246 ORIG_RAX: 000000000000002e
RAX: ffffffffffffffda RBX: 00007f67881b5fa0 RCX: 00007f6787f8ebe9
RDX: 0000000000000000 RSI: 0000200000000340 RDI: 0000000000000004
RBP: 00007f6788011e19 R08: 0000000000000000 R09: 0000000000000000
R10: 0000000000000000 R11: 0000000000000246 R12: 0000000000000000
R13: 00007f67881b6038 R14: 00007f67881b5fa0 R15: 00007ffd58fbb848
 </TASK>

Allocated by task 9117:
 kasan_save_track+0x3e/0x80
 __kasan_kmalloc+0x93/0xb0
 __kmalloc_node_track_caller_noprof+0x271/0x4e0
 kmalloc_reserve+0x136/0x290
 __alloc_skb+0x142/0x2d0
 rtmsg_ifinfo_build_skb+0x84/0x260
 rtnetlink_event+0x1b7/0x270
 notifier_call_chain+0x1b6/0x3e0
 __netdev_upper_dev_unlink+0x1fb/0x7c0
 netdev_upper_dev_unlink+0x91/0xd0
 unregister_vlan_dev+0x33b/0x4e0
 rtnl_newlink_create+0x7fa/0xb00
 rtnl_newlink+0x16d6/0x1c70
 rtnetlink_rcv_msg+0x7cf/0xb70
 netlink_rcv_skb+0x208/0x470
 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 9117:
 kasan_save_track+0x3e/0x80
 kasan_save_free_info+0x46/0x50
 __kasan_slab_free+0x5b/0x80
 kfree+0x18e/0x440
 pskb_expand_head+0x382/0x1150
 netlink_trim+0x1d5/0x2e0
 netlink_broadcast_filtered+0xd6/0x12c0
 nlmsg_notify+0xf0/0x1a0
 rtnetlink_event+0x224/0x270
 notifier_call_chain+0x1b6/0x3e0
 __netdev_upper_dev_unlink+0x1fb/0x7c0
 netdev_upper_dev_unlink+0x91/0xd0
 unregister_vlan_dev+0x33b/0x4e0
 rtnl_newlink_create+0x7fa/0xb00
 rtnl_newlink+0x16d6/0x1c70
 rtnetlink_rcv_msg+0x7cf/0xb70
 netlink_rcv_skb+0x208/0x470
 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 ffff88804200a000
 which belongs to the cache kmalloc-4k of size 4096
The buggy address is located 2884 bytes to the right of
 allocated 4096-byte region [ffff88804200a000, ffff88804200b000)

The buggy address belongs to the physical page:
page: refcount:0 mapcount:0 mapping:0000000000000000 index:0x0 pfn:0x42008
head: order:3 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 ffff88801a442140 dead000000000122 0000000000000000
raw: 0000000000000000 0000000000040004 00000000f5000000 0000000000000000
head: 00fff00000000040 ffff88801a442140 dead000000000122 0000000000000000
head: 0000000000000000 0000000000040004 00000000f5000000 0000000000000000
head: 00fff00000000003 ffffea0001080201 00000000ffffffff 00000000ffffffff
head: ffffffffffffffff 0000000000000000 00000000ffffffff 0000000000000008
page dumped because: kasan: bad access detected
page_owner tracks the page as allocated
page last allocated via order 3, migratetype Unmovable, gfp_mask 0xd20c0(__GFP_IO|__GFP_FS|__GFP_NOWARN|__GFP_NORETRY|__GFP_COMP|__GFP_NOMEMALLOC), pid 9117, tgid 9116 (syz.1.892), ts 245898232465, free_ts 217002192095
 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_node_track_caller_noprof+0x2f8/0x4e0
 kmalloc_reserve+0x136/0x290
 __alloc_skb+0x142/0x2d0
 rtmsg_ifinfo_build_skb+0x84/0x260
 rtnetlink_event+0x1b7/0x270
 notifier_call_chain+0x1b6/0x3e0
 netif_set_mac_address+0x37c/0x4c0
 dev_set_mac_address+0x12b/0x260
 bond_enslave+0x28dc/0x3a20
 do_set_master+0x533/0x6d0
page last free pid 8326 tgid 8325 stack trace:
 __free_frozen_pages+0xbc4/0xd30
 __slab_free+0x303/0x3c0
 qlist_free_all+0x97/0x140
 kasan_quarantine_reduce+0x148/0x160
 __kasan_krealloc+0x1f/0x140
 krealloc_noprof+0x1b8/0x340
 push_jmp_history+0x1cc/0x6f0
 do_check+0x52cb/0xe520
 do_check_common+0x1918/0x2470
 bpf_check+0x1746a/0x1d2d0
 bpf_prog_load+0x1318/0x1930
 __sys_bpf+0x528/0x870
 __x64_sys_bpf+0x7c/0x90
 do_syscall_64+0xfa/0x3b0
 entry_SYSCALL_64_after_hwframe+0x77/0x7f

Memory state around the buggy address:
 ffff88804200ba00: fc fc fc fc fc fc fc fc fc fc fc fc fc fc fc fc
 ffff88804200ba80: fc fc fc fc fc fc fc fc fc fc fc fc fc fc fc fc
>ffff88804200bb00: fc fc fc fc fc fc fc fc fc fc fc fc fc fc fc fc
                                           ^
 ffff88804200bb80: fc fc fc fc fc fc fc fc fc fc fc fc fc fc fc fc
 ffff88804200bc00: fc fc fc fc fc fc fc fc fc fc fc fc fc fc fc fc
==================================================================
