bisecting fixing commit since c3038e718a19fc596f7b1baba0f83d5146dc7784 building syzkaller on d01bb02a96019cda0fa8c46e5c6d5eb66a273f17 testing commit c3038e718a19fc596f7b1baba0f83d5146dc7784 with gcc (GCC) 8.1.0 kernel signature: 82a45ad26a7956ff740016c1894faf0fb674eddacbc25db23439380d83bff3b8 all runs: crashed: general protection fault in do_blockdev_direct_IO testing current HEAD 3fc898571b974f9a05e4e5c1fe17b18548207091 testing commit 3fc898571b974f9a05e4e5c1fe17b18548207091 with gcc (GCC) 8.1.0 kernel signature: 18fb8dd7b97ae12c78661e65b99092daa54be88b408ed73b594ba22239ad2c3a all runs: crashed: general protection fault in do_blockdev_direct_IO revisions tested: 2, total time: 26m9.154192427s (build: 19m4.040086097s, test: 6m0.482984938s) the crash still happens on HEAD commit msg: Linux 4.19.128 crash: general protection fault in do_blockdev_direct_IO IPv6: ADDRCONF(NETDEV_CHANGE): veth1_to_team: link becomes ready kasan: CONFIG_KASAN_INLINE enabled kasan: GPF could be caused by NULL-ptr deref or user memory access IPv6: ADDRCONF(NETDEV_CHANGE): team_slave_1: link becomes ready general protection fault: 0000 [#1] PREEMPT SMP KASAN IPv6: ADDRCONF(NETDEV_CHANGE): veth0_to_hsr: link becomes ready CPU: 1 PID: 7259 Comm: syz-executor.3 Not tainted 4.19.128-syzkaller #0 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:930 [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+0x1c83/0x6d00 fs/direct-io.c:1332 Code: 41 ff 0c 24 0f 85 46 ff ff ff 4c 89 ef e8 35 1e d6 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 7f 40 00 00 48 8b b4 24 f0 00 00 00 48 8b 46 RSP: 0018:ffff888096147450 EFLAGS: 00010202 RAX: 0000000000000001 RBX: 0000000000000000 RCX: ffffffff81a6e908 RDX: 0000000000000001 RSI: 0000000000000004 RDI: 0000000000000008 RBP: ffff888096147790 R08: fffff940004a8187 R09: fffff940004a8186 R10: fffff940004a8186 R11: ffffea0002540c37 R12: dffffc0000000000 R13: ffffea0002540c00 R14: ffffea0002540c34 R15: ffff8880950a7a40 FS: 00007f039e476700(0000) GS:ffff8880aeb00000(0000) knlGS:0000000000000000 CS: 0010 DS: 0000 ES: 0000 CR0: 0000000080050033 CR2: 0000000020788ffc CR3: 0000000089d98000 CR4: 00000000001406e0 DR0: 0000000000000000 DR1: 0000000000000000 DR2: 0000000000000000 DR3: 0000000000000000 DR6: 00000000fffe0ff0 DR7: 0000000000000400 Call Trace: IPv6: ADDRCONF(NETDEV_CHANGE): hsr_slave_0: link becomes ready IPv6: ADDRCONF(NETDEV_UP): veth1_to_hsr: link is not ready IPv6: ADDRCONF(NETDEV_UP): veth1_to_hsr: link is not ready __blockdev_direct_IO+0x72/0xd9 fs/direct-io.c:1418 IPv6: ADDRCONF(NETDEV_UP): veth0_to_hsr: link is not ready ext4_direct_IO_write fs/ext4/inode.c:3769 [inline] ext4_direct_IO+0x85c/0x1700 fs/ext4/inode.c:3902 generic_file_direct_write+0x1ee/0x410 mm/filemap.c:3065 __generic_file_write_iter+0x270/0x580 mm/filemap.c:3244 ext4_file_write_iter+0x282/0xe60 fs/ext4/file.c:272 IPv6: ADDRCONF(NETDEV_UP): veth1_to_hsr: link is not ready 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 kasan: CONFIG_KASAN_INLINE enabled vfs_iter_write+0x5b/0xb0 fs/read_write.c:973 hsr0: Slave A (hsr_slave_0) is not up; please bring it up to get a fully working HSR network iter_file_splice_write+0x558/0xc30 fs/splice.c:750 kasan: GPF could be caused by NULL-ptr deref or user memory access do_splice_from fs/splice.c:852 [inline] do_splice+0x4fd/0x12d0 fs/splice.c:1154 hsr0: Slave B (hsr_slave_1) is not up; please bring it up to get a fully working HSR network __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:0x459ef9 Code: ad 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 7b b6 fb ff c3 66 2e 0f 1f 84 00 00 00 00 RSP: 002b:00007f039e475c78 EFLAGS: 00000246 ORIG_RAX: 0000000000000113 RAX: ffffffffffffffda RBX: 0000000000000006 RCX: 0000000000459ef9 RDX: 0000000000000007 RSI: 0000000000000000 RDI: 0000000000000004 RBP: 000000000075bf20 R08: 00000000ffffffff R09: 0000000000000000 R10: 0000000000000000 R11: 0000000000000246 R12: 00007f039e4766d4 R13: 00000000004c9b4f R14: 00000000004e0710 R15: 00000000ffffffff Modules linked in: general protection fault: 0000 [#2] PREEMPT SMP KASAN CPU: 0 PID: 7261 Comm: syz-executor.2 Tainted: G D 4.19.128-syzkaller #0 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:930 [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+0x1c83/0x6d00 fs/direct-io.c:1332 Code: 41 ff 0c 24 0f 85 46 ff ff ff 4c 89 ef e8 35 1e d6 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 7f 40 00 00 48 8b b4 24 f0 00 00 00 48 8b 46 ---[ end trace e33c7aea5bc51d3b ]--- RSP: 0018:ffff8880950af450 EFLAGS: 00010202 RAX: 0000000000000001 RBX: 0000000000000000 RCX: ffffffff81a6e908 RDX: 0000000000000001 RSI: 0000000000000004 RDI: 0000000000000008 RBP: ffff8880950af790 R08: fffff940004ab8c7 R09: fffff940004ab8c6 R10: fffff940004ab8c6 R11: ffffea000255c637 R12: dffffc0000000000 R13: ffffea000255c600 R14: ffffea000255c634 R15: ffff8880950a7700 FS: 00007f27c30d3700(0000) GS:ffff8880aea00000(0000) knlGS:0000000000000000 CS: 0010 DS: 0000 ES: 0000 CR0: 0000000080050033 CR2: 0000000020788ffc CR3: 0000000094ef6000 CR4: 00000000001406f0 DR0: 0000000000000000 DR1: 0000000000000000 DR2: 0000000000000000 DR3: 0000000000000000 DR6: 00000000fffe0ff0 DR7: 0000000000000400 Call Trace: 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:930 [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+0x1c83/0x6d00 fs/direct-io.c:1332 __blockdev_direct_IO+0x72/0xd9 fs/direct-io.c:1418 ext4_direct_IO_write fs/ext4/inode.c:3769 [inline] ext4_direct_IO+0x85c/0x1700 fs/ext4/inode.c:3902 generic_file_direct_write+0x1ee/0x410 mm/filemap.c:3065 __generic_file_write_iter+0x270/0x580 mm/filemap.c:3244 ext4_file_write_iter+0x282/0xe60 fs/ext4/file.c:272 Code: 41 ff 0c 24 0f 85 46 ff ff ff 4c 89 ef e8 35 1e d6 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 7f 40 00 00 48 8b b4 24 f0 00 00 00 48 8b 46 RSP: 0018:ffff888096147450 EFLAGS: 00010202 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 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 RAX: 0000000000000001 RBX: 0000000000000000 RCX: ffffffff81a6e908 RIP: 0033:0x459ef9 RDX: 0000000000000001 RSI: 0000000000000004 RDI: 0000000000000008 Code: ad 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 7b b6 fb ff c3 66 2e 0f 1f 84 00 00 00 00 RSP: 002b:00007f27c30d2c78 EFLAGS: 00000246 ORIG_RAX: 0000000000000113 RAX: ffffffffffffffda RBX: 0000000000000006 RCX: 0000000000459ef9 RDX: 0000000000000007 RSI: 0000000000000000 RDI: 0000000000000004 RBP: 000000000075bf20 R08: 00000000ffffffff R09: 0000000000000000 R10: 0000000000000000 R11: 0000000000000246 R12: 00007f27c30d36d4 R13: 00000000004c9b4f R14: 00000000004e0710 R15: 00000000ffffffff Modules linked in: IPv6: ADDRCONF(NETDEV_UP): hsr0: link is not ready RBP: ffff888096147790 R08: fffff940004a8187 R09: fffff940004a8186 ---[ end trace e33c7aea5bc51d3c ]--- 8021q: adding VLAN 0 to HW filter on device batadv0 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:930 [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+0x1c83/0x6d00 fs/direct-io.c:1332 R10: fffff940004a8186 R11: ffffea0002540c37 R12: dffffc0000000000 IPv6: ADDRCONF(NETDEV_CHANGE): veth1_to_hsr: link becomes ready R13: ffffea0002540c00 R14: ffffea0002540c34 R15: ffff8880950a7a40 Code: 41 ff 0c 24 0f 85 46 ff ff ff 4c 89 ef e8 35 1e d6 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 7f 40 00 00 48 8b b4 24 f0 00 00 00 48 8b 46 FS: 00007f039e476700(0000) GS:ffff8880aeb00000(0000) knlGS:0000000000000000 IPv6: ADDRCONF(NETDEV_CHANGE): hsr_slave_1: link becomes ready kasan: CONFIG_KASAN_INLINE enabled IPv6: ADDRCONF(NETDEV_CHANGE): veth1_to_hsr: link becomes ready kasan: GPF could be caused by NULL-ptr deref or user memory access RSP: 0018:ffff888096147450 EFLAGS: 00010202 CS: 0010 DS: 0000 ES: 0000 CR0: 0000000080050033 RAX: 0000000000000001 RBX: 0000000000000000 RCX: ffffffff81a6e908 general protection fault: 0000 [#3] PREEMPT SMP KASAN IPv6: ADDRCONF(NETDEV_CHANGE): hsr_slave_1: link becomes ready CPU: 1 PID: 7267 Comm: syz-executor.0 Tainted: G D 4.19.128-syzkaller #0 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:930 [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+0x1c83/0x6d00 fs/direct-io.c:1332 Code: 41 ff 0c 24 0f 85 46 ff ff ff 4c 89 ef e8 35 1e d6 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 7f 40 00 00 48 8b b4 24 f0 00 00 00 48 8b 46 RSP: 0018:ffff888094e8f450 EFLAGS: 00010202 RAX: 0000000000000001 RBX: 0000000000000000 RCX: ffffffff81a6e908 RDX: 0000000000000001 RSI: 0000000000000004 RDI: 0000000000000008 RBP: ffff888094e8f790 R08: fffff940004a0407 R09: fffff940004a0406 R10: fffff940004a0406 R11: ffffea0002502037 R12: dffffc0000000000 R13: ffffea0002502000 R14: ffffea0002502034 R15: ffff8880940dda80 FS: 00007fa06851c700(0000) GS:ffff8880aeb00000(0000) knlGS:0000000000000000 CS: 0010 DS: 0000 ES: 0000 CR0: 0000000080050033 CR2: 0000000020788ffc CR3: 0000000094157000 CR4: 00000000001406e0 DR0: 0000000000000000 DR1: 0000000000000000 DR2: 0000000000000000 DR3: 0000000000000000 DR6: 00000000fffe0ff0 DR7: 0000000000000400 Call Trace: IPv6: ADDRCONF(NETDEV_CHANGE): veth0_to_hsr: 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+0x85c/0x1700 fs/ext4/inode.c:3902 RDX: 0000000000000001 RSI: 0000000000000004 RDI: 0000000000000008 generic_file_direct_write+0x1ee/0x410 mm/filemap.c:3065 __generic_file_write_iter+0x270/0x580 mm/filemap.c:3244 ext4_file_write_iter+0x282/0xe60 fs/ext4/file.c:272 call_write_iter include/linux/fs.h:1821 [inline] do_iter_readv_writev+0x4ae/0x960 fs/read_write.c:681 IPv6: ADDRCONF(NETDEV_CHANGE): hsr_slave_0: link becomes ready do_iter_write+0x12a/0x510 fs/read_write.c:960 RBP: ffff888096147790 R08: fffff940004a8187 R09: fffff940004a8186 vfs_iter_write+0x5b/0xb0 fs/read_write.c:973 iter_file_splice_write+0x558/0xc30 fs/splice.c:750 R10: fffff940004a8186 R11: ffffea0002540c37 R12: dffffc0000000000 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 IPv6: ADDRCONF(NETDEV_CHANGE): veth1_to_hsr: link becomes ready RIP: 0033:0x459ef9 Code: ad 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 7b b6 fb ff c3 66 2e 0f 1f 84 00 00 00 00 RSP: 002b:00007fa06851bc78 EFLAGS: 00000246 ORIG_RAX: 0000000000000113 RAX: ffffffffffffffda RBX: 0000000000000006 RCX: 0000000000459ef9 RDX: 0000000000000007 RSI: 0000000000000000 RDI: 0000000000000004 RBP: 000000000075bf20 R08: 00000000ffffffff R09: 0000000000000000 R13: ffffea0002540c00 R14: ffffea0002540c34 R15: ffff8880950a7a40 R10: 0000000000000000 R11: 0000000000000246 R12: 00007fa06851c6d4 R13: 00000000004c9b4f R14: 00000000004e0710 R15: 00000000ffffffff Modules linked in: CR2: 0000000020788ffc CR3: 0000000089d98000 CR4: 00000000001406e0 FS: 00007f27c30d3700(0000) GS:ffff8880aea00000(0000) knlGS:0000000000000000 DR0: 0000000000000000 DR1: 0000000000000000 DR2: 0000000000000000 IPv6: ADDRCONF(NETDEV_CHANGE): hsr_slave_1: link becomes ready DR3: 0000000000000000 DR6: 00000000fffe0ff0 DR7: 0000000000000400 IPv6: ADDRCONF(NETDEV_UP): hsr0: link is not ready