================================================================== BUG: KASAN: use-after-free in msg_word net/tipc/msg.h:207 [inline] BUG: KASAN: use-after-free in msg_bits net/tipc/msg.h:217 [inline] BUG: KASAN: use-after-free in msg_type net/tipc/msg.h:390 [inline] BUG: KASAN: use-after-free in tipc_skb_dump+0x107b/0x1780 net/tipc/trace.c:70 Read of size 4 at addr ffff8881285010b4 by task syz.2.572/2712 CPU: 0 PID: 2712 Comm: syz.2.572 Not tainted syzkaller #0 Hardware name: Google Google Compute Engine/Google Compute Engine, BIOS Google 07/24/2026 Call Trace: __dump_stack+0x21/0x30 lib/dump_stack.c:88 dump_stack_lvl+0x110/0x170 lib/dump_stack.c:106 print_address_description+0x7f/0x2c0 mm/kasan/report.c:248 __kasan_report mm/kasan/report.c:427 [inline] kasan_report+0x10f/0x150 mm/kasan/report.c:444 __asan_report_load4_noabort+0x14/0x20 mm/kasan/report_generic.c:308 msg_word net/tipc/msg.h:207 [inline] msg_bits net/tipc/msg.h:217 [inline] msg_type net/tipc/msg.h:390 [inline] tipc_skb_dump+0x107b/0x1780 net/tipc/trace.c:70 tipc_list_dump+0x22b/0x2f0 net/tipc/trace.c:187 tipc_sk_dump+0xa12/0xfb0 net/tipc/socket.c:4008 perf_trace_tipc_sk_class+0x3cc/0x5e0 net/tipc/trace.h:205 trace_tipc_sk_rej_msg net/tipc/trace.h:230 [inline] tipc_sk_enqueue net/tipc/socket.c:2470 [inline] tipc_sk_rcv+0x292e/0x2ca0 net/tipc/socket.c:2502 tipc_node_xmit+0x36f/0xd80 net/tipc/node.c:1703 __tipc_sendstream+0xa6e/0x1190 net/tipc/socket.c:1629 tipc_sendstream+0x55/0x70 net/tipc/socket.c:1553 sock_sendmsg_nosec net/socket.c:704 [inline] __sock_sendmsg net/socket.c:716 [inline] ____sys_sendmsg+0x5be/0x8f0 net/socket.c:2436 ___sys_sendmsg+0x236/0x2e0 net/socket.c:2490 __sys_sendmsg net/socket.c:2519 [inline] __do_sys_sendmsg net/socket.c:2528 [inline] __se_sys_sendmsg net/socket.c:2526 [inline] __x64_sys_sendmsg+0x201/0x2d0 net/socket.c:2526 x64_sys_call+0x4b/0x9a0 arch/x86/include/generated/asm/syscalls_64.h:47 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:0x7f26f9833159 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:00007f26f826b028 EFLAGS: 00000246 ORIG_RAX: 000000000000002e RAX: ffffffffffffffda RBX: 00007f26f9abb090 RCX: 00007f26f9833159 RDX: 0000000000000000 RSI: 0000200000000e40 RDI: 0000000000000006 RBP: 00007f26f98ca03b R08: 0000000000000000 R09: 0000000000000000 R10: 0000000000000000 R11: 0000000000000246 R12: 0000000000000000 R13: 00007f26f9abb128 R14: 00007f26f9abb090 R15: 00007ffd7113ea08 Allocated by task 2711: kasan_save_stack mm/kasan/common.c:38 [inline] kasan_set_track mm/kasan/common.c:45 [inline] set_alloc_info mm/kasan/common.c:433 [inline] ____kasan_kmalloc mm/kasan/common.c:512 [inline] __kasan_kmalloc+0xd4/0x100 mm/kasan/common.c:521 kasan_kmalloc include/linux/kasan.h:227 [inline] __kmalloc_track_caller+0x13c/0x2c0 mm/slub.c:4959 kmalloc_reserve net/core/skbuff.c:357 [inline] __alloc_skb+0x210/0x730 net/core/skbuff.c:428 alloc_skb_fclone include/linux/skbuff.h:1233 [inline] tipc_buf_acquire net/tipc/msg.c:72 [inline] tipc_msg_build+0xce/0xf30 net/tipc/msg.c:402 __tipc_sendstream+0x8f3/0x1190 net/tipc/socket.c:1622 tipc_sendstream+0x55/0x70 net/tipc/socket.c:1553 sock_sendmsg_nosec net/socket.c:704 [inline] __sock_sendmsg net/socket.c:716 [inline] ____sys_sendmsg+0x5be/0x8f0 net/socket.c:2436 ___sys_sendmsg+0x236/0x2e0 net/socket.c:2490 __sys_sendmsg net/socket.c:2519 [inline] __do_sys_sendmsg net/socket.c:2528 [inline] __se_sys_sendmsg net/socket.c:2526 [inline] __x64_sys_sendmsg+0x201/0x2d0 net/socket.c:2526 x64_sys_call+0x4b/0x9a0 arch/x86/include/generated/asm/syscalls_64.h:47 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 Freed by task 2713: kasan_save_stack mm/kasan/common.c:38 [inline] kasan_set_track+0x4a/0x70 mm/kasan/common.c:45 kasan_set_free_info+0x23/0x40 mm/kasan/generic.c:370 ____kasan_slab_free+0x125/0x160 mm/kasan/common.c:365 __kasan_slab_free+0x11/0x20 mm/kasan/common.c:373 kasan_slab_free include/linux/kasan.h:193 [inline] slab_free_hook mm/slub.c:1728 [inline] slab_free_freelist_hook+0xc2/0x190 mm/slub.c:1754 slab_free mm/slub.c:3526 [inline] kfree+0xc4/0x270 mm/slub.c:4588 skb_free_head net/core/skbuff.c:656 [inline] skb_release_data+0x7bd/0xa20 net/core/skbuff.c:678 skb_release_all net/core/skbuff.c:743 [inline] __kfree_skb net/core/skbuff.c:757 [inline] kfree_skb_reason net/core/skbuff.c:778 [inline] kfree_skb+0xb9/0x2f0 net/core/skbuff.c:792 tsk_advance_rx_queue+0x10f/0x240 net/tipc/socket.c:281 tipc_recvstream+0x881/0xe70 net/tipc/socket.c:2057 ____sys_recvmsg+0x2ca/0x5b0 net/socket.c:-1 ___sys_recvmsg+0x213/0x5c0 net/socket.c:2697 __sys_recvmsg net/socket.c:2727 [inline] __do_sys_recvmsg net/socket.c:2737 [inline] __se_sys_recvmsg net/socket.c:2734 [inline] __x64_sys_recvmsg+0x1fe/0x2d0 net/socket.c:2734 x64_sys_call+0x705/0x9a0 arch/x86/include/generated/asm/syscalls_64.h:48 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 ffff888128501000 which belongs to the cache kmalloc-1k of size 1024 The buggy address is located 180 bytes inside of 1024-byte region [ffff888128501000, ffff888128501400) The buggy address belongs to the page: page:ffffea0004a14000 refcount:1 mapcount:0 mapping:0000000000000000 index:0x0 pfn:0x128500 head:ffffea0004a14000 order:3 compound_mapcount:0 compound_pincount:0 flags: 0x4000000000010200(slab|head|zone=1) raw: 4000000000010200 ffffea00049e6e00 0000000200000002 ffff888100043080 raw: 0000000000000000 0000000000100010 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 289, ts 23846032175, free_ts 0 set_page_owner include/linux/page_owner.h:33 [inline] post_alloc_hook+0x192/0x1b0 mm/page_alloc.c:2607 prep_new_page+0x1c/0x110 mm/page_alloc.c:2613 get_page_from_freelist+0x2c3a/0x2cd0 mm/page_alloc.c:4487 __alloc_pages+0x1a2/0x460 mm/page_alloc.c:5824 alloc_slab_page mm/slub.c:-1 [inline] allocate_slab mm/slub.c:1937 [inline] new_slab+0xa0/0x4d0 mm/slub.c:2000 ___slab_alloc+0x3ac/0x840 mm/slub.c:3033 __slab_alloc+0x49/0x90 mm/slub.c:3120 slab_alloc_node mm/slub.c:3211 [inline] slab_alloc mm/slub.c:3255 [inline] __kmalloc_track_caller+0x169/0x2c0 mm/slub.c:4954 kmalloc_reserve net/core/skbuff.c:357 [inline] __alloc_skb+0x210/0x730 net/core/skbuff.c:428 alloc_skb include/linux/skbuff.h:1183 [inline] alloc_uevent_skb+0x85/0x240 lib/kobject_uevent.c:290 uevent_net_broadcast_tagged lib/kobject_uevent.c:351 [inline] kobject_uevent_net_broadcast+0x1a6/0x5a0 lib/kobject_uevent.c:412 kobject_uevent_env+0x52b/0x700 lib/kobject_uevent.c:608 kobject_uevent+0x1d/0x30 lib/kobject_uevent.c:657 device_add+0x9fe/0xe90 drivers/base/core.c:3403 netdev_register_kobject+0x18e/0x330 net/core/net-sysfs.c:2014 register_netdevice+0xeaa/0x1490 net/core/dev.c:10431 page_owner free stack trace missing Memory state around the buggy address: ffff888128500f80: fc fc fc fc fc fc fc fc fc fc fc fc fc fc fc fc ffff888128501000: fa fb fb fb fb fb fb fb fb fb fb fb fb fb fb fb >ffff888128501080: fb fb fb fb fb fb fb fb fb fb fb fb fb fb fb fb ^ ffff888128501100: fb fb fb fb fb fb fb fb fb fb fb fb fb fb fb fb ffff888128501180: fb fb fb fb fb fb fb fb fb fb fb fb fb fb fb fb ==================================================================