WARNING in ext4_dio_get_block_overwrite

10 views
Skip to first unread message

syzbot

unread,
Apr 13, 2019, 8:02:23 PM4/13/19
to syzkaller-a...@googlegroups.com
Hello,

syzbot found the following crash on:

HEAD commit: c556d1ff Merge 4.14.78 into android-4.14
git tree: android-4.14
console output: https://syzkaller.appspot.com/x/log.txt?x=14e8e21d400000
kernel config: https://syzkaller.appspot.com/x/.config?x=71219c5dc171efec
dashboard link: https://syzkaller.appspot.com/bug?extid=af02fe791c6b3458c9c0
compiler: gcc (GCC) 8.0.1 20180413 (experimental)

Unfortunately, I don't have any reproducer for this crash yet.

IMPORTANT: if you fix the bug, please add the following tag to the commit:
Reported-by: syzbot+af02fe...@syzkaller.appspotmail.com

------------[ cut here ]------------
WARNING: CPU: 0 PID: 21205 at fs/ext4/inode.c:945
ext4_dio_get_block_overwrite+0x8c/0xc0 fs/ext4/inode.c:945
Kernel panic - not syncing: panic_on_warn set ...

CPU: 0 PID: 21205 Comm: syz-executor5 Not tainted 4.14.78+ #22
Call Trace:
__dump_stack lib/dump_stack.c:17 [inline]
dump_stack+0xb9/0x11b lib/dump_stack.c:53
panic+0x1bf/0x3a4 kernel/panic.c:181
__warn.cold.7+0x148/0x185 kernel/panic.c:542
report_bug+0x1f7/0x26c lib/bug.c:186
fixup_bug arch/x86/kernel/traps.c:177 [inline]
do_error_trap+0x1ba/0x2c0 arch/x86/kernel/traps.c:295
invalid_op+0x18/0x40 arch/x86/entry/entry_64.S:944
RIP: 0010:ext4_dio_get_block_overwrite+0x8c/0xc0 fs/ext4/inode.c:945
RSP: 0018:ffff8801cab97098 EFLAGS: 00010216
RAX: 0000000000040000 RBX: ffff8801cab97230 RCX: 00000000000343ef
RDX: ffffffff81744f0c RSI: ffffc90001137000 RDI: ffff8801d5914418
RBP: 0000000000000000 R08: 0000000000000001 R09: 0000000000000000
R10: 0000000000000000 R11: 0000000000000000 R12: ffff8801c3eedaf8
R13: 000000000000000e R14: 0000000000000001 R15: ffff8801c7cea080
get_more_blocks fs/direct-io.c:695 [inline]
do_direct_IO fs/direct-io.c:980 [inline]
do_blockdev_direct_IO fs/direct-io.c:1313 [inline]
__blockdev_direct_IO+0x2b39/0xc4e0 fs/direct-io.c:1399
ext4_direct_IO_write fs/ext4/inode.c:3710 [inline]
ext4_direct_IO+0xdda/0x27f0 fs/ext4/inode.c:3863
generic_file_direct_write+0x225/0x430 mm/filemap.c:2940
__generic_file_write_iter+0x213/0x540 mm/filemap.c:3119
ext4_file_write_iter+0x4f6/0xe20 fs/ext4/file.c:264
call_write_iter include/linux/fs.h:1782 [inline]
do_iter_readv_writev+0x3a4/0x560 fs/read_write.c:678
do_iter_write+0x156/0x530 fs/read_write.c:957
vfs_iter_write+0x70/0xa0 fs/read_write.c:970
iter_file_splice_write+0x5b4/0xab0 fs/splice.c:749
do_splice_from fs/splice.c:851 [inline]
direct_splice_actor+0x116/0x160 fs/splice.c:1018
splice_direct_to_actor+0x28c/0x750 fs/splice.c:973
do_splice_direct+0x17b/0x220 fs/splice.c:1061
do_sendfile+0x4a1/0xb50 fs/read_write.c:1438
SYSC_sendfile64 fs/read_write.c:1493 [inline]
SyS_sendfile64+0xab/0x140 fs/read_write.c:1485
do_syscall_64+0x19b/0x4b0 arch/x86/entry/common.c:289
entry_SYSCALL_64_after_hwframe+0x42/0xb7
RIP: 0033:0x457569
RSP: 002b:00007fe4b1034c78 EFLAGS: 00000246 ORIG_RAX: 0000000000000028
RAX: ffffffffffffffda RBX: 0000000000000004 RCX: 0000000000457569
RDX: 0000000020000040 RSI: 0000000000000004 RDI: 0000000000000003
RBP: 000000000072bf00 R08: 0000000000000000 R09: 0000000000000000
R10: 00008000fffffffe R11: 0000000000000246 R12: 00007fe4b10356d4
R13: 00000000004c34d0 R14: 00000000004d5298 R15: 00000000ffffffff
Kernel Offset: 0x13c00000 from 0xffffffff81000000 (relocation range:
0xffffffff80000000-0xffffffffbfffffff)
Rebooting in 86400 seconds..


