audit: type=1804 audit(1655315638.668:2973): pid=28139 uid=0 auid=4294967295 ses=4294967295 subj==unconfined op=invalid_pcr cause=ToMToU comm="syz-executor.1" name="/root/syzkaller-testdir321886990/syzkaller.qsCiLD/2730/bus" dev="sda1" ino=15043 res=1 ================================================================== BUG: KASAN: use-after-free in memcpy include/linux/string.h:377 [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 ffff88803b507000 by task syz-executor.4/28108 CPU: 1 PID: 28108 Comm: syz-executor.4 Not tainted 4.19.211-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/0x2ef lib/dump_stack.c:118 print_address_description.cold+0x54/0x219 mm/kasan/report.c:256 kasan_report_error.cold+0x8a/0x1b9 mm/kasan/report.c:354 kasan_report+0x8f/0xa0 mm/kasan/report.c:412 EXT4-fs (loop2): mounting ext2 file system using the ext4 subsystem memcpy+0x20/0x50 mm/kasan/kasan.c:302 memcpy include/linux/string.h:377 [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:ffffea0000ed41c0 count:0 mapcount:-128 mapping:0000000000000000 index:0x1 flags: 0xfff00000000000() raw: 00fff00000000000 ffffea000110ce48 ffffea0001329688 0000000000000000 raw: 0000000000000001 0000000000000000 00000000ffffff7f 0000000000000000 page dumped because: kasan: bad access detected Memory state around the buggy address: ffff88803b506f00: 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 ffff88803b506f80: 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 >ffff88803b507000: ff ff ff ff ff ff ff ff ff ff ff ff ff ff ff ff ^ ffff88803b507080: ff ff ff ff ff ff ff ff ff ff ff ff ff ff ff ff ffff88803b507100: ff ff ff ff ff ff ff ff ff ff ff ff ff ff ff ff ================================================================== audit: type=1804 audit(1655315638.738:2974): pid=28154 uid=0 auid=4294967295 ses=4294967295 subj==unconfined op=invalid_pcr cause=ToMToU comm="syz-executor.3" name="/root/syzkaller-testdir2187513709/syzkaller.nIz4HZ/3009/bus" dev="sda1" ino=15137 res=1