RSP: 002b:00007f202b4bbc78 EFLAGS: 00000246 ORIG_RAX: 0000000000000028 RAX: ffffffffffffffda RBX: 00007f202b4bbc90 RCX: 0000000000458c29 RDX: 0000000000000000 RSI: 0000000000000004 RDI: 0000000000000003 RBP: 000000000073bf00 R08: 0000000000000000 R09: 0000000000000000 R10: 0000000000006785 R11: 0000000000000246 R12: 00007f202b4bc6d4 BUG: KASAN: slab-out-of-bounds in memcpy include/linux/string.h:347 [inline] BUG: KASAN: slab-out-of-bounds in memcpy_dir crypto/scatterwalk.c:28 [inline] BUG: KASAN: slab-out-of-bounds in scatterwalk_copychunks+0x207/0x690 crypto/scatterwalk.c:43 R13: 00000000004c5e10 R14: 00000000004da5c8 R15: 0000000000000005 FAULT_INJECTION: forcing a failure. name failslab, interval 1, probability 0, space 0, times 0 Read of size 4096 at addr ffff888097b4a000 by task syz-executor.1/9653 CPU: 0 PID: 9653 Comm: syz-executor.1 Not tainted 4.14.183-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+0x46/0xbb RIP: 0033:0x458c29 RSP: 002b:00007f930987cc78 EFLAGS: 00000246 ORIG_RAX: 0000000000000028 RAX: ffffffffffffffda RBX: 00007f930987cc90 RCX: 0000000000458c29 RDX: 0000000000000000 RSI: 0000000000000004 RDI: 0000000000000003 RBP: 000000000073bf00 R08: 0000000000000000 R09: 0000000000000000 R10: 0000000000006785 R11: 0000000000000246 R12: 00007f930987d6d4 R13: 00000000004c5e10 R14: 00000000004da5c8 R15: 0000000000000005 CPU: 1 PID: 9662 Comm: syz-executor.2 Not tainted 4.14.183-syzkaller #0 Hardware name: Google Google Compute Engine/Google Compute Engine, BIOS Google 01/01/2011 Allocated by task 9539: Call Trace: save_stack_trace+0x16/0x20 arch/x86/kernel/stacktrace.c:59 __dump_stack lib/dump_stack.c:17 [inline] dump_stack+0xf7/0x13b lib/dump_stack.c:58 save_stack+0x43/0xd0 mm/kasan/kasan.c:447 fail_dump lib/fault-inject.c:51 [inline] should_fail.cold.3+0x105/0x14b lib/fault-inject.c:149 set_track mm/kasan/kasan.c:459 [inline] kasan_kmalloc+0xc7/0xe0 mm/kasan/kasan.c:551 kasan_slab_alloc+0x12/0x20 mm/kasan/kasan.c:489 should_failslab+0xba/0xf0 mm/failslab.c:32 kmem_cache_alloc+0x12e/0x790 mm/slab.c:3552 getname_flags+0xb8/0x520 fs/namei.c:138 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 user_path_at_empty+0x1e/0x40 fs/namei.c:2631 user_path_at include/linux/namei.h:57 [inline] vfs_statx+0xb6/0x130 fs/stat.c:185 vfs_lstat include/linux/fs.h:3066 [inline] SYSC_newlstat+0x7d/0xc0 fs/stat.c:350 SyS_newlstat+0x9/0x10 fs/stat.c:344 do_syscall_64+0x1c9/0x5b0 arch/x86/entry/common.c:292 kmalloc include/linux/slab.h:493 [inline] gcmaes_encrypt.constprop.14+0x130/0xae0 arch/x86/crypto/aesni-intel_glue.c:774 entry_SYSCALL_64_after_hwframe+0x46/0xbb generic_gcmaes_encrypt+0xf8/0x13d arch/x86/crypto/aesni-intel_glue.c:1111 Freed by task 9539: save_stack_trace+0x16/0x20 arch/x86/kernel/stacktrace.c:59 save_stack+0x43/0xd0 mm/kasan/kasan.c:447 crypto_aead_encrypt include/crypto/aead.h:330 [inline] gcmaes_wrapper_encrypt+0xe5/0x140 arch/x86/crypto/aesni-intel_glue.c:945 set_track mm/kasan/kasan.c:459 [inline] kasan_slab_free+0x71/0xc0 mm/kasan/kasan.c:524 __cache_free mm/slab.c:3496 [inline] kmem_cache_free+0x80/0x2d0 mm/slab.c:3758 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 putname+0xa8/0xe0 fs/namei.c:259 filename_lookup.part.53+0x22c/0x340 fs/namei.c:2386 tls_sw_sendpage+0x446/0xc50 net/tls/tls_sw.c:617 filename_lookup fs/namei.c:2370 [inline] user_path_at_empty+0x39/0x40 fs/namei.c:2631 user_path_at include/linux/namei.h:57 [inline] vfs_statx+0xb6/0x130 fs/stat.c:185 inet_sendpage+0x125/0x600 net/ipv4/af_inet.c:779 vfs_lstat include/linux/fs.h:3066 [inline] SYSC_newlstat+0x7d/0xc0 fs/stat.c:350 SyS_newlstat+0x9/0x10 fs/stat.c:344 kernel_sendpage+0x63/0xd0 net/socket.c:3407 do_syscall_64+0x1c9/0x5b0 arch/x86/entry/common.c:292 sock_sendpage+0x6d/0xd0 net/socket.c:871 entry_SYSCALL_64_after_hwframe+0x46/0xbb pipe_to_sendpage+0x208/0x420 fs/splice.c:451 The buggy address belongs to the object at ffff888097b4aec0 which belongs to the cache names_cache of size 4096 The buggy address is located 3776 bytes to the left of 4096-byte region [ffff888097b4aec0, ffff888097b4bec0) splice_from_pipe_feed fs/splice.c:502 [inline] __splice_from_pipe+0x2d4/0x730 fs/splice.c:626 The buggy address belongs to the page: page:ffffea00025ed280 count:1 mapcount:0 mapping:ffff888097b4aec0 index:0x0 compound_mapcount: 0 splice_from_pipe+0xb5/0x110 fs/splice.c:661 flags: 0x1fffc0000008100(slab|head) raw: 01fffc0000008100 ffff888097b4aec0 0000000000000000 0000000100000001 raw: ffffea0002610fa0 ffffea0002204fa0 ffff8880aa9e0cc0 0000000000000000 page dumped because: kasan: bad access detected 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 Memory state around the buggy address: ffff888097b49f00: 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 ffff888097b49f80: 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 splice_direct_to_actor+0x27f/0x760 fs/splice.c:973 >ffff888097b4a000: fc fc fc fc fc fc fc fc fc fc fc fc fc fc fc fc ^ ffff888097b4a080: fc fc fc fc fc fc fc fc fc fc fc fc fc fc fc fc ffff888097b4a100: fc fc fc fc fc fc fc fc fc fc fc fc fc fc fc fc ================================================================== do_splice_direct+0x144/0x250 fs/splice.c:1061