TCP: request_sock_TCPv6: Possible SYN flooding on port 20002. Sending cookies. Check SNMP counters. ================================================================== ------------[ cut here ]------------ 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+0x2b0/0x2e0 kernel/padata.c:76 Write of size 8 at addr ffff8880b3d6d958 by task kworker/0:1/25 kernel BUG at include/linux/scatterlist.h:190! CPU: 0 PID: 25 Comm: kworker/0:1 Not tainted 4.14.288-syzkaller #0 BUG: unable to handle kernel Hardware name: Google Google Compute Engine/Google Compute Engine, BIOS Google 06/29/2022 paging request Workqueue: pencrypt padata_parallel_worker at ffffffffffffffc8 IP: crypto_aead_encrypt include/crypto/aead.h:332 [inline] IP: pcrypt_aead_enc+0x70/0xe0 crypto/pcrypt.c:143 Call Trace: PGD 8e6b067 __dump_stack lib/dump_stack.c:17 [inline] dump_stack+0x1b2/0x281 lib/dump_stack.c:58 P4D 8e6b067 print_address_description.cold+0x54/0x1d3 mm/kasan/report.c:252 PUD 8e6d067 kasan_report_error.cold+0x8a/0x191 mm/kasan/report.c:351 PMD 0 kasan_report mm/kasan/report.c:409 [inline] __asan_report_store8_noabort+0x68/0x70 mm/kasan/report.c:435 Oops: 0000 [#1] PREEMPT SMP KASAN Modules linked in: list_replace include/linux/list.h:141 [inline] list_replace_init include/linux/list.h:149 [inline] padata_parallel_worker+0x2b0/0x2e0 kernel/padata.c:76 CPU: 1 PID: 9121 Comm: kworker/1:4 Not tainted 4.14.288-syzkaller #0 Hardware name: Google Google Compute Engine/Google Compute Engine, BIOS Google 06/29/2022 Workqueue: pencrypt padata_parallel_worker process_one_work+0x793/0x14a0 kernel/workqueue.c:2117 task: ffff88809d6fc180 task.stack: ffff88809bd18000 RIP: 0010:crypto_aead_encrypt include/crypto/aead.h:332 [inline] RIP: 0010:pcrypt_aead_enc+0x70/0xe0 crypto/pcrypt.c:143 RSP: 0018:ffff88809bd1fcc8 EFLAGS: 00010246 worker_thread+0x5cc/0xff0 kernel/workqueue.c:2251 RAX: dffffc0000000000 RBX: 0000000000000000 RCX: 0000000000000000 kthread+0x30d/0x420 kernel/kthread.c:232 RDX: 1ffffffffffffff9 RSI: 0000000000000003 RDI: ffff888096b4ba10 RBP: ffff888096b4b9d0 R08: ffffffff8b9c0998 R09: 0000000000000002 ret_from_fork+0x24/0x30 arch/x86/entry/entry_64.S:404 R10: 0000000000000000 R11: ffff88809d6fc180 R12: ffff888096b4ba10 R13: ffff88809bd1fd10 R14: ffff88809bd1fd10 R15: 1ffff110137a3f9e Allocated by task 11519: FS: 0000000000000000(0000) GS:ffff8880ba500000(0000) knlGS:0000000000000000 save_stack mm/kasan/kasan.c:447 [inline] set_track mm/kasan/kasan.c:459 [inline] kasan_kmalloc+0xeb/0x160 mm/kasan/kasan.c:551 CS: 0010 DS: 0000 ES: 0000 CR0: 0000000080050033 __do_kmalloc mm/slab.c:3720 [inline] __kmalloc+0x15a/0x400 mm/slab.c:3729 CR2: ffffffffffffffc8 CR3: 00000000aad44000 CR4: 00000000003406e0 kmalloc include/linux/slab.h:493 [inline] kzalloc include/linux/slab.h:661 [inline] tls_push_record+0xfa/0x1270 net/tls/tls_sw.c:250 DR0: 0000000000000000 DR1: 0000000000000000 DR2: 0000000000000000 tls_sw_sendmsg+0xbb0/0xfd0 net/tls/tls_sw.c:457 DR3: 0000000000000000 DR6: 00000000fffe0ff0 DR7: 0000000000000400 inet_sendmsg+0x11a/0x4e0 net/ipv4/af_inet.c:762 Call Trace: sock_sendmsg_nosec net/socket.c:646 [inline] sock_sendmsg+0xb5/0x100 net/socket.c:656 padata_parallel_worker+0x202/0x2e0 kernel/padata.c:87 SYSC_sendto net/socket.c:1763 [inline] SyS_sendto+0x1c7/0x2c0 net/socket.c:1731 do_syscall_64+0x1d5/0x640 arch/x86/entry/common.c:292 entry_SYSCALL_64_after_hwframe+0x46/0xbb process_one_work+0x793/0x14a0 kernel/workqueue.c:2117 Freed by task 11519: save_stack mm/kasan/kasan.c:447 [inline] set_track mm/kasan/kasan.c:459 [inline] kasan_slab_free+0xc3/0x1a0 mm/kasan/kasan.c:524 __cache_free mm/slab.c:3496 [inline] kfree+0xc9/0x250 mm/slab.c:3815 worker_thread+0x5cc/0xff0 kernel/workqueue.c:2251 tls_push_record+0xc3b/0x1270 net/tls/tls_sw.c:293 tls_sw_sendmsg+0xbb0/0xfd0 net/tls/tls_sw.c:457 kthread+0x30d/0x420 kernel/kthread.c:232 inet_sendmsg+0x11a/0x4e0 net/ipv4/af_inet.c:762 sock_sendmsg_nosec net/socket.c:646 [inline] sock_sendmsg+0xb5/0x100 net/socket.c:656 ret_from_fork+0x24/0x30 arch/x86/entry/entry_64.S:404 SYSC_sendto net/socket.c:1763 [inline] SyS_sendto+0x1c7/0x2c0 net/socket.c:1731 Code: do_syscall_64+0x1d5/0x640 arch/x86/entry/common.c:292 c1 entry_SYSCALL_64_after_hwframe+0x46/0xbb ea 03 The buggy address belongs to the object at ffff8880b3d6d900 which belongs to the cache kmalloc-256 of size 256 80 The buggy address is located 88 bytes inside of 256-byte region [ffff8880b3d6d900, ffff8880b3d6da00) 3c The buggy address belongs to the page: 02 page:ffffea0002cf5b40 count:1 mapcount:0 mapping:ffff8880b3d6d040 index:0x0 00 75 flags: 0xfff00000000100(slab) 74 raw: 00fff00000000100 ffff8880b3d6d040 0000000000000000 000000010000000c 48 raw: ffffea0002cfc520 ffffea0002ce58a0 ffff88813fe747c0 0000000000000000 b8 page dumped because: kasan: bad access detected 00 00 Memory state around the buggy address: 00 ffff8880b3d6d800: 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 ffff8880b3d6d880: 00 00 fc fc fc fc fc fc fc fc fc fc fc fc fc fc 00 >ffff8880b3d6d900: fb fb fb fb fb fb fb fb fb fb fb fb fb fb fb fb fc ^ ff ffff8880b3d6d980: fb fb fb fb fb fb fb fb fb fb fb fb fb fb fb fb df ffff8880b3d6da00: fc fc fc fc fc fc fc fc fb fb fb fb fb fb fb fb 48 ================================================================== 8b