TCP: request_sock_TCPv6: Possible SYN flooding on port 20002. Sending cookies. Check SNMP counters. ================================================================== BUG: KASAN: slab-out-of-bounds in __swab64p include/uapi/linux/swab.h:192 [inline] BUG: KASAN: slab-out-of-bounds in __be64_to_cpup include/uapi/linux/byteorder/little_endian.h:74 [inline] BUG: KASAN: slab-out-of-bounds in is_tx_ready include/net/tls.h:354 [inline] BUG: KASAN: slab-out-of-bounds in tls_write_space+0x29d/0x2d0 net/tls/tls_main.c:236 Read of size 8 at addr ffff8801c3ff9ff0 by task syz-executor4/22172 CPU: 0 PID: 22172 Comm: syz-executor4 Not tainted 4.19.0-rc4+ #229 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+0x1c4/0x2b4 lib/dump_stack.c:113 print_address_description.cold.8+0x9/0x1ff mm/kasan/report.c:256 kasan_report_error mm/kasan/report.c:354 [inline] kasan_report.cold.9+0x242/0x309 mm/kasan/report.c:412 __asan_report_load8_noabort+0x14/0x20 mm/kasan/report.c:433 __swab64p include/uapi/linux/swab.h:192 [inline] __be64_to_cpup include/uapi/linux/byteorder/little_endian.h:74 [inline] is_tx_ready include/net/tls.h:354 [inline] tls_write_space+0x29d/0x2d0 net/tls/tls_main.c:236 tcp_new_space net/ipv4/tcp_input.c:5154 [inline] tcp_check_space+0x53f/0x920 net/ipv4/tcp_input.c:5165 tcp_data_snd_check net/ipv4/tcp_input.c:5175 [inline] tcp_rcv_established+0xde8/0x2120 net/ipv4/tcp_input.c:5656 tcp_v6_do_rcv+0x4b3/0x13c0 net/ipv6/tcp_ipv6.c:1326 tcp_v6_rcv+0x2f7a/0x38a0 net/ipv6/tcp_ipv6.c:1555 ip6_input_finish+0x3fc/0x1aa0 net/ipv6/ip6_input.c:384 NF_HOOK include/linux/netfilter.h:287 [inline] ip6_input+0xe9/0x600 net/ipv6/ip6_input.c:427 dst_input include/net/dst.h:450 [inline] ip6_rcv_finish+0x17a/0x330 net/ipv6/ip6_input.c:76 NF_HOOK include/linux/netfilter.h:287 [inline] ipv6_rcv+0x113/0x640 net/ipv6/ip6_input.c:272 __netif_receive_skb_one_core+0x14d/0x200 net/core/dev.c:4894 __netif_receive_skb+0x2c/0x1e0 net/core/dev.c:5004 process_backlog+0x217/0x760 net/core/dev.c:5808 napi_poll net/core/dev.c:6228 [inline] net_rx_action+0x7c5/0x1950 net/core/dev.c:6294 __do_softirq+0x30b/0xad8 kernel/softirq.c:292 invoke_softirq kernel/softirq.c:372 [inline] irq_exit+0x17f/0x1c0 kernel/softirq.c:412 exiting_irq arch/x86/include/asm/apic.h:536 [inline] smp_apic_timer_interrupt+0x1cb/0x760 arch/x86/kernel/apic/apic.c:1056 apic_timer_interrupt+0xf/0x20 arch/x86/entry/entry_64.S:864 RIP: 0010:__rcu_read_lock+0xb/0x50 kernel/rcu/tree_plugin.h:404 Code: 68 5b 41 5c 5d c3 48 89 df 48 89 45 88 e8 2d c9 59 00 48 8b 45 88 eb aa e8 22 48 e0 ff 66 90 48 b8 00 00 00 00 00 fc ff df 55 <48> 89 e5 53 65 48 8b 1c 25 40 ee 01 00 48 8d bb 70 03 00 00 48 89 RSP: 0018:ffff8801be784ec8 EFLAGS: 00000293 ORIG_RAX: ffffffffffffff13 RAX: dffffc0000000000 RBX: 1ffff10037cf09dc RCX: ffffffff81a7cae9 RDX: 0000000000000000 RSI: ffffffff81a7b663 RDI: ffffea00060de7c0 RBP: ffff8801be784fa8 R08: ffff8801c8546440 R09: 0000000000000000 R10: 0000000000000000 R11: 0000000000000000 R12: ffffea00060de7c0 R13: ffff8801be784f80 R14: ffffea00060de7c8 R15: ffff8801be787b48 shrink_page_list+0x100f/0xc510 mm/vmscan.c:1126 shrink_inactive_list+0x77b/0x1c60 mm/vmscan.c:1943 shrink_list mm/vmscan.c:2254 [inline] shrink_node_memcg+0x78b/0x18e0 mm/vmscan.c:2517 shrink_node+0x3bc/0x16b0 mm/vmscan.c:2732 shrink_zones mm/vmscan.c:2964 [inline] do_try_to_free_pages+0x3e7/0x1290 mm/vmscan.c:3026 try_to_free_mem_cgroup_pages+0x4bb/0xca0 mm/vmscan.c:3324 reclaim_high.constprop.70+0x135/0x1e0 mm/memcontrol.c:2115 mem_cgroup_handle_over_high+0x8d/0x130 mm/memcontrol.c:2140 tracehook_notify_resume include/linux/tracehook.h:195 [inline] exit_to_usermode_loop+0x287/0x380 arch/x86/entry/common.c:166 prepare_exit_to_usermode arch/x86/entry/common.c:197 [inline] syscall_return_slowpath+0x533/0x5e0 arch/x86/entry/common.c:268 ret_from_fork+0x15/0x50 arch/x86/entry/entry_64.S:405 RIP: 0033:0x455c4a Code: Bad RIP value. RSP: 002b:00007ffca2fa2460 EFLAGS: 00000246 ORIG_RAX: 0000000000000038 RAX: 0000000000000000 RBX: 00007ffca2fa2460 RCX: 0000000000455c4a RDX: 0000000000000000 RSI: 0000000000000000 RDI: 0000000001200011 RBP: 00007ffca2fa24a0 R08: 0000000000000001 R09: 00000000024a3940 R10: 00000000024a3c10 R11: 0000000000000246 R12: 0000000000000001 R13: 0000000000000000 R14: 0000000000000000 R15: badc0ffeebadface Allocated by task 21780: save_stack+0x43/0xd0 mm/kasan/kasan.c:448 set_track mm/kasan/kasan.c:460 [inline] kasan_kmalloc+0xc7/0xe0 mm/kasan/kasan.c:553 kmem_cache_alloc_trace+0x152/0x750 mm/slab.c:3620 kmalloc include/linux/slab.h:513 [inline] kzalloc include/linux/slab.h:707 [inline] inetdev_init+0xd8/0x590 net/ipv4/devinet.c:256 inetdev_event+0xf56/0x13b0 net/ipv4/devinet.c:1477 notifier_call_chain+0x17e/0x380 kernel/notifier.c:93 __raw_notifier_call_chain kernel/notifier.c:394 [inline] raw_notifier_call_chain+0x2d/0x40 kernel/notifier.c:401 call_netdevice_notifiers_info+0x3f/0x90 net/core/dev.c:1733 call_netdevice_notifiers net/core/dev.c:1751 [inline] register_netdevice+0xb98/0x10f0 net/core/dev.c:8509 team_newlink+0x45/0x120 drivers/net/team/team.c:2131 rtnl_newlink+0xec6/0x1d40 net/core/rtnetlink.c:3112 rtnetlink_rcv_msg+0x46a/0xc20 net/core/rtnetlink.c:4724 netlink_rcv_skb+0x172/0x440 net/netlink/af_netlink.c:2447 rtnetlink_rcv+0x1c/0x20 net/core/rtnetlink.c:4742 netlink_unicast_kernel net/netlink/af_netlink.c:1310 [inline] netlink_unicast+0x5a5/0x760 net/netlink/af_netlink.c:1336 netlink_sendmsg+0xa18/0xfc0 net/netlink/af_netlink.c:1901 sock_sendmsg_nosec net/socket.c:621 [inline] sock_sendmsg+0xd5/0x120 net/socket.c:631 ___sys_sendmsg+0x7fd/0x930 net/socket.c:2116 __sys_sendmsg+0x11d/0x280 net/socket.c:2154 __do_sys_sendmsg net/socket.c:2163 [inline] __se_sys_sendmsg net/socket.c:2161 [inline] __x64_sys_sendmsg+0x78/0xb0 net/socket.c:2161 do_syscall_64+0x1b9/0x820 arch/x86/entry/common.c:290 entry_SYSCALL_64_after_hwframe+0x49/0xbe Freed by task 20568: save_stack+0x43/0xd0 mm/kasan/kasan.c:448 set_track mm/kasan/kasan.c:460 [inline] __kasan_slab_free+0x102/0x150 mm/kasan/kasan.c:521 kasan_slab_free+0xe/0x10 mm/kasan/kasan.c:528 __cache_free mm/slab.c:3498 [inline] kfree+0xcf/0x230 mm/slab.c:3813 load_elf_binary+0x25b4/0x5620 fs/binfmt_elf.c:1118 search_binary_handler+0x17d/0x570 fs/exec.c:1653 exec_binprm fs/exec.c:1695 [inline] __do_execve_file.isra.33+0x162f/0x2540 fs/exec.c:1819 do_execveat_common fs/exec.c:1866 [inline] do_execve fs/exec.c:1883 [inline] __do_sys_execve fs/exec.c:1964 [inline] __se_sys_execve fs/exec.c:1959 [inline] __x64_sys_execve+0x8f/0xc0 fs/exec.c:1959 do_syscall_64+0x1b9/0x820 arch/x86/entry/common.c:290 entry_SYSCALL_64_after_hwframe+0x49/0xbe The buggy address belongs to the object at ffff8801c3ff9c80 which belongs to the cache kmalloc-512 of size 512 The buggy address is located 368 bytes to the right of 512-byte region [ffff8801c3ff9c80, ffff8801c3ff9e80) The buggy address belongs to the page: page:ffffea00070ffe40 count:1 mapcount:0 mapping:ffff8801da800940 index:0x0 flags: 0x2fffc0000000100(slab) raw: 02fffc0000000100 ffffea0006de4e08 ffffea0006586a08 ffff8801da800940 raw: 0000000000000000 ffff8801c3ff9000 0000000100000006 0000000000000000 page dumped because: kasan: bad access detected Memory state around the buggy address: ffff8801c3ff9e80: fc fc fc fc fc fc fc fc fc fc fc fc fc fc fc fc ffff8801c3ff9f00: fc fc fc fc fc fc fc fc fc fc fc fc fc fc fc fc >ffff8801c3ff9f80: fc fc fc fc fc fc fc fc fc fc fc fc fc fc fc fc ^ ffff8801c3ffa000: 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 ffff8801c3ffa080: 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 ==================================================================