syzbot


general protection fault in do_blockdev_direct_IO

Status: upstream: reported C repro on 2019/08/17 07:42
Reported-by: syzbot+8c86adbfb0a2e68ec466@syzkaller.appspotmail.com
First crash: 1707d, last: 942d
Fix bisection: failed (error log, bisect log)
  
Similar bugs (1)
Kernel Title Repro Cause bisect Fix bisect Count Last Reported Patched Status
linux-4.14 general protection fault in do_blockdev_direct_IO C inconclusive 7 1409d 1707d 0/1 upstream: reported C repro on 2019/08/17 07:41
Fix bisection attempts (25)
Created Duration User Patch Repo Result
2021/10/20 12:26 13m bisect fix linux-4.19.y error job log (0)
2021/09/20 11:56 29m bisect fix linux-4.19.y job log (0) log
2021/08/21 11:18 28m bisect fix linux-4.19.y job log (0) log
2021/07/22 10:41 24m bisect fix linux-4.19.y job log (0) log
2021/06/22 09:05 25m bisect fix linux-4.19.y job log (0) log
2021/05/22 15:55 28m bisect fix linux-4.19.y job log (0) log
2021/04/22 15:12 22m bisect fix linux-4.19.y job log (0) log
2021/03/23 14:32 22m bisect fix linux-4.19.y job log (0) log
2021/02/21 09:50 22m bisect fix linux-4.19.y job log (0) log
2021/02/18 05:24 18m bisect fix linux-4.19.y error job log (0)
2021/02/06 04:03 1m bisect fix linux-4.19.y error job log (0)
2021/01/07 03:40 23m bisect fix linux-4.19.y job log (0) log
2020/12/08 02:43 27m bisect fix linux-4.19.y job log (0) log
2020/11/08 02:20 22m bisect fix linux-4.19.y job log (0) log
2020/10/09 01:55 25m bisect fix linux-4.19.y job log (0) log
2020/09/09 01:08 29m bisect fix linux-4.19.y job log (0) log
2020/08/10 00:42 25m bisect fix linux-4.19.y job log (0) log
2020/07/11 00:17 24m bisect fix linux-4.19.y job log (0) log
2020/06/10 23:51 26m bisect fix linux-4.19.y job log (0) log
2020/05/11 23:22 28m bisect fix linux-4.19.y job log (0) log
2020/04/11 22:57 25m bisect fix linux-4.19.y job log (0) log
2020/03/12 22:29 27m bisect fix linux-4.19.y job log (0) log
2020/02/11 22:03 25m bisect fix linux-4.19.y job log (0) log
2020/01/12 14:31 24m bisect fix linux-4.19.y job log (0) log
2019/12/13 14:06 25m bisect fix linux-4.19.y job log (0) log

