detected buffer overflow in memcpy ------------[ cut here ]------------ kernel BUG at lib/string.c:1096! invalid opcode: 0000 [#1] PREEMPT SMP KASAN CPU: 0 PID: 460 Comm: kworker/u4:4 Not tainted 5.4.0-rc8-syzkaller #0 Hardware name: Google Google Compute Engine/Google Compute Engine, BIOS Google 01/01/2011 Workqueue: btrfs-endio-meta btrfs_work_helper RIP: 0010:fortify_panic+0x13/0x20 lib/string.c:1096 Code: 5b 41 5c 41 5d 41 5e 41 5f 5d c3 0f 0b 48 89 df e8 d2 bf 74 fa eb de 55 48 89 fe 48 c7 c7 a0 7a 45 88 48 89 e5 e8 cc 2f 2d fa <0f> 0b 90 90 90 90 90 90 90 90 90 90 90 55 48 89 f2 48 89 f9 48 b8 RSP: 0018:ffff8880a881f8e8 EFLAGS: 00010282 RAX: 0000000000000022 RBX: ffff88807a7c0000 RCX: 0000000000000000 RDX: 0000000000000000 RSI: 0000000000000008 RDI: ffffffff8a9064a0 RBP: ffff8880a881f8e8 R08: ffffed1015d04109 R09: ffffed1015d04109 R10: ffffed1015d04108 R11: ffff8880ae820847 R12: 00000000ffffff6e R13: 0000000000000000 R14: ffff8880a16f7a0c R15: ffff8880a16f79b0 FS: 0000000000000000(0000) GS:ffff8880ae800000(0000) knlGS:0000000000000000 CS: 0010 DS: 0000 ES: 0000 CR0: 0000000080050033 CR2: 0000000001590004 CR3: 0000000094c05000 CR4: 00000000001406f0 DR0: 0000000000000000 DR1: 0000000000000000 DR2: 0000000000000000 DR3: 0000000000000000 DR6: 00000000fffe0ff0 DR7: 0000000000000400 Call Trace: memcpy include/linux/string.h:377 [inline] btree_readpage_end_io_hook.cold.59+0x1e9/0x208 fs/btrfs/disk-io.c:658 end_bio_extent_readpage+0x3b3/0x14d0 fs/btrfs/extent_io.c:2766 bio_endio+0x475/0x860 block/bio.c:1818 end_workqueue_fn+0x117/0x180 fs/btrfs/disk-io.c:1656 btrfs_work_helper+0x1b6/0x1160 fs/btrfs/async-thread.c:318 process_one_work+0x856/0x1630 kernel/workqueue.c:2269 worker_thread+0x85/0xb60 kernel/workqueue.c:2415 kthread+0x331/0x3f0 kernel/kthread.c:255 ret_from_fork+0x24/0x30 arch/x86/entry/entry_64.S:352 Modules linked in: ---[ end trace cf89801f55d71e1b ]--- RIP: 0010:fortify_panic+0x13/0x20 lib/string.c:1096 Code: 5b 41 5c 41 5d 41 5e 41 5f 5d c3 0f 0b 48 89 df e8 d2 bf 74 fa eb de 55 48 89 fe 48 c7 c7 a0 7a 45 88 48 89 e5 e8 cc 2f 2d fa <0f> 0b 90 90 90 90 90 90 90 90 90 90 90 55 48 89 f2 48 89 f9 48 b8 RSP: 0018:ffff8880a881f8e8 EFLAGS: 00010282 RAX: 0000000000000022 RBX: ffff88807a7c0000 RCX: 0000000000000000 RDX: 0000000000000000 RSI: 0000000000000008 RDI: ffffffff8a9064a0 RBP: ffff8880a881f8e8 R08: ffffed1015d04109 R09: ffffed1015d04109 R10: ffffed1015d04108 R11: ffff8880ae820847 R12: 00000000ffffff6e R13: 0000000000000000 R14: ffff8880a16f7a0c R15: ffff8880a16f79b0 FS: 0000000000000000(0000) GS:ffff8880ae800000(0000) knlGS:0000000000000000 CS: 0010 DS: 0000 ES: 0000 CR0: 0000000080050033 CR2: 0000000000768000 CR3: 000000009261e000 CR4: 00000000001406f0 DR0: 0000000000000000 DR1: 0000000000000000 DR2: 0000000000000000 DR3: 0000000000000000 DR6: 00000000fffe0ff0 DR7: 0000000000000400