[fs?] BUG: unable to handle kernel NULL pointer dereference in filemap_read_folio (2)

4 views
Skip to first unread message

syzbot

unread,
Apr 1, 2023, 1:33:38 PM4/1/23
to syzkaller-upst...@googlegroups.com
Hello,

syzbot found the following issue on:

HEAD commit: 3a93e40326c8 Merge tag 'for-linus' of git://git.kernel.org..
git tree: upstream
console output: https://syzkaller.appspot.com/x/log.txt?x=17343e01c80000
kernel config: https://syzkaller.appspot.com/x/.config?x=9c35b3803e5ad668
dashboard link: https://syzkaller.appspot.com/bug?extid=0674310be194f69ef47b
compiler: Debian clang version 15.0.7, GNU ld (GNU Binutils for Debian) 2.35.2
CC: [linux-...@vger.kernel.org linux-...@vger.kernel.org]

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

Downloadable assets:
disk image: https://storage.googleapis.com/syzbot-assets/65fe3e7679b9/disk-3a93e403.raw.xz
vmlinux: https://storage.googleapis.com/syzbot-assets/169220ad146c/vmlinux-3a93e403.xz
kernel image: https://storage.googleapis.com/syzbot-assets/6f5e2d192c51/bzImage-3a93e403.xz

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

BUG: kernel NULL pointer dereference, address: 0000000000000000
#PF: supervisor instruction fetch in kernel mode
#PF: error_code(0x0010) - not-present page
PGD 47f03067 P4D 47f03067 PUD 52617067 PMD 0
Oops: 0010 [#1] PREEMPT SMP KASAN
CPU: 0 PID: 4569 Comm: syz-executor.1 Not tainted 6.3.0-rc4-syzkaller-00025-g3a93e40326c8 #0
Hardware name: Google Google Compute Engine/Google Compute Engine, BIOS Google 03/02/2023
RIP: 0010:0x0
Code: Unable to access opcode bytes at 0xffffffffffffffd6.
RSP: 0018:ffffc9001778f7f8 EFLAGS: 00010287
RAX: ffffffff81ba1681 RBX: 0000000000000000 RCX: 0000000000040000
RDX: ffffc90005479000 RSI: ffffea0001a3fb80 RDI: 0000000000000000
RBP: ffffc9001778f8d8 R08: dffffc0000000000 R09: fffff94000347f71
R10: 0000000000000000 R11: dffffc0000000001 R12: ffffea0001a3fb80
R13: 1ffffd4000347f71 R14: 0000000000000000 R15: ffffea0001a3fb88
FS: 00007f267182d700(0000) GS:ffff8880b9800000(0000) knlGS:0000000000000000
CS: 0010 DS: 0000 ES: 0000 CR0: 0000000080050033
CR2: ffffffffffffffd6 CR3: 000000005f0f7000 CR4: 00000000003506f0
DR0: 0000000000000000 DR1: 0000000000000000 DR2: 0000000000000000
DR3: 0000000000000000 DR6: 00000000fffe0ff0 DR7: 0000000000000400
Call Trace:
<TASK>
filemap_read_folio+0x19d/0x7a0 mm/filemap.c:2424
do_read_cache_folio+0x2ee/0x820 mm/filemap.c:3683
do_read_cache_page+0x32/0x230 mm/filemap.c:3749
read_mapping_page include/linux/pagemap.h:769 [inline]
dir_get_page fs/minix/dir.c:76 [inline]
minix_dotdot+0x4c/0x130 fs/minix/dir.c:446
minix_rename+0x1bb/0x650 fs/minix/namei.c:199
vfs_rename+0xb1b/0xfa0 fs/namei.c:4772
do_renameat2+0xb9b/0x13c0 fs/namei.c:4923
__do_sys_rename fs/namei.c:4969 [inline]
__se_sys_rename fs/namei.c:4967 [inline]
__x64_sys_rename+0x86/0x90 fs/namei.c:4967
do_syscall_x64 arch/x86/entry/common.c:50 [inline]
do_syscall_64+0x41/0xc0 arch/x86/entry/common.c:80
entry_SYSCALL_64_after_hwframe+0x63/0xcd
RIP: 0033:0x7f2670a8c0f9
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:00007f267182d168 EFLAGS: 00000246 ORIG_RAX: 0000000000000052
RAX: ffffffffffffffda RBX: 00007f2670bac050 RCX: 00007f2670a8c0f9
RDX: 0000000000000000 RSI: 00000000200003c0 RDI: 0000000020000440
RBP: 00007f2670ae7b39 R08: 0000000000000000 R09: 0000000000000000
R10: 0000000000000000 R11: 0000000000000246 R12: 0000000000000000
R13: 00007ffe9c847bef R14: 00007f267182d300 R15: 0000000000022000
</TASK>
Modules linked in:
CR2: 0000000000000000
---[ end trace 0000000000000000 ]---
RIP: 0010:0x0
Code: Unable to access opcode bytes at 0xffffffffffffffd6.
RSP: 0018:ffffc9001778f7f8 EFLAGS: 00010287
RAX: ffffffff81ba1681 RBX: 0000000000000000 RCX: 0000000000040000
RDX: ffffc90005479000 RSI: ffffea0001a3fb80 RDI: 0000000000000000
RBP: ffffc9001778f8d8 R08: dffffc0000000000 R09: fffff94000347f71
R10: 0000000000000000 R11: dffffc0000000001 R12: ffffea0001a3fb80
R13: 1ffffd4000347f71 R14: 0000000000000000 R15: ffffea0001a3fb88
FS: 00007f267182d700(0000) GS:ffff8880b9800000(0000) knlGS:0000000000000000
CS: 0010 DS: 0000 ES: 0000 CR0: 0000000080050033
CR2: ffffffffffffffd6 CR3: 000000005f0f7000 CR4: 00000000003506f0
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.

Dmitry Vyukov

unread,
Apr 24, 2023, 3:18:22 AM4/24/23
to syzbot, syzkaller-upst...@googlegroups.com
#syz upstream
> --
> You received this message because you are subscribed to the Google Groups "syzkaller-upstream-moderation" group.
> To unsubscribe from this group and stop receiving emails from it, send an email to syzkaller-upstream-m...@googlegroups.com.
> To view this discussion on the web visit https://groups.google.com/d/msgid/syzkaller-upstream-moderation/000000000000d49f4d05f849b9c9%40google.com.
Reply all
Reply to author
Forward
0 new messages