---
This bug is generated by a bot. It may contain errors.
See https://goo.gl/tpsmEJ for more information about syzbot.
syzbot engineers can be reached at syzk...@googlegroups.com.

syzbot will keep track of this bug report. See:
https://goo.gl/tpsmEJ#status for how to communicate with syzbot.

syzbot

unread,
Apr 14, 2019, 5:33:14 AM4/14/19
to syzkaller-a...@googlegroups.com
Hello,

syzbot found the following crash on:

HEAD commit: 1597fdfe ANDROID: arm64: lse: fix LSE atomics with LTO
git tree: android-4.9
console output: https://syzkaller.appspot.com/x/log.txt?x=176c57d0c00000
kernel config: https://syzkaller.appspot.com/x/.config?x=c3aa51a48c31c16b
dashboard link: https://syzkaller.appspot.com/bug?extid=4a76cc11f34808ac0943
compiler: gcc (GCC) 9.0.0 20181231 (experimental)

Unfortunately, I don't have any reproducer for this crash yet.

IMPORTANT: if you fix the bug, please add the following tag to the commit:
Reported-by: syzbot+4a76cc...@syzkaller.appspotmail.com

FAT-fs (loop5): bogus number of reserved sectors
FAT-fs (loop1): bogus number of reserved sectors
FAT-fs (loop1): Can't find a valid FAT filesystem
FAT-fs (loop5): Can't find a valid FAT filesystem
------------[ cut here ]------------
WARNING: CPU: 0 PID: 31516 at fs/ext4/inode.c:922
ext4_dio_get_block_overwrite fs/ext4/inode.c:922 [inline]
WARNING: CPU: 0 PID: 31516 at fs/ext4/inode.c:922
ext4_dio_get_block_overwrite+0x103/0x120 fs/ext4/inode.c:907
Kernel panic - not syncing: panic_on_warn set ...

CPU: 0 PID: 31516 Comm: syz-executor.0 Not tainted 4.9.155+ #27
ffff8801b7177188 ffffffff81b47871 0000000000000000 ffffffff82a39be0
00000000ffffffff 0000000000000000 0000000000000009 ffff8801b7177268
ffffffff813f746a 0000000041b58ab3 ffffffff82e35b4a ffffffff813f7291
Call Trace:
[<ffffffff81b47871>] __dump_stack lib/dump_stack.c:15 [inline]
[<ffffffff81b47871>] dump_stack+0xc1/0x120 lib/dump_stack.c:51
[<ffffffff813f746a>] panic+0x1d9/0x3bd kernel/panic.c:180
[<ffffffff813f76ab>] __warn.cold+0x2f/0x2f kernel/panic.c:546
[<ffffffff810dae7d>] warn_slowpath_null+0x2d/0x40 kernel/panic.c:589
[<ffffffff816cfd93>] ext4_dio_get_block_overwrite fs/ext4/inode.c:922
[inline]
[<ffffffff816cfd93>] ext4_dio_get_block_overwrite+0x103/0x120
fs/ext4/inode.c:907
[<ffffffff815d3ce5>] get_more_blocks fs/direct-io.c:653 [inline]
[<ffffffff815d3ce5>] do_direct_IO fs/direct-io.c:955 [inline]
[<ffffffff815d3ce5>] do_blockdev_direct_IO fs/direct-io.c:1274 [inline]
[<ffffffff815d3ce5>] __blockdev_direct_IO+0x3205/0xd300 fs/direct-io.c:1360
[<ffffffff816e2f38>] ext4_direct_IO_write fs/ext4/inode.c:3508 [inline]
[<ffffffff816e2f38>] ext4_direct_IO+0xd58/0x29c0 fs/ext4/inode.c:3664
[<ffffffff81412973>] generic_file_direct_write+0x293/0x520
mm/filemap.c:2655
[<ffffffff81412e0f>] __generic_file_write_iter+0x20f/0x530
mm/filemap.c:2835
[<ffffffff816b7ee6>] ext4_file_write_iter+0x646/0xd50 fs/ext4/file.c:165
[<ffffffff815ffbba>] aio_write+0x2ea/0x530 fs/aio.c:1507
[<ffffffff8160411f>] io_submit_one fs/aio.c:1588 [inline]
[<ffffffff8160411f>] do_io_submit+0x74f/0x1120 fs/aio.c:1656
[<ffffffff81604b18>] SYSC_io_submit fs/aio.c:1681 [inline]
[<ffffffff81604b18>] SyS_io_submit+0x28/0x30 fs/aio.c:1678
[<ffffffff810056bd>] do_syscall_64+0x1ad/0x570 arch/x86/entry/common.c:285
[<ffffffff82816a93>] entry_SYSCALL_64_after_swapgs+0x5d/0xdb
Kernel Offset: disabled

syzbot

unread,
Jun 12, 2019, 3:43:03 AM6/12/19
to syzkaller-a...@googlegroups.com
Auto-closing this bug as obsolete.
Crashes did not happen for a while, no reproducer and no activity.

syzbot

unread,
Mar 10, 2020, 7:01:08 PM3/10/20
to syzkaller-a...@googlegroups.com
Reply all
Reply to author
Forward
0 new messages