================================================================== BUG: KASAN: slab-out-of-bounds in xfrm_policy_inexact_list_reinsert+0x5a3/0x650 net/xfrm/xfrm_policy.c:877 Read of size 1 at addr ffff88814771f608 by task syz.0.35/4403 CPU: 0 PID: 4403 Comm: syz.0.35 Not tainted syzkaller #0 Hardware name: Google Google Compute Engine/Google Compute Engine, BIOS Google 09/16/2026 Call Trace: dump_stack_lvl+0x188/0x250 lib/dump_stack.c:106 print_address_description+0x60/0x2d0 mm/kasan/report.c:248 __kasan_report mm/kasan/report.c:434 [inline] kasan_report+0xdf/0x130 mm/kasan/report.c:451 xfrm_policy_inexact_list_reinsert+0x5a3/0x650 net/xfrm/xfrm_policy.c:877 xfrm_policy_inexact_node_merge net/xfrm/xfrm_policy.c:1009 [inline] xfrm_policy_inexact_insert_node+0x95f/0xb70 net/xfrm/xfrm_policy.c:1065 xfrm_policy_inexact_alloc_chain+0x7a2/0xe70 net/xfrm/xfrm_policy.c:1172 xfrm_policy_inexact_insert+0xd7/0x12d0 net/xfrm/xfrm_policy.c:1215 xfrm_policy_insert+0x10f/0x940 net/xfrm/xfrm_policy.c:1599 xfrm_add_policy+0x4ef/0x8b0 net/xfrm/xfrm_user.c:1894 xfrm_user_rcv_msg+0x7fc/0xaa0 net/xfrm/xfrm_user.c:3047 netlink_rcv_skb+0x1e9/0x430 net/netlink/af_netlink.c:2519 xfrm_netlink_rcv+0x75/0x90 net/xfrm/xfrm_user.c:3069 netlink_unicast_kernel net/netlink/af_netlink.c:1314 [inline] netlink_unicast+0x78f/0x940 net/netlink/af_netlink.c:1340 netlink_sendmsg+0x8ba/0xbe0 net/netlink/af_netlink.c:1919 sock_sendmsg_nosec net/socket.c:706 [inline] __sock_sendmsg net/socket.c:718 [inline] ____sys_sendmsg+0x5be/0x8f0 net/socket.c:2446 ___sys_sendmsg+0x236/0x2e0 net/socket.c:2500 __sys_sendmsg net/socket.c:2529 [inline] __do_sys_sendmsg net/socket.c:2538 [inline] __se_sys_sendmsg+0x1b7/0x2a0 net/socket.c:2536 do_syscall_x64 arch/x86/entry/common.c:50 [inline] do_syscall_64+0x4c/0xa0 arch/x86/entry/common.c:80 entry_SYSCALL_64_after_hwframe+0x66/0xd0 RIP: 0033:0x7f6cb051d559 Code: ff c3 66 2e 0f 1f 84 00 00 00 00 00 0f 1f 44 00 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 e8 ff ff ff f7 d8 64 89 01 48 RSP: 002b:00007f6cae774028 EFLAGS: 00000246 ORIG_RAX: 000000000000002e RAX: ffffffffffffffda RBX: 00007f6cb07a3fa0 RCX: 00007f6cb051d559 RDX: 0000000000000000 RSI: 0000200000000580 RDI: 0000000000000006 RBP: 00007f6cb05b4b20 R08: 0000000000000000 R09: 0000000000000000 R10: 0000000000000000 R11: 0000000000000246 R12: 0000000000000000 R13: 00007f6cb07a4038 R14: 00007f6cb07a3fa0 R15: 00007ffd6ab6c978 Allocated by task 4403: kasan_save_stack mm/kasan/common.c:38 [inline] kasan_set_track mm/kasan/common.c:46 [inline] set_alloc_info mm/kasan/common.c:434 [inline] ____kasan_kmalloc mm/kasan/common.c:513 [inline] __kasan_kmalloc+0xaf/0xe0 mm/kasan/common.c:522 kmalloc include/linux/slab.h:612 [inline] sk_prot_alloc+0xe7/0x210 net/core/sock.c:1865 sk_alloc+0x2f/0x310 net/core/sock.c:1921 pfkey_create+0xd8/0x560 net/key/af_key.c:152 __sock_create+0x473/0x910 net/socket.c:1496 sock_create net/socket.c:1552 [inline] __sys_socket+0xe2/0x170 net/socket.c:1594 __do_sys_socket net/socket.c:1603 [inline] __se_sys_socket net/socket.c:1601 [inline] __x64_sys_socket+0x76/0x80 net/socket.c:1601 do_syscall_x64 arch/x86/entry/common.c:50 [inline] do_syscall_64+0x4c/0xa0 arch/x86/entry/common.c:80 entry_SYSCALL_64_after_hwframe+0x66/0xd0 The buggy address belongs to the object at ffff88814771f000 which belongs to the cache kmalloc-2k of size 2048 The buggy address is located 1544 bytes inside of 2048-byte region [ffff88814771f000, ffff88814771f800) The buggy address belongs to the page: page:ffffea00051dc600 refcount:1 mapcount:0 mapping:0000000000000000 index:0x0 pfn:0x147718 head:ffffea00051dc600 order:3 compound_mapcount:0 compound_pincount:0 flags: 0x57ff00000010200(slab|head|node=1|zone=2|lastcpupid=0x7ff) raw: 057ff00000010200 ffffea000505ea00 0000000300000003 ffff888017842000 raw: 0000000000000000 0000000000080008 00000001ffffffff 0000000000000000 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 1, ts 5777486494, free_ts 0 prep_new_page mm/page_alloc.c:2426 [inline] get_page_from_freelist+0x24f6/0x2670 mm/page_alloc.c:4192 __alloc_pages+0x1ee/0x480 mm/page_alloc.c:5501 alloc_page_interleave+0x24/0x1e0 mm/mempolicy.c:2031 alloc_slab_page mm/slub.c:1780 [inline] allocate_slab mm/slub.c:1917 [inline] new_slab+0xc0/0x4b0 mm/slub.c:1980 ___slab_alloc+0x807/0xdd0 mm/slub.c:3013 __slab_alloc mm/slub.c:3100 [inline] slab_alloc_node mm/slub.c:3191 [inline] slab_alloc mm/slub.c:3233 [inline] kmem_cache_alloc_trace+0xf9/0x290 mm/slub.c:3250 kmalloc include/linux/slab.h:607 [inline] kzalloc include/linux/slab.h:738 [inline] acpi_os_allocate_zeroed include/acpi/platform/aclinuxex.h:57 [inline] acpi_ds_create_walk_state+0xe2/0x270 drivers/acpi/acpica/dswstate.c:518 acpi_ps_execute_method+0x21d/0x7a0 drivers/acpi/acpica/psxface.c:134 acpi_ns_evaluate+0x661/0xa30 drivers/acpi/acpica/nseval.c:205 acpi_evaluate_object+0x588/0xa60 drivers/acpi/acpica/nsxfeval.c:354 acpi_evaluate_integer+0x10f/0x280 drivers/acpi/utils.c:260 acpi_bus_get_status_handle drivers/acpi/bus.c:83 [inline] acpi_bus_get_status+0x153/0x2f0 drivers/acpi/bus.c:112 acpi_serdev_check_resources drivers/tty/serdev/core.c:645 [inline] acpi_serdev_add_device+0x1bd/0x700 drivers/tty/serdev/core.c:720 acpi_ns_walk_namespace+0x21f/0x6a0 drivers/acpi/acpica/nswalk.c:-1 acpi_walk_namespace+0xe4/0x120 drivers/acpi/acpica/nsxfeval.c:606 acpi_serdev_register_devices drivers/tty/serdev/core.c:734 [inline] serdev_controller_add+0x3b8/0x530 drivers/tty/serdev/core.c:774 page_owner free stack trace missing Memory state around the buggy address: ffff88814771f500: 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 ffff88814771f580: 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 fc >ffff88814771f600: fc fc fc fc fc fc fc fc fc fc fc fc fc fc fc fc ^ ffff88814771f680: fc fc fc fc fc fc fc fc fc fc fc fc fc fc fc fc ffff88814771f700: fc fc fc fc fc fc fc fc fc fc fc fc fc fc fc fc ==================================================================