[ext4?] general protection fault in ext4_block_zero_page_range

5 views
Skip to first unread message

syzbot

unread,
Apr 20, 2023, 5:21:42 PM4/20/23
to syzkaller-upst...@googlegroups.com
Hello,

syzbot found the following issue on:

HEAD commit: d3f2cd248191 Add linux-next specific files for 20230414
git tree: linux-next
console output: https://syzkaller.appspot.com/x/log.txt?x=162771c0280000
kernel config: https://syzkaller.appspot.com/x/.config?x=bfb4b5a90a0c284c
dashboard link: https://syzkaller.appspot.com/bug?extid=254df7cbe3fbb62a0ce6
compiler: gcc (Debian 10.2.1-6) 10.2.1 20210110, GNU ld (GNU Binutils for Debian) 2.35.2
CC: [adilger...@dilger.ca linux...@vger.kernel.org linux-...@vger.kernel.org linux-...@vger.kernel.org ty...@mit.edu]

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

Downloadable assets:
disk image: https://storage.googleapis.com/syzbot-assets/332dc2b1c8dc/disk-d3f2cd24.raw.xz
vmlinux: https://storage.googleapis.com/syzbot-assets/9f7ee353fbc5/vmlinux-d3f2cd24.xz
kernel image: https://storage.googleapis.com/syzbot-assets/29e1c27a3e68/bzImage-d3f2cd24.xz

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

