RDX: 000000000000000e RSI: 0000000020000080 RDI: 0000000000000006 RBP: 00007f4ada7f4ca0 R08: 0000000000000000 R09: 0000000000000000 R10: 0000000000000000 R11: 0000000000000246 R12: 0000000000000000 R13: 00007ffd24b10bbf R14: 00007f4ada7f59c0 R15: 000000000118bf2c ================================================================== BUG: KASAN: use-after-free in memcpy include/linux/string.h:373 [inline] BUG: KASAN: use-after-free in memcpy_dir crypto/scatterwalk.c:28 [inline] BUG: KASAN: use-after-free in scatterwalk_copychunks+0x271/0x6a0 crypto/scatterwalk.c:43 Read of size 4096 at addr ffff88803d4f5000 by task syz-executor.2/7811 CPU: 1 PID: 7811 Comm: syz-executor.2 Not tainted 4.19.154-syzkaller #0 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+0x1fc/0x2fe lib/dump_stack.c:118 print_address_description.cold+0x54/0x219 mm/kasan/report.c:256 kasan_report_error.cold+0x8a/0x1c7 mm/kasan/report.c:354 kasan_report+0x8f/0x96 mm/kasan/report.c:412 memcpy+0x20/0x50 mm/kasan/kasan.c:302 memcpy include/linux/string.h:373 [inline] memcpy_dir crypto/scatterwalk.c:28 [inline] scatterwalk_copychunks+0x271/0x6a0 crypto/scatterwalk.c:43 scatterwalk_map_and_copy crypto/scatterwalk.c:72 [inline] scatterwalk_map_and_copy+0x121/0x1a0 crypto/scatterwalk.c:60 gcmaes_encrypt.constprop.0+0x760/0xd90 arch/x86/crypto/aesni-intel_glue.c:956 The buggy address belongs to the page: page:ffffea0000f53d40 count:0 mapcount:-128 mapping:0000000000000000 index:0x1 flags: 0xfff00000000000() raw: 00fff00000000000 ffffea00012e7708 ffffea0000f53d88 0000000000000000 raw: 0000000000000001 0000000000000000 00000000ffffff7f 0000000000000000 page dumped because: kasan: bad access detected Memory state around the buggy address: ffff88803d4f4f00: 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 ffff88803d4f4f80: 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 >ffff88803d4f5000: ff ff ff ff ff ff ff ff ff ff ff ff ff ff ff ff ^ ffff88803d4f5080: ff ff ff ff ff ff ff ff ff ff ff ff ff ff ff ff ffff88803d4f5100: ff ff ff ff ff ff ff ff ff ff ff ff ff ff ff ff ==================================================================