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+0x313/0x3b0 kernel/padata.c:74 Write of size 8 at addr ffff8880a9f67e98 by task kworker/0:1/25 BUG: unable to handle kernel paging request at ffffffffffffffc8 CPU: 0 PID: 25 Comm: kworker/0:1 Not tainted 4.14.124 #18 IP: crypto_aead_encrypt include/crypto/aead.h:330 [inline] IP: pcrypt_aead_enc+0x80/0x100 crypto/pcrypt.c:143 Hardware name: Google Google Compute Engine/Google Compute Engine, BIOS Google 01/01/2011 Workqueue: pencrypt padata_parallel_worker PGD 766d067 P4D 766d067 Call Trace: PUD 766f067 __dump_stack lib/dump_stack.c:17 [inline] dump_stack+0x138/0x19c lib/dump_stack.c:53 PMD 0 print_address_description.cold+0x7c/0x1dc mm/kasan/report.c:252 Oops: 0000 [#1] PREEMPT SMP KASAN Modules linked in: kasan_report_error mm/kasan/report.c:351 [inline] kasan_report mm/kasan/report.c:409 [inline] kasan_report.cold+0xa9/0x2af mm/kasan/report.c:393 __asan_report_store8_noabort+0x17/0x20 mm/kasan/report.c:435 CPU: 1 PID: 23 Comm: kworker/1:1 Not tainted 4.14.124 #18 list_replace include/linux/list.h:141 [inline] list_replace_init include/linux/list.h:149 [inline] padata_parallel_worker+0x313/0x3b0 kernel/padata.c:74 Hardware name: Google Google Compute Engine/Google Compute Engine, BIOS Google 01/01/2011 Workqueue: pencrypt padata_parallel_worker task: ffff8880a9e4c600 task.stack: ffff8880a9e58000 RIP: 0010:crypto_aead_encrypt include/crypto/aead.h:330 [inline] RIP: 0010:pcrypt_aead_enc+0x80/0x100 crypto/pcrypt.c:143 RSP: 0018:ffff8880a9e5fc80 EFLAGS: 00010246 process_one_work+0x863/0x1600 kernel/workqueue.c:2114 RAX: dffffc0000000000 RBX: 0000000000000000 RCX: ffffffff82b52a5e worker_thread+0x5d9/0x1050 kernel/workqueue.c:2248 RDX: 1ffffffffffffff9 RSI: 0000000000000008 RDI: ffff88809a5ed788 kthread+0x319/0x430 kernel/kthread.c:232 RBP: ffff8880a9e5fca0 R08: ffff8880a9e4c600 R09: 0000000000000002 R10: 0000000000000000 R11: ffff8880a9e4c600 R12: ffff88809a5ed750 R13: ffff88809a5ed788 R14: ffff8880a9e5fcf0 R15: ffff88809a5ed758 ret_from_fork+0x24/0x30 arch/x86/entry/entry_64.S:404 FS: 0000000000000000(0000) GS:ffff8880aef00000(0000) knlGS:0000000000000000 CS: 0010 DS: 0000 ES: 0000 CR0: 0000000080050033 Allocated by task 10692: CR2: ffffffffffffffc8 CR3: 0000000056510000 CR4: 00000000001406e0 save_stack_trace+0x16/0x20 arch/x86/kernel/stacktrace.c:59 DR0: 0000000000000000 DR1: 0000000000000000 DR2: 0000000000000000 save_stack+0x45/0xd0 mm/kasan/kasan.c:447 set_track mm/kasan/kasan.c:459 [inline] kasan_kmalloc mm/kasan/kasan.c:551 [inline] kasan_kmalloc+0xce/0xf0 mm/kasan/kasan.c:529 DR3: 0000000000000000 DR6: 00000000fffe0ff0 DR7: 0000000000000400 __do_kmalloc mm/slab.c:3720 [inline] __kmalloc+0x15d/0x7a0 mm/slab.c:3729 Call Trace: kmalloc include/linux/slab.h:493 [inline] kzalloc include/linux/slab.h:661 [inline] tls_push_record+0x10a/0x1210 net/tls/tls_sw.c:250 padata_parallel_worker+0x24a/0x3b0 kernel/padata.c:85 tls_sw_sendmsg+0x9e8/0x1020 net/tls/tls_sw.c:457 inet_sendmsg+0x122/0x500 net/ipv4/af_inet.c:762 sock_sendmsg_nosec net/socket.c:646 [inline] sock_sendmsg+0xce/0x110 net/socket.c:656 SYSC_sendto+0x206/0x310 net/socket.c:1763 SyS_sendto+0x40/0x50 net/socket.c:1731 process_one_work+0x863/0x1600 kernel/workqueue.c:2114 do_syscall_64+0x1e8/0x640 arch/x86/entry/common.c:292 entry_SYSCALL_64_after_hwframe+0x42/0xb7 worker_thread+0x5d9/0x1050 kernel/workqueue.c:2248 kthread+0x319/0x430 kernel/kthread.c:232 Freed by task 10692: save_stack_trace+0x16/0x20 arch/x86/kernel/stacktrace.c:59 save_stack+0x45/0xd0 mm/kasan/kasan.c:447 set_track mm/kasan/kasan.c:459 [inline] kasan_slab_free+0x75/0xc0 mm/kasan/kasan.c:524 ret_from_fork+0x24/0x30 arch/x86/entry/entry_64.S:404 __cache_free mm/slab.c:3496 [inline] kfree+0xcc/0x270 mm/slab.c:3815 tls_push_record+0xc03/0x1210 net/tls/tls_sw.c:293 Code: tls_sw_sendmsg+0x9e8/0x1020 net/tls/tls_sw.c:457 3c inet_sendmsg+0x122/0x500 net/ipv4/af_inet.c:762 02 sock_sendmsg_nosec net/socket.c:646 [inline] sock_sendmsg+0xce/0x110 net/socket.c:656 SYSC_sendto+0x206/0x310 net/socket.c:1763 00 SyS_sendto+0x40/0x50 net/socket.c:1731 do_syscall_64+0x1e8/0x640 arch/x86/entry/common.c:292 0f entry_SYSCALL_64_after_hwframe+0x42/0xb7 85 8b The buggy address belongs to the object at ffff8880a9f67e40 which belongs to the cache kmalloc-256 of size 256 00 The buggy address is located 88 bytes inside of 256-byte region [ffff8880a9f67e40, ffff8880a9f67f40) 00 The buggy address belongs to the page: 00 page:ffffea0002a7d9c0 count:1 mapcount:0 mapping:ffff8880a9f67080 index:0x0 48 b8 flags: 0x1fffc0000000100(slab) 00 raw: 01fffc0000000100 ffff8880a9f67080 0000000000000000 000000010000000c 00 raw: ffffea00022ca520 ffffea0002963da0 ffff8880aa8007c0 0000000000000000 00 page dumped because: kasan: bad access detected 00 00 Memory state around the buggy address: fc ffff8880a9f67d80: fb fb fb fb fb fb fb fb fb fb fb fb fb fb fb fb ff ffff8880a9f67e00: fc fc fc fc fc fc fc fc fb fb fb fb fb fb fb fb df >ffff8880a9f67e80: fb fb fb fb fb fb fb fb fb fb fb fb fb fb fb fb 48 ^ 8b ffff8880a9f67f00: fb fb fb fb fb fb fb fb fc fc fc fc fc fc fc fc 5b ffff8880a9f67f80: fc fc fc fc fc fc fc fc fc fc fc fc fc fc fc fc 38 ================================================================== 48