Enabled bearer , priority 10 netlink: 8 bytes leftover after parsing attributes in process `syz-executor.1'. new mount options do not match the existing superblock, will be ignored Disabling bearer ================================================================== BUG: KASAN: use-after-free in tipc_udp_xmit+0xa7d/0xc10 net/tipc/udp_media.c:200 Read of size 8 at addr ffff888051c89aa0 by task syz-executor.2/27500 CPU: 1 PID: 27500 Comm: syz-executor.2 Not tainted 4.19.211-syzkaller #0 Hardware name: Google Google Compute Engine/Google Compute Engine, BIOS Google 01/01/2011 Call Trace: __dump_stack lib/dump_stack.c:77 [inline] dump_stack+0x1fc/0x2ef lib/dump_stack.c:118 print_address_description.cold+0x54/0x219 mm/kasan/report.c:256 kasan_report_error.cold+0x8a/0x1b9 mm/kasan/report.c:354 kasan_report mm/kasan/report.c:412 [inline] __asan_report_load8_noabort+0x88/0x90 mm/kasan/report.c:433 tipc_udp_xmit+0xa7d/0xc10 net/tipc/udp_media.c:200 tipc_udp_send_msg+0x279/0x490 net/tipc/udp_media.c:248 tipc_bearer_xmit_skb+0x15b/0x330 net/tipc/bearer.c:518 tipc_disc_timeout+0x855/0xc90 net/tipc/discover.c:332 call_timer_fn+0x177/0x700 kernel/time/timer.c:1338 expire_timers+0x243/0x4e0 kernel/time/timer.c:1375 __run_timers kernel/time/timer.c:1696 [inline] run_timer_softirq+0x21c/0x670 kernel/time/timer.c:1709 __do_softirq+0x265/0x980 kernel/softirq.c:292 invoke_softirq kernel/softirq.c:372 [inline] irq_exit+0x215/0x260 kernel/softirq.c:412 exiting_irq arch/x86/include/asm/apic.h:536 [inline] smp_apic_timer_interrupt+0x136/0x550 arch/x86/kernel/apic/apic.c:1098 apic_timer_interrupt+0xf/0x20 arch/x86/entry/entry_64.S:894 RIP: 0010:unwind_next_frame+0x9f2/0x1400 arch/x86/kernel/unwind_orc.c:500 Code: cc 02 00 00 80 3d a9 51 fd 09 00 0f 85 9d fa ff ff e9 c9 11 c9 06 48 8b 44 24 68 4c 89 e2 4c 89 f7 4c 89 44 24 30 48 8d 70 f8 <48> 89 44 24 28 e8 34 f4 ff ff 84 c0 0f 84 72 fa ff ff 48 b8 00 00 RSP: 0018:ffff88804d546b68 EFLAGS: 00000246 ORIG_RAX: ffffffffffffff13 RAX: ffff88804d547778 RBX: 1ffff11009aa8d76 RCX: ffff88804d547748 RDX: ffff88804d546ce0 RSI: ffff88804d547770 RDI: ffff88804d546c98 RBP: 0000000000000001 R08: ffffffff8bfc2378 R09: ffffffff8bfc2350 R10: ffff88804d546cf7 R11: 0000000000074071 R12: ffff88804d546ce0 R13: ffff88804d546ccd R14: ffff88804d546c98 R15: ffffffff8bfc2374 __save_stack_trace+0x9f/0x190 arch/x86/kernel/stacktrace.c:44 save_stack mm/kasan/kasan.c:448 [inline] set_track mm/kasan/kasan.c:460 [inline] kasan_kmalloc+0xeb/0x160 mm/kasan/kasan.c:553 slab_post_alloc_hook mm/slab.h:445 [inline] slab_alloc_node mm/slab.c:3340 [inline] kmem_cache_alloc_node+0x133/0x3b0 mm/slab.c:3647 __alloc_skb+0x71/0x560 net/core/skbuff.c:193 alloc_skb include/linux/skbuff.h:995 [inline] nlmsg_new include/net/netlink.h:511 [inline] xfrm_send_acquire+0x16f/0xac0 net/xfrm/xfrm_user.c:2970 km_query+0xc5/0x210 net/xfrm/xfrm_state.c:2023 xfrm_state_find+0x1d21/0x2d90 net/xfrm/xfrm_state.c:1042 xfrm_tmpl_resolve_one net/xfrm/xfrm_policy.c:1410 [inline] xfrm_tmpl_resolve+0x2f3/0xc20 net/xfrm/xfrm_policy.c:1455 xfrm_resolve_and_create_bundle+0xd8/0x3e0 net/xfrm/xfrm_policy.c:1753 xfrm_lookup_with_ifid+0x232/0x1c40 net/xfrm/xfrm_policy.c:2076 xfrm_lookup net/xfrm/xfrm_policy.c:2200 [inline] xfrm_lookup_route+0x36/0x1e0 net/xfrm/xfrm_policy.c:2211 ip_route_output_flow+0x114/0x150 net/ipv4/route.c:2661 udp_sendmsg+0x19ce/0x2550 net/ipv4/udp.c:1101 inet_sendmsg+0x132/0x5a0 net/ipv4/af_inet.c:798 sock_sendmsg_nosec net/socket.c:651 [inline] sock_sendmsg+0xc3/0x120 net/socket.c:661 ___sys_sendmsg+0x3b3/0x8e0 net/socket.c:2227 __sys_sendmmsg+0x195/0x470 net/socket.c:2322 __do_sys_sendmmsg net/socket.c:2351 [inline] __se_sys_sendmmsg net/socket.c:2348 [inline] __x64_sys_sendmmsg+0x99/0x100 net/socket.c:2348 do_syscall_64+0xf9/0x620 arch/x86/entry/common.c:293 entry_SYSCALL_64_after_hwframe+0x49/0xbe RIP: 0033:0x7f29405ddfe9 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 bc ff ff ff f7 d8 64 89 01 48 RSP: 002b:00007f293ef32168 EFLAGS: 00000246 ORIG_RAX: 0000000000000133 RAX: ffffffffffffffda RBX: 00007f29406f1030 RCX: 00007f29405ddfe9 RDX: 000000000800001d RSI: 0000000020007fc0 RDI: 0000000000000005 RBP: 00007f294063808d R08: 0000000000000000 R09: 0000000000000000 R10: 0000000000000010 R11: 0000000000000246 R12: 0000000000000000 R13: 00007ffebe593f6f R14: 00007f293ef32300 R15: 0000000000022000 Allocated by task 27494: kmem_cache_alloc+0x122/0x370 mm/slab.c:3559 sock_alloc_inode+0x19/0x250 net/socket.c:244 alloc_inode+0x5d/0x180 fs/inode.c:211 new_inode_pseudo+0x14/0xe0 fs/inode.c:911 sock_alloc+0x3c/0x260 net/socket.c:567 __sock_create+0xba/0x740 net/socket.c:1329 udp_sock_create6+0xd1/0x550 net/ipv6/ip6_udp_tunnel.c:22 udp_sock_create include/net/udp_tunnel.h:61 [inline] tipc_udp_enable+0xb48/0x14d0 net/tipc/udp_media.c:734 tipc_enable_bearer+0x70f/0xbe0 net/tipc/bearer.c:317 __tipc_nl_bearer_enable+0x2e2/0x3d0 net/tipc/bearer.c:916 tipc_nl_bearer_enable+0x1e/0x30 net/tipc/bearer.c:925 genl_family_rcv_msg+0x642/0xc40 net/netlink/genetlink.c:602 genl_rcv_msg+0xbf/0x160 net/netlink/genetlink.c:627 netlink_rcv_skb+0x160/0x440 net/netlink/af_netlink.c:2463 genl_rcv+0x24/0x40 net/netlink/genetlink.c:638 netlink_unicast_kernel net/netlink/af_netlink.c:1325 [inline] netlink_unicast+0x4d5/0x690 net/netlink/af_netlink.c:1351 netlink_sendmsg+0x6c3/0xc50 net/netlink/af_netlink.c:1917 sock_sendmsg_nosec net/socket.c:651 [inline] sock_sendmsg+0xc3/0x120 net/socket.c:661 ___sys_sendmsg+0x7bb/0x8e0 net/socket.c:2227 __sys_sendmsg net/socket.c:2265 [inline] __do_sys_sendmsg net/socket.c:2274 [inline] __se_sys_sendmsg net/socket.c:2272 [inline] __x64_sys_sendmsg+0x132/0x220 net/socket.c:2272 do_syscall_64+0xf9/0x620 arch/x86/entry/common.c:293 entry_SYSCALL_64_after_hwframe+0x49/0xbe Freed by task 12294: __cache_free mm/slab.c:3503 [inline] kmem_cache_free+0x7f/0x260 mm/slab.c:3765 destroy_inode+0xb9/0x110 fs/inode.c:268 iput_final fs/inode.c:1555 [inline] iput+0x4f1/0x860 fs/inode.c:1581 __sock_release net/socket.c:611 [inline] sock_release+0x174/0x1d0 net/socket.c:619 cleanup_bearer+0x1bb/0x280 net/tipc/udp_media.c:775 process_one_work+0x864/0x1570 kernel/workqueue.c:2153 worker_thread+0x64c/0x1130 kernel/workqueue.c:2296 kthread+0x33f/0x460 kernel/kthread.c:259 ret_from_fork+0x24/0x30 arch/x86/entry/entry_64.S:415 The buggy address belongs to the object at ffff888051c89a80 which belongs to the cache sock_inode_cache of size 992 The buggy address is located 32 bytes inside of 992-byte region [ffff888051c89a80, ffff888051c89e60) The buggy address belongs to the page: page:ffffea0001472240 count:1 mapcount:0 mapping:ffff8880b5b95a80 index:0xffff888051c89ffd flags: 0xfff00000000100(slab) raw: 00fff00000000100 ffffea0001230dc8 ffffea00022d71c8 ffff8880b5b95a80 raw: ffff888051c89ffd ffff888051c89180 0000000100000003 0000000000000000 page dumped because: kasan: bad access detected Memory state around the buggy address: ffff888051c89980: 00 00 00 00 00 00 00 00 00 00 00 00 fc fc fc fc ffff888051c89a00: fc fc fc fc fc fc fc fc fc fc fc fc fc fc fc fc >ffff888051c89a80: fb fb fb fb fb fb fb fb fb fb fb fb fb fb fb fb ^ ffff888051c89b00: fb fb fb fb fb fb fb fb fb fb fb fb fb fb fb fb ffff888051c89b80: fb fb fb fb fb fb fb fb fb fb fb fb fb fb fb fb ================================================================== ---------------- Code disassembly (best guess): 0: cc int3 1: 02 00 add (%rax),%al 3: 00 80 3d a9 51 fd add %al,-0x2ae56c3(%rax) 9: 09 00 or %eax,(%rax) b: 0f 85 9d fa ff ff jne 0xfffffaae 11: e9 c9 11 c9 06 jmpq 0x6c911df 16: 48 8b 44 24 68 mov 0x68(%rsp),%rax 1b: 4c 89 e2 mov %r12,%rdx 1e: 4c 89 f7 mov %r14,%rdi 21: 4c 89 44 24 30 mov %r8,0x30(%rsp) 26: 48 8d 70 f8 lea -0x8(%rax),%rsi * 2a: 48 89 44 24 28 mov %rax,0x28(%rsp) <-- trapping instruction 2f: e8 34 f4 ff ff callq 0xfffff468 34: 84 c0 test %al,%al 36: 0f 84 72 fa ff ff je 0xfffffaae 3c: 48 rex.W 3d: b8 .byte 0xb8