Sample crash report:
audit: type=1400 audit(1571978263.846:36): avc:  denied  { map } for  pid=7473 comm="syz-executor854" path="/root/syz-executor854545614" dev="sda1" ino=16484 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
kasan: GPF could be caused by NULL-ptr deref or user memory access
general protection fault: 0000 [#1] PREEMPT SMP KASAN
CPU: 1 PID: 7473 Comm: syz-executor854 Not tainted 4.19.80 #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:924 [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+0x2237/0x8cb0 fs/direct-io.c:1332
Code: eb ce ff e9 47 1d 00 00 e8 a6 fb af ff 48 8b 84 24 00 01 00 00 48 8d 78 08 48 b8 00 00 00 00 00 fc ff df 48 89 fa 48 c1 ea 03 <80> 3c 02 00 0f 85 5d 6a 00 00 4c 8b b4 24 00 01 00 00 31 ff 4d 8b
RSP: 0018:ffff88809bd4f3e0 EFLAGS: 00010202
RAX: dffffc0000000000 RBX: 0000000000000000 RCX: ffffffff81babe56
RDX: 0000000000000001 RSI: ffffffff81bacb9a RDI: 0000000000000008
RBP: ffff88809bd4f728 R08: ffff88809352e000 R09: fffff940004aa3c7
R10: fffff940004aa3c6 R11: ffffea0002551e37 R12: ffffea0002551e00
R13: ffffea0002551e00 R14: 0000000000000003 R15: ffff888097587a40
FS:  00000000013d1880(0000) GS:ffff8880ae900000(0000) knlGS:0000000000000000
CS:  0010 DS: 0000 ES: 0000 CR0: 0000000080050033
CR2: 0000557c863c21b0 CR3: 000000009f2a5000 CR4: 00000000001406e0
DR0: 0000000000000000 DR1: 0000000000000000 DR2: 0000000000000000
DR3: 0000000000000000 DR6: 00000000fffe0ff0 DR7: 0000000000000400
Call Trace:
 __blockdev_direct_IO+0xa1/0xca fs/direct-io.c:1418
 ext4_direct_IO_write fs/ext4/inode.c:3754 [inline]
 ext4_direct_IO+0x990/0x19e0 fs/ext4/inode.c:3881
 generic_file_direct_write+0x20f/0x4b0 mm/filemap.c:3064
 __generic_file_write_iter+0x2ee/0x630 mm/filemap.c:3243
 ext4_file_write_iter+0x32b/0x1060 fs/ext4/file.c:270
 call_write_iter include/linux/fs.h:1820 [inline]
 do_iter_readv_writev+0x558/0x830 fs/read_write.c:681
 do_iter_write fs/read_write.c:960 [inline]
 do_iter_write+0x184/0x5f0 fs/read_write.c:941
 vfs_iter_write+0x77/0xb0 fs/read_write.c:973
 iter_file_splice_write+0x661/0xbd0 fs/splice.c:750
 do_splice_from fs/splice.c:852 [inline]
 do_splice+0x642/0x12c0 fs/splice.c:1148
 __do_sys_splice fs/splice.c:1415 [inline]
 __se_sys_splice fs/splice.c:1395 [inline]
 __x64_sys_splice+0x2c6/0x330 fs/splice.c:1395
 do_syscall_64+0xfd/0x620 arch/x86/entry/common.c:293
 entry_SYSCALL_64_after_hwframe+0x49/0xbe
RIP: 0033:0x440309
Code: 18 89 d0 c3 66 2e 0f 1f 84 00 00 00 00 00 0f 1f 00 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 13 fc ff c3 66 2e 0f 1f 84 00 00 00 00
RSP: 002b:00007ffc488b4fa8 EFLAGS: 00000246 ORIG_RAX: 0000000000000113
RAX: ffffffffffffffda RBX: 00000000004002c8 RCX: 0000000000440309
RDX: 0000000000000007 RSI: 0000000000000000 RDI: 0000000000000004
RBP: 00000000006ca018 R08: 00000000ffffffff R09: 0000000000000000
R10: 0000000000000000 R11: 0000000000000246 R12: 0000000000401b90
R13: 0000000000401c20 R14: 0000000000000000 R15: 0000000000000000
Modules linked in:
---[ end trace 30cb1f2344c981dc ]---
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:924 [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+0x2237/0x8cb0 fs/direct-io.c:1332
Code: eb ce ff e9 47 1d 00 00 e8 a6 fb af ff 48 8b 84 24 00 01 00 00 48 8d 78 08 48 b8 00 00 00 00 00 fc ff df 48 89 fa 48 c1 ea 03 <80> 3c 02 00 0f 85 5d 6a 00 00 4c 8b b4 24 00 01 00 00 31 ff 4d 8b
RSP: 0018:ffff88809bd4f3e0 EFLAGS: 00010202
RAX: dffffc0000000000 RBX: 0000000000000000 RCX: ffffffff81babe56
RDX: 0000000000000001 RSI: ffffffff81bacb9a RDI: 0000000000000008
RBP: ffff88809bd4f728 R08: ffff88809352e000 R09: fffff940004aa3c7
R10: fffff940004aa3c6 R11: ffffea0002551e37 R12: ffffea0002551e00
R13: ffffea0002551e00 R14: 0000000000000003 R15: ffff888097587a40
FS:  00000000013d1880(0000) GS:ffff8880ae900000(0000) knlGS:0000000000000000
CS:  0010 DS: 0000 ES: 0000 CR0: 0000000080050033
CR2: 0000557c863c21b0 CR3: 000000009f2a5000 CR4: 00000000001406e0
DR0: 0000000000000000 DR1: 0000000000000000 DR2: 0000000000000000
DR3: 0000000000000000 DR6: 00000000fffe0ff0 DR7: 0000000000000400

Crashes (9):
Time Kernel Commit Syzkaller Config Log Report Syz repro C repro VM info Assets (help?) Manager Title
2019/10/25 04:41 linux-4.19.y c3038e718a19 d01bb02a .config console log report syz C ci2-linux-4-19
2019/10/17 23:20 linux-4.19.y c3038e718a19 8c88c9c1 .config console log report syz C ci2-linux-4-19
2019/10/16 09:06 linux-4.19.y dafd634415a7 d4ea592f .config console log report syz C ci2-linux-4-19
2019/10/16 08:26 linux-4.19.y dafd634415a7 d4ea592f .config console log report syz C ci2-linux-4-19
2019/10/13 21:33 linux-4.19.y dafd634415a7 2f661ec4 .config console log report syz C ci2-linux-4-19
2019/09/17 03:51 linux-4.19.y db2d0b7c1dde 51ca0454 .config console log report syz C ci2-linux-4-19
2019/08/17 06:41 linux-4.19.y a5aa80588fcd 8fd428a1 .config console log report syz C ci2-linux-4-19
2019/09/30 08:34 linux-4.19.y d573e8a79f70 c1ad5441 .config console log report ci2-linux-4-19
2019/09/30 08:34 linux-4.19.y d573e8a79f70 c1ad5441 .config console log report ci2-linux-4-19
* Struck through repros no longer work on HEAD.