kernel BUG in ext4_ind_remove_space

10 views
Skip to first unread message

syzbot

unread,
Jan 22, 2022, 8:21:17 PM1/22/22
to syzkaller...@googlegroups.com
Hello,

syzbot found the following issue on:

HEAD commit: 3f8a27f9e27b Linux 4.19.211
git tree: linux-4.19.y
console output: https://syzkaller.appspot.com/x/log.txt?x=14283048700000
kernel config: https://syzkaller.appspot.com/x/.config?x=9b9277b418617afe
dashboard link: https://syzkaller.appspot.com/bug?extid=1d61b6979dfd0eee586c
compiler: gcc version 10.2.1 20210110 (Debian 10.2.1-6)
syz repro: https://syzkaller.appspot.com/x/repro.syz?x=1053b6d0700000
C reproducer: https://syzkaller.appspot.com/x/repro.c?x=1726eac0700000

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

audit: type=1800 audit(1642900713.748:2): pid=8125 uid=0 auid=4294967295 ses=4294967295 subj==unconfined op=collect_data cause=failed(directio) comm="syz-executor699" name="bus" dev="sda1" ino=13861 res=0
EXT4-fs warning (device sda1): ext4_block_to_path:105: block 1074791436 > max in inode 13861
------------[ cut here ]------------
kernel BUG at fs/ext4/indirect.c:1236!
invalid opcode: 0000 [#1] PREEMPT SMP KASAN
CPU: 0 PID: 8125 Comm: syz-executor699 Not tainted 4.19.211-syzkaller #0
Hardware name: Google Google Compute Engine/Google Compute Engine, BIOS Google 01/01/2011
RIP: 0010:ext4_ind_remove_space+0xfab/0x13a0 fs/ext4/indirect.c:1236
Code: 00 0f 85 9d 03 00 00 48 8b 0b 4c 89 fe 44 8b 4c 24 20 48 8b 7c 24 10 48 83 c1 04 e8 ef b6 ff ff e9 16 f6 ff ff e8 f5 e5 84 ff <0f> 0b 4c 8b 7c 24 50 e9 8e f9 ff ff e8 e4 e5 84 ff 48 8b 7c 24 10
RSP: 0018:ffff888092a3fb10 EFLAGS: 00010293
RAX: ffff8880b071e400 RBX: 0000000000000003 RCX: ffffffff81dd920b
RDX: 0000000000000000 RSI: ffffffff81dd9f7b RDI: 0000000000000004
RBP: 0000000000000000 R08: 000000000000005c R09: 0000000000000003
R10: 0000000000000004 R11: 0000000000000000 R12: 0000000000001000
R13: ffff888092a3fbc0 R14: ffff888092a3fbe0 R15: ffff88808df94770
FS: 0000555555760300(0000) GS:ffff8880ba000000(0000) knlGS:0000000000000000
CS: 0010 DS: 0000 ES: 0000 CR0: 0000000080050033
CR2: 00007f7da395b6c0 CR3: 00000000a3e16000 CR4: 00000000003406f0
DR0: 0000000000000000 DR1: 0000000000000000 DR2: 0000000000000000
DR3: 0000000000000000 DR6: 00000000fffe0ff0 DR7: 0000000000000400
Call Trace:
ext4_punch_hole+0xfd3/0x11f0 fs/ext4/inode.c:4412
ext4_fallocate+0x3f8/0x2150 fs/ext4/extents.c:4960
vfs_fallocate+0x487/0x9a0 fs/open.c:308
ksys_fallocate fs/open.c:331 [inline]
__do_sys_fallocate fs/open.c:339 [inline]
__se_sys_fallocate fs/open.c:337 [inline]
__x64_sys_fallocate+0xcf/0x140 fs/open.c:337
do_syscall_64+0xf9/0x620 arch/x86/entry/common.c:293
entry_SYSCALL_64_after_hwframe+0x49/0xbe
RIP: 0033:0x7fc8facd60d9
Code: 28 c3 e8 2a 14 00 00 66 2e 0f 1f 84 00 00 00 00 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 73 01 c3 48 c7 c1 c0 ff ff ff f7 d8 64 89 01 48
RSP: 002b:00007ffe3b138818 EFLAGS: 00000246 ORIG_RAX: 000000000000011d
RAX: ffffffffffffffda RBX: 0000000000000000 RCX: 00007fc8facd60d9
RDX: 0000000001000000 RSI: 0000000000000003 RDI: 0000000000000005
RBP: 00007fc8fac9a0c0 R08: 0000000000000000 R09: 0000000000000000
R10: 00000ffeffeff000 R11: 0000000000000246 R12: 00007fc8fac9a150
R13: 0000000000000000 R14: 0000000000000000 R15: 0000000000000000
Modules linked in:
---[ end trace 78aca76680c04728 ]---
RIP: 0010:ext4_ind_remove_space+0xfab/0x13a0 fs/ext4/indirect.c:1236
Code: 00 0f 85 9d 03 00 00 48 8b 0b 4c 89 fe 44 8b 4c 24 20 48 8b 7c 24 10 48 83 c1 04 e8 ef b6 ff ff e9 16 f6 ff ff e8 f5 e5 84 ff <0f> 0b 4c 8b 7c 24 50 e9 8e f9 ff ff e8 e4 e5 84 ff 48 8b 7c 24 10
RSP: 0018:ffff888092a3fb10 EFLAGS: 00010293
RAX: ffff8880b071e400 RBX: 0000000000000003 RCX: ffffffff81dd920b
RDX: 0000000000000000 RSI: ffffffff81dd9f7b RDI: 0000000000000004
RBP: 0000000000000000 R08: 000000000000005c R09: 0000000000000003
R10: 0000000000000004 R11: 0000000000000000 R12: 0000000000001000
R13: ffff888092a3fbc0 R14: ffff888092a3fbe0 R15: ffff88808df94770
FS: 0000555555760300(0000) GS:ffff8880ba000000(0000) knlGS:0000000000000000
CS: 0010 DS: 0000 ES: 0000 CR0: 0000000080050033
CR2: 00007f7da395b6c0 CR3: 00000000a3e16000 CR4: 00000000003406f0
DR0: 0000000000000000 DR1: 0000000000000000 DR2: 0000000000000000
DR3: 0000000000000000 DR6: 00000000fffe0ff0 DR7: 0000000000000400


---
This report 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 issue. See:
https://goo.gl/tpsmEJ#status for how to communicate with syzbot.
syzbot can test patches for this issue, for details see:
https://goo.gl/tpsmEJ#testing-patches
Reply all
Reply to author
Forward
0 new messages