Sensor A: Test Pattern: 75% Colorbar Sensor A: Vertical Flip: false Sensor A: Horizontal Flip: false ================================================================== BUG: KASAN: slab-out-of-bounds in memcpy include/linux/string.h:352 [inline] BUG: KASAN: slab-out-of-bounds in queue_stack_map_push_elem+0x185/0x290 kernel/bpf/queue_stack_maps.c:230 Write of size 262146 at addr ffff88818400b988 by task syz-executor5/19222 Sensor A: Brightness: 128 CPU: 1 PID: 19222 Comm: syz-executor5 Not tainted 4.20.0-rc4+ #131 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+0x244/0x39d lib/dump_stack.c:113 Sensor A: Contrast: 128 print_address_description.cold.7+0x9/0x1ff mm/kasan/report.c:256 kasan_report_error mm/kasan/report.c:354 [inline] kasan_report.cold.8+0x242/0x309 mm/kasan/report.c:412 check_memory_region_inline mm/kasan/kasan.c:260 [inline] check_memory_region+0x13e/0x1b0 mm/kasan/kasan.c:267 memcpy+0x37/0x50 mm/kasan/kasan.c:303 Sensor A: Hue: 0 memcpy include/linux/string.h:352 [inline] queue_stack_map_push_elem+0x185/0x290 kernel/bpf/queue_stack_maps.c:230 map_update_elem+0x605/0xf60 kernel/bpf/syscall.c:865 __do_sys_bpf kernel/bpf/syscall.c:2495 [inline] __se_sys_bpf kernel/bpf/syscall.c:2466 [inline] __x64_sys_bpf+0x32d/0x520 kernel/bpf/syscall.c:2466 do_syscall_64+0x1b9/0x820 arch/x86/entry/common.c:290 entry_SYSCALL_64_after_hwframe+0x49/0xbe Sensor A: Saturation: 128 RIP: 0033:0x457569 Code: fd b3 fb ff c3 66 2e 0f 1f 84 00 00 00 00 00 66 90 48 89 f8 48 89 f7 48 89 d6 48 89 ca 4d 89 c2 4d 89 c8 4c 8b 4c 24 08 0f 05 <48> 3d 01 f0 ff ff 0f 83 cb b3 fb ff c3 66 2e 0f 1f 84 00 00 00 00 RSP: 002b:00007f62ead87c78 EFLAGS: 00000246 ORIG_RAX: 0000000000000141 RAX: ffffffffffffffda RBX: 0000000000000003 RCX: 0000000000457569 RDX: 0000000000000020 RSI: 0000000020000040 RDI: 0000000000000002 RBP: 000000000072bf00 R08: 0000000000000000 R09: 0000000000000000 R10: 0000000000000000 R11: 0000000000000246 R12: 00007f62ead886d4 R13: 00000000004bd9e6 R14: 00000000004ccc98 R15: 00000000ffffffff Allocated by task 19222: save_stack+0x43/0xd0 mm/kasan/kasan.c:448 set_track mm/kasan/kasan.c:460 [inline] kasan_kmalloc+0xc7/0xe0 mm/kasan/kasan.c:553 __do_kmalloc_node mm/slab.c:3684 [inline] __kmalloc_node+0x50/0x70 mm/slab.c:3691 kmalloc_node include/linux/slab.h:589 [inline] bpf_map_area_alloc+0x3f/0x90 kernel/bpf/syscall.c:147 queue_stack_map_alloc+0x192/0x290 kernel/bpf/queue_stack_maps.c:84 find_and_alloc_map kernel/bpf/syscall.c:129 [inline] map_create+0x3bd/0x1110 kernel/bpf/syscall.c:509 __do_sys_bpf kernel/bpf/syscall.c:2489 [inline] __se_sys_bpf kernel/bpf/syscall.c:2466 [inline] __x64_sys_bpf+0x303/0x520 kernel/bpf/syscall.c:2466 do_syscall_64+0x1b9/0x820 arch/x86/entry/common.c:290 entry_SYSCALL_64_after_hwframe+0x49/0xbe Freed by task 18057: save_stack+0x43/0xd0 mm/kasan/kasan.c:448 set_track mm/kasan/kasan.c:460 [inline] __kasan_slab_free+0x102/0x150 mm/kasan/kasan.c:521 kasan_slab_free+0xe/0x10 mm/kasan/kasan.c:528 Sensor A: ================== END STATUS ================== __cache_free mm/slab.c:3498 [inline] kfree+0xcf/0x230 mm/slab.c:3817 load_elf_binary+0x25a8/0x5620 fs/binfmt_elf.c:1117 search_binary_handler+0x17d/0x570 fs/exec.c:1654 exec_binprm fs/exec.c:1696 [inline] __do_execve_file.isra.33+0x1661/0x25d0 fs/exec.c:1820 do_execveat_common fs/exec.c:1867 [inline] do_execve fs/exec.c:1884 [inline] __do_sys_execve fs/exec.c:1965 [inline] __se_sys_execve fs/exec.c:1960 [inline] __x64_sys_execve+0x8f/0xc0 fs/exec.c:1960 do_syscall_64+0x1b9/0x820 arch/x86/entry/common.c:290 entry_SYSCALL_64_after_hwframe+0x49/0xbe kobject: 'loop2' (00000000cd856447): fill_kobj_path: path = '/devices/virtual/block/loop2' The buggy address belongs to the object at ffff88818400b840 which belongs to the cache kmalloc-512 of size 512 The buggy address is located 328 bytes inside of 512-byte region [ffff88818400b840, ffff88818400ba40) The buggy address belongs to the page: page:ffffea00061002c0 count:1 mapcount:0 mapping:ffff8881da800940 index:0x0 flags: 0x2fffc0000000200(slab) raw: 02fffc0000000200 ffffea0006100388 ffffea0006af92c8 ffff8881da800940 raw: 0000000000000000 ffff88818400b0c0 0000000100000006 0000000000000000 kobject: 'loop1' (00000000fb7e56ac): kobject_uevent_env page dumped because: kasan: bad access detected kobject: 'loop1' (00000000fb7e56ac): fill_kobj_path: path = '/devices/virtual/block/loop1' Memory state around the buggy address: ffff88818400b880: 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 ffff88818400b900: 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 >ffff88818400b980: 00 00 00 00 00 00 00 00 fc fc fc fc fc fc fc fc ^ ffff88818400ba00: fc fc fc fc fc fc fc fc fc fc fc fc fc fc fc fc ffff88818400ba80: fc fc fc fc fc fc fc fc fb fb fb fb fb fb fb fb ==================================================================