New replicast peer: fe80:0000:0000:0000:0000:0000:0000:0000 Enabled bearer , priority 10 Disabling bearer ================================================================== BUG: KASAN: use-after-free in tipc_udp_xmit+0x96b/0xc10 net/tipc/udp_media.c:193 Read of size 8 at addr ffff88808b5129e0 by task syz-executor.3/15529 CPU: 0 PID: 15529 Comm: syz-executor.3 Not tainted 4.19.204-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+0x96b/0xc10 net/tipc/udp_media.c:193 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:arch_local_irq_restore arch/x86/include/asm/paravirt.h:789 [inline] RIP: 0010:__raw_spin_unlock_irqrestore include/linux/spinlock_api_smp.h:160 [inline] RIP: 0010:_raw_spin_unlock_irqrestore+0xa3/0xe0 kernel/locking/spinlock.c:184 Code: 48 c7 c0 c8 82 f1 89 48 ba 00 00 00 00 00 fc ff df 48 c1 e8 03 80 3c 10 00 75 2f 48 83 3d dc 65 d8 01 00 74 15 48 89 df 57 9d <0f> 1f 44 00 00 eb b2 e8 1b 20 e7 f8 eb c0 0f 0b 0f 0b 48 c7 c7 c8 RSP: 0018:ffff888038087a10 EFLAGS: 00000282 ORIG_RAX: ffffffffffffff13 RAX: 1ffffffff13e3059 RBX: 0000000000000282 RCX: 0000000000000000 RDX: dffffc0000000000 RSI: 0000000000000001 RDI: 0000000000000282 RBP: ffff88803d936888 R08: 0000000000000000 R09: 0000000000000000 R10: 0000000000000000 R11: 0000000000000000 R12: 0000000000000000 R13: ffff8880ba02b040 R14: ffff88803d9360c0 R15: ffff88803d936888 try_to_wake_up+0x733/0x1050 kernel/sched/core.c:2056 wake_up_process kernel/sched/core.c:2124 [inline] wake_up_q+0x82/0xe0 kernel/sched/core.c:442 futex_wake+0x3e3/0x480 kernel/futex.c:1706 do_futex+0x2ca/0x1880 kernel/futex.c:3894 __do_sys_futex kernel/futex.c:3950 [inline] __se_sys_futex+0x28f/0x3b0 kernel/futex.c:3918 do_syscall_64+0xf9/0x620 arch/x86/entry/common.c:293 entry_SYSCALL_64_after_hwframe+0x49/0xbe RIP: 0033:0x4665e9 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:00007f8e6e9f0218 EFLAGS: 00000246 ORIG_RAX: 00000000000000ca RAX: ffffffffffffffda RBX: 000000000056bf88 RCX: 00000000004665e9 RDX: 00000000000f4240 RSI: 0000000000000081 RDI: 000000000056bf8c RBP: 000000000056bf80 R08: 0000000000000016 R09: 0000000000000000 R10: ffffffffffffffff R11: 0000000000000246 R12: 000000000056bf8c R13: 00007ffcbf6bb96f R14: 00007f8e6e9f0300 R15: 0000000000022000 Allocated by task 15502: 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:1327 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:2457 genl_rcv+0x24/0x40 net/netlink/genetlink.c:638 netlink_unicast_kernel net/netlink/af_netlink.c:1320 [inline] netlink_unicast+0x4d5/0x690 net/netlink/af_netlink.c:1346 netlink_sendmsg+0x6bb/0xc40 net/netlink/af_netlink.c:1911 sock_sendmsg_nosec net/socket.c:651 [inline] sock_sendmsg+0xc3/0x120 net/socket.c:661 ___sys_sendmsg+0x7bb/0x8e0 net/socket.c:2225 __sys_sendmsg net/socket.c:2263 [inline] __do_sys_sendmsg net/socket.c:2272 [inline] __se_sys_sendmsg net/socket.c:2270 [inline] __x64_sys_sendmsg+0x132/0x220 net/socket.c:2270 do_syscall_64+0xf9/0x620 arch/x86/entry/common.c:293 entry_SYSCALL_64_after_hwframe+0x49/0xbe Freed by task 9307: __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 ffff88808b5129c0 which belongs to the cache sock_inode_cache of size 992 The buggy address is located 32 bytes inside of 992-byte region [ffff88808b5129c0, ffff88808b512da0) The buggy address belongs to the page: page:ffffea00022d4480 count:1 mapcount:0 mapping:ffff8880b5b8fc00 index:0xffff88808b512ffd flags: 0xfff00000000100(slab) raw: 00fff00000000100 ffffea00022d4148 ffffea00022d4888 ffff8880b5b8fc00 raw: ffff88808b512ffd ffff88808b5120c0 0000000100000003 0000000000000000 page dumped because: kasan: bad access detected Memory state around the buggy address: ffff88808b512880: 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 ffff88808b512900: 00 00 00 00 fc fc fc fc fc fc fc fc fc fc fc fc >ffff88808b512980: fc fc fc fc fc fc fc fc fb fb fb fb fb fb fb fb ^ ffff88808b512a00: fb fb fb fb fb fb fb fb fb fb fb fb fb fb fb fb ffff88808b512a80: fb fb fb fb fb fb fb fb fb fb fb fb fb fb fb fb ================================================================== ---------------- Code disassembly (best guess): 0: 48 c7 c0 c8 82 f1 89 mov $0xffffffff89f182c8,%rax 7: 48 ba 00 00 00 00 00 movabs $0xdffffc0000000000,%rdx e: fc ff df 11: 48 c1 e8 03 shr $0x3,%rax 15: 80 3c 10 00 cmpb $0x0,(%rax,%rdx,1) 19: 75 2f jne 0x4a 1b: 48 83 3d dc 65 d8 01 cmpq $0x0,0x1d865dc(%rip) # 0x1d865ff 22: 00 23: 74 15 je 0x3a 25: 48 89 df mov %rbx,%rdi 28: 57 push %rdi 29: 9d popfq * 2a: 0f 1f 44 00 00 nopl 0x0(%rax,%rax,1) <-- trapping instruction 2f: eb b2 jmp 0xffffffe3 31: e8 1b 20 e7 f8 callq 0xf8e72051 36: eb c0 jmp 0xfffffff8 38: 0f 0b ud2 3a: 0f 0b ud2 3c: 48 rex.W 3d: c7 .byte 0xc7 3e: c7 (bad) 3f: c8 .byte 0xc8