[syzbot] BUG: unable to handle kernel paging request in path_openat

14 views
Skip to first unread message

syzbot

unread,
Dec 1, 2022, 9:25:37 AM12/1/22
to linux-...@vger.kernel.org, linux-...@vger.kernel.org, syzkall...@googlegroups.com, vi...@zeniv.linux.org.uk
Hello,

syzbot found the following issue on:

HEAD commit: cf562a45a0d5 Merge tag 'pull-fixes' of git://git.kernel.or..
git tree: upstream
console output: https://syzkaller.appspot.com/x/log.txt?x=147339bb880000
kernel config: https://syzkaller.appspot.com/x/.config?x=8d01b6e3197974dd
dashboard link: https://syzkaller.appspot.com/bug?extid=59a66cac604a6b49ecce
compiler: Debian clang version 13.0.1-++20220126092033+75e33f71c2da-1~exp1~20220126212112.63, GNU ld (GNU Binutils for Debian) 2.35.2

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

Downloadable assets:
disk image: https://storage.googleapis.com/syzbot-assets/6a92dc058341/disk-cf562a45.raw.xz
vmlinux: https://storage.googleapis.com/syzbot-assets/c320c2307225/vmlinux-cf562a45.xz
kernel image: https://storage.googleapis.com/syzbot-assets/00049e41b3c5/bzImage-cf562a45.xz

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

