bisecting fixing commit since c3038e718a19fc596f7b1baba0f83d5146dc7784 building syzkaller on d01bb02a96019cda0fa8c46e5c6d5eb66a273f17 testing commit c3038e718a19fc596f7b1baba0f83d5146dc7784 with gcc (GCC) 8.1.0 kernel signature: b8e7b1a0f3a7b88a746e401fc1b8665eca2233e93445a247b8a8ff29315a1eda all runs: crashed: general protection fault in do_blockdev_direct_IO testing current HEAD daefdc9eb24bfa11ab77a4b2a9c3923f1051fe0b testing commit daefdc9eb24bfa11ab77a4b2a9c3923f1051fe0b with gcc (GCC) 8.1.0 kernel signature: 075fe1067bc8a909da8947f78932ca33705845d9eb7377565e97f5ff65d77ff1 all runs: crashed: general protection fault in do_blockdev_direct_IO revisions tested: 2, total time: 27m43.628805072s (build: 21m32.778262505s, test: 5m17.723160621s) the crash still happens on HEAD commit msg: Linux 4.19.161 crash: general protection fault in do_blockdev_direct_IO IPv6: ADDRCONF(NETDEV_CHANGE): team_slave_0: link becomes ready kasan: CONFIG_KASAN_INLINE enabled IPv6: ADDRCONF(NETDEV_CHANGE): veth0_to_bridge: link becomes ready kasan: GPF could be caused by NULL-ptr deref or user memory access IPv6: ADDRCONF(NETDEV_CHANGE): bridge_slave_0: link becomes ready general protection fault: 0000 [#1] PREEMPT SMP KASAN bridge0: port 1(bridge_slave_0) entered blocking state CPU: 0 PID: 6609 Comm: syz-executor.2 Not tainted 4.19.161-syzkaller #0 bridge0: port 1(bridge_slave_0) entered forwarding state Hardware name: Google Google Compute Engine/Google Compute Engine, BIOS Google 01/01/2011 RIP: 0010:__read_once_size include/linux/compiler.h:193 [inline] RIP: 0010:compound_head include/linux/page-flags.h:142 [inline] RIP: 0010:get_page include/linux/mm.h:931 [inline] RIP: 0010:submit_page_section fs/direct-io.c:889 [inline] RIP: 0010:do_direct_IO fs/direct-io.c:1096 [inline] RIP: 0010:do_blockdev_direct_IO+0x1bc4/0x6d30 fs/direct-io.c:1332 Code: 41 ff 0c 24 0f 85 46 ff ff ff 4c 89 ef e8 c4 c4 d5 ff e9 39 ff ff ff 48 8b 84 24 f0 00 00 00 48 8d 78 08 48 89 f8 48 c1 e8 03 <42> 80 3c 20 00 0f 85 1d 42 00 00 48 8b b4 24 f0 00 00 00 48 8b 46 RSP: 0018:ffff8881e186f450 EFLAGS: 00010202 IPv6: ADDRCONF(NETDEV_CHANGE): veth0_to_hsr: link becomes ready RAX: 0000000000000001 RBX: 0000000000000000 RCX: ffffffff81a81fc9 RDX: 0000000000000001 RSI: 0000000000000004 RDI: 0000000000000008 RBP: ffff8881e186f790 R08: fffff94000f0f9c7 R09: fffff94000f0f9c6 R10: fffff94000f0f9c6 R11: ffffea000787ce37 R12: dffffc0000000000 R13: ffffea000787ce00 R14: ffffea000787ce34 R15: ffff8881e8173a40 FS: 00007f155dac6700(0000) GS:ffff8881f6800000(0000) knlGS:0000000000000000 CS: 0010 DS: 0000 ES: 0000 CR0: 0000000080050033 CR2: 000056192c91f587 CR3: 00000001d044a001 CR4: 00000000001606f0 DR0: 0000000000000000 DR1: 0000000000000000 DR2: 0000000000000000 DR3: 0000000000000000 DR6: 00000000fffe0ff0 DR7: 0000000000000400 Call Trace: IPv6: ADDRCONF(NETDEV_CHANGE): hsr_slave_0: link becomes ready __blockdev_direct_IO+0x72/0xd9 fs/direct-io.c:1418 ext4_direct_IO_write fs/ext4/inode.c:3769 [inline] ext4_direct_IO+0x87d/0x17d0 fs/ext4/inode.c:3907 generic_file_direct_write+0x1ee/0x410 mm/filemap.c:3073 __generic_file_write_iter+0x270/0x580 mm/filemap.c:3252 IPv6: ADDRCONF(NETDEV_UP): veth1_to_team: link is not ready ext4_file_write_iter+0x282/0xe60 fs/ext4/file.c:272 8021q: adding VLAN 0 to HW filter on device batadv0 call_write_iter include/linux/fs.h:1821 [inline] do_iter_readv_writev+0x4ae/0x960 fs/read_write.c:681 IPv6: ADDRCONF(NETDEV_UP): veth1_to_bridge: link is not ready do_iter_write+0x12a/0x510 fs/read_write.c:960 IPv6: ADDRCONF(NETDEV_UP): veth0_to_bond: link is not ready vfs_iter_write+0x5b/0xb0 fs/read_write.c:973 iter_file_splice_write+0x558/0xc30 fs/splice.c:750 kasan: CONFIG_KASAN_INLINE enabled do_splice_from fs/splice.c:852 [inline] do_splice+0x4fd/0x12d0 fs/splice.c:1154 kasan: GPF could be caused by NULL-ptr deref or user memory access __do_sys_splice fs/splice.c:1428 [inline] __se_sys_splice fs/splice.c:1408 [inline] __x64_sys_splice+0x248/0x300 fs/splice.c:1408 do_syscall_64+0xd0/0x4e0 arch/x86/entry/common.c:293 entry_SYSCALL_64_after_hwframe+0x49/0xbe RIP: 0033:0x459f79 Code: 2d b6 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 fb b5 fb ff c3 66 2e 0f 1f 84 00 00 00 00 RSP: 002b:00007f155dac5c78 EFLAGS: 00000246 ORIG_RAX: 0000000000000113 RAX: ffffffffffffffda RBX: 0000000000000006 RCX: 0000000000459f79 RDX: 0000000000000007 RSI: 0000000000000000 RDI: 0000000000000004 RBP: 000000000075bf20 R08: 00000000ffffffff R09: 0000000000000000 R10: 0000000000000000 R11: 0000000000000246 R12: 00007f155dac66d4 R13: 00000000004c9bcf R14: 00000000004e0790 R15: 00000000ffffffff Modules linked in: general protection fault: 0000 [#2] PREEMPT SMP KASAN CPU: 1 PID: 6613 Comm: syz-executor.3 Tainted: G D 4.19.161-syzkaller #0 Hardware name: Google Google Compute Engine/Google Compute Engine, BIOS Google 01/01/2011 ---[ end trace 1f85e3f802aad3ea ]--- RIP: 0010:__read_once_size include/linux/compiler.h:193 [inline] RIP: 0010:compound_head include/linux/page-flags.h:142 [inline] RIP: 0010:get_page include/linux/mm.h:931 [inline] RIP: 0010:submit_page_section fs/direct-io.c:889 [inline] RIP: 0010:do_direct_IO fs/direct-io.c:1096 [inline] RIP: 0010:do_blockdev_direct_IO+0x1bc4/0x6d30 fs/direct-io.c:1332 Code: 41 ff 0c 24 0f 85 46 ff ff ff 4c 89 ef e8 c4 c4 d5 ff e9 39 ff ff ff 48 8b 84 24 f0 00 00 00 48 8d 78 08 48 89 f8 48 c1 e8 03 <42> 80 3c 20 00 0f 85 1d 42 00 00 48 8b b4 24 f0 00 00 00 48 8b 46 RSP: 0018:ffff8881e1a57450 EFLAGS: 00010202 RAX: 0000000000000001 RBX: 0000000000000000 RCX: ffffffff81a81fc9 RDX: 0000000000000001 RSI: 0000000000000004 RDI: 0000000000000008 RBP: ffff8881e1a57790 R08: fffff94000f0d387 R09: fffff94000f0d386 R10: fffff94000f0d386 R11: ffffea0007869c37 R12: dffffc0000000000 R13: ffffea0007869c00 R14: ffffea0007869c34 R15: ffff8881e1979a80 FS: 00007f7b1d432700(0000) GS:ffff8881f6900000(0000) knlGS:0000000000000000 CS: 0010 DS: 0000 ES: 0000 CR0: 0000000080050033 CR2: 0000000020788ffc CR3: 00000001e1b51004 CR4: 00000000001606e0 DR0: 0000000000000000 DR1: 0000000000000000 DR2: 0000000000000000 RIP: 0010:__read_once_size include/linux/compiler.h:193 [inline] RIP: 0010:compound_head include/linux/page-flags.h:142 [inline] RIP: 0010:get_page include/linux/mm.h:931 [inline] RIP: 0010:submit_page_section fs/direct-io.c:889 [inline] RIP: 0010:do_direct_IO fs/direct-io.c:1096 [inline] RIP: 0010:do_blockdev_direct_IO+0x1bc4/0x6d30 fs/direct-io.c:1332 DR3: 0000000000000000 DR6: 00000000fffe0ff0 DR7: 0000000000000400 Call Trace: Code: 41 ff 0c 24 0f 85 46 ff ff ff 4c 89 ef e8 c4 c4 d5 ff e9 39 ff ff ff 48 8b 84 24 f0 00 00 00 48 8d 78 08 48 89 f8 48 c1 e8 03 <42> 80 3c 20 00 0f 85 1d 42 00 00 48 8b b4 24 f0 00 00 00 48 8b 46 __blockdev_direct_IO+0x72/0xd9 fs/direct-io.c:1418 RSP: 0018:ffff8881e186f450 EFLAGS: 00010202 ext4_direct_IO_write fs/ext4/inode.c:3769 [inline] ext4_direct_IO+0x87d/0x17d0 fs/ext4/inode.c:3907 generic_file_direct_write+0x1ee/0x410 mm/filemap.c:3073 __generic_file_write_iter+0x270/0x580 mm/filemap.c:3252 ext4_file_write_iter+0x282/0xe60 fs/ext4/file.c:272 RAX: 0000000000000001 RBX: 0000000000000000 RCX: ffffffff81a81fc9 call_write_iter include/linux/fs.h:1821 [inline] do_iter_readv_writev+0x4ae/0x960 fs/read_write.c:681 do_iter_write+0x12a/0x510 fs/read_write.c:960 RDX: 0000000000000001 RSI: 0000000000000004 RDI: 0000000000000008 vfs_iter_write+0x5b/0xb0 fs/read_write.c:973 iter_file_splice_write+0x558/0xc30 fs/splice.c:750 do_splice_from fs/splice.c:852 [inline] do_splice+0x4fd/0x12d0 fs/splice.c:1154 __do_sys_splice fs/splice.c:1428 [inline] __se_sys_splice fs/splice.c:1408 [inline] __x64_sys_splice+0x248/0x300 fs/splice.c:1408 do_syscall_64+0xd0/0x4e0 arch/x86/entry/common.c:293 entry_SYSCALL_64_after_hwframe+0x49/0xbe RIP: 0033:0x459f79 Code: 2d b6 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 fb b5 fb ff c3 66 2e 0f 1f 84 00 00 00 00 RSP: 002b:00007f7b1d431c78 EFLAGS: 00000246 ORIG_RAX: 0000000000000113 RAX: ffffffffffffffda RBX: 0000000000000006 RCX: 0000000000459f79 RDX: 0000000000000007 RSI: 0000000000000000 RDI: 0000000000000004 RBP: 000000000075bf20 R08: 00000000ffffffff R09: 0000000000000000 R10: 0000000000000000 R11: 0000000000000246 R12: 00007f7b1d4326d4 R13: 00000000004c9bcf R14: 00000000004e0790 R15: 00000000ffffffff Modules linked in: ---[ end trace 1f85e3f802aad3eb ]--- IPv6: ADDRCONF(NETDEV_UP): veth1_to_hsr: link is not ready RIP: 0010:__read_once_size include/linux/compiler.h:193 [inline] RIP: 0010:compound_head include/linux/page-flags.h:142 [inline] RIP: 0010:get_page include/linux/mm.h:931 [inline] RIP: 0010:submit_page_section fs/direct-io.c:889 [inline] RIP: 0010:do_direct_IO fs/direct-io.c:1096 [inline] RIP: 0010:do_blockdev_direct_IO+0x1bc4/0x6d30 fs/direct-io.c:1332 hsr0: Slave B (hsr_slave_1) is not up; please bring it up to get a fully working HSR network Code: 41 ff 0c 24 0f 85 46 ff ff ff 4c 89 ef e8 c4 c4 d5 ff e9 39 ff ff ff 48 8b 84 24 f0 00 00 00 48 8d 78 08 48 89 f8 48 c1 e8 03 <42> 80 3c 20 00 0f 85 1d 42 00 00 48 8b b4 24 f0 00 00 00 48 8b 46 RBP: ffff8881e186f790 R08: fffff94000f0f9c7 R09: fffff94000f0f9c6 RSP: 0018:ffff8881e186f450 EFLAGS: 00010202 R10: fffff94000f0f9c6 R11: ffffea000787ce37 R12: dffffc0000000000 RAX: 0000000000000001 RBX: 0000000000000000 RCX: ffffffff81a81fc9 R13: ffffea000787ce00 R14: ffffea000787ce34 R15: ffff8881e8173a40 RDX: 0000000000000001 RSI: 0000000000000004 RDI: 0000000000000008 FS: 00007f155dac6700(0000) GS:ffff8881f6800000(0000) knlGS:0000000000000000 RBP: ffff8881e186f790 R08: fffff94000f0f9c7 R09: fffff94000f0f9c6 IPv6: ADDRCONF(NETDEV_UP): hsr0: link is not ready R10: fffff94000f0f9c6 R11: ffffea000787ce37 R12: dffffc0000000000 IPv6: ADDRCONF(NETDEV_CHANGE): hsr0: link becomes ready R13: ffffea000787ce00 R14: ffffea000787ce34 R15: ffff8881e8173a40 CS: 0010 DS: 0000 ES: 0000 CR0: 0000000080050033 FS: 00007f7b1d432700(0000) GS:ffff8881f6900000(0000) knlGS:0000000000000000 CR2: 00007f174187a000 CR3: 00000001d044a001 CR4: 00000000001606f0 CS: 0010 DS: 0000 ES: 0000 CR0: 0000000080050033 DR0: 0000000000000000 DR1: 0000000000000000 DR2: 0000000000000000 CR2: 000056192c8cb110 CR3: 00000001e1b51002 CR4: 00000000001606e0 DR3: 0000000000000000 DR6: 00000000fffe0ff0 DR7: 0000000000000400 IPv6: ADDRCONF(NETDEV_CHANGE): team0: link becomes ready