Code: 28 00 00 00 75 05 48 83 c4 28 c3 e8 f1 19 00 00 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 73 01 c3 48 c7 c1 b8 ff ff ff f7 d8 64 89 01 48
RSP: 002b:00007f71f59e6168 EFLAGS: 00000246 ORIG_RAX: 0000000000000010
RAX: ffffffffffffffda RBX: 00007f71f4dac120 RCX: 00007f71f4c8c169
RDX: 0000000020000240 RSI: 0000000040806685 RDI: 0000000000000008
RBP: 00007f71f59e61d0 R08: 0000000000000000 R09: 0000000000000000
R10: 0000000000000000 R11: 0000000000000246 R12: 0000000000000002
R13: 00007ffd1881688f R14: 00007f71f59e6300 R15: 0000000000022000
</TASK>
general protection fault, probably for non-canonical address 0xdffffc0000000003: 0000 [#1] PREEMPT SMP KASAN
KASAN: null-ptr-deref in range [0x0000000000000018-0x000000000000001f]
CPU: 0 PID: 15043 Comm: syz-executor.1 Not tainted 6.3.0-rc6-next-20230414-syzkaller-12018-gd3f2cd248191 #0
Hardware name: Google Google Compute Engine/Google Compute Engine, BIOS Google 03/30/2023
RIP: 0010:folio_get_private include/linux/mm_types.h:419 [inline]
RIP: 0010:__ext4_block_zero_page_range fs/ext4/inode.c:3685 [inline]
RIP: 0010:ext4_block_zero_page_range+0x229/0x9a0 fs/ext4/inode.c:3784
Code: 58 ff 83 fb 3f 0f 87 a3 d1 d4 07 e8 c1 2c 58 ff 89 d9 48 b8 00 00 00 00 00 fc ff df 49 8d 5e 28 49 d3 e5 48 89 da 48 c1 ea 03 <80> 3c 02 00 0f 85 df 06 00 00 49 8b 6e 28 48 85 ed 0f 84 e5 05 00
RSP: 0018:ffffc90015497858 EFLAGS: 00010207
RAX: dffffc0000000000 RBX: 000000000000001c RCX: 0000000000000000
RDX: 0000000000000003 RSI: ffffffff822b49cf RDI: 0000000000000005
RBP: ffff888081d972d8 R08: 0000000000000005 R09: 000000000000003f
R10: 0000000000000000 R11: 0000000000000000 R12: 0000000000000001
R13: 0000000000000008 R14: fffffffffffffff4 R15: ffff888081d970b0
FS: 00007f71f59e6700(0000) GS:ffff8880b9800000(0000) knlGS:0000000000000000
CS: 0010 DS: 0000 ES: 0000 CR0: 0000000080050033
CR2: 0000001b33628000 CR3: 00000000568f2000 CR4: 00000000003506f0
DR0: 0000000000000000 DR1: 0000000000000000 DR2: 0000000000000000
DR3: 0000000000000000 DR6: 00000000fffe0ff0 DR7: 0000000000000400
Call Trace:
<TASK>
ext4_block_truncate_page fs/ext4/inode.c:3808 [inline]
ext4_truncate+0xf28/0x1340 fs/ext4/inode.c:4185
ext4_begin_enable_verity+0x1f5/0x3d0 fs/ext4/verity.c:143
enable_verity+0x636/0x9d0 fs/verity/enable.c:245
fsverity_ioctl_enable+0x404/0x560 fs/verity/enable.c:385
__ext4_ioctl+0x23d2/0x4b00 fs/ext4/ioctl.c:1574
vfs_ioctl fs/ioctl.c:51 [inline]
__do_sys_ioctl fs/ioctl.c:870 [inline]
__se_sys_ioctl fs/ioctl.c:856 [inline]
__x64_sys_ioctl+0x197/0x210 fs/ioctl.c:856
do_syscall_x64 arch/x86/entry/common.c:50 [inline]
do_syscall_64+0x39/0xb0 arch/x86/entry/common.c:80
entry_SYSCALL_64_after_hwframe+0x63/0xcd
RIP: 0033:0x7f71f4c8c169
Code: 28 00 00 00 75 05 48 83 c4 28 c3 e8 f1 19 00 00 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 73 01 c3 48 c7 c1 b8 ff ff ff f7 d8 64 89 01 48
RSP: 002b:00007f71f59e6168 EFLAGS: 00000246 ORIG_RAX: 0000000000000010
RAX: ffffffffffffffda RBX: 00007f71f4dac120 RCX: 00007f71f4c8c169
RDX: 0000000020000240 RSI: 0000000040806685 RDI: 0000000000000008
RBP: 00007f71f59e61d0 R08: 0000000000000000 R09: 0000000000000000
R10: 0000000000000000 R11: 0000000000000246 R12: 0000000000000002
R13: 00007ffd1881688f R14: 00007f71f59e6300 R15: 0000000000022000
</TASK>
Modules linked in:
---[ end trace 0000000000000000 ]---
RIP: 0010:folio_get_private include/linux/mm_types.h:419 [inline]
RIP: 0010:__ext4_block_zero_page_range fs/ext4/inode.c:3685 [inline]
RIP: 0010:ext4_block_zero_page_range+0x229/0x9a0 fs/ext4/inode.c:3784
Code: 58 ff 83 fb 3f 0f 87 a3 d1 d4 07 e8 c1 2c 58 ff 89 d9 48 b8 00 00 00 00 00 fc ff df 49 8d 5e 28 49 d3 e5 48 89 da 48 c1 ea 03 <80> 3c 02 00 0f 85 df 06 00 00 49 8b 6e 28 48 85 ed 0f 84 e5 05 00
RSP: 0018:ffffc90015497858 EFLAGS: 00010207
RAX: dffffc0000000000 RBX: 000000000000001c RCX: 0000000000000000
RDX: 0000000000000003 RSI: ffffffff822b49cf RDI: 0000000000000005
RBP: ffff888081d972d8 R08: 0000000000000005 R09: 000000000000003f
R10: 0000000000000000 R11: 0000000000000000 R12: 0000000000000001
R13: 0000000000000008 R14: fffffffffffffff4 R15: ffff888081d970b0
FS: 00007f71f59e6700(0000) GS:ffff8880b9800000(0000) knlGS:0000000000000000
CS: 0010 DS: 0000 ES: 0000 CR0: 0000000080050033
CR2: 0000001b33628000 CR3: 00000000568f2000 CR4: 00000000003506f0
DR0: 0000000000000000 DR1: 0000000000000000 DR2: 0000000000000000
DR3: 0000000000000000 DR6: 00000000fffe0ff0 DR7: 0000000000000400
----------------
Code disassembly (best guess):
0: 28 00 sub %al,(%rax)
2: 00 00 add %al,(%rax)
4: 75 05 jne 0xb
6: 48 83 c4 28 add $0x28,%rsp
a: c3 retq
b: e8 f1 19 00 00 callq 0x1a01
10: 90 nop
11: 48 89 f8 mov %rdi,%rax
14: 48 89 f7 mov %rsi,%rdi
17: 48 89 d6 mov %rdx,%rsi
1a: 48 89 ca mov %rcx,%rdx
1d: 4d 89 c2 mov %r8,%r10
20: 4d 89 c8 mov %r9,%r8
23: 4c 8b 4c 24 08 mov 0x8(%rsp),%r9
28: 0f 05 syscall
* 2a: 48 3d 01 f0 ff ff cmp $0xfffffffffffff001,%rax <-- trapping instruction
30: 73 01 jae 0x33
32: c3 retq
33: 48 c7 c1 b8 ff ff ff mov $0xffffffffffffffb8,%rcx
3a: f7 d8 neg %eax
3c: 64 89 01 mov %eax,%fs:(%rcx)
3f: 48 rex.W


---
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

unread,
Jun 15, 2023, 5:14:37 PM6/15/23
to syzkaller-upst...@googlegroups.com
Auto-closing this bug as obsolete.
Crashes did not happen for a while, no reproducer and no activity.
Reply all
Reply to author
Forward
0 new messages