REISERFS (device loop4): Using r5 hash to sort names
REISERFS (device loop4): Created .reiserfs_priv - reserved for xattr storage.
BUG: unable to handle page fault for address: fffffbfff8000014
#PF: supervisor read access in kernel mode
#PF: error_code(0x0000) - not-present page
PGD 23ffe4067 P4D 23ffe4067 PUD 23ffe3067 PMD 0
Oops: 0000 [#1] PREEMPT SMP KASAN
CPU: 1 PID: 13823 Comm: syz-executor.4 Not tainted 6.1.0-rc6-syzkaller-00375-gcf562a45a0d5 #0
Hardware name: Google Google Compute Engine/Google Compute Engine, BIOS Google 10/26/2022
RIP: 0010:__d_entry_type include/linux/dcache.h:385 [inline]
RIP: 0010:d_can_lookup include/linux/dcache.h:400 [inline]
RIP: 0010:d_is_dir include/linux/dcache.h:410 [inline]
RIP: 0010:do_open fs/namei.c:3533 [inline]
RIP: 0010:path_openat+0x213e/0x2df0 fs/namei.c:3714
Code: ff ff e8 05 d2 99 ff 4c 8b 74 24 18 48 8b 44 24 70 42 80 3c 20 00 74 08 4c 89 f7 e8 ac eb ed ff 4d 8b 36 4c 89 f0 48 c1 e8 03 <42> 8a 04 20 84 c0 0f 85 9e 09 00 00 bb 00 00 60 00 41 23 1e bf 00
RSP: 0018:ffffc9000328f920 EFLAGS: 00010a06
RAX: 1ffffffff8000014 RBX: 0000000000000042 RCX: 0000000000040000
RDX: ffffc90003fb2000 RSI: 000000000000500f RDI: 0000000000005010
RBP: ffffc9000328fb50 R08: ffffffff81f0c583 R09: fffffbfff1cebdfe
R10: fffffbfff1cebdfe R11: 1ffffffff1cebdfd R12: dffffc0000000000
R13: ffffc9000328fba0 R14: ffffffffc00000a3 R15: ffffc9000328fda0
FS: 00007f4c5c8c5700(0000) GS:ffff8880b9900000(0000) knlGS:0000000000000000
CS: 0010 DS: 0000 ES: 0000 CR0: 0000000080050033
CR2: fffffbfff8000014 CR3: 000000001e588000 CR4: 00000000003506e0
DR0: 0000000000000000 DR1: 0000000000000000 DR2: 0000000000000000
DR3: 0000000000000000 DR6: 00000000fffe0ff0 DR7: 0000000000000400
Call Trace:
<TASK>
do_filp_open+0x264/0x4f0 fs/namei.c:3741
do_sys_openat2+0x124/0x4e0 fs/open.c:1310
do_sys_open fs/open.c:1326 [inline]
__do_sys_openat fs/open.c:1342 [inline]
__se_sys_openat fs/open.c:1337 [inline]
__x64_sys_openat+0x243/0x290 fs/open.c:1337
do_syscall_x64 arch/x86/entry/common.c:50 [inline]
do_syscall_64+0x3d/0xb0 arch/x86/entry/common.c:80
entry_SYSCALL_64_after_hwframe+0x63/0xcd
RIP: 0033:0x7f4c5ba8c0d9
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:00007f4c5c8c5168 EFLAGS: 00000246 ORIG_RAX: 0000000000000101
RAX: ffffffffffffffda RBX: 00007f4c5bbabf80 RCX: 00007f4c5ba8c0d9
RDX: 000000000000275a RSI: 0000000020000140 RDI: ffffffffffffff9c
RBP: 00007f4c5bae7ae9 R08: 0000000000000000 R09: 0000000000000000
R10: 0000000000000000 R11: 0000000000000246 R12: 0000000000000000
R13: 00007ffdd5f5636f R14: 00007f4c5c8c5300 R15: 0000000000022000
</TASK>
Modules linked in:
CR2: fffffbfff8000014
---[ end trace 0000000000000000 ]---
RIP: 0010:__d_entry_type include/linux/dcache.h:385 [inline]
RIP: 0010:d_can_lookup include/linux/dcache.h:400 [inline]
RIP: 0010:d_is_dir include/linux/dcache.h:410 [inline]
RIP: 0010:do_open fs/namei.c:3533 [inline]
RIP: 0010:path_openat+0x213e/0x2df0 fs/namei.c:3714
Code: ff ff e8 05 d2 99 ff 4c 8b 74 24 18 48 8b 44 24 70 42 80 3c 20 00 74 08 4c 89 f7 e8 ac eb ed ff 4d 8b 36 4c 89 f0 48 c1 e8 03 <42> 8a 04 20 84 c0 0f 85 9e 09 00 00 bb 00 00 60 00 41 23 1e bf 00
RSP: 0018:ffffc9000328f920 EFLAGS: 00010a06
RAX: 1ffffffff8000014 RBX: 0000000000000042 RCX: 0000000000040000
RDX: ffffc90003fb2000 RSI: 000000000000500f RDI: 0000000000005010
RBP: ffffc9000328fb50 R08: ffffffff81f0c583 R09: fffffbfff1cebdfe
R10: fffffbfff1cebdfe R11: 1ffffffff1cebdfd R12: dffffc0000000000
R13: ffffc9000328fba0 R14: ffffffffc00000a3 R15: ffffc9000328fda0
FS: 00007f4c5c8c5700(0000) GS:ffff8880b9900000(0000) knlGS:0000000000000000
CS: 0010 DS: 0000 ES: 0000 CR0: 0000000080050033
CR2: fffffbfff8000014 CR3: 000000001e588000 CR4: 00000000003506e0
DR0: 0000000000000000 DR1: 0000000000000000 DR2: 0000000000000000
DR3: 0000000000000000 DR6: 00000000fffe0ff0 DR7: 0000000000000400
----------------
Code disassembly (best guess), 2 bytes skipped:
0: e8 05 d2 99 ff callq 0xff99d20a
5: 4c 8b 74 24 18 mov 0x18(%rsp),%r14
a: 48 8b 44 24 70 mov 0x70(%rsp),%rax
f: 42 80 3c 20 00 cmpb $0x0,(%rax,%r12,1)
14: 74 08 je 0x1e
16: 4c 89 f7 mov %r14,%rdi
19: e8 ac eb ed ff callq 0xffedebca
1e: 4d 8b 36 mov (%r14),%r14
21: 4c 89 f0 mov %r14,%rax
24: 48 c1 e8 03 shr $0x3,%rax
* 28: 42 8a 04 20 mov (%rax,%r12,1),%al <-- trapping instruction
2c: 84 c0 test %al,%al
2e: 0f 85 9e 09 00 00 jne 0x9d2
34: bb 00 00 60 00 mov $0x600000,%ebx
39: 41 23 1e and (%r14),%ebx
3c: bf .byte 0xbf


---
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,
Dec 15, 2022, 7:09:40 AM12/15/22
to linux-...@vger.kernel.org, linux-...@vger.kernel.org, syzkall...@googlegroups.com, vi...@zeniv.linux.org.uk
syzbot has found a reproducer for the following issue on:

HEAD commit: 041fae9c105a Merge tag 'f2fs-for-6.2-rc1' of git://git.ker..
git tree: upstream
console+strace: https://syzkaller.appspot.com/x/log.txt?x=154d4400480000
kernel config: https://syzkaller.appspot.com/x/.config?x=bc96ce6808e37967
dashboard link: https://syzkaller.appspot.com/bug?extid=59a66cac604a6b49ecce
compiler: Debian clang version 13.0.1-++20220126092033+75e33f71c2da-1~exp1~20220126212112.63, GNU ld (GNU Binutils for Debian) 2.35.2
syz repro: https://syzkaller.appspot.com/x/repro.syz?x=104af21b880000
C reproducer: https://syzkaller.appspot.com/x/repro.c?x=15b91d77880000

Downloadable assets:
disk image: https://storage.googleapis.com/syzbot-assets/09a117be80ce/disk-041fae9c.raw.xz
vmlinux: https://storage.googleapis.com/syzbot-assets/ac71ead731f7/vmlinux-041fae9c.xz
kernel image: https://storage.googleapis.com/syzbot-assets/f39b53cf5591/bzImage-041fae9c.xz
mounted in repro: https://storage.googleapis.com/syzbot-assets/fc2c06c4a4bb/mount_0.gz

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

ntfs: (device loop0): check_windows_hibernation_status(): Failed to find inode number for hiberfil.sys.
ntfs: (device loop0): load_system_files(): Failed to determine if Windows is hibernated. Mounting read-only. Run chkdsk.
ntfs: (device loop0): ntfs_lookup(): ntfs_lookup_ino_by_name() failed with error code 16777149.
BUG: unable to handle page fault for address: ffffffffff0000ab
#PF: supervisor read access in kernel mode
#PF: error_code(0x0000) - not-present page
PGD d08f067 P4D d08f067 PUD d091067 PMD d0b1067 PTE 0
Oops: 0000 [#1] PREEMPT SMP KASAN
CPU: 0 PID: 5072 Comm: syz-executor156 Not tainted 6.1.0-syzkaller-10971-g041fae9c105a #0
Hardware name: Google Google Compute Engine/Google Compute Engine, BIOS Google 10/26/2022
RIP: 0010:lookup_open fs/namei.c:3405 [inline]
RIP: 0010:open_last_lookups fs/namei.c:3481 [inline]
RIP: 0010:path_openat+0x1147/0x2dd0 fs/namei.c:3711
Code: 48 89 d8 48 89 5c 24 10 48 83 c3 68 49 89 de 49 c1 ee 03 43 80 3c 26 00 74 08 48 89 df e8 61 7c ed ff 48 89 9c 24 c0 00 00 00 <4c> 8b 23 8b 9c 24 80 00 00 00 83 e3 40 31 ff 89 de e8 63 e6 97 ff
RSP: 0018:ffffc90003bcf940 EFLAGS: 00010246
RAX: ffffffffff000043 RBX: ffffffffff0000ab RCX: 0000000003bcf803
RDX: 0000000000000001 RSI: ffffffff8aedc900 RDI: ffffffff8b4bbba0
RBP: ffffc90003bcfb70 R08: dffffc0000000000 R09: fffffbfff1d30a3e
R10: fffffbfff1d30a3e R11: 1ffffffff1d30a3d R12: dffffc0000000000
R13: ffffc90003bcfbc0 R14: 1fffffffffe00015 R15: 1ffff1100e6b97a0
FS: 00005555572d3300(0000) GS:ffff8880b9800000(0000) knlGS:0000000000000000
CS: 0010 DS: 0000 ES: 0000 CR0: 0000000080050033
CR2: ffffffffff0000ab CR3: 0000000027baf000 CR4: 00000000003506f0
DR0: 0000000000000000 DR1: 0000000000000000 DR2: 0000000000000000
DR3: 0000000000000000 DR6: 00000000fffe0ff0 DR7: 0000000000000400
Call Trace:
<TASK>
do_filp_open+0x264/0x4f0 fs/namei.c:3741
do_sys_openat2+0x124/0x4e0 fs/open.c:1310
do_sys_open fs/open.c:1326 [inline]
__do_sys_creat fs/open.c:1402 [inline]
__se_sys_creat fs/open.c:1396 [inline]
__x64_sys_creat+0x11f/0x160 fs/open.c:1396
do_syscall_x64 arch/x86/entry/common.c:50 [inline]
do_syscall_64+0x3d/0xb0 arch/x86/entry/common.c:80
entry_SYSCALL_64_after_hwframe+0x63/0xcd
RIP: 0033:0x7fa47a6ba749
Code: 28 00 00 00 75 05 48 83 c4 28 c3 e8 51 14 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 c0 ff ff ff f7 d8 64 89 01 48
RSP: 002b:00007ffe9f456828 EFLAGS: 00000246 ORIG_RAX: 0000000000000055
RAX: ffffffffffffffda RBX: 0031656c69662f2e RCX: 00007fa47a6ba749
RDX: 00007fa47a678dc3 RSI: 0000000000000000 RDI: 0000000020000080
RBP: 00007fa47a679fe0 R08: 000000000001ee42 R09: 0000000000000000
R10: 00007ffe9f4566f0 R11: 0000000000000246 R12: 00007fa47a67a070
R13: 0000000000000000 R14: 0000000000000000 R15: 0000000000000000
</TASK>
Modules linked in:
CR2: ffffffffff0000ab
---[ end trace 0000000000000000 ]---
RIP: 0010:lookup_open fs/namei.c:3405 [inline]
RIP: 0010:open_last_lookups fs/namei.c:3481 [inline]
RIP: 0010:path_openat+0x1147/0x2dd0 fs/namei.c:3711
Code: 48 89 d8 48 89 5c 24 10 48 83 c3 68 49 89 de 49 c1 ee 03 43 80 3c 26 00 74 08 48 89 df e8 61 7c ed ff 48 89 9c 24 c0 00 00 00 <4c> 8b 23 8b 9c 24 80 00 00 00 83 e3 40 31 ff 89 de e8 63 e6 97 ff
RSP: 0018:ffffc90003bcf940 EFLAGS: 00010246
RAX: ffffffffff000043 RBX: ffffffffff0000ab RCX: 0000000003bcf803
RDX: 0000000000000001 RSI: ffffffff8aedc900 RDI: ffffffff8b4bbba0
RBP: ffffc90003bcfb70 R08: dffffc0000000000 R09: fffffbfff1d30a3e
R10: fffffbfff1d30a3e R11: 1ffffffff1d30a3d R12: dffffc0000000000
R13: ffffc90003bcfbc0 R14: 1fffffffffe00015 R15: 1ffff1100e6b97a0
FS: 00005555572d3300(0000) GS:ffff8880b9800000(0000) knlGS:0000000000000000
CS: 0010 DS: 0000 ES: 0000 CR0: 0000000080050033
CR2: ffffffffff0000ab CR3: 0000000027baf000 CR4: 00000000003506f0
DR0: 0000000000000000 DR1: 0000000000000000 DR2: 0000000000000000
DR3: 0000000000000000 DR6: 00000000fffe0ff0 DR7: 0000000000000400
----------------
Code disassembly (best guess):
0: 48 89 d8 mov %rbx,%rax
3: 48 89 5c 24 10 mov %rbx,0x10(%rsp)
8: 48 83 c3 68 add $0x68,%rbx
c: 49 89 de mov %rbx,%r14
f: 49 c1 ee 03 shr $0x3,%r14
13: 43 80 3c 26 00 cmpb $0x0,(%r14,%r12,1)
18: 74 08 je 0x22
1a: 48 89 df mov %rbx,%rdi
1d: e8 61 7c ed ff callq 0xffed7c83
22: 48 89 9c 24 c0 00 00 mov %rbx,0xc0(%rsp)
29: 00
* 2a: 4c 8b 23 mov (%rbx),%r12 <-- trapping instruction
2d: 8b 9c 24 80 00 00 00 mov 0x80(%rsp),%ebx
34: 83 e3 40 and $0x40,%ebx
37: 31 ff xor %edi,%edi
39: 89 de mov %ebx,%esi
3b: e8 63 e6 97 ff callq 0xff97e6a3

Hillf Danton

unread,
Dec 15, 2022, 7:59:53 AM12/15/22
to syzbot, linux-...@vger.kernel.org, syzkall...@googlegroups.com
On 15 Dec 2022 04:09:38 -0800
> syzbot has found a reproducer for the following issue on:
>
> HEAD commit: 041fae9c105a Merge tag 'f2fs-for-6.2-rc1' of git://git.ker..
> git tree: upstream
> C reproducer: https://syzkaller.appspot.com/x/repro.c?x=15b91d77880000

Feed back defined errno.

#syz test https://git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git master

--- x/fs/ntfs/namei.c
+++ y/fs/ntfs/namei.c
@@ -157,7 +157,7 @@ static struct dentry *ntfs_lookup(struct
}
ntfs_error(vol->sb, "ntfs_lookup_ino_by_name() failed with error "
"code %i.", -MREF_ERR(mref));
- return ERR_PTR(MREF_ERR(mref));
+ return ERR_PTR(-EIO);
// TODO: Consider moving this lot to a separate function! (AIA)
handle_name:
{
--

syzbot

unread,
Dec 15, 2022, 3:43:27 PM12/15/22
to hda...@sina.com, linux-...@vger.kernel.org, syzkall...@googlegroups.com
Hello,

syzbot has tested the proposed patch and the reproducer did not trigger any issue:

Reported-and-tested-by: syzbot+59a66c...@syzkaller.appspotmail.com

Tested on:

commit: 8fa590bf Merge tag 'for-linus' of git://git.kernel.org..
git tree: https://git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git master
console output: https://syzkaller.appspot.com/x/log.txt?x=13a5a6e7880000
kernel config: https://syzkaller.appspot.com/x/.config?x=35448eec2d733f7a
dashboard link: https://syzkaller.appspot.com/bug?extid=59a66cac604a6b49ecce
compiler: Debian clang version 13.0.1-++20220126092033+75e33f71c2da-1~exp1~20220126212112.63, GNU ld (GNU Binutils for Debian) 2.35.2
patch: https://syzkaller.appspot.com/x/patch.diff?x=13a1acb3880000

Note: testing is done by a robot and is best-effort only.

Aleksandr Nogikh

unread,
Apr 3, 2023, 8:59:19 AM4/3/23
to syzbot, syzkall...@googlegroups.com
#syz set subsystems: reiserfs
> --
> You received this message because you are subscribed to the Google Groups "syzkaller-bugs" group.
> To unsubscribe from this group and stop receiving emails from it, send an email to syzkaller-bug...@googlegroups.com.
> To view this discussion on the web visit https://groups.google.com/d/msgid/syzkaller-bugs/000000000000acfa2305efe3e715%40google.com.

syzbot

unread,
Apr 3, 2023, 8:59:20 AM4/3/23
to nog...@google.com, syzkall...@googlegroups.com
> #syz set subsystems: reiserfs

Thank you!

I've successfully updated the bug's subsystems.

syzbot

unread,
Apr 12, 2024, 6:28:21 AMApr 12
to syzkall...@googlegroups.com
Auto-closing this bug as obsolete.
No recent activity, existing reproducers are no longer triggering the issue.
Reply all
Reply to author
Forward
0 new messages