bisecting cause commit starting from e12e00e388dee1d2a86e9b90f79a69f9acd2c9b0 building syzkaller on 7b5f86212c1bcfb5120dd42086b1c1192468d3b3 testing commit e12e00e388dee1d2a86e9b90f79a69f9acd2c9b0 with gcc (GCC) 8.1.0 run #0: crashed: general protection fault in vb2_mmap run #1: crashed: general protection fault in vb2_mmap run #2: crashed: general protection fault in corrupted run #3: crashed: general protection fault in vb2_mmap run #4: crashed: general protection fault in vb2_mmap run #5: crashed: general protection fault in vb2_mmap run #6: crashed: general protection fault in vb2_mmap run #7: crashed: general protection fault in vb2_mmap run #8: crashed: general protection fault in vb2_mmap run #9: crashed: general protection fault in vb2_mmap testing release v4.19 testing commit 84df9525b0c27f3ebc2ebb1864fa62a97fdedb7d with gcc (GCC) 8.1.0 all runs: crashed: general protection fault in vb2_mmap testing release v4.18 testing commit 94710cac0ef4ee177a63b5227664b38c95bbf703 with gcc (GCC) 8.1.0 run #0: crashed: general protection fault in vb2_mmap run #1: crashed: general protection fault in vb2_mmap run #2: crashed: general protection fault in vb2_mmap run #3: crashed: general protection fault in vb2_mmap run #4: crashed: general protection fault in vb2_mmap run #5: crashed: general protection fault in vb2_mmap run #6: crashed: general protection fault in vb2_mmap run #7: crashed: KASAN: use-after-free Read in vb2_mmap run #8: crashed: general protection fault in vb2_mmap run #9: crashed: general protection fault in vb2_mmap testing release v4.17 testing commit 29dcea88779c856c7dc92040a0c01233263101d4 with gcc (GCC) 8.1.0 run #0: crashed: general protection fault in vb2_mmap run #1: crashed: general protection fault in vb2_mmap run #2: crashed: general protection fault in vb2_mmap run #3: crashed: general protection fault in vb2_mmap run #4: crashed: general protection fault in vb2_mmap run #5: crashed: general protection fault in vb2_mmap run #6: crashed: KASAN: use-after-free Read in vb2_mmap run #7: crashed: KASAN: use-after-free Read in vb2_mmap run #8: crashed: general protection fault in vb2_mmap run #9: crashed: general protection fault in vb2_mmap testing release v4.16 testing commit 0adb32858b0bddf4ada5f364a84ed60b196dbcda with gcc (GCC) 8.1.0 run #0: crashed: general protection fault in vb2_mmap run #1: crashed: general protection fault in vb2_mmap run #2: crashed: general protection fault in vb2_mmap run #3: crashed: general protection fault in vb2_mmap run #4: crashed: general protection fault in vb2_mmap run #5: crashed: KASAN: use-after-free Read in vb2_mmap run #6: crashed: general protection fault in vb2_mmap run #7: crashed: general protection fault in vb2_mmap run #8: crashed: general protection fault in vb2_mmap run #9: crashed: general protection fault in vb2_mmap testing release v4.15 testing commit d8a5b80568a9cb66810e75b182018e9edb68e8ff with gcc (GCC) 8.1.0 run #0: crashed: general protection fault in vb2_mmap run #1: crashed: KASAN: use-after-free Read in vb2_mmap run #2: crashed: general protection fault in vb2_mmap run #3: crashed: general protection fault in vb2_mmap run #4: crashed: general protection fault in vb2_mmap run #5: crashed: general protection fault in vb2_mmap run #6: crashed: general protection fault in vb2_mmap run #7: crashed: general protection fault in vb2_mmap run #8: crashed: general protection fault in vb2_mmap run #9: crashed: general protection fault in vb2_mmap testing release v4.14 testing commit bebc6082da0a9f5d47a1ea2edc099bf671058bd4 with gcc (GCC) 8.1.0 all runs: crashed: general protection fault in vb2_mmap testing release v4.13 testing commit 569dbb88e80deb68974ef6fdd6a13edb9d686261 with gcc (GCC) 8.1.0 run #0: crashed: general protection fault in vb2_mmap run #1: crashed: general protection fault in vb2_mmap run #2: crashed: general protection fault in vb2_mmap run #3: crashed: general protection fault in vb2_mmap run #4: crashed: general protection fault in vb2_mmap run #5: crashed: general protection fault in vb2_mmap run #6: crashed: general protection fault in vb2_mmap run #7: crashed: KASAN: use-after-free Read in vb2_mmap run #8: crashed: general protection fault in vb2_mmap run #9: crashed: general protection fault in vb2_mmap testing release v4.12 testing commit 6f7da290413ba713f0cdd9ff1a2a9bb129ef4f6c with gcc (GCC) 8.1.0 run #0: crashed: KASAN: use-after-free Read in vb2_mmap run #1: crashed: general protection fault in vb2_mmap run #2: crashed: general protection fault in vb2_mmap run #3: crashed: general protection fault in vb2_mmap run #4: crashed: general protection fault in vb2_mmap run #5: crashed: general protection fault in vb2_mmap run #6: crashed: general protection fault in vb2_mmap run #7: crashed: general protection fault in vb2_mmap run #8: crashed: general protection fault in vb2_mmap run #9: crashed: general protection fault in vb2_mmap testing release v4.11 testing commit a351e9b9fc24e982ec2f0e76379a49826036da12 with gcc (GCC) 7.3.0 run #0: crashed: general protection fault in vb2_mmap run #1: crashed: general protection fault in vb2_mmap run #2: crashed: general protection fault in vb2_mmap run #3: crashed: KASAN: use-after-free Read in vb2_mmap run #4: crashed: KASAN: use-after-free Read in vb2_mmap run #5: crashed: general protection fault in vb2_mmap run #6: crashed: general protection fault in vb2_mmap run #7: crashed: general protection fault in vb2_mmap run #8: crashed: general protection fault in vb2_mmap run #9: crashed: general protection fault in vb2_mmap testing release v4.10 testing commit c470abd4fde40ea6a0846a2beab642a578c0b8cd with gcc (GCC) 5.5.0 run #0: crashed: general protection fault in vb2_mmap run #1: crashed: general protection fault in vb2_mmap run #2: crashed: KASAN: use-after-free Read in vb2_mmap run #3: crashed: general protection fault in vb2_mmap run #4: crashed: general protection fault in vb2_mmap run #5: crashed: KASAN: use-after-free Read in vb2_mmap run #6: crashed: KASAN: use-after-free Read in vb2_mmap run #7: crashed: general protection fault in vb2_mmap run #8: crashed: KASAN: use-after-free Read in vb2_mmap run #9: crashed: general protection fault in vb2_mmap testing release v4.9 testing commit 69973b830859bc6529a7a0468ba0d80ee5117826 with gcc (GCC) 5.5.0 run #0: crashed: general protection fault in vb2_mmap run #1: crashed: general protection fault in vb2_mmap run #2: crashed: general protection fault in vb2_mmap run #3: crashed: general protection fault in vb2_mmap run #4: crashed: general protection fault in vb2_mmap run #5: crashed: KASAN: use-after-free Read in vb2_mmap run #6: crashed: KASAN: use-after-free Read in vb2_mmap run #7: crashed: general protection fault in vb2_mmap run #8: crashed: general protection fault in vb2_mmap run #9: crashed: general protection fault in vb2_mmap testing release v4.8 testing commit c8d2bc9bc39ebea8437fd974fdbc21847bb897a3 with gcc (GCC) 5.5.0 run #0: crashed: general protection fault in vb2_mmap run #1: crashed: general protection fault in vb2_mmap run #2: crashed: general protection fault in vb2_mmap run #3: crashed: general protection fault in vb2_mmap run #4: crashed: general protection fault in vb2_mmap run #5: crashed: general protection fault in vb2_mmap run #6: crashed: general protection fault in vb2_mmap run #7: crashed: KASAN: use-after-free Read in vb2_mmap run #8: crashed: general protection fault in vb2_mmap run #9: crashed: general protection fault in vb2_mmap testing release v4.7 testing commit 523d939ef98fd712632d93a5a2b588e477a7565e with gcc (GCC) 5.5.0 all runs: crashed: general protection fault in vb2_mmap testing release v4.6 testing commit 2dcd0af568b0cf583645c8a317dd12e344b1c72a with gcc (GCC) 5.5.0 all runs: crashed: general protection fault in vb2_mmap testing release v4.5 testing commit b562e44f507e863c6792946e4e1b1449fbbac85d with gcc (GCC) 5.5.0 all runs: crashed: BUG: unable to handle kernel NULL pointer dereference in vb2_mmap testing release v4.4 testing commit afd2ff9b7e1b367172f18ba7f693dfb62bdcb2dc with gcc (GCC) 5.5.0 run #0: crashed: BUG: unable to handle kernel NULL pointer dereference in vb2_mmap run #1: crashed: BUG: unable to handle kernel NULL pointer dereference in vb2_mmap run #2: crashed: BUG: unable to handle kernel NULL pointer dereference in vb2_mmap run #3: crashed: BUG: unable to handle kernel NULL pointer dereference in vb2_mmap run #4: crashed: BUG: unable to handle kernel NULL pointer dereference in vb2_mmap run #5: crashed: BUG: unable to handle kernel NULL pointer dereference in vb2_mmap run #6: crashed: BUG: unable to handle kernel NULL pointer dereference in vb2_mmap run #7: crashed: BUG: unable to handle kernel run #8: crashed: BUG: unable to handle kernel NULL pointer dereference in vb2_mmap run #9: crashed: BUG: unable to handle kernel testing release v4.3 testing commit 6a13feb9c82803e2b815eca72fa7a9f5561d7861 with gcc (GCC) 5.5.0 all runs: crashed: BUG: unable to handle kernel NULL pointer dereference in vb2_mmap testing release v4.2 testing commit 64291f7db5bd8150a74ad2036f1037e6a0428df2 with gcc (GCC) 5.5.0 all runs: crashed: BUG: unable to handle kernel NULL pointer dereference in vb2_mmap testing release v4.1 testing commit b953c0d234bc72e8489d3bf51a276c5c4ec85345 with gcc (GCC) 5.5.0 all runs: crashed: BUG: unable to handle kernel NULL pointer dereference in vb2_mmap revisions tested: 20, total time: 2h29m38.349169002s (build: 1h21m13.406745539s, test: 1h4m19.583073597s) the crash already happened on the oldest tested release crash: BUG: unable to handle kernel NULL pointer dereference in vb2_mmap IPv6: ADDRCONF(NETDEV_CHANGE): veth0: link becomes ready IPv6: ADDRCONF(NETDEV_CHANGE): veth0: link becomes ready IPv6: ADDRCONF(NETDEV_CHANGE): veth0: link becomes ready IPv6: ADDRCONF(NETDEV_CHANGE): veth0: link becomes ready IPv6: ADDRCONF(NETDEV_CHANGE): veth0: link becomes ready BUG: unable to handle kernel NULL pointer dereference at 0000000000000260 IP: [] __find_plane_by_offset drivers/media/v4l2-core/videobuf2-core.c:2363 [inline] IP: [] vb2_mmap+0x150/0x2c0 drivers/media/v4l2-core/videobuf2-core.c:2511 PGD 71a60067 PUD 68e16067 PMD 0 Oops: 0000 [#1] PREEMPT SMP Modules linked in: CPU: 0 PID: 9452 Comm: syz-executor5 Not tainted 4.1.0 #1 Hardware name: QEMU Standard PC (i440FX + PIIX, 1996), BIOS 1.10.2-1 04/01/2014 task: ffff88007195c510 ti: ffff880069be4000 task.ti: ffff880069be4000 RIP: 0010:[] [] __find_plane_by_offset drivers/media/v4l2-core/videobuf2-core.c:2363 [inline] RIP: 0010:[] [] vb2_mmap+0x150/0x2c0 drivers/media/v4l2-core/videobuf2-core.c:2511 RSP: 0018:ffff880069be7ce8 EFLAGS: 00010206 RAX: 000000000000000a RBX: ffff8800746da8b8 RCX: ffff88007c742880 RDX: 000000000000000b RSI: 0000000020a00000 RDI: ffff88007c16dda8 RBP: ffff880069be7d28 R08: 0000000000000000 R09: 000000000000000a R10: ffff880073675260 R11: 0000000000000000 R12: ffff8800746da8b8 R13: ffff88007345c5c0 R14: 0000000000000000 R15: 0000000000000000 FS: 00007f04146e6700(0000) GS:ffff88007fc00000(0000) knlGS:0000000000000000 CS: 0010 DS: 0000 ES: 0000 CR0: 0000000080050033 CR2: 0000000000000260 CR3: 000000007192b000 CR4: 00000000003407f0 DR0: 0000000000000000 DR1: 0000000000000000 DR2: 0000000000000000 DR3: 0000000000000000 DR6: 00000000fffe0ff0 DR7: 0000000000000400 Stack: ffff880069be7d68 ffffffff812df28c 0000000000000000 ffff8800746da8b8 ffff88007c16aba8 ffff88007345c5c0 ffff880073675240 0000000021000000 ffff880069be7d48 ffffffff81e7e910 ffffffff83637f08 00000000ffffffed Call Trace: [] vb2_fop_mmap+0x20/0x30 drivers/media/v4l2-core/videobuf2-core.c:3405 [] v4l2_mmap+0x52/0x90 drivers/media/v4l2-core/v4l2-dev.c:396 [] mmap_region+0x3f0/0x670 mm/mmap.c:1615 [] do_mmap_pgoff+0x317/0x400 mm/mmap.c:1391 [] vm_mmap_pgoff+0x90/0xc0 mm/util.c:297 [] SYSC_mmap_pgoff mm/mmap.c:1441 [inline] [] SyS_mmap_pgoff+0x1d7/0x280 mm/mmap.c:1399 [] SYSC_mmap arch/x86/kernel/sys_x86_64.c:95 [inline] [] SyS_mmap+0x16/0x30 arch/x86/kernel/sys_x86_64.c:86 [] system_call_fastpath+0x16/0x7a Code: 00 85 c0 0f 84 fc fe ff ff 49 8b b4 24 98 00 00 00 44 8d 48 ff 45 31 c0 49 83 c1 01 48 c1 e6 0c 4e 8b bc c7 d0 00 00 00 45 89 c6 <41> 8b 97 60 02 00 00 85 d2 74 29 41 8b 47 60 48 39 c6 74 2e 49 RIP [] __find_plane_by_offset drivers/media/v4l2-core/videobuf2-core.c:2361 [inline] RIP [] vb2_mmap+0x150/0x2c0 drivers/media/v4l2-core/videobuf2-core.c:2511 RSP CR2: 0000000000000260 ---[ end trace b01c94fcb5ab8a15 ]---