R10: 0000000000006785 R11: 0000000000000246 R12: 00000000006dbc2c R13: 00007fe5c1bfad10 R14: 0000000000000005 R15: 0000000000000000 ================================================================== FAULT_INJECTION: forcing a failure. name failslab, interval 1, probability 0, space 0, times 0 BUG: KASAN: use-after-free in memcpy include/linux/string.h:347 [inline] BUG: KASAN: use-after-free in memcpy_dir crypto/scatterwalk.c:28 [inline] BUG: KASAN: use-after-free in scatterwalk_copychunks+0x207/0x690 crypto/scatterwalk.c:43 Read of size 4096 at addr ffff88809f639000 by task syz-executor256/13191 CPU: 1 PID: 13191 Comm: syz-executor256 Not tainted 4.14.175-syzkaller #0 Hardware name: Google Google Compute Engine/Google Compute Engine, BIOS Google 01/01/2011 Call Trace: __dump_stack lib/dump_stack.c:17 [inline] dump_stack+0xf7/0x13b lib/dump_stack.c:58 print_address_description.cold.7+0x9/0x1c9 mm/kasan/report.c:252 kasan_report_error mm/kasan/report.c:351 [inline] kasan_report.cold.8+0x11a/0x2d3 mm/kasan/report.c:409 check_memory_region_inline mm/kasan/kasan.c:260 [inline] check_memory_region+0x13e/0x1b0 mm/kasan/kasan.c:267 memcpy+0x23/0x50 mm/kasan/kasan.c:302 memcpy include/linux/string.h:347 [inline] memcpy_dir crypto/scatterwalk.c:28 [inline] scatterwalk_copychunks+0x207/0x690 crypto/scatterwalk.c:43 scatterwalk_map_and_copy+0x10d/0x1a0 crypto/scatterwalk.c:72 gcmaes_encrypt.constprop.14+0x1c0/0xae0 arch/x86/crypto/aesni-intel_glue.c:778 generic_gcmaes_encrypt+0xf8/0x13d arch/x86/crypto/aesni-intel_glue.c:1111 crypto_aead_encrypt include/crypto/aead.h:330 [inline] gcmaes_wrapper_encrypt+0xe5/0x140 arch/x86/crypto/aesni-intel_glue.c:945 crypto_aead_encrypt include/crypto/aead.h:330 [inline] tls_do_encryption net/tls/tls_sw.c:234 [inline] tls_push_record+0x8ec/0x14d0 net/tls/tls_sw.c:270 tls_sw_sendpage+0x446/0xc50 net/tls/tls_sw.c:617 inet_sendpage+0x125/0x600 net/ipv4/af_inet.c:779 kernel_sendpage+0x63/0xd0 net/socket.c:3407 sock_sendpage+0x6d/0xd0 net/socket.c:871 pipe_to_sendpage+0x208/0x420 fs/splice.c:451 splice_from_pipe_feed fs/splice.c:502 [inline] __splice_from_pipe+0x2d4/0x730 fs/splice.c:626 splice_from_pipe+0xb5/0x110 fs/splice.c:661 generic_splice_sendpage+0x10/0x20 fs/splice.c:832 do_splice_from fs/splice.c:851 [inline] direct_splice_actor+0x107/0x1c0 fs/splice.c:1018 splice_direct_to_actor+0x27f/0x760 fs/splice.c:973 do_splice_direct+0x144/0x250 fs/splice.c:1061 do_sendfile+0x463/0xd00 fs/read_write.c:1441 SYSC_sendfile64 fs/read_write.c:1502 [inline] SyS_sendfile64+0xf5/0x110 fs/read_write.c:1488 do_syscall_64+0x1c9/0x5b0 arch/x86/entry/common.c:292 entry_SYSCALL_64_after_hwframe+0x42/0xb7 RIP: 0033:0x446879 RSP: 002b:00007fe5c1bfad08 EFLAGS: 00000246 ORIG_RAX: 0000000000000028 RAX: ffffffffffffffda RBX: 00000000006dbc28 RCX: 0000000000446879 RDX: 0000000000000000 RSI: 0000000000000004 RDI: 0000000000000003 RBP: 00000000006dbc20 R08: 0000000000000002 R09: 65732f636f003931 R10: 0000000000006785 R11: 0000000000000246 R12: 00000000006dbc2c R13: 00007fe5c1bfad10 R14: 0000000000000005 R15: 0000000000000000 CPU: 0 PID: 13192 Comm: syz-executor256 Not tainted 4.14.175-syzkaller #0 Hardware name: Google Google Compute Engine/Google Compute Engine, BIOS Google 01/01/2011 The buggy address belongs to the page: Call Trace: page:ffffea00027d8e40 count:0 mapcount:-127 mapping: (null) index:0x0 __dump_stack lib/dump_stack.c:17 [inline] dump_stack+0xf7/0x13b lib/dump_stack.c:58 fail_dump lib/fault-inject.c:51 [inline] should_fail.cold.3+0x105/0x14b lib/fault-inject.c:149 flags: 0x1fffc0000000000() raw: 01fffc0000000000 0000000000000000 0000000000000000 00000000ffffff80 raw: ffffea00021c24e0 ffffea000282bda0 0000000000000000 0000000000000000 should_failslab+0xba/0xf0 mm/failslab.c:32 page dumped because: kasan: bad access detected slab_pre_alloc_hook mm/slab.h:421 [inline] slab_alloc mm/slab.c:3376 [inline] __do_kmalloc mm/slab.c:3718 [inline] __kmalloc+0x70/0x7b0 mm/slab.c:3729 Memory state around the buggy address: ffff88809f638f00: 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 kmalloc include/linux/slab.h:493 [inline] gcmaes_encrypt.constprop.14+0x130/0xae0 arch/x86/crypto/aesni-intel_glue.c:774 ffff88809f638f80: 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 generic_gcmaes_encrypt+0xf8/0x13d arch/x86/crypto/aesni-intel_glue.c:1111 >ffff88809f639000: ff ff ff ff ff ff ff ff ff ff ff ff ff ff ff ff ^ ffff88809f639080: ff ff ff ff ff ff ff ff ff ff ff ff ff ff ff ff ffff88809f639100: ff ff ff ff ff ff ff ff ff ff ff ff ff ff ff ff crypto_aead_encrypt include/crypto/aead.h:330 [inline] gcmaes_wrapper_encrypt+0xe5/0x140 arch/x86/crypto/aesni-intel_glue.c:945 ================================================================== crypto_aead_encrypt include/crypto/aead.h:330 [inline] tls_do_encryption net/tls/tls_sw.c:234 [inline] tls_push_record+0x8ec/0x14d0 net/tls/tls_sw.c:270 tls_sw_sendpage+0x446/0xc50 net/tls/tls_sw.c:617