[Android 5.10] BUG: unable to handle kernel paging request in do_split

0 views
Skip to first unread message

syzbot

unread,
Aug 8, 2024, 8:52:24 PMAug 8
to syzkaller-a...@googlegroups.com
Hello,

syzbot found the following issue on:

HEAD commit: fd58936f3c1f Merge 5.10.222 into android13-5.10-lts
git tree: android13-5.10-lts
console+strace: https://syzkaller.appspot.com/x/log.txt?x=11111891980000
kernel config: https://syzkaller.appspot.com/x/.config?x=ad4aa8231a3b342d
dashboard link: https://syzkaller.appspot.com/bug?extid=a89498ad74b918e9892c
compiler: Debian clang version 15.0.6, GNU ld (GNU Binutils for Debian) 2.40
syz repro: https://syzkaller.appspot.com/x/repro.syz?x=113f21c9980000
C reproducer: https://syzkaller.appspot.com/x/repro.c?x=16c9496d980000

Downloadable assets:
disk image: https://storage.googleapis.com/syzbot-assets/21d1fd7a0e80/disk-fd58936f.raw.xz
vmlinux: https://storage.googleapis.com/syzbot-assets/ab29de19971f/vmlinux-fd58936f.xz
kernel image: https://storage.googleapis.com/syzbot-assets/2e3a24f6051b/bzImage-fd58936f.xz
mounted in repro: https://storage.googleapis.com/syzbot-assets/8ad0872df972/mount_0.gz

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

