RBP: 000000000075bf20 R08: 0000000100000000 R09: 0000000000000000 R10: 0000000000000000 R11: 0000000000000246 R12: 00007f86e24016d4 R13: 00000000004c9222 R14: 00000000004df820 R15: 0000000000000005 ================================================================== IPv6: ADDRCONF(NETDEV_CHANGE): bridge_slave_1: link becomes ready 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 ffff888083246000 by task syz-executor.2/7127 CPU: 1 PID: 7127 Comm: syz-executor.2 Not tainted 4.14.177-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+0xe0/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+0x8e6/0x14c0 net/tls/tls_sw.c:270 tls_sw_sendpage+0x443/0xc50 net/tls/tls_sw.c:617 inet_sendpage+0x122/0x600 net/ipv4/af_inet.c:779 bridge0: port 2(bridge_slave_1) entered blocking state kernel_sendpage+0x60/0xd0 net/socket.c:3407 sock_sendpage+0x6d/0xd0 net/socket.c:871 pipe_to_sendpage+0x206/0x420 fs/splice.c:451 splice_from_pipe_feed fs/splice.c:502 [inline] __splice_from_pipe+0x2cb/0x720 fs/splice.c:626 bridge0: port 2(bridge_slave_1) entered forwarding state splice_from_pipe+0xb5/0x110 fs/splice.c:661 generic_splice_sendpage+0x10/0x20 fs/splice.c:832 IPv6: ADDRCONF(NETDEV_CHANGE): veth0_to_hsr: link becomes ready do_splice_from fs/splice.c:851 [inline] do_splice fs/splice.c:1147 [inline] SYSC_splice fs/splice.c:1402 [inline] SyS_splice+0x6e9/0x1580 fs/splice.c:1382 do_syscall_64+0x1c7/0x5b0 arch/x86/entry/common.c:292 entry_SYSCALL_64_after_hwframe+0x42/0xb7 RIP: 0033:0x459a29 RSP: 002b:00007f86e2400c78 EFLAGS: 00000246 IPv6: ADDRCONF(NETDEV_CHANGE): hsr_slave_0: link becomes ready ORIG_RAX: 0000000000000113 RAX: ffffffffffffffda RBX: 00007f86e2400c90 RCX: 0000000000459a29 RDX: 0000000000000004 RSI: 0000000000000000 RDI: 0000000000000003 RBP: 000000000075bf20 R08: 0000000100000000 R09: 0000000000000000 R10: 0000000000000000 R11: 0000000000000246 R12: 00007f86e24016d4 R13: 00000000004c9222 R14: 00000000004df820 R15: 0000000000000005 The buggy address belongs to the page: page:ffffea00020c9180 count:0 mapcount:-127 mapping: (null) index:0xffff888083246900 flags: 0x1fffc0000000000() raw: 01fffc0000000000 0000000000000000 ffff888083246900 00000000ffffff80 raw: ffffea0002415b20 ffffea00020c8ea0 0000000000000001 0000000000000000 page dumped because: kasan: bad access detected IPv6: ADDRCONF(NETDEV_CHANGE): team0: link becomes ready Memory state around the buggy address: ffff888083245f00: 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 ffff888083245f80: 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 >ffff888083246000: ff ff ff ff ff ff ff ff ff ff ff ff ff ff ff ff ^ ffff888083246080: ff ff ff ff ff ff ff ff ff ff ff ff ff ff ff ff ffff888083246100: ff ff ff ff ff ff ff ff ff ff ff ff ff ff ff ff ==================================================================