bisecting cause commit starting from 98be45067040799a801e6ce52d8bf4659a153893 building syzkaller on 2e0e3130f967984ba51ac1387b67040f0d953942 testing commit 98be45067040799a801e6ce52d8bf4659a153893 with gcc (GCC) 8.1.0 all runs: crashed: general protection fault in _vm_normal_page testing release v4.17 testing commit 29dcea88779c856c7dc92040a0c01233263101d4 with gcc (GCC) 8.1.0 all runs: OK # git bisect start 98be45067040799a801e6ce52d8bf4659a153893 v4.17 Bisecting: 9547 revisions left to test after this (roughly 13 steps) [6419945e3313fd894af79caefca6823d4511133f] Merge tag 'clk-for-linus' of git://git.kernel.org/pub/scm/linux/kernel/git/clk/linux testing commit 6419945e3313fd894af79caefca6823d4511133f with gcc (GCC) 8.1.0 run #0: OK run #1: OK run #2: OK run #3: OK run #4: OK run #5: OK run #6: boot failed: KASAN: use-after-free Write in call_usermodehelper_exec_work run #7: boot failed: KASAN: use-after-free Write in call_usermodehelper_exec_work run #8: boot failed: KASAN: use-after-free Write in call_usermodehelper_exec_work run #9: boot failed: KASAN: use-after-free Write in call_usermodehelper_exec_work # git bisect good 6419945e3313fd894af79caefca6823d4511133f Bisecting: 4766 revisions left to test after this (roughly 12 steps) [5c37dc1666c308a426009befb05b83d12296dcc3] Merge remote-tracking branch 's390/features' testing commit 5c37dc1666c308a426009befb05b83d12296dcc3 with gcc (GCC) 8.1.0 all runs: OK # git bisect good 5c37dc1666c308a426009befb05b83d12296dcc3 Bisecting: 2408 revisions left to test after this (roughly 11 steps) [18f46f0b994bc9d5bd85f02648ea798d144880ef] Merge remote-tracking branch 'drm/drm-next' testing commit 18f46f0b994bc9d5bd85f02648ea798d144880ef with gcc (GCC) 8.1.0 all runs: OK # git bisect good 18f46f0b994bc9d5bd85f02648ea798d144880ef Bisecting: 1206 revisions left to test after this (roughly 10 steps) [148e7e4bf91b17c264601f7a2b270a0cdc8fd066] Merge remote-tracking branch 'usb/usb-next' testing commit 148e7e4bf91b17c264601f7a2b270a0cdc8fd066 with gcc (GCC) 8.1.0 all runs: OK # git bisect good 148e7e4bf91b17c264601f7a2b270a0cdc8fd066 Bisecting: 606 revisions left to test after this (roughly 9 steps) [850a447b4db8a0adea24a8ca933e91479f3125f9] Merge remote-tracking branch 'scsi/for-next' testing commit 850a447b4db8a0adea24a8ca933e91479f3125f9 with gcc (GCC) 8.1.0 all runs: OK # git bisect good 850a447b4db8a0adea24a8ca933e91479f3125f9 Bisecting: 299 revisions left to test after this (roughly 8 steps) [f4611e3fd0b7781db5a37bc0c208f78ae73a62d9] Merge remote-tracking branch 'fsi/master' testing commit f4611e3fd0b7781db5a37bc0c208f78ae73a62d9 with gcc (GCC) 8.1.0 all runs: OK # git bisect good f4611e3fd0b7781db5a37bc0c208f78ae73a62d9 Bisecting: 149 revisions left to test after this (roughly 7 steps) [1f989b6a333fc8d6bddd1552420bb97e3295468a] list_lru-prefetch-neighboring-list-entries-before-acquiring-lock-fix testing commit 1f989b6a333fc8d6bddd1552420bb97e3295468a with gcc (GCC) 8.1.0 all runs: crashed: general protection fault in _vm_normal_page # git bisect bad 1f989b6a333fc8d6bddd1552420bb97e3295468a Bisecting: 74 revisions left to test after this (roughly 6 steps) [458914ebd378656df22f9ef440e99c81b37c0287] mm: workingset: make shadow_lru_isolate() use locking suffix testing commit 458914ebd378656df22f9ef440e99c81b37c0287 with gcc (GCC) 8.1.0 all runs: OK # git bisect good 458914ebd378656df22f9ef440e99c81b37c0287 Bisecting: 37 revisions left to test after this (roughly 5 steps) [73921f527dd6dae41df0112a8367bda6dcf938e5] fs/super.c: refactor alloc_super() testing commit 73921f527dd6dae41df0112a8367bda6dcf938e5 with gcc (GCC) 8.1.0 all runs: OK # git bisect good 73921f527dd6dae41df0112a8367bda6dcf938e5 Bisecting: 18 revisions left to test after this (roughly 4 steps) [110cb339e5d95c77cf83d33de25f6f392d0ca7f6] mm-sparse-optimize-memmap-allocation-during-sparse_init-checkpatch-fixes testing commit 110cb339e5d95c77cf83d33de25f6f392d0ca7f6 with gcc (GCC) 8.1.0 all runs: OK # git bisect good 110cb339e5d95c77cf83d33de25f6f392d0ca7f6 Bisecting: 9 revisions left to test after this (roughly 3 steps) [9a21e0b029d03f98a8f90da26c083419a19b5fee] mm: page_alloc: reduce unnecessary binary search in early_pfn_valid() testing commit 9a21e0b029d03f98a8f90da26c083419a19b5fee with gcc (GCC) 8.1.0 all runs: OK # git bisect good 9a21e0b029d03f98a8f90da26c083419a19b5fee Bisecting: 4 revisions left to test after this (roughly 2 steps) [4a110365f1da9d5cabbd0a01796027c0a6d5e80b] mm: drop unneeded ->vm_ops checks testing commit 4a110365f1da9d5cabbd0a01796027c0a6d5e80b with gcc (GCC) 8.1.0 all runs: crashed: general protection fault in _vm_normal_page # git bisect bad 4a110365f1da9d5cabbd0a01796027c0a6d5e80b Bisecting: 2 revisions left to test after this (roughly 1 step) [82cda2865e6ddc94af20ec7a8b40c8c9db10b208] mm/cma: remove unsupported gfp_mask parameter from cma_alloc() testing commit 82cda2865e6ddc94af20ec7a8b40c8c9db10b208 with gcc (GCC) 8.1.0 all runs: OK # git bisect good 82cda2865e6ddc94af20ec7a8b40c8c9db10b208 Bisecting: 0 revisions left to test after this (roughly 1 step) [e87ebebf76c9ceeaea21a256341d6765c657e550] mm, oom: remove sleep from under oom_lock testing commit e87ebebf76c9ceeaea21a256341d6765c657e550 with gcc (GCC) 8.1.0 all runs: OK # git bisect good e87ebebf76c9ceeaea21a256341d6765c657e550 4a110365f1da9d5cabbd0a01796027c0a6d5e80b is the first bad commit commit 4a110365f1da9d5cabbd0a01796027c0a6d5e80b Author: Kirill A. Shutemov Date: Wed Jul 11 10:45:42 2018 +1000 mm: drop unneeded ->vm_ops checks We now have all VMAs with ->vm_ops set and don't need to check it for NULL everywhere. Link: http://lkml.kernel.org/r/20180710134821.84709-3-kirill.shutemov@linux.intel.com Signed-off-by: Kirill A. Shutemov Reviewed-by: Andrew Morton Cc: Dmitry Vyukov Cc: Oleg Nesterov Cc: Andrea Arcangeli Signed-off-by: Andrew Morton Signed-off-by: Stephen Rothwell :040000 040000 f44d85db0d431a8688d45aebc00dc0030b66bb1a 072878a56d743908e026e4b18b410df44abb254d M fs :040000 040000 765ca4f41199f8e277d358f9b08b948f658dbe1d b693e6cdca41cbe2cffb777ff7a91257f726b114 M kernel :040000 040000 654ed3aed39330cf04bb1a35764d7223ad2eaff2 61a1f8ff24915d707657b3f192a09d6dfd74accf M mm revisions tested: 16, total time: 4h58m40.187210043s (build: 2h13m39.853552358s, test: 2h36m25.432480839s) first bad commit: 4a110365f1da9d5cabbd0a01796027c0a6d5e80b mm: drop unneeded ->vm_ops checks cc: ["aarcange@redhat.com" "akpm@linux-foundation.org" "dvyukov@google.com" "kirill.shutemov@linux.intel.com" "oleg@redhat.com" "sfr@canb.auug.org.au"] crash: general protection fault in _vm_normal_page R10: 0000000004000812 R11: 0000000000000246 R12: 0000000000000005 R13: 00000000004c0605 R14: 00000000004d0050 R15: 0000000000000005 ion_mmap: failure mapping buffer to userspace kasan: CONFIG_KASAN_INLINE enabled kasan: GPF could be caused by NULL-ptr deref or user memory access general protection fault: 0000 [#1] SMP KASAN CPU: 0 PID: 5996 Comm: syz-executor5 Not tainted 4.18.0-rc4+ #1 Hardware name: Google Google Compute Engine/Google Compute Engine, BIOS Google 01/01/2011 RIP: 0010:_vm_normal_page+0x183/0x2f0 mm/memory.c:828 Code: c1 e9 03 80 3c 11 00 0f 85 14 01 00 00 4d 8b bc 24 90 00 00 00 48 ba 00 00 00 00 00 fc ff df 49 8d 7f 70 48 89 f9 48 c1 e9 03 <80> 3c 11 00 0f 85 39 01 00 00 49 8b 57 70 48 85 d2 75 61 48 ba 00 RSP: 0018:ffff8801c0fef170 EFLAGS: 00010202 RAX: 0000000000046500 RBX: 1ffff100381fde30 RCX: 000000000000000e RDX: dffffc0000000000 RSI: 0000000020ffd000 RDI: 0000000000000070 RBP: ffff8801c0fef208 R08: ffffed0037fa8017 R09: ffffed0037fa8016 R10: ffffed0037fa8016 R11: ffff8801bfd400b3 R12: ffff8801cf622148 R13: ffff8801c0fef1e0 R14: 0000000046500320 R15: 0000000000000000 FS: 00007fe5eb892700(0000) GS:ffff8801db000000(0000) knlGS:0000000000000000 CS: 0010 DS: 0000 ES: 0000 CR0: 0000000080050033 CR2: 00000000004e8704 CR3: 00000001bbb7f000 CR4: 00000000001406f0 DR0: 0000000000000000 DR1: 0000000000000000 DR2: 0000000000000000 DR3: 0000000000000000 DR6: 00000000fffe0ff0 DR7: 0000000000000400 Call Trace: zap_pte_range mm/memory.c:1312 [inline] zap_pmd_range mm/memory.c:1443 [inline] zap_pud_range mm/memory.c:1472 [inline] zap_p4d_range mm/memory.c:1493 [inline] unmap_page_range+0x824/0x2010 mm/memory.c:1514 unmap_single_vma+0x121/0x300 mm/memory.c:1559 unmap_vmas+0xe2/0x190 mm/memory.c:1589 unmap_region+0x318/0x530 mm/mmap.c:2583 mmap_region+0x11a2/0x1af0 mm/mmap.c:1840 do_mmap+0x886/0x1590 mm/mmap.c:1540 do_mmap_pgoff include/linux/mm.h:2290 [inline] vm_mmap_pgoff+0x1d7/0x2c0 mm/util.c:357 ksys_mmap_pgoff+0x424/0x7a0 mm/mmap.c:1590 __do_sys_mmap arch/x86/kernel/sys_x86_64.c:100 [inline] __se_sys_mmap arch/x86/kernel/sys_x86_64.c:91 [inline] __x64_sys_mmap+0xe9/0x1b0 arch/x86/kernel/sys_x86_64.c:91 do_syscall_64+0x183/0x700 arch/x86/entry/common.c:290 entry_SYSCALL_64_after_hwframe+0x49/0xbe RIP: 0033:0x455f79 Code: 1d ba 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 eb b9 fb ff c3 66 2e 0f 1f 84 00 00 00 00 RSP: 002b:00007fe5eb891c68 EFLAGS: 00000246 ORIG_RAX: 0000000000000009 RAX: ffffffffffffffda RBX: 00007fe5eb8926d4 RCX: 0000000000455f79 RDX: 0000000000000000 RSI: 0000000000003060 RDI: 0000000020ffd000 RBP: 000000000072bea0 R08: 0000000000000004 R09: 0000000000000000 R10: 0000000004000812 R11: 0000000000000246 R12: 0000000000000005 R13: 00000000004c0605 R14: 00000000004d0050 R15: 0000000000000005 Modules linked in: ---[ end trace 2a02935cf4fe66ee ]--- RIP: 0010:_vm_normal_page+0x183/0x2f0 mm/memory.c:828 Code: c1 e9 03 80 3c 11 00 0f 85 14 01 00 00 4d 8b bc 24 90 00 00 00 48 ba 00 00 00 00 00 fc ff df 49 8d 7f 70 48 89 f9 48 c1 e9 03 <80> 3c 11 00 0f 85 39 01 00 00 49 8b 57 70 48 85 d2 75 61 48 ba 00 RSP: 0018:ffff8801c0fef170 EFLAGS: 00010202 RAX: 0000000000046500 RBX: 1ffff100381fde30 RCX: 000000000000000e RDX: dffffc0000000000 RSI: 0000000020ffd000 RDI: 0000000000000070 RBP: ffff8801c0fef208 R08: ffffed0037fa8017 R09: ffffed0037fa8016 R10: ffffed0037fa8016 R11: ffff8801bfd400b3 R12: ffff8801cf622148 R13: ffff8801c0fef1e0 R14: 0000000046500320 R15: 0000000000000000 FS: 00007fe5eb892700(0000) GS:ffff8801db000000(0000) knlGS:0000000000000000 CS: 0010 DS: 0000 ES: 0000 CR0: 0000000080050033 CR2: 00000000004e8704 CR3: 00000001bbb7f000 CR4: 00000000001406f0 DR0: 0000000000000000 DR1: 0000000000000000 DR2: 0000000000000000 DR3: 0000000000000000 DR6: 00000000fffe0ff0 DR7: 0000000000000400