syzbot


general protection fault in do_blockdev_direct_IO

Status: upstream: reported C repro on 2019/08/17 07:41
Reported-by: syzbot+129e73149f399c136f13@syzkaller.appspotmail.com
First crash: 1712d, last: 1413d
Fix bisection the fix commit could be any of (bisect log):
  b98aebd29824 Linux 4.14.150
  56dfe6252c68 Linux 4.14.188
  
Similar bugs (1)
Kernel Title Repro Cause bisect Fix bisect Count Last Reported Patched Status
linux-4.19 general protection fault in do_blockdev_direct_IO C error 9 946d 1711d 0/1 upstream: reported C repro on 2019/08/17 07:42
Last patch testing requests (10)
Created Duration User Patch Repo Result
2023/01/24 05:32 10m retest repro linux-4.14.y report log
2023/01/24 04:32 14m retest repro linux-4.14.y report log
2023/01/24 03:32 15m retest repro linux-4.14.y report log
2023/01/24 02:32 14m retest repro linux-4.14.y report log
2023/01/24 01:32 10m retest repro linux-4.14.y report log
2022/09/06 22:27 8m retest repro linux-4.14.y report log
2022/09/06 21:27 10m retest repro linux-4.14.y report log
2022/09/06 20:27 10m retest repro linux-4.14.y report log
2022/09/06 19:27 10m retest repro linux-4.14.y report log
2022/09/06 18:27 13m retest repro linux-4.14.y report log
Fix bisection attempts (8)
Created Duration User Patch Repo Result
2020/07/10 10:09 30m bisect fix linux-4.14.y job log (2)
2020/06/10 08:39 22m bisect fix linux-4.14.y job log (0) log
2020/05/11 08:13 25m bisect fix linux-4.14.y job log (0) log
2020/04/11 07:50 22m bisect fix linux-4.14.y job log (0) log
2020/03/12 07:25 24m bisect fix linux-4.14.y job log (0) log
2020/02/11 07:02 22m bisect fix linux-4.14.y job log (0) log
2020/01/12 06:35 23m bisect fix linux-4.14.y job log (0) log
2019/12/13 06:12 22m bisect fix linux-4.14.y job log (0) log

Sample crash report:
audit: type=1400 audit(1571586237.504:36): avc:  denied  { map } for  pid=6907 comm="syz-executor479" path="/root/syz-executor479783216" dev="sda1" ino=16483 scontext=unconfined_u:system_r:insmod_t:s0-s0:c0.c1023 tcontext=unconfined_u:object_r:user_home_t:s0 tclass=file permissive=1
kasan: CONFIG_KASAN_INLINE enabled
audit: type=1800 audit(1571586237.504:37): pid=6907 uid=0 auid=4294967295 ses=4294967295 subj=unconfined_u:system_r:insmod_t:s0-s0:c0.c1023 op="collect_data" cause="failed(directio)" comm="syz-executor479" name="bus" dev="sda1" ino=16484 res=0
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: 0 PID: 6907 Comm: syz-executor479 Not tainted 4.14.150 #0
Hardware name: Google Google Compute Engine/Google Compute Engine, BIOS Google 01/01/2011
task: ffff888079d9a140 task.stack: ffff8880a8fc0000
RIP: 0010:__read_once_size include/linux/compiler.h:183 [inline]
RIP: 0010:compound_head include/linux/page-flags.h:147 [inline]
RIP: 0010:get_page include/linux/mm.h:833 [inline]
RIP: 0010:submit_page_section fs/direct-io.c:890 [inline]
RIP: 0010:do_direct_IO fs/direct-io.c:1097 [inline]
RIP: 0010:do_blockdev_direct_IO+0x1c75/0x7fd0 fs/direct-io.c:1336
RSP: 0018:ffff8880a8fc74c0 EFLAGS: 00010202
RAX: dffffc0000000000 RBX: ffffea000230e21c RCX: 000000000000000c
RDX: 0000000000000004 RSI: 0000000000000000 RDI: 0000000000000020
RBP: ffff8880a8fc77d8 R08: ffffed1012a64029 R09: ffff8880953200c0
R10: ffffed1012a64028 R11: ffff888095320147 R12: ffffea000230e200
R13: ffffea000230e200 R14: 0000000000000000 R15: ffff88809eb11a40
FS:  00000000019ca880(0000) GS:ffff8880aee00000(0000) knlGS:0000000000000000
CS:  0010 DS: 0000 ES: 0000 CR0: 0000000080050033
CR2: 000055d88df0d190 CR3: 0000000078d63000 CR4: 00000000001406f0
DR0: 0000000000000000 DR1: 0000000000000000 DR2: 0000000000000000
DR3: 0000000000000000 DR6: 00000000fffe0ff0 DR7: 0000000000000400
Call Trace:
 __blockdev_direct_IO+0xa1/0xca fs/direct-io.c:1422
 ext4_direct_IO_write fs/ext4/inode.c:3703 [inline]
 ext4_direct_IO+0x70d/0x1890 fs/ext4/inode.c:3833
 generic_file_direct_write+0x1e7/0x430 mm/filemap.c:2949
 __generic_file_write_iter+0x2bc/0x5b0 mm/filemap.c:3128
 ext4_file_write_iter+0x2ac/0xe90 fs/ext4/file.c:268
 call_write_iter include/linux/fs.h:1777 [inline]
 do_iter_readv_writev+0x418/0x670 fs/read_write.c:675
 do_iter_write fs/read_write.c:954 [inline]
 do_iter_write+0x154/0x540 fs/read_write.c:935
 vfs_iter_write+0x77/0xb0 fs/read_write.c:967
 iter_file_splice_write+0x572/0xad0 fs/splice.c:749
 do_splice_from fs/splice.c:851 [inline]
 do_splice fs/splice.c:1147 [inline]
 SYSC_splice fs/splice.c:1402 [inline]
 SyS_splice+0xd92/0x1430 fs/splice.c:1382
 do_syscall_64+0x1e8/0x640 arch/x86/entry/common.c:292
 entry_SYSCALL_64_after_hwframe+0x42/0xb7