EXT4-fs error (device loop0): ext4_xattr_inode_iget:409: comm syz-executor304: error while reading EA inode 2 err=-117
EXT4-fs (loop0): 1 orphan inode deleted
EXT4-fs (loop0): mounted filesystem without journal. Opts: ,errors=continue
BUG: unable to handle page fault for address: ffffed1121b3d6fe
#PF: supervisor read access in kernel mode
#PF: error_code(0x0000) - not-present page
PGD 23fff2067 P4D 23fff2067
PUD 0
Oops: 0000 [#1] PREEMPT SMP KASAN
CPU: 0 PID: 290 Comm: syz-executor304 Not tainted 5.10.222-syzkaller-01494-gfd58936f3c1f #0
Hardware name: Google Google Compute Engine/Google Compute Engine, BIOS Google 06/27/2024
RIP: 0010:do_split+0x1454/0x2310 fs/ext4/namei.c:2011
Code: f8 48 c1 e8 03 0f b6 04 10 84 c0 48 89 74 24 10 0f 85 7c 0c 00 00 46 8b 34 e6 41 8d 44 24 ff 48 8d 1c c6 48 89 d8 48 c1 e8 03 <0f> b6 04 10 84 c0 0f 85 85 0c 00 00 8b 1b 44 89 f7 89 de e8 64 06
RSP: 0018:ffffc90000b372e0 EFLAGS: 00010a02
RAX: 1ffff11121b3d6fe RBX: ffff88890d9eb7f0 RCX: ffff8881200962c0
RDX: dffffc0000000000 RSI: ffff88810d9eb7f8 RDI: ffff88810d9eb7f8
RBP: ffffc90000b374d0 R08: ffffffff81e4a331 R09: ffffffff81da0931
R10: 0000000000000007 R11: ffff8881200962c0 R12: 0000000000000000
R13: 0000000000000400 R14: 000000002b74e18c R15: 0000000000000000
FS: 0000555555a2d380(0000) GS:ffff8881f7000000(0000) knlGS:0000000000000000
CS: 0010 DS: 0000 ES: 0000 CR0: 0000000080050033
CR2: ffffed1121b3d6fe CR3: 0000000117d34000 CR4: 00000000003506b0
DR0: 0000000000000000 DR1: 0000000000000000 DR2: 0000000000000000
DR3: 0000000000000000 DR6: 00000000fffe0ff0 DR7: 0000000000000400
Call Trace:
make_indexed_dir+0xd7d/0x1340 fs/ext4/namei.c:2299
ext4_add_entry+0xdcf/0x1280 fs/ext4/namei.c:2411
ext4_rename fs/ext4/namei.c:4054 [inline]
ext4_rename2+0x2663/0x4070 fs/ext4/namei.c:4327
vfs_rename+0x9fb/0xeb0 fs/namei.c:4474
do_renameat2+0xa56/0x1240 fs/namei.c:4619
__do_sys_rename fs/namei.c:4670 [inline]
__se_sys_rename fs/namei.c:4668 [inline]
__x64_sys_rename+0x86/0x90 fs/namei.c:4668
do_syscall_64+0x34/0x70
entry_SYSCALL_64_after_hwframe+0x61/0xcb
RIP: 0033:0x7fcde8565979
Code: 28 00 00 00 75 05 48 83 c4 28 c3 e8 61 17 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:00007fffcfe17db8 EFLAGS: 00000246 ORIG_RAX: 0000000000000052
RAX: ffffffffffffffda RBX: 00007fffcfe17f98 RCX: 00007fcde8565979
RDX: 00007fcde8565979 RSI: 0000000020000f40 RDI: 00000000200003c0
RBP: 00007fcde85d8610 R08: 0000000000000000 R09: 0000000000000000
R10: 0000000000000000 R11: 0000000000000246 R12: 0000000000000001
R13: 00007fffcfe17f88 R14: 0000000000000001 R15: 0000000000000001
Modules linked in:
CR2: ffffed1121b3d6fe
---[ end trace 4734256b309655f4 ]---
RIP: 0010:do_split+0x1454/0x2310 fs/ext4/namei.c:2011
Code: f8 48 c1 e8 03 0f b6 04 10 84 c0 48 89 74 24 10 0f 85 7c 0c 00 00 46 8b 34 e6 41 8d 44 24 ff 48 8d 1c c6 48 89 d8 48 c1 e8 03 <0f> b6 04 10 84 c0 0f 85 85 0c 00 00 8b 1b 44 89 f7 89 de e8 64 06
RSP: 0018:ffffc90000b372e0 EFLAGS: 00010a02
RAX: 1ffff11121b3d6fe RBX: ffff88890d9eb7f0 RCX: ffff8881200962c0
RDX: dffffc0000000000 RSI: ffff88810d9eb7f8 RDI: ffff88810d9eb7f8
RBP: ffffc90000b374d0 R08: ffffffff81e4a331 R09: ffffffff81da0931
R10: 0000000000000007 R11: ffff8881200962c0 R12: 0000000000000000
R13: 0000000000000400 R14: 000000002b74e18c R15: 0000000000000000
FS: 0000555555a2d380(0000) GS:ffff8881f7000000(0000) knlGS:0000000000000000
CS: 0010 DS: 0000 ES: 0000 CR0: 0000000080050033
CR2: ffffed1121b3d6fe CR3: 0000000117d34000 CR4: 00000000003506b0
DR0: 0000000000000000 DR1: 0000000000000000 DR2: 0000000000000000
DR3: 0000000000000000 DR6: 00000000fffe0ff0 DR7: 0000000000000400
----------------
Code disassembly (best guess):
0: f8 clc
1: 48 c1 e8 03 shr $0x3,%rax
5: 0f b6 04 10 movzbl (%rax,%rdx,1),%eax
9: 84 c0 test %al,%al
b: 48 89 74 24 10 mov %rsi,0x10(%rsp)
10: 0f 85 7c 0c 00 00 jne 0xc92
16: 46 8b 34 e6 mov (%rsi,%r12,8),%r14d
1a: 41 8d 44 24 ff lea -0x1(%r12),%eax
1f: 48 8d 1c c6 lea (%rsi,%rax,8),%rbx
23: 48 89 d8 mov %rbx,%rax
26: 48 c1 e8 03 shr $0x3,%rax
* 2a: 0f b6 04 10 movzbl (%rax,%rdx,1),%eax <-- trapping instruction
2e: 84 c0 test %al,%al
30: 0f 85 85 0c 00 00 jne 0xcbb
36: 8b 1b mov (%rbx),%ebx
38: 44 89 f7 mov %r14d,%edi
3b: 89 de mov %ebx,%esi
3d: e8 .byte 0xe8
3e: 64 06 fs (bad)


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

If the report is already addressed, let syzbot know by replying with:
#syz fix: exact-commit-title

If you want syzbot to run the reproducer, reply with:
#syz test: git://repo/address.git branch-or-commit-hash
If you attach or paste a git patch, syzbot will apply it before testing.

If you want to overwrite report's subsystems, reply with:
#syz set subsystems: new-subsystem
(See the list of subsystem names on the web dashboard)

If the report is a duplicate of another one, reply with:
#syz dup: exact-subject-of-another-report

If you want to undo deduplication, reply with:
#syz undup
Reply all
Reply to author
Forward
0 new messages