================================================================== BUG: KASAN: use-after-free in memcpy include/linux/string.h:344 [inline] BUG: KASAN: use-after-free in array_map_update_elem+0x197/0x240 kernel/bpf/arraymap.c:249 netlink: 5 bytes leftover after parsing attributes in process `syz-executor3'. Write of size 1 at addr ffff8801d523d780 by task syz-executor5/19111 CPU: 0 PID: 19111 Comm: syz-executor5 Not tainted 4.15.0-rc7+ #186 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+0x194/0x257 lib/dump_stack.c:53 print_address_description+0x73/0x250 mm/kasan/report.c:252 kasan_report_error mm/kasan/report.c:351 [inline] kasan_report+0x25b/0x340 mm/kasan/report.c:409 check_memory_region_inline mm/kasan/kasan.c:260 [inline] check_memory_region+0x137/0x190 mm/kasan/kasan.c:267 memcpy+0x37/0x50 mm/kasan/kasan.c:303 memcpy include/linux/string.h:344 [inline] array_map_update_elem+0x197/0x240 kernel/bpf/arraymap.c:249 map_update_elem kernel/bpf/syscall.c:687 [inline] SYSC_bpf kernel/bpf/syscall.c:1811 [inline] SyS_bpf+0x32df/0x4400 kernel/bpf/syscall.c:1782 entry_SYSCALL_64_fastpath+0x23/0x9a RIP: 0033:0x452ac9 RSP: 002b:00007f23b1968c58 EFLAGS: 00000212 ORIG_RAX: 0000000000000141 RAX: ffffffffffffffda RBX: 000000000071bea0 RCX: 0000000000452ac9 RDX: 0000000000000020 RSI: 0000000020bba000 RDI: 0000000000000002 RBP: 0000000000000036 R08: 0000000000000000 R09: 0000000000000000 R10: 0000000000000000 R11: 0000000000000212 R12: 00000000006ee5b0 R13: 00000000ffffffff R14: 00007f23b19696d4 R15: 0000000000000000 The buggy address belongs to the page: page:ffffea0007548f40 count:0 mapcount:0 mapping: (null) index:0x0 flags: 0x2fffc0000000000() raw: 02fffc0000000000 0000000000000000 0000000000000000 00000000ffffffff raw: dead000000000100 dead000000000200 0000000000000000 0000000000000000 page dumped because: kasan: bad access detected Memory state around the buggy address: ffff8801d523d680: ff ff ff ff ff ff ff ff ff ff ff ff ff ff ff ff ffff8801d523d700: ff ff ff ff ff ff ff ff ff ff ff ff ff ff ff ff >ffff8801d523d780: ff ff ff ff ff ff ff ff ff ff ff ff ff ff ff ff ^ ffff8801d523d800: ff ff ff ff ff ff ff ff ff ff ff ff ff ff ff ff ffff8801d523d880: ff ff ff ff ff ff ff ff ff ff ff ff ff ff ff ff ================================================================== Kernel panic - not syncing: panic_on_warn set ... CPU: 0 PID: 19111 Comm: syz-executor5 Tainted: G B 4.15.0-rc7+ #186 Hardware name: Google Google Compute Engine/Google Compute Engine, BIOS Google 01/01/2011 sctp: [Deprecated]: syz-executor4 (pid 19140) Use of struct sctp_assoc_value in delayed_ack socket option. Use struct sctp_sack_info instead Call Trace: __dump_stack lib/dump_stack.c:17 [inline] dump_stack+0x194/0x257 lib/dump_stack.c:53 panic+0x1e4/0x41c kernel/panic.c:183 kasan_end_report+0x50/0x50 mm/kasan/report.c:176 kasan_report_error mm/kasan/report.c:356 [inline] kasan_report+0x144/0x340 mm/kasan/report.c:409 check_memory_region_inline mm/kasan/kasan.c:260 [inline] check_memory_region+0x137/0x190 mm/kasan/kasan.c:267 memcpy+0x37/0x50 mm/kasan/kasan.c:303 memcpy include/linux/string.h:344 [inline] array_map_update_elem+0x197/0x240 kernel/bpf/arraymap.c:249 map_update_elem kernel/bpf/syscall.c:687 [inline] SYSC_bpf kernel/bpf/syscall.c:1811 [inline] SyS_bpf+0x32df/0x4400 kernel/bpf/syscall.c:1782 entry_SYSCALL_64_fastpath+0x23/0x9a RIP: 0033:0x452ac9 RSP: 002b:00007f23b1968c58 EFLAGS: 00000212 ORIG_RAX: 0000000000000141 RAX: ffffffffffffffda RBX: 000000000071bea0 RCX: 0000000000452ac9 RDX: 0000000000000020 RSI: 0000000020bba000 RDI: 0000000000000002 RBP: 0000000000000036 R08: 0000000000000000 R09: 0000000000000000 R10: 0000000000000000 R11: 0000000000000212 R12: 00000000006ee5b0 R13: 00000000ffffffff R14: 00007f23b19696d4 R15: 0000000000000000 Dumping ftrace buffer: (ftrace buffer empty) Kernel Offset: disabled Rebooting in 86400 seconds..