RIP: 0033:0x4402f9
RSP: 002b:00007ffdd1035868 EFLAGS: 00000246 ORIG_RAX: 0000000000000113
RAX: ffffffffffffffda RBX: 00000000004002c8 RCX: 00000000004402f9
RDX: 0000000000000007 RSI: 0000000000000000 RDI: 0000000000000004
RBP: 00000000006ca018 R08: 00000000ffffffff R09: 0000000000000000
R10: 0000000000000000 R11: 0000000000000246 R12: 0000000000401b80
R13: 0000000000401c10 R14: 0000000000000000 R15: 0000000000000000
Code: 32 93 d8 ff e9 4a 1d 00 00 e8 b8 50 c1 ff 48 8b 84 24 f0 00 00 00 48 8d 78 20 48 b8 00 00 00 00 00 fc ff df 48 89 fa 48 c1 ea 03 <80> 3c 02 00 0f 85 3d 54 00 00 48 8b 84 24 f0 00 00 00 4c 8b 60 
RIP: __read_once_size include/linux/compiler.h:183 [inline] RSP: ffff8880a8fc74c0
RIP: compound_head include/linux/page-flags.h:147 [inline] RSP: ffff8880a8fc74c0
RIP: get_page include/linux/mm.h:833 [inline] RSP: ffff8880a8fc74c0
RIP: submit_page_section fs/direct-io.c:890 [inline] RSP: ffff8880a8fc74c0
RIP: do_direct_IO fs/direct-io.c:1097 [inline] RSP: ffff8880a8fc74c0
RIP: do_blockdev_direct_IO+0x1c75/0x7fd0 fs/direct-io.c:1336 RSP: ffff8880a8fc74c0
---[ end trace 34fecd29fd5cea4d ]---

Crashes (7):
Time Kernel Commit Syzkaller Config Log Report Syz repro C repro VM info Assets (help?) Manager Title
2019/10/20 15:46 linux-4.14.y b98aebd29824 8c88c9c1 .config console log report syz C ci2-linux-4-14
2019/10/20 15:07 linux-4.14.y b98aebd29824 8c88c9c1 .config console log report syz C ci2-linux-4-14
2019/10/17 08:17 linux-4.14.y e132c8d7b58d 8c88c9c1 .config console log report syz C ci2-linux-4-14
2019/09/23 01:40 linux-4.14.y f6e27dbb1afa d96e88f3 .config console log report syz C ci2-linux-4-14
2019/08/17 06:40 linux-4.14.y 45f092f9e9cb 8fd428a1 .config console log report syz C ci2-linux-4-14
2019/09/30 08:35 linux-4.14.y f6e27dbb1afa c1ad5441 .config console log report ci2-linux-4-14
2019/09/23 02:59 linux-4.14.y f6e27dbb1afa d96e88f3 .config console log report ci2-linux-4-14
* Struck through repros no longer work on HEAD.