__nla_validate_parse: 18 callbacks suppressed
netlink: 4 bytes leftover after parsing attributes in process `syz.2.1727'.
==================================================================
BUG: KFENCE: use-after-free read in xfrm_alloc_spi+0x3b9/0xf30

Use-after-free read at 0xffff888136502cc4 (in kfence-#128):
 xfrm_alloc_spi+0x3b9/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

kfence-#128: 0xffff888136502000-0xffff88813650257f, size=1408, cache=sock_inode_cache

allocated by task 11819 on cpu 0 at 182.162991s (5.566653s ago):
 sock_alloc_inode+0x28/0xc0
 alloc_inode+0x6a/0x1b0
 __sock_create+0x12d/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 11828 on cpu 1 at 182.221683s (5.522474s ago):
 rcu_core+0xcab/0x1770
 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
 stack_trace_consume_entry+0x0/0x280
 arch_stack_walk+0x110/0x150
 stack_trace_save+0x9c/0xe0
 save_stack+0xf5/0x1f0
 __set_page_owner+0x8d/0x4a0
 post_alloc_hook+0x240/0x2a0
 get_page_from_freelist+0x21e4/0x22c0
 __alloc_frozen_pages_noprof+0x181/0x370
 alloc_pages_mpol+0x232/0x4a0
 vma_alloc_folio_noprof+0xe4/0x200
 folio_prealloc+0x30/0x180
 __handle_mm_fault+0x16fd/0x5440
 handle_mm_fault+0x40a/0x8e0
 do_user_addr_fault+0x764/0x1390
 exc_page_fault+0x76/0xf0
 asm_exc_page_fault+0x26/0x30
 rep_stos_alternative+0x40/0x80
 elf_load+0x4d2/0x6c0
 load_elf_binary+0x1079/0x2740
 bprm_execve+0x99c/0x1450
 kernel_execve+0x8f0/0x9f0
 call_usermodehelper_exec_async+0x210/0x360
 ret_from_fork+0x3fc/0x770
 ret_from_fork_asm+0x1a/0x30

CPU: 1 UID: 0 PID: 12271 Comm: syz.2.1727 Not tainted syzkaller #0 PREEMPT(full) 
Hardware name: QEMU Standard PC (Q35 + ICH9, 2009), BIOS 1.16.2-debian-1.16.2-1 04/01/2014
RIP: 0010:xfrm_alloc_spi+0x3b9/0xf30
Code: c1 08 c1 74 0a e8 47 b9 9d f7 e9 14 02 00 00 49 8d 9d c4 00 00 00 48 89 d8 48 c1 e8 03 42 0f b6 04 20 84 c0 0f 85 9f 01 00 00 <8b> 1b 89 df 44 89 f6 e8 db ba 9d f7 44 39 f3 0f 85 df 00 00 00 49
RSP: 0018:ffffc90006b970e0 EFLAGS: 00010246
RAX: 0000000000000000 RBX: ffff888136502cc4 RCX: 0000000000080000
RDX: ffffc90003832000 RSI: 00000000000001a3 RDI: 00000000000001a4
RBP: ffffc90006b97230 R08: 0000000000000000 R09: 0000000000000000
R10: dffffc0000000000 R11: fffff52000d72e0c R12: dffffc0000000000
R13: ffff888136502c00 R14: 0000000005000000 R15: ffffc90006b976a0
FS:  00007f330096d6c0(0000) GS:ffff8881a3c1a000(0000) knlGS:0000000000000000
CS:  0010 DS: 0000 ES: 0000 CR0: 0000000080050033
CR2: ffff888136502cc4 CR3: 0000000040fe6000 CR4: 00000000000006f0
Call Trace:
 <TASK>
 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:0x7f32ffb8ebe9
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:00007f330096d038 EFLAGS: 00000246 ORIG_RAX: 000000000000002e
RAX: ffffffffffffffda RBX: 00007f32ffdb5fa0 RCX: 00007f32ffb8ebe9
RDX: 0000000004000080 RSI: 0000200000000540 RDI: 0000000000000006
RBP: 00007f32ffc11e19 R08: 0000000000000000 R09: 0000000000000000
R10: 0000000000000000 R11: 0000000000000246 R12: 0000000000000000
R13: 00007f32ffdb6038 R14: 00007f32ffdb5fa0 R15: 00007ffc0e4fad48
 </TASK>
==================================================================
