RDX: 0000000020000140 RSI: 0000000020000100 RDI: 0000000000000000 RBP: 000000000075bf20 R08: 0000000000000000 R09: 0000000000000000 R10: 0000000000000000 R11: 0000000000000246 R12: 00007f1b13dbf6d4 R13: 00000000004c5cf5 R14: 00000000004da4b0 R15: 0000000000000004 ================================================================== BUG: KASAN: slab-out-of-bounds in memcpy /./include/linux/string.h:348 [inline] BUG: KASAN: slab-out-of-bounds in memcpy_dir /crypto/scatterwalk.c:28 [inline] BUG: KASAN: slab-out-of-bounds in scatterwalk_copychunks+0x269/0x6a0 /crypto/scatterwalk.c:43 Read of size 2174 at addr ffff8880a940e000 by task syz-executor.5/14139 CPU: 1 PID: 14139 Comm: syz-executor.5 Not tainted 4.19.59 #32 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+0x172/0x1f0 /lib/dump_stack.c:113 print_address_description.cold+0x7c/0x20d /mm/kasan/report.c:256 kasan_report_error /mm/kasan/report.c:354 [inline] kasan_report /mm/kasan/report.c:412 [inline] kasan_report.cold+0x8c/0x2ba /mm/kasan/report.c:396 check_memory_region_inline /mm/kasan/kasan.c:260 [inline] check_memory_region+0x123/0x190 /mm/kasan/kasan.c:267 memcpy+0x24/0x50 /mm/kasan/kasan.c:302 memcpy /./include/linux/string.h:348 [inline] memcpy_dir /crypto/scatterwalk.c:28 [inline] scatterwalk_copychunks+0x269/0x6a0 /crypto/scatterwalk.c:43 scatterwalk_map_and_copy /crypto/scatterwalk.c:72 [inline] scatterwalk_map_and_copy+0x14d/0x1d0 /crypto/scatterwalk.c:60 gcmaes_encrypt.constprop.0+0x762/0xd90 /arch/x86/crypto/aesni-intel_glue.c:956 generic_gcmaes_encrypt+0x108/0x159 /arch/x86/crypto/aesni-intel_glue.c:1297 crypto_aead_encrypt /./include/crypto/aead.h:335 [inline] gcmaes_wrapper_encrypt+0x15f/0x200 /arch/x86/crypto/aesni-intel_glue.c:1130 crypto_aead_encrypt /./include/crypto/aead.h:335 [inline] tls_do_encryption /net/tls/tls_sw.c:193 [inline] tls_push_record+0x9c0/0x13a0 /net/tls/tls_sw.c:228 tls_sw_sendpage+0x540/0xd40 /net/tls/tls_sw.c:583 inet_sendpage+0x168/0x630 /net/ipv4/af_inet.c:815 kernel_sendpage+0x92/0xf0 /net/socket.c:3377 sock_sendpage+0x8b/0xc0 /net/socket.c:847 pipe_to_sendpage+0x296/0x360 /fs/splice.c:452 splice_from_pipe_feed /fs/splice.c:503 [inline] __splice_from_pipe+0x391/0x7d0 /fs/splice.c:627 splice_from_pipe+0x108/0x170 /fs/splice.c:662 generic_splice_sendpage+0x3c/0x50 /fs/splice.c:833 do_splice_from /fs/splice.c:852 [inline] do_splice+0x642/0x12c0 /fs/splice.c:1148 __do_sys_splice /fs/splice.c:1415 [inline] __se_sys_splice /fs/splice.c:1395 [inline] __x64_sys_splice+0x2c6/0x330 /fs/splice.c:1395 do_syscall_64+0xfd/0x620 /arch/x86/entry/common.c:293 entry_SYSCALL_64_after_hwframe+0x49/0xbe RIP: 0033:0x459819 Code: fd b7 fb ff c3 66 2e 0f 1f 84 00 00 00 00 00 66 90 48 89 f8 48 89 f7 48 89 d6 48 89 ca 4d 89 c2 4d 89 c8 4c 8b 4c 24 08 0f 05 <48> 3d 01 f0 ff ff 0f 83 cb b7 fb ff c3 66 2e 0f 1f 84 00 00 00 00 RSP: 002b:00007fd0e98f7c78 EFLAGS: 00000246 ORIG_RAX: 0000000000000113 RAX: ffffffffffffffda RBX: 00007fd0e98f7c90 RCX: 0000000000459819 RDX: 0000000000000004 RSI: 0000000000000000 RDI: 0000000000000003 RBP: 000000000075bf20 R08: 0000000000000c3f R09: 0000000000000000 R10: 0000000000000000 R11: 0000000000000246 R12: 00007fd0e98f86d4 R13: 00000000004c8dec R14: 00000000004df040 R15: 0000000000000006 Allocated by task 13829: save_stack+0x45/0xd0 /mm/kasan/kasan.c:448 set_track /mm/kasan/kasan.c:460 [inline] kasan_kmalloc /mm/kasan/kasan.c:553 [inline] kasan_kmalloc+0xce/0xf0 /mm/kasan/kasan.c:531 kasan_slab_alloc+0xf/0x20 /mm/kasan/kasan.c:490 kmem_cache_alloc+0x12e/0x700 /mm/slab.c:3559 skb_clone+0x156/0x3e0 /net/core/skbuff.c:1284 pfkey_broadcast_one+0xc2/0x380 /net/key/af_key.c:207 pfkey_broadcast+0x33b/0x660 /net/key/af_key.c:262 pfkey_send_acquire+0xe8c/0x2600 /net/key/af_key.c:3238 km_query+0xcb/0x210 /net/xfrm/xfrm_state.c:1988 xfrm_state_find+0x1d43/0x2db0 /net/xfrm/xfrm_state.c:1038 xfrm_tmpl_resolve_one /net/xfrm/xfrm_policy.c:1413 [inline] xfrm_tmpl_resolve+0x32a/0xc90 /net/xfrm/xfrm_policy.c:1458 xfrm_resolve_and_create_bundle+0x137/0x2300 /net/xfrm/xfrm_policy.c:1756 xfrm_lookup_with_ifid+0x278/0x1cc0 /net/xfrm/xfrm_policy.c:2079 xfrm_lookup /net/xfrm/xfrm_policy.c:2203 [inline] xfrm_lookup_route+0x3b/0x1f0 /net/xfrm/xfrm_policy.c:2214 ip6_dst_lookup_flow+0x189/0x220 /net/ipv6/ip6_output.c:1086 rawv6_sendmsg+0xb33/0x3320 /net/ipv6/raw.c:929 inet_sendmsg+0x141/0x5d0 /net/ipv4/af_inet.c:798 sock_sendmsg_nosec /net/socket.c:622 [inline] sock_sendmsg+0xd7/0x130 /net/socket.c:632 ___sys_sendmsg+0x3e2/0x920 /net/socket.c:2115 __sys_sendmmsg+0x1bf/0x4e0 /net/socket.c:2210 __do_sys_sendmmsg /net/socket.c:2239 [inline] __se_sys_sendmmsg /net/socket.c:2236 [inline] __x64_sys_sendmmsg+0x9d/0x100 /net/socket.c:2236 do_syscall_64+0xfd/0x620 /arch/x86/entry/common.c:293 entry_SYSCALL_64_after_hwframe+0x49/0xbe Freed by task 13823: save_stack+0x45/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:3503 [inline] kmem_cache_free+0x86/0x260 /mm/slab.c:3765 kfree_skbmem /net/core/skbuff.c:586 [inline] kfree_skbmem+0xcb/0x150 /net/core/skbuff.c:580 __kfree_skb /net/core/skbuff.c:646 [inline] kfree_skb /net/core/skbuff.c:663 [inline] kfree_skb+0xf0/0x390 /net/core/skbuff.c:657 skb_queue_purge+0x19/0x40 /net/core/skbuff.c:2858 pfkey_sock_destruct+0x198/0x3f0 /net/key/af_key.c:104 __sk_destruct+0x53/0x6d0 /net/core/sock.c:1558 sk_destruct+0x7b/0x90 /net/core/sock.c:1593 __sk_free+0xce/0x300 /net/core/sock.c:1604 sk_free+0x42/0x50 /net/core/sock.c:1615 sock_put /./include/net/sock.h:1702 [inline] pfkey_release+0x2aa/0x340 /net/key/af_key.c:194 __sock_release+0xce/0x2a0 /net/socket.c:579 sock_close+0x1b/0x30 /net/socket.c:1140 __fput+0x2dd/0x8b0 /fs/file_table.c:278 ____fput+0x16/0x20 /fs/file_table.c:309 task_work_run+0x145/0x1c0 /kernel/task_work.c:113 tracehook_notify_resume /./include/linux/tracehook.h:193 [inline] exit_to_usermode_loop+0x273/0x2c0 /arch/x86/entry/common.c:167 prepare_exit_to_usermode /arch/x86/entry/common.c:198 [inline] syscall_return_slowpath /arch/x86/entry/common.c:271 [inline] do_syscall_64+0x53d/0x620 /arch/x86/entry/common.c:296 entry_SYSCALL_64_after_hwframe+0x49/0xbe The buggy address belongs to the object at ffff8880a940e0c0 which belongs to the cache skbuff_head_cache of size 232 The buggy address is located 192 bytes to the left of 232-byte region [ffff8880a940e0c0, ffff8880a940e1a8) The buggy address belongs to the page: page:ffffea0002a50380 count:1 mapcount:0 mapping:ffff8880aa34aac0 index:0x0 flags: 0x1fffc0000000100(slab) raw: 01fffc0000000100 ffffea000248cb88 ffffea0001dda0c8 ffff8880aa34aac0 raw: 0000000000000000 ffff8880a940e0c0 000000010000000c 0000000000000000 page dumped because: kasan: bad access detected Memory state around the buggy address: ffff8880a940df00: 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 ffff8880a940df80: 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 >ffff8880a940e000: fc fc fc fc fc fc fc fc fc fc fc fc fc fc fc fc ^ ffff8880a940e080: fc fc fc fc fc fc fc fc fb fb fb fb fb fb fb fb ffff8880a940e100: fb fb fb fb fb fb fb fb fb fb fb fb fb fb fb fb ==================================================================