netlink: 'syz.1.2314': attribute type 4 has an invalid length.
==================================================================
BUG: KASAN: slab-use-after-free in put_child+0x566/0x790
Read of size 1 at addr ffff8881100b4ae4 by task syz.1.2314/13381

CPU: 0 UID: 0 PID: 13381 Comm: syz.1.2314 Not tainted 6.16.0-rc7-syzkaller-01993-ge3f96b3556e4 #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/0x230
 kasan_report+0x118/0x150
 put_child+0x566/0x790
 resize+0xbf3/0x2710
 fib_remove_alias+0x322/0x480
 fib_table_delete+0xd05/0xf80
 fib_magic+0x2e4/0x390
 fib_del_ifaddr+0x28b/0x1480
 fib_inetaddr_event+0xbb/0x190
 notifier_call_chain+0x1b6/0x3e0
 blocking_notifier_call_chain+0x6a/0x90
 __inet_del_ifa+0x87d/0x1040
 inetdev_event+0x632/0x15b0
 notifier_call_chain+0x1b6/0x3e0
 netif_set_mtu_ext+0x594/0x7d0
 do_setlink+0x91a/0x41c0
 rtnl_setlink+0x604/0x900
 rtnetlink_rcv_msg+0x7cf/0xb70
 netlink_rcv_skb+0x208/0x470
 netlink_unicast+0x82f/0x9e0
 netlink_sendmsg+0x805/0xb30
 __sock_sendmsg+0x21c/0x270
 sock_write_iter+0x258/0x330
 do_iter_readv_writev+0x56e/0x7f0
 vfs_writev+0x31a/0x960
 do_writev+0x14d/0x2d0
 do_syscall_64+0xfa/0x3b0
 entry_SYSCALL_64_after_hwframe+0x77/0x7f
RIP: 0033:0x7f34ed38eb69
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:00007f34ee1aa038 EFLAGS: 00000246 ORIG_RAX: 0000000000000014
RAX: ffffffffffffffda RBX: 00007f34ed5b5fa0 RCX: 00007f34ed38eb69
RDX: 0000000000000001 RSI: 00002000000003c0 RDI: 0000000000000005
RBP: 00007f34ed411df1 R08: 0000000000000000 R09: 0000000000000000
R10: 0000000000000000 R11: 0000000000000246 R12: 0000000000000000
R13: 0000000000000000 R14: 00007f34ed5b5fa0 R15: 00007ffda218a688
 </TASK>

Allocated by task 13230:
 kasan_save_track+0x3e/0x80
 __kasan_slab_alloc+0x6c/0x80
 kmem_cache_alloc_noprof+0x1c1/0x3c0
 mas_alloc_nodes+0x2e9/0x8e0
 mas_preallocate+0x3ad/0x6f0
 __split_vma+0x2fa/0xa00
 vms_gather_munmap_vmas+0x2de/0x12b0
 mmap_region+0x678/0x1f30
 do_mmap+0xc45/0x10d0
 vm_mmap_pgoff+0x31b/0x4c0
 ksys_mmap_pgoff+0x51f/0x760
 do_syscall_64+0xfa/0x3b0
 entry_SYSCALL_64_after_hwframe+0x77/0x7f

Freed by task 0:
 kasan_save_track+0x3e/0x80
 kasan_save_free_info+0x46/0x50
 __kasan_slab_free+0x62/0x70
 kmem_cache_free+0x18f/0x400
 rcu_core+0xca8/0x1710
 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

Last potentially related work creation:
 kasan_save_stack+0x3e/0x60
 kasan_record_aux_stack+0xbd/0xd0
 call_rcu+0x157/0x9c0
 mas_wr_store_entry+0x1f1b/0x25b0
 mas_store_prealloc+0xb00/0xf60
 vma_complete+0x224/0xae0
 __split_vma+0x8a6/0xa00
 vms_gather_munmap_vmas+0x4ab/0x12b0
 mmap_region+0x678/0x1f30
 do_mmap+0xc45/0x10d0
 vm_mmap_pgoff+0x31b/0x4c0
 ksys_mmap_pgoff+0x51f/0x760
 do_syscall_64+0xfa/0x3b0
 entry_SYSCALL_64_after_hwframe+0x77/0x7f

The buggy address belongs to the object at ffff8881100b4a00
 which belongs to the cache maple_node of size 256
The buggy address is located 228 bytes inside of
 freed 256-byte region [ffff8881100b4a00, ffff8881100b4b00)

The buggy address belongs to the physical page:
page: refcount:0 mapcount:0 mapping:0000000000000000 index:0xffff8881100b5e00 pfn:0x1100b4
head: order:1 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 ffff88801a493000 ffffea0004258690 ffffea00043ea690
raw: ffff8881100b5e00 000000000010000d 00000000f5000000 0000000000000000
head: 057ff00000000240 ffff88801a493000 ffffea0004258690 ffffea00043ea690
head: ffff8881100b5e00 000000000010000d 00000000f5000000 0000000000000000
head: 057ff00000000001 ffffea0004402d01 00000000ffffffff 00000000ffffffff
head: ffffffffffffffff 0000000000000000 00000000ffffffff 0000000000000002
page dumped because: kasan: bad access detected
page_owner tracks the page as allocated
page last allocated via order 1, migratetype Unmovable, gfp_mask 0xd20c0(__GFP_IO|__GFP_FS|__GFP_NOWARN|__GFP_NORETRY|__GFP_COMP|__GFP_NOMEMALLOC), pid 5775, tgid 5775 (rm), ts 41659898195, free_ts 40801848883
 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
 kmem_cache_alloc_bulk_noprof+0x20e/0x790
 mas_alloc_nodes+0x447/0x8e0
 mas_preallocate+0x3ad/0x6f0
 __split_vma+0x2fa/0xa00
 vms_gather_munmap_vmas+0x4ab/0x12b0
 mmap_region+0x678/0x1f30
 do_mmap+0xc45/0x10d0
 vm_mmap_pgoff+0x31b/0x4c0
 ksys_mmap_pgoff+0x51f/0x760
 do_syscall_64+0xfa/0x3b0
page last free pid 5754 tgid 5754 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
 kmem_cache_alloc_noprof+0x1c1/0x3c0
 getname_flags+0xb8/0x540
 vfs_fstatat+0x43/0x170
 __x64_sys_newfstatat+0x116/0x190
 do_syscall_64+0xfa/0x3b0
 entry_SYSCALL_64_after_hwframe+0x77/0x7f

Memory state around the buggy address:
 ffff8881100b4980: fc fc fc fc fc fc fc fc fc fc fc fc fc fc fc fc
 ffff8881100b4a00: fa fb fb fb fb fb fb fb fb fb fb fb fb fb fb fb
>ffff8881100b4a80: fb fb fb fb fb fb fb fb fb fb fb fb fb fb fb fb
                                                       ^
 ffff8881100b4b00: fc fc fc fc fc fc fc fc fc fc fc fc fc fc fc fc
 ffff8881100b4b80: fc fc fc fc fc fc fc fc fc fc fc fc fc fc fc fc
==================================================================
