bisecting fixing commit since a74d0e937a3acaea08ec0a7bfa047b8e0a6b6303 building syzkaller on 442206d76b974cca2d83ec763d4cf5ee829eb7d6 testing commit a74d0e937a3acaea08ec0a7bfa047b8e0a6b6303 with gcc (GCC) 8.1.0 kernel signature: 42eac940a950901965f11077e6ab18af3640a54ecae448df8347e81ac42c877b all runs: crashed: general protection fault in __vb2_queue_free testing current HEAD 4520f06b03ae667e442da1ab9351fd28cd7ac598 testing commit 4520f06b03ae667e442da1ab9351fd28cd7ac598 with gcc (GCC) 8.1.0 kernel signature: aab924db90d705e5d2124ce8e2554952ab1909eeb74d7eeb78bf128ecc478c93 all runs: crashed: general protection fault in __vb2_queue_free revisions tested: 2, total time: 23m26.65922389s (build: 16m28.669670159s, test: 6m17.446527504s) the crash still happens on HEAD commit msg: Linux 4.14.175 crash: general protection fault in __vb2_queue_free 0 pages cma reserved Out of memory: Kill process 6075 (syz-execprog) score 1 or sacrifice child Killed process 6099 (syz-executor.5) total-vm:37636kB, anon-rss:64kB, file-rss:0kB, shmem-rss:0kB kasan: CONFIG_KASAN_INLINE enabled kasan: GPF could be caused by NULL-ptr deref or user memory access general protection fault: 0000 [#1] PREEMPT SMP KASAN Modules linked in: CPU: 0 PID: 6956 Comm: syz-executor.2 Not tainted 4.14.175-syzkaller #0 Hardware name: Google Google Compute Engine/Google Compute Engine, BIOS Google 01/01/2011 task: ffff888095a94300 task.stack: ffff8880968e8000 RIP: 0010:vb2_vmalloc_put_userptr+0x69/0x1e0 drivers/media/v4l2-core/videobuf2-vmalloc.c:136 RSP: 0018:ffff8880968ef9f0 EFLAGS: 00010202 RAX: dffffc0000000000 RBX: ffffc90005cd7000 RCX: ffffffff8423dcb0 RDX: 0000000000000001 RSI: ffffed101058959a RDI: 0000000000000009 RBP: ffff8880968efa18 R08: ffff888098006f00 R09: 1ffffffff0de588c R10: ffff8880968efaa8 R11: ffff888095a94300 R12: ffff888098006f00 R13: 0000000000000000 R14: dffffc0000000000 R15: ffff888098006f08 FS: 00007f3d503e9700(0000) GS:ffff8880aee00000(0000) knlGS:0000000000000000 CS: 0010 DS: 0000 ES: 0000 CR0: 0000000080050033 CR2: 00000000200001c0 CR3: 000000009c1eb000 CR4: 00000000001406f0 DR0: 0000000000000000 DR1: 0000000000000000 DR2: 0000000000000000 DR3: 0000000000000000 DR6: 00000000fffe0ff0 DR7: 0000000000000400 Call Trace: __vb2_buf_userptr_put drivers/media/v4l2-core/videobuf2-core.c:256 [inline] __vb2_free_mem drivers/media/v4l2-core/videobuf2-core.c:413 [inline] __vb2_queue_free+0x337/0x770 drivers/media/v4l2-core/videobuf2-core.c:454 vb2_core_queue_release+0x57/0x70 drivers/media/v4l2-core/videobuf2-core.c:2043 vb2_queue_release+0x9/0x10 drivers/media/v4l2-core/videobuf2-v4l2.c:669 v4l2_m2m_ctx_release+0x22/0x30 drivers/media/v4l2-core/v4l2-mem2mem.c:674 vim2m_release+0xcd/0x120 drivers/media/platform/vim2m.c:959 v4l2_release+0xeb/0x1a0 drivers/media/v4l2-core/v4l2-dev.c:446 __fput+0x232/0x750 fs/file_table.c:210 ____fput+0x9/0x10 fs/file_table.c:244 task_work_run+0xe5/0x170 kernel/task_work.c:113 get_signal+0x148c/0x1b30 kernel/signal.c:2234 do_signal+0x7f/0x19a0 arch/x86/kernel/signal.c:814 exit_to_usermode_loop+0x114/0x1b0 arch/x86/entry/common.c:160 prepare_exit_to_usermode arch/x86/entry/common.c:199 [inline] syscall_return_slowpath arch/x86/entry/common.c:270 [inline] do_syscall_64+0x416/0x5b0 arch/x86/entry/common.c:297 entry_SYSCALL_64_after_hwframe+0x42/0xb7 RIP: 0033:0x4592c9 RSP: 002b:00007f3d503e8c78 EFLAGS: 00000246 ORIG_RAX: 0000000000000010 RAX: fffffffffffffff2 RBX: 0000000000000003 RCX: 00000000004592c9 RDX: 00000000200001c0 RSI: 00000000c100565c RDI: 0000000000000004 RBP: 000000000075bf20 R08: 0000000000000000 R09: 0000000000000000 R10: 0000000000000000 R11: 0000000000000246 R12: 00007f3d503e96d4 R13: 00000000004c4241 R14: 00000000004d7ee0 R15: 00000000ffffffff Code: 4c 89 fa 48 c1 ea 03 80 3c 02 00 0f 85 76 01 00 00 48 b8 00 00 00 00 00 fc ff df 4d 8b 6c 24 08 49 8d 7d 09 48 89 fa 48 c1 ea 03 <0f> b6 04 02 48 89 fa 83 e2 07 38 d0 7f 08 84 c0 0f 85 07 01 00 RIP: vb2_vmalloc_put_userptr+0x69/0x1e0 drivers/media/v4l2-core/videobuf2-vmalloc.c:136 RSP: ffff8880968ef9f0 ---[ end trace 094c9fdefc0b1b71 ]---