RDX: 0000000000000004 RSI: 0000000000000000 RDI: 0000000000000003 RBP: 0000000000000005 R08: 0000000100000000 R09: 0000000000000000 R10: 0000000000000000 R11: 0000000000000246 R12: 0000000000401f60 R13: 0000000000401ff0 R14: 0000000000000000 R15: 0000000000000000 ================================================================== 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+0x260/0x6b0 crypto/scatterwalk.c:43 Read of size 4096 at addr ffff88808bacd000 by task syz-executor020/6826 CPU: 1 PID: 6826 Comm: syz-executor020 Not tainted 4.14.146 #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+0x138/0x197 lib/dump_stack.c:53 print_address_description.cold+0x7c/0x1dc mm/kasan/report.c:252 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 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:347 [inline] memcpy_dir crypto/scatterwalk.c:28 [inline] scatterwalk_copychunks+0x260/0x6b0 crypto/scatterwalk.c:43 scatterwalk_map_and_copy crypto/scatterwalk.c:72 [inline] scatterwalk_map_and_copy+0x12f/0x1d0 crypto/scatterwalk.c:60 gcmaes_encrypt.constprop.0+0x1d2/0xb90 arch/x86/crypto/aesni-intel_glue.c:778 generic_gcmaes_encrypt+0xf4/0x130 arch/x86/crypto/aesni-intel_glue.c:1111 crypto_aead_encrypt include/crypto/aead.h:330 [inline] gcmaes_wrapper_encrypt+0xef/0x150 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+0x906/0x1210 net/tls/tls_sw.c:270 tls_sw_sendpage+0x434/0xb50 net/tls/tls_sw.c:617 inet_sendpage+0x157/0x580 net/ipv4/af_inet.c:779 kernel_sendpage+0x92/0xf0 net/socket.c:3406 sock_sendpage+0x8b/0xc0 net/socket.c:871 pipe_to_sendpage+0x242/0x340 fs/splice.c:451 splice_from_pipe_feed fs/splice.c:502 [inline] __splice_from_pipe+0x348/0x780 fs/splice.c:626 splice_from_pipe+0xf0/0x150 fs/splice.c:661 generic_splice_sendpage+0x3c/0x50 fs/splice.c:832 do_splice_from fs/splice.c:851 [inline] do_splice fs/splice.c:1147 [inline] SYSC_splice fs/splice.c:1402 [inline] SyS_splice+0xd92/0x1430 fs/splice.c:1382 do_syscall_64+0x1e8/0x640 arch/x86/entry/common.c:292 entry_SYSCALL_64_after_hwframe+0x42/0xb7 RIP: 0033:0x440679 RSP: 002b:00007ffcccb335f8 EFLAGS: 00000246 ORIG_RAX: 0000000000000113 RAX: ffffffffffffffda RBX: 00007ffcccb33610 RCX: 0000000000440679 RDX: 0000000000000004 RSI: 0000000000000000 RDI: 0000000000000003 RBP: 0000000000000005 R08: 0000000100000000 R09: 0000000000000000 R10: 0000000000000000 R11: 0000000000000246 R12: 0000000000401f60 R13: 0000000000401ff0 R14: 0000000000000000 R15: 0000000000000000 Allocated by task 3568: 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_kmalloc mm/kasan/kasan.c:551 [inline] kasan_kmalloc+0xce/0xf0 mm/kasan/kasan.c:529 kasan_slab_alloc+0xf/0x20 mm/kasan/kasan.c:489 kmem_cache_alloc+0x12e/0x780 mm/slab.c:3552 shmem_alloc_inode+0x1c/0x50 mm/shmem.c:3882 alloc_inode+0x64/0x180 fs/inode.c:209 new_inode_pseudo+0x19/0xf0 fs/inode.c:891 new_inode+0x1f/0x40 fs/inode.c:920 shmem_get_inode+0x75/0x750 mm/shmem.c:2172 shmem_mknod+0x5a/0x1d0 mm/shmem.c:3030 shmem_create+0x2b/0x40 mm/shmem.c:3090 lookup_open+0x11a6/0x1860 fs/namei.c:3240 do_last fs/namei.c:3331 [inline] path_openat+0xfca/0x3f70 fs/namei.c:3566 do_filp_open+0x18e/0x250 fs/namei.c:3600 do_sys_open+0x2c5/0x430 fs/open.c:1084 SYSC_open fs/open.c:1102 [inline] SyS_open+0x2d/0x40 fs/open.c:1097 do_syscall_64+0x1e8/0x640 arch/x86/entry/common.c:292 entry_SYSCALL_64_after_hwframe+0x42/0xb7 Freed by task 0: (stack is not available) The buggy address belongs to the object at ffff88808bacd000 which belongs to the cache shmem_inode_cache of size 1200 The buggy address is located 0 bytes inside of 1200-byte region [ffff88808bacd000, ffff88808bacd4b0) The buggy address belongs to the page: page:ffffea00022eb340 count:1 mapcount:0 mapping:ffff88808bacd000 index:0xffff88808bacdffd flags: 0x1fffc0000000100(slab) raw: 01fffc0000000100 ffff88808bacd000 ffff88808bacdffd 0000000100000003 raw: ffffea00022e9120 ffffea00022d6ea0 ffff8880aa9e03c0 0000000000000000 page dumped because: kasan: bad access detected Memory state around the buggy address: ffff88808bacd380: 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 ffff88808bacd400: 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 >ffff88808bacd480: 00 00 00 00 00 00 fc fc fc fc fc fc fc fc fc fc ^ ffff88808bacd500: fc fc fc fc fc fc 00 00 00 00 00 00 00 00 00 00 ffff88808bacd580: 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 ==================================================================