IPv6: ADDRCONF(NETDEV_UP): hsr0: link is not ready IPv6: ADDRCONF(NETDEV_CHANGE): hsr0: link becomes ready IPv6: ADDRCONF(NETDEV_UP): vxcan1: link is not ready 8021q: adding VLAN 0 to HW filter on device batadv0 ================================================================== BUG: KASAN: use-after-free in __vb2_perform_fileio+0xddf/0xeb0 drivers/media/v4l2-core/videobuf2-core.c:2379 Read of size 4 at addr ffff888085cf3e5c by task syz-executor.0/7212 CPU: 0 PID: 7212 Comm: syz-executor.0 Not tainted 4.14.113 #3 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+0x138/0x19c lib/dump_stack.c:53 print_address_description.cold+0x7c/0x1dc mm/kasan/report.c:252 kasan_report_error mm/kasan/report.c:351 [inline] kasan_report mm/kasan/report.c:409 [inline] kasan_report.cold+0xaf/0x2b5 mm/kasan/report.c:393 __asan_report_load4_noabort+0x14/0x20 mm/kasan/report.c:429 __vb2_perform_fileio+0xddf/0xeb0 drivers/media/v4l2-core/videobuf2-core.c:2379 vb2_read+0x3b/0x50 drivers/media/v4l2-core/videobuf2-core.c:2490 vb2_fop_read+0x1f5/0x3e0 drivers/media/v4l2-core/videobuf2-v4l2.c:895 v4l2_read+0x1ac/0x210 drivers/media/v4l2-core/v4l2-dev.c:309 __vfs_read+0x107/0x6b0 fs/read_write.c:411 vfs_read+0x137/0x350 fs/read_write.c:447 SYSC_read fs/read_write.c:573 [inline] SyS_read+0xb8/0x180 fs/read_write.c:566 do_syscall_64+0x1eb/0x630 arch/x86/entry/common.c:289 entry_SYSCALL_64_after_hwframe+0x42/0xb7 RIP: 0033:0x458d99 RSP: 002b:00007f04f9091c78 EFLAGS: 00000246 ORIG_RAX: 0000000000000000 RAX: ffffffffffffffda RBX: 0000000000000003 RCX: 0000000000458d99 RDX: 0000000000000052 RSI: 0000000020000540 RDI: 0000000000000004 RBP: 000000000073bf00 R08: 0000000000000000 R09: 0000000000000000 R10: 0000000000000000 R11: 0000000000000246 R12: 00007f04f90926d4 R13: 00000000004c4aa8 R14: 00000000004da068 R15: 00000000ffffffff Allocated by task 7212: save_stack_trace+0x16/0x20 arch/x86/kernel/stacktrace.c:59 save_stack+0x45/0xd0 mm/kasan/kasan.c:447 set_track mm/kasan/kasan.c:459 [inline] kasan_kmalloc mm/kasan/kasan.c:551 [inline] kasan_kmalloc+0xce/0xf0 mm/kasan/kasan.c:529 kmem_cache_alloc_trace+0x152/0x790 mm/slab.c:3618 kmalloc include/linux/slab.h:488 [inline] kzalloc include/linux/slab.h:661 [inline] __vb2_init_fileio+0x182/0xa90 drivers/media/v4l2-core/videobuf2-core.c:2224 __vb2_perform_fileio+0x9f0/0xeb0 drivers/media/v4l2-core/videobuf2-core.c:2358 vb2_read+0x3b/0x50 drivers/media/v4l2-core/videobuf2-core.c:2490 vb2_fop_read+0x1f5/0x3e0 drivers/media/v4l2-core/videobuf2-v4l2.c:895 v4l2_read+0x1ac/0x210 drivers/media/v4l2-core/v4l2-dev.c:309 __vfs_read+0x107/0x6b0 fs/read_write.c:411 vfs_read+0x137/0x350 fs/read_write.c:447 SYSC_read fs/read_write.c:573 [inline] SyS_read+0xb8/0x180 fs/read_write.c:566 do_syscall_64+0x1eb/0x630 arch/x86/entry/common.c:289 entry_SYSCALL_64_after_hwframe+0x42/0xb7 Freed by task 7205: save_stack_trace+0x16/0x20 arch/x86/kernel/stacktrace.c:59 save_stack+0x45/0xd0 mm/kasan/kasan.c:447 set_track mm/kasan/kasan.c:459 [inline] kasan_slab_free+0x75/0xc0 mm/kasan/kasan.c:524 __cache_free mm/slab.c:3496 [inline] kfree+0xcc/0x270 mm/slab.c:3815 __vb2_cleanup_fileio+0xfc/0x150 drivers/media/v4l2-core/videobuf2-core.c:2317 vb2_core_queue_release+0x1d/0x80 drivers/media/v4l2-core/videobuf2-core.c:2040 vb2_queue_release drivers/media/v4l2-core/videobuf2-v4l2.c:669 [inline] _vb2_fop_release+0x1cf/0x2a0 drivers/media/v4l2-core/videobuf2-v4l2.c:840 vb2_fop_release+0x75/0xc0 drivers/media/v4l2-core/videobuf2-v4l2.c:854 vivid_fop_release+0x180/0x3f0 drivers/media/platform/vivid/vivid-core.c:486 v4l2_release+0xfb/0x190 drivers/media/v4l2-core/v4l2-dev.c:446 __fput+0x277/0x7a0 fs/file_table.c:210 ____fput+0x16/0x20 fs/file_table.c:244 task_work_run+0x119/0x190 kernel/task_work.c:113 tracehook_notify_resume include/linux/tracehook.h:191 [inline] exit_to_usermode_loop+0x1da/0x220 arch/x86/entry/common.c:163 prepare_exit_to_usermode arch/x86/entry/common.c:198 [inline] syscall_return_slowpath arch/x86/entry/common.c:267 [inline] do_syscall_64+0x4a9/0x630 arch/x86/entry/common.c:294 entry_SYSCALL_64_after_hwframe+0x42/0xb7 The buggy address belongs to the object at ffff888085cf3b40 which belongs to the cache kmalloc-1024 of size 1024 The buggy address is located 796 bytes inside of 1024-byte region [ffff888085cf3b40, ffff888085cf3f40) The buggy address belongs to the page: page:ffffea0002173c80 count:1 mapcount:0 mapping:ffff888085cf2040 index:0x0 compound_mapcount: 0 flags: 0x1fffc0000008100(slab|head) raw: 01fffc0000008100 ffff888085cf2040 0000000000000000 0000000100000007 raw: ffffea0002704920 ffffea000229e720 ffff8880aa800ac0 0000000000000000 page dumped because: kasan: bad access detected Memory state around the buggy address: ffff888085cf3d00: fb fb fb fb fb fb fb fb fb fb fb fb fb fb fb fb ffff888085cf3d80: fb fb fb fb fb fb fb fb fb fb fb fb fb fb fb fb >ffff888085cf3e00: fb fb fb fb fb fb fb fb fb fb fb fb fb fb fb fb ^ ffff888085cf3e80: fb fb fb fb fb fb fb fb fb fb fb fb fb fb fb fb ffff888085cf3f00: fb fb fb fb fb fb fb fb fc fc fc fc fc fc fc fc ==================================================================