bisecting fixing commit since e0f8b8a65a473a8baa439cf865a694bbeb83fe90 building syzkaller on 5be3a391ba78f7f11b725cee6783880974b9895a testing commit e0f8b8a65a473a8baa439cf865a694bbeb83fe90 with gcc (GCC) 8.1.0 kernel signature: bc61de6f96c12872ac95b003c0bc5cead6f56cddb67a7eee54992dfe2a00329a run #0: crashed: general protection fault in kobject_uevent run #1: crashed: general protection fault in kobject_uevent run #2: crashed: general protection fault in kobject_uevent run #3: crashed: general protection fault in kobject_uevent run #4: crashed: general protection fault in kobject_uevent run #5: crashed: general protection fault in kobject_uevent run #6: crashed: general protection fault in kobject_uevent run #7: crashed: general protection fault in kobject_uevent run #8: OK run #9: OK testing current HEAD 01364dad1d4577e27a57729d41053f661bb8a5b9 testing commit 01364dad1d4577e27a57729d41053f661bb8a5b9 with gcc (GCC) 8.1.0 kernel signature: 6c0aa666ee47d1040956ccd6b146601be0d9c710ffa60db0cbc0a9601c65cc47 run #0: crashed: general protection fault in kobject_uevent run #1: crashed: general protection fault in kobject_uevent run #2: crashed: general protection fault in kobject_uevent run #3: crashed: general protection fault in kobject_uevent run #4: crashed: general protection fault in kobject_uevent run #5: OK run #6: OK run #7: OK run #8: OK run #9: OK revisions tested: 2, total time: 38m34.312417512s (build: 17m43.421545452s, test: 19m52.210496672s) the crash still happens on HEAD commit msg: Linux 4.14.174 crash: general protection fault in kobject_uevent FAT-fs (loop0): bogus number of reserved sectors FAT-fs (loop0): Can't find a valid FAT filesystem 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: 1 PID: 13850 Comm: blkid Not tainted 4.14.174-syzkaller #0 Hardware name: Google Google Compute Engine/Google Compute Engine, BIOS Google 01/01/2011 task: ffff8880a81fc5c0 task.stack: ffff888096830000 RIP: 0010:kobject_uevent_env+0x93/0xb60 lib/kobject_uevent.c:355 RSP: 0000:ffff888096837b78 EFLAGS: 00010206 RAX: 0000000000000018 RBX: 00000000000000a0 RCX: 1ffff1101503f9c6 RDX: 1ffffffff0edf502 RSI: 0000000000000002 RDI: 00000000000000c0 RBP: ffff888096837c08 R08: 0000000000000001 R09: 0000000000000000 R10: 0000000000000078 R11: ffff8880a81fc5c0 R12: ffff8880a8c4f340 R13: dffffc0000000000 R14: 00000000000000a0 R15: ffff8880a8cdf9e8 FS: 00007f72d70c3740(0000) GS:ffff8880aed00000(0000) knlGS:0000000000000000 CS: 0010 DS: 0000 ES: 0000 CR0: 0000000080050033 CR2: 00007f251fb33770 CR3: 000000009a63d000 CR4: 00000000001406e0 DR0: 0000000000000000 DR1: 0000000000000000 DR2: 0000000000000000 DR3: 0000000000000000 DR6: 00000000fffe0ff0 DR7: 0000000000000400 Call Trace: kobject_uevent+0xb/0x10 lib/kobject_uevent.c:553 loop_clr_fd+0x492/0xac0 drivers/block/loop.c:1069 __lo_release drivers/block/loop.c:1660 [inline] lo_release+0xe7/0x180 drivers/block/loop.c:1678 __blkdev_put+0x406/0x730 fs/block_dev.c:1791 blkdev_put+0x73/0x480 fs/block_dev.c:1856 blkdev_close+0x88/0xd0 fs/block_dev.c:1863 __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 tracehook_notify_resume include/linux/tracehook.h:191 [inline] exit_to_usermode_loop+0x16a/0x1b0 arch/x86/entry/common.c:164 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:0x7f72d69cb2b0 RSP: 002b:00007fff07fa95e8 EFLAGS: 00000246 ORIG_RAX: 0000000000000003 RAX: 0000000000000000 RBX: 0000000000000000 RCX: 00007f72d69cb2b0 RDX: 0000000000000000 RSI: 0000000000000000 RDI: 0000000000000003 RBP: 0000000000000000 R08: 0000000000000000 R09: 0000000000000001 R10: 0000000000000000 R11: 0000000000000246 R12: 0000000001e98030 R13: 0000000000000000 R14: 0000000000000003 R15: 0000000000000005 Code: 18 48 89 f8 48 c1 e8 03 42 80 3c 28 00 0f 85 50 09 00 00 48 8b 5b 18 48 85 db 0f 84 d6 01 00 00 48 8d 7b 20 48 89 f8 48 c1 e8 03 <42> 80 3c 28 00 0f 85 23 09 00 00 4c 8b 63 20 4d 85 e4 74 be 4d RIP: kobject_uevent_env+0x93/0xb60 lib/kobject_uevent.c:355 RSP: ffff888096837b78 ---[ end trace 73e331a2b0246ab7 ]---