IPv6: ADDRCONF(NETDEV_UP): veth1: link is not ready IPv6: ADDRCONF(NETDEV_CHANGE): veth1: link becomes ready IPv6: ADDRCONF(NETDEV_CHANGE): veth0: link becomes ready 8021q: adding VLAN 0 to HW filter on device team0 ================================================================== BUG: KASAN: use-after-free in tipc_group_fill_sock_diag+0x7b9/0x84b net/tipc/group.c:921 Read of size 4 at addr ffff8801d2f7b45c by task syz-executor0/5011 CPU: 0 PID: 5011 Comm: syz-executor0 Not tainted 4.19.0-rc1+ #121 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+0x1c9/0x2b4 lib/dump_stack.c:113 print_address_description+0x6c/0x20b mm/kasan/report.c:256 kasan_report_error mm/kasan/report.c:354 [inline] kasan_report.cold.7+0x242/0x30d mm/kasan/report.c:412 __asan_report_load4_noabort+0x14/0x20 mm/kasan/report.c:432 tipc_group_fill_sock_diag+0x7b9/0x84b net/tipc/group.c:921 tipc_sk_fill_sock_diag+0x9f8/0xdb0 net/tipc/socket.c:3322 __tipc_add_sock_diag+0x22f/0x360 net/tipc/diag.c:62 tipc_nl_sk_walk+0x68d/0xd30 net/tipc/socket.c:3249 tipc_diag_dump+0x24/0x30 net/tipc/diag.c:73 netlink_dump+0x519/0xd50 net/netlink/af_netlink.c:2233 __netlink_dump_start+0x4f1/0x6f0 net/netlink/af_netlink.c:2329 netlink_dump_start include/linux/netlink.h:213 [inline] tipc_sock_diag_handler_dump+0x234/0x340 net/tipc/diag.c:89 __sock_diag_cmd net/core/sock_diag.c:232 [inline] sock_diag_rcv_msg+0x31d/0x410 net/core/sock_diag.c:263 netlink_rcv_skb+0x172/0x440 net/netlink/af_netlink.c:2454 sock_diag_rcv+0x2a/0x40 net/core/sock_diag.c:274 netlink_unicast_kernel net/netlink/af_netlink.c:1317 [inline] netlink_unicast+0x5a0/0x760 net/netlink/af_netlink.c:1343 netlink_sendmsg+0xa18/0xfc0 net/netlink/af_netlink.c:1908 sock_sendmsg_nosec net/socket.c:621 [inline] sock_sendmsg+0xd5/0x120 net/socket.c:631 ___sys_sendmsg+0x7fd/0x930 net/socket.c:2114 __sys_sendmsg+0x11d/0x290 net/socket.c:2152 __compat_sys_sendmsg net/compat.c:754 [inline] __do_compat_sys_sendmsg net/compat.c:761 [inline] __se_compat_sys_sendmsg net/compat.c:758 [inline] __ia32_compat_sys_sendmsg+0x7a/0xb0 net/compat.c:758 do_syscall_32_irqs_on arch/x86/entry/common.c:326 [inline] do_fast_syscall_32+0x34d/0xfb2 arch/x86/entry/common.c:397 entry_SYSENTER_compat+0x70/0x7f arch/x86/entry/entry_64_compat.S:139 RIP: 0023:0xf7f74ca9 Code: 55 08 8b 88 64 cd ff ff 8b 98 68 cd ff ff 89 c8 85 d2 74 02 89 0a 5b 5d c3 8b 04 24 c3 8b 1c 24 c3 51 52 55 89 e5 0f 34 cd 80 <5d> 5a 59 c3 90 90 90 90 eb 0d 90 90 90 90 90 90 90 90 90 90 90 90 RSP: 002b:00000000f7f700cc EFLAGS: 00000296 ORIG_RAX: 0000000000000172 RAX: ffffffffffffffda RBX: 0000000000000006 RCX: 0000000020000040 RDX: 0000000000000000 RSI: 0000000000000000 RDI: 0000000000000000 RBP: 0000000000000000 R08: 0000000000000000 R09: 0000000000000000 R10: 0000000000000000 R11: 0000000000000000 R12: 0000000000000000 R13: 0000000000000000 R14: 0000000000000000 R15: 0000000000000000 Allocated by task 5011: save_stack+0x43/0xd0 mm/kasan/kasan.c:448 set_track mm/kasan/kasan.c:460 [inline] kasan_kmalloc+0xc4/0xe0 mm/kasan/kasan.c:553 kmem_cache_alloc_trace+0x152/0x730 mm/slab.c:3620 kmalloc include/linux/slab.h:513 [inline] kzalloc include/linux/slab.h:707 [inline] tipc_group_create+0x155/0xa70 net/tipc/group.c:171 tipc_sk_join net/tipc/socket.c:2766 [inline] tipc_setsockopt+0x2d1/0xd70 net/tipc/socket.c:2881 __compat_sys_setsockopt+0x329/0x860 net/compat.c:407 __do_compat_sys_setsockopt net/compat.c:417 [inline] __se_compat_sys_setsockopt net/compat.c:414 [inline] __ia32_compat_sys_setsockopt+0xbd/0x150 net/compat.c:414 do_syscall_32_irqs_on arch/x86/entry/common.c:326 [inline] do_fast_syscall_32+0x34d/0xfb2 arch/x86/entry/common.c:397 entry_SYSENTER_compat+0x70/0x7f arch/x86/entry/entry_64_compat.S:139 Freed by task 5010: save_stack+0x43/0xd0 mm/kasan/kasan.c:448 set_track mm/kasan/kasan.c:460 [inline] __kasan_slab_free+0x11a/0x170 mm/kasan/kasan.c:521 kasan_slab_free+0xe/0x10 mm/kasan/kasan.c:528 __cache_free mm/slab.c:3498 [inline] kfree+0xd9/0x210 mm/slab.c:3813 tipc_group_delete+0x2e5/0x3f0 net/tipc/group.c:227 tipc_sk_leave+0x113/0x220 net/tipc/socket.c:2800 tipc_release+0x14e/0x12b0 net/tipc/socket.c:574 __sock_release+0xd7/0x250 net/socket.c:579 sock_close+0x19/0x20 net/socket.c:1139 __fput+0x38a/0xa40 fs/file_table.c:278 ____fput+0x15/0x20 fs/file_table.c:309 task_work_run+0x1e8/0x2a0 kernel/task_work.c:113 tracehook_notify_resume include/linux/tracehook.h:193 [inline] exit_to_usermode_loop+0x318/0x380 arch/x86/entry/common.c:166 prepare_exit_to_usermode arch/x86/entry/common.c:197 [inline] syscall_return_slowpath arch/x86/entry/common.c:268 [inline] do_syscall_32_irqs_on arch/x86/entry/common.c:341 [inline] do_fast_syscall_32+0xcd5/0xfb2 arch/x86/entry/common.c:397 entry_SYSENTER_compat+0x70/0x7f arch/x86/entry/entry_64_compat.S:139 The buggy address belongs to the object at ffff8801d2f7b400 which belongs to the cache kmalloc-192 of size 192 The buggy address is located 92 bytes inside of 192-byte region [ffff8801d2f7b400, ffff8801d2f7b4c0) The buggy address belongs to the page: page:ffffea00074bdec0 count:1 mapcount:0 mapping:ffff8801dac00040 index:0x0 flags: 0x2fffc0000000100(slab) raw: 02fffc0000000100 ffffea000744ea48 ffff8801dac01148 ffff8801dac00040 raw: 0000000000000000 ffff8801d2f7b000 0000000100000010 0000000000000000 page dumped because: kasan: bad access detected Memory state around the buggy address: ffff8801d2f7b300: 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 ffff8801d2f7b380: 00 fc fc fc fc fc fc fc fc fc fc fc fc fc fc fc >ffff8801d2f7b400: fb fb fb fb fb fb fb fb fb fb fb fb fb fb fb fb ^ ffff8801d2f7b480: fb fb fb fb fb fb fb fb fc fc fc fc fc fc fc fc ffff8801d2f7b500: fb fb fb fb fb fb fb fb fb fb fb fb fb fb fb fb ==================================================================