TCP: request_sock_TCPv6: Possible SYN flooding on port 20002. Sending cookies. Check SNMP counters. ================================================================== BUG: KASAN: use-after-free in list_replace include/linux/list.h:141 [inline] BUG: KASAN: use-after-free in list_replace_init include/linux/list.h:149 [inline] BUG: KASAN: use-after-free in padata_parallel_worker+0x2fa/0x370 kernel/padata.c:76 Write of size 8 at addr ffff888059855718 by task kworker/0:0/3 CPU: 0 PID: 3 Comm: kworker/0:0 Not tainted 4.14.177-syzkaller #0 Hardware name: Google Google Compute Engine/Google Compute Engine, BIOS Google 01/01/2011 Workqueue: pencrypt padata_parallel_worker Call Trace: __dump_stack lib/dump_stack.c:17 [inline] dump_stack+0x13e/0x194 lib/dump_stack.c:58 print_address_description.cold+0x7c/0x1e2 mm/kasan/report.c:252 kasan_report_error mm/kasan/report.c:351 [inline] kasan_report mm/kasan/report.c:409 [inline] kasan_report.cold+0xa9/0x2ae mm/kasan/report.c:393 list_replace include/linux/list.h:141 [inline] list_replace_init include/linux/list.h:149 [inline] padata_parallel_worker+0x2fa/0x370 kernel/padata.c:76 process_one_work+0x813/0x1540 kernel/workqueue.c:2116 worker_thread+0x5d1/0x1070 kernel/workqueue.c:2250 kthread+0x30d/0x420 kernel/kthread.c:232 ret_from_fork+0x24/0x30 arch/x86/entry/entry_64.S:404 Allocated by task 23683: save_stack+0x32/0xa0 mm/kasan/kasan.c:447 set_track mm/kasan/kasan.c:459 [inline] kasan_kmalloc mm/kasan/kasan.c:551 [inline] kasan_kmalloc+0xbf/0xe0 mm/kasan/kasan.c:529 __do_kmalloc mm/slab.c:3720 [inline] __kmalloc+0x15b/0x7c0 mm/slab.c:3729 kmalloc include/linux/slab.h:493 [inline] kzalloc include/linux/slab.h:661 [inline] tls_push_record+0xfa/0x11f0 net/tls/tls_sw.c:250 tls_push_pending_closed_record net/tls/tls_main.c:205 [inline] tls_push_pending_closed_record+0xe2/0x120 net/tls/tls_main.c:198 tls_complete_pending_work include/net/tls.h:159 [inline] tls_sk_proto_close+0x617/0x7f0 net/tls/tls_main.c:269 inet_release+0xdf/0x1b0 net/ipv4/af_inet.c:425 inet6_release+0x4c/0x70 net/ipv6/af_inet6.c:450 __sock_release+0xcd/0x2b0 net/socket.c:602 sock_close+0x15/0x20 net/socket.c:1139 __fput+0x25f/0x790 fs/file_table.c:210 task_work_run+0x113/0x190 kernel/task_work.c:113 tracehook_notify_resume include/linux/tracehook.h:191 [inline] exit_to_usermode_loop+0x1d6/0x220 arch/x86/entry/common.c:164 prepare_exit_to_usermode arch/x86/entry/common.c:199 [inline] syscall_return_slowpath arch/x86/entry/common.c:270 [inline] do_syscall_64+0x4a3/0x640 arch/x86/entry/common.c:297 entry_SYSCALL_64_after_hwframe+0x42/0xb7 Freed by task 23683: save_stack+0x32/0xa0 mm/kasan/kasan.c:447 set_track mm/kasan/kasan.c:459 [inline] kasan_slab_free+0x75/0xc0 mm/kasan/kasan.c:524 __cache_free mm/slab.c:3496 [inline] kfree+0xcb/0x260 mm/slab.c:3815 tls_push_record+0xbed/0x11f0 net/tls/tls_sw.c:293 tls_push_pending_closed_record net/tls/tls_main.c:205 [inline] tls_push_pending_closed_record+0xe2/0x120 net/tls/tls_main.c:198 tls_complete_pending_work include/net/tls.h:159 [inline] tls_sk_proto_close+0x617/0x7f0 net/tls/tls_main.c:269 inet_release+0xdf/0x1b0 net/ipv4/af_inet.c:425 inet6_release+0x4c/0x70 net/ipv6/af_inet6.c:450 __sock_release+0xcd/0x2b0 net/socket.c:602 sock_close+0x15/0x20 net/socket.c:1139 __fput+0x25f/0x790 fs/file_table.c:210 task_work_run+0x113/0x190 kernel/task_work.c:113 tracehook_notify_resume include/linux/tracehook.h:191 [inline] exit_to_usermode_loop+0x1d6/0x220 arch/x86/entry/common.c:164 prepare_exit_to_usermode arch/x86/entry/common.c:199 [inline] syscall_return_slowpath arch/x86/entry/common.c:270 [inline] do_syscall_64+0x4a3/0x640 arch/x86/entry/common.c:297 entry_SYSCALL_64_after_hwframe+0x42/0xb7 The buggy address belongs to the object at ffff8880598556c0 which belongs to the cache kmalloc-1024 of size 1024 The buggy address is located 88 bytes inside of 1024-byte region [ffff8880598556c0, ffff888059855ac0) The buggy address belongs to the page: page:ffffea0001661500 count:1 mapcount:0 mapping:ffff888059854040 index:0x0 compound_mapcount: 0 flags: 0xfffe0000008100(slab|head) raw: 00fffe0000008100 ffff888059854040 0000000000000000 0000000100000007 raw: ffffea0002614ba0 ffffea000166c9a0 ffff88812fe54ac0 0000000000000000 page dumped because: kasan: bad access detected Memory state around the buggy address: ffff888059855600: fb fb fb fb fb fb fb fb fc fc fc fc fc fc fc fc ffff888059855680: fc fc fc fc fc fc fc fc fb fb fb fb fb fb fb fb >ffff888059855700: fb fb fb fb fb fb fb fb fb fb fb fb fb fb fb fb ^ ffff888059855780: fb fb fb fb fb fb fb fb fb fb fb fb fb fb fb fb ffff888059855800: fb fb fb fb fb fb fb fb fb fb fb fb fb fb fb fb ==================================================================