IPVS: ftp: loaded support on port[0] = 21 Enabling of bearer rejected, already enabled IPVS: ftp: loaded support on port[0] = 21 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 ffff88808b766220 by task systemd-udevd/4097 CPU: 1 PID: 4097 Comm: systemd-udevd Not tainted 4.19.211-syzkaller #0 Hardware name: Google Google Compute Engine/Google Compute Engine, BIOS Google 07/22/2022 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:zap_pte_range mm/memory.c:1316 [inline] RIP: 0010:zap_pmd_range mm/memory.c:1463 [inline] RIP: 0010:zap_pud_range mm/memory.c:1492 [inline] RIP: 0010:zap_p4d_range mm/memory.c:1513 [inline] RIP: 0010:unmap_page_range+0xa99/0x2c50 mm/memory.c:1534 Code: 00 00 00 00 00 48 c1 e8 03 4c 01 f0 48 89 84 24 88 00 00 00 49 8d 87 00 f0 ff ff 48 89 44 24 70 e8 dc ee d6 ff 48 8b 44 24 30 <48> c1 e8 03 42 80 3c 30 00 0f 85 4d 1c 00 00 48 8b 44 24 30 31 ff RSP: 0018:ffff8880949cfa28 EFLAGS: 00000293 ORIG_RAX: ffffffffffffff13 RAX: ffff888099293d80 RBX: 00007f1908400000 RCX: ffffffff818b9c86 RDX: 0000000000000000 RSI: ffffffff818b9694 RDI: 0000000000000006 RBP: ffff888099293c70 R08: 0000000000000001 R09: 00007f1908400000 R10: 0000000000000006 R11: 0000000000000000 R12: 0000000000000000 R13: 0000000000000000 R14: dffffc0000000000 R15: 00007f19083b1000 unmap_single_vma+0x198/0x300 mm/memory.c:1579 unmap_vmas+0xa9/0x180 mm/memory.c:1609 exit_mmap+0x2b9/0x530 mm/mmap.c:3093 __mmput kernel/fork.c:1016 [inline] mmput+0x14e/0x4a0 kernel/fork.c:1037 exit_mm kernel/exit.c:549 [inline] do_exit+0xaec/0x2be0 kernel/exit.c:857 do_group_exit+0x125/0x310 kernel/exit.c:967 __do_sys_exit_group kernel/exit.c:978 [inline] __se_sys_exit_group kernel/exit.c:976 [inline] __x64_sys_exit_group+0x3a/0x50 kernel/exit.c:976 do_syscall_64+0xf9/0x620 arch/x86/entry/common.c:293 entry_SYSCALL_64_after_hwframe+0x49/0xbe RIP: 0033:0x7f190884c618 Code: Bad RIP value. RSP: 002b:00007ffc25dc2918 EFLAGS: 00000206 ORIG_RAX: 00000000000000e7 RAX: ffffffffffffffda RBX: 00007ffc25dc29e0 RCX: 00007f190884c618 RDX: 0000000000000000 RSI: 000000000000003c RDI: 0000000000000000 RBP: 00007ffc25dc2a90 R08: 00000000000000e7 R09: fffffffffffffe50 R10: 00000000ffffffff R11: 0000000000000206 R12: 0000000000000000 R13: 0000000000000000 R14: 0000000000000003 R15: 000000000000000e Allocated by task 4085: 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 8491: __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 ffff88808b766200 which belongs to the cache sock_inode_cache of size 992 The buggy address is located 32 bytes inside of 992-byte region [ffff88808b766200, ffff88808b7665e0) The buggy address belongs to the page: page:ffffea00022dd980 count:1 mapcount:0 mapping:ffff8880b5b8fc00 index:0xffff88808b766ffd flags: 0xfff00000000100(slab) raw: 00fff00000000100 ffffea0002580248 ffffea00028be348 ffff8880b5b8fc00 raw: ffff88808b766ffd ffff88808b766200 0000000100000003 0000000000000000 page dumped because: kasan: bad access detected Memory state around the buggy address: ffff88808b766100: fc fc fc fc fc fc fc fc fc fc fc fc fc fc fc fc ffff88808b766180: fc fc fc fc fc fc fc fc fc fc fc fc fc fc fc fc >ffff88808b766200: fb fb fb fb fb fb fb fb fb fb fb fb fb fb fb fb ^ ffff88808b766280: fb fb fb fb fb fb fb fb fb fb fb fb fb fb fb fb ffff88808b766300: fb fb fb fb fb fb fb fb fb fb fb fb fb fb fb fb ================================================================== ---------------- Code disassembly (best guess): 0: 00 00 add %al,(%rax) 2: 00 00 add %al,(%rax) 4: 00 48 c1 add %cl,-0x3f(%rax) 7: e8 03 4c 01 f0 callq 0xf0014c0f c: 48 89 84 24 88 00 00 mov %rax,0x88(%rsp) 13: 00 14: 49 8d 87 00 f0 ff ff lea -0x1000(%r15),%rax 1b: 48 89 44 24 70 mov %rax,0x70(%rsp) 20: e8 dc ee d6 ff callq 0xffd6ef01 25: 48 8b 44 24 30 mov 0x30(%rsp),%rax * 2a: 48 c1 e8 03 shr $0x3,%rax <-- trapping instruction 2e: 42 80 3c 30 00 cmpb $0x0,(%rax,%r14,1) 33: 0f 85 4d 1c 00 00 jne 0x1c86 39: 48 8b 44 24 30 mov 0x30(%rsp),%rax 3e: 31 ff xor %edi,%edi