Enabling of bearer rejected, already enabled Disabling bearer x_tables: ip_tables: SYNPROXY target: used from hooks PREROUTING, but only usable from INPUT/FORWARD ================================================================== BUG: KASAN: use-after-free in tipc_udp_xmit+0x96b/0xc10 net/tipc/udp_media.c:193 Read of size 8 at addr ffff888044ca5a60 by task syz-executor.0/13339 CPU: 0 PID: 13339 Comm: syz-executor.0 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+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:__sanitizer_cov_trace_pc+0x0/0x50 kernel/kcov.c:97 Code: ff 48 89 df e8 11 dd 35 00 e9 ab fe ff ff 4c 89 ef e8 04 dd 35 00 e9 23 fe ff ff 90 90 90 90 90 90 90 90 90 90 90 90 90 90 90 <48> 8b 34 24 65 48 8b 04 25 c0 df 01 00 65 8b 15 cc 59 9f 7e 81 e2 RSP: 0018:ffff88804dac7990 EFLAGS: 00000246 ORIG_RAX: ffffffffffffff13 RAX: ffff8880a23718c0 RBX: ffff8880a23718c0 RCX: ffffc90005c3a000 RDX: 000000000000069d RSI: dffffc0000000000 RDI: 0000000000000005 RBP: 0000000000000000 R08: ffffffff8cd36fb0 R09: 0000000000000000 R10: 0000000000000005 R11: 0000000000000000 R12: 2f2f2f2f2f2f2f2f R13: 0000000000000000 R14: ffff88804dac7bb0 R15: ffff88809a96cce2 hash_name fs/namei.c:2001 [inline] link_path_walk.part.0+0x236/0x1230 fs/namei.c:2089 link_path_walk fs/namei.c:2270 [inline] path_lookupat+0xe4/0x8d0 fs/namei.c:2318 filename_lookup+0x1ac/0x5a0 fs/namei.c:2349 user_path_at include/linux/namei.h:57 [inline] vfs_statx+0x113/0x210 fs/stat.c:185 vfs_fstatat include/linux/fs.h:3143 [inline] __do_sys_newfstatat fs/stat.c:364 [inline] __se_sys_newfstatat+0x9e/0x120 fs/stat.c:358 do_syscall_64+0xf9/0x620 arch/x86/entry/common.c:293 entry_SYSCALL_64_after_hwframe+0x49/0xbe RIP: 0033:0x7ff570a0be99 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:00007ff56f381168 EFLAGS: 00000246 ORIG_RAX: 0000000000000106 RAX: ffffffffffffffda RBX: 00007ff570b1ef60 RCX: 00007ff570a0be99 RDX: 00000000200004c0 RSI: 00000000200002c0 RDI: ffffffffffffff9c RBP: 00007ff570a65ff1 R08: 0000000000000000 R09: 0000000000000000 R10: 0000000000002000 R11: 0000000000000246 R12: 0000000000000000 R13: 00007ffc3b57ff7f R14: 00007ff56f381300 R15: 0000000000022000 Allocated by task 18399: 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 3686: __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 ffff888044ca5a40 which belongs to the cache sock_inode_cache of size 992 The buggy address is located 32 bytes inside of 992-byte region [ffff888044ca5a40, ffff888044ca5e20) The buggy address belongs to the page: page:ffffea0001132940 count:1 mapcount:0 mapping:ffff8880b5b8fc00 index:0xffff888044ca5ffd flags: 0xfff00000000100(slab) raw: 00fff00000000100 ffffea00012e5f48 ffffea0002882a08 ffff8880b5b8fc00 raw: ffff888044ca5ffd ffff888044ca5140 0000000100000003 0000000000000000 page dumped because: kasan: bad access detected Memory state around the buggy address: ffff888044ca5900: fb fb fb fb fb fb fb fb fb fb fb fb fb fb fb fb ffff888044ca5980: fb fb fb fb fc fc fc fc fc fc fc fc fc fc fc fc >ffff888044ca5a00: fc fc fc fc fc fc fc fc fb fb fb fb fb fb fb fb ^ ffff888044ca5a80: fb fb fb fb fb fb fb fb fb fb fb fb fb fb fb fb ffff888044ca5b00: fb fb fb fb fb fb fb fb fb fb fb fb fb fb fb fb ================================================================== ---------------- Code disassembly (best guess), 1 bytes skipped: 0: 48 89 df mov %rbx,%rdi 3: e8 11 dd 35 00 callq 0x35dd19 8: e9 ab fe ff ff jmpq 0xfffffeb8 d: 4c 89 ef mov %r13,%rdi 10: e8 04 dd 35 00 callq 0x35dd19 15: e9 23 fe ff ff jmpq 0xfffffe3d 1a: 90 nop 1b: 90 nop 1c: 90 nop 1d: 90 nop 1e: 90 nop 1f: 90 nop 20: 90 nop 21: 90 nop 22: 90 nop 23: 90 nop 24: 90 nop 25: 90 nop 26: 90 nop 27: 90 nop 28: 90 nop * 29: 48 8b 34 24 mov (%rsp),%rsi <-- trapping instruction 2d: 65 48 8b 04 25 c0 df mov %gs:0x1dfc0,%rax 34: 01 00 36: 65 8b 15 cc 59 9f 7e mov %gs:0x7e9f59cc(%rip),%edx # 0x7e9f5a09 3d: 81 .byte 0x81 3e: e2 .byte 0xe2