Disabling bearer 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 ffff88803b888b20 by task syz-executor.5/23123 CPU: 0 PID: 23123 Comm: syz-executor.5 Not tainted 4.19.211-syzkaller #0 Hardware name: Google Google Compute Engine/Google Compute Engine, BIOS Google 01/12/2023 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:radix_tree_next_chunk+0x34e/0xaa0 lib/radix-tree.c:1719 Code: 0f b6 4c 24 14 48 f7 d8 48 23 04 24 48 d3 e3 48 01 d8 48 89 c3 48 89 c6 48 89 04 24 e8 7b b7 73 f9 48 85 db 0f 85 1b 07 00 00 <45> 31 e4 e8 da b5 73 f9 4c 89 e0 48 83 c4 50 5b 5d 41 5c 41 5d 41 RSP: 0000:ffff88821e6fef90 EFLAGS: 00000292 ORIG_RAX: ffffffffffffff13 RAX: 0000000000000002 RBX: 0000000000ffffff RCX: ffffffff87eecde8 RDX: 0000000000ffffff RSI: ffff88804475a0c0 RDI: 0000000000000006 RBP: ffff8880b54023e0 R08: 0000000000000000 R09: ffffffffffff0000 R10: 0000000000000006 R11: 000000002b3cf950 R12: ffff8880b5402428 R13: 0000000000000012 R14: ffff8880ae0e8b41 R15: ffffffffffff0000 find_get_pages_range+0x593/0xbf0 mm/filemap.c:1736 pagevec_lookup_range+0x32/0x70 mm/swap.c:1005 clean_bdev_aliases+0x169/0x6e0 fs/buffer.c:1586 clean_bdev_bh_alias include/linux/buffer_head.h:179 [inline] __block_write_begin_int+0x9f9/0x17b0 fs/buffer.c:1986 ext4_da_write_begin+0x4e1/0x10e0 fs/ext4/inode.c:3109 generic_perform_write+0x1f8/0x4d0 mm/filemap.c:3170 __generic_file_write_iter+0x24b/0x610 mm/filemap.c:3295 ext4_file_write_iter+0x2fe/0xf20 fs/ext4/file.c:272 call_write_iter include/linux/fs.h:1821 [inline] do_iter_readv_writev+0x668/0x790 fs/read_write.c:681 do_iter_write+0x182/0x5d0 fs/read_write.c:960 vfs_iter_write+0x70/0xa0 fs/read_write.c:973 iter_file_splice_write+0x60d/0xbb0 fs/splice.c:750 do_splice_from fs/splice.c:852 [inline] direct_splice_actor+0x115/0x160 fs/splice.c:1025 splice_direct_to_actor+0x33f/0x8d0 fs/splice.c:980 do_splice_direct+0x1a7/0x270 fs/splice.c:1068 do_sendfile+0x550/0xc30 fs/read_write.c:1447 __do_sys_sendfile64 fs/read_write.c:1508 [inline] __se_sys_sendfile64+0x147/0x160 fs/read_write.c:1494 do_syscall_64+0xf9/0x620 arch/x86/entry/common.c:293 entry_SYSCALL_64_after_hwframe+0x49/0xbe RIP: 0033:0x7f85187180c9 Code: 28 00 00 00 75 05 48 83 c4 28 c3 e8 f1 19 00 00 90 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 b8 ff ff ff f7 d8 64 89 01 48 RSP: 002b:00007f8516c8a168 EFLAGS: 00000246 ORIG_RAX: 0000000000000028 RAX: ffffffffffffffda RBX: 00007f8518837f80 RCX: 00007f85187180c9 RDX: 0000000000000000 RSI: 000000000000000d RDI: 000000000000000c RBP: 00007f8518773ae9 R08: 0000000000000000 R09: 0000000000000000 R10: 0001000000201005 R11: 0000000000000246 R12: 0000000000000000 R13: 00007ffc7642aa0f R14: 00007f8516c8a300 R15: 0000000000022000 Allocated by task 23155: 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 17429: __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 ffff88803b888b00 which belongs to the cache sock_inode_cache of size 992 The buggy address is located 32 bytes inside of 992-byte region [ffff88803b888b00, ffff88803b888ee0) The buggy address belongs to the page: page:ffffea0000ee2200 count:1 mapcount:0 mapping:ffff88823b33a6c0 index:0xffff88803b888ffd flags: 0xfff00000000100(slab) raw: 00fff00000000100 ffffea0000a711c8 ffffea000110c108 ffff88823b33a6c0 raw: ffff88803b888ffd ffff88803b888200 0000000100000003 0000000000000000 page dumped because: kasan: bad access detected Memory state around the buggy address: ffff88803b888a00: fb fb fb fb fb fb fb fb fb fb fb fb fc fc fc fc ffff88803b888a80: fc fc fc fc fc fc fc fc fc fc fc fc fc fc fc fc >ffff88803b888b00: fb fb fb fb fb fb fb fb fb fb fb fb fb fb fb fb ^ ffff88803b888b80: fb fb fb fb fb fb fb fb fb fb fb fb fb fb fb fb ffff88803b888c00: fb fb fb fb fb fb fb fb fb fb fb fb fb fb fb fb ================================================================== ---------------- Code disassembly (best guess): 0: 0f b6 4c 24 14 movzbl 0x14(%rsp),%ecx 5: 48 f7 d8 neg %rax 8: 48 23 04 24 and (%rsp),%rax c: 48 d3 e3 shl %cl,%rbx f: 48 01 d8 add %rbx,%rax 12: 48 89 c3 mov %rax,%rbx 15: 48 89 c6 mov %rax,%rsi 18: 48 89 04 24 mov %rax,(%rsp) 1c: e8 7b b7 73 f9 callq 0xf973b79c 21: 48 85 db test %rbx,%rbx 24: 0f 85 1b 07 00 00 jne 0x745 * 2a: 45 31 e4 xor %r12d,%r12d <-- trapping instruction 2d: e8 da b5 73 f9 callq 0xf973b60c 32: 4c 89 e0 mov %r12,%rax 35: 48 83 c4 50 add $0x50,%rsp 39: 5b pop %rbx 3a: 5d pop %rbp 3b: 41 5c pop %r12 3d: 41 5d pop %r13 3f: 41 rex.B