From: syzbot <syzbot+20282c1b2184a857ac4c@syzkaller.appspotmail.com>
To: jlbec@evilplan.org, joseph.qi@linux.alibaba.com,
linux-kernel@vger.kernel.org, mark@fasheh.com,
ocfs2-devel@lists.linux.dev, syzkaller-bugs@googlegroups.com
Subject: Re: [syzbot] [ocfs2?] KASAN: slab-out-of-bounds Read in ocfs2_dx_dir_lookup_rec
Date: Sun, 09 Mar 2025 04:40:25 -0700 [thread overview]
Message-ID: <67cd7e29.050a0220.e1a89.0007.GAE@google.com> (raw)
In-Reply-To: <67483b75.050a0220.253251.007c.GAE@google.com>
syzbot has found a reproducer for the following issue on:
HEAD commit: b7c90e3e717a Merge tag 'x86-urgent-2025-03-08' of git://gi..
git tree: upstream
console output: https://syzkaller.appspot.com/x/log.txt?x=14f8fa54580000
kernel config: https://syzkaller.appspot.com/x/.config?x=2040405600e83619
dashboard link: https://syzkaller.appspot.com/bug?extid=20282c1b2184a857ac4c
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=17c58664580000
C reproducer: https://syzkaller.appspot.com/x/repro.c?x=17b1d878580000
Downloadable assets:
disk image (non-bootable): https://storage.googleapis.com/syzbot-assets/7feb34a89c2a/non_bootable_disk-b7c90e3e.raw.xz
vmlinux: https://storage.googleapis.com/syzbot-assets/b1f83f46f4b5/vmlinux-b7c90e3e.xz
kernel image: https://storage.googleapis.com/syzbot-assets/7d502ab93205/bzImage-b7c90e3e.xz
mounted in repro: https://storage.googleapis.com/syzbot-assets/e57bf738b48c/mount_7.gz
fsck result: OK (log: https://syzkaller.appspot.com/x/fsck.log?x=171a1fa0580000)
IMPORTANT: if you fix the issue, please add the following tag to the commit:
Reported-by: syzbot+20282c1b2184a857ac4c@syzkaller.appspotmail.com
On-disk corruption discovered. Please run fsck.ocfs2 once the filesystem is unmounted.
OCFS2: File system is now read-only.
(syz-executor398,5304,0):ocfs2_find_entry_dx:1029 ERROR: status = -30
Oops: general protection fault, probably for non-canonical address 0xdffffc0000000000: 0000 [#1] PREEMPT SMP KASAN NOPTI
KASAN: null-ptr-deref in range [0x0000000000000000-0x0000000000000007]
CPU: 0 UID: 0 PID: 5304 Comm: syz-executor398 Not tainted 6.14.0-rc5-syzkaller-00234-gb7c90e3e717a #0
Hardware name: QEMU Standard PC (Q35 + ICH9, 2009), BIOS 1.16.3-debian-1.16.3-2~bpo12+1 04/01/2014
RIP: 0010:ocfs2_dx_dir_lookup_rec+0x325/0x810 fs/ocfs2/dir.c:812
Code: 20 48 83 c3 40 48 89 d8 48 c1 e8 03 42 80 3c 28 00 74 08 48 89 df e8 4a 4b 6f fe 48 8b 03 48 89 44 24 30 4c 89 e0 48 c1 e8 03 <42> 0f b6 04 28 84 c0 0f 85 c0 03 00 00 45 8b 3c 24 4c 89 f0 48 c1
RSP: 0018:ffffc9000d14eb40 EFLAGS: 00010246
RAX: 0000000000000000 RBX: ffff8880447788b8 RCX: ffff8880006f2440
RDX: 0000000000000000 RSI: 0000000000000000 RDI: ffff8880447788a0
RBP: ffffc9000d14ec50 R08: ffffffff83b9ce2e R09: ffffc9000d14ece0
R10: 23ec6d672c196c9a R11: 608b7c562adf3b03 R12: 0000000000000000
R13: dffffc0000000000 R14: ffff8880491092c0 R15: ffff8880491092c0
FS: 000055556a600380(0000) GS:ffff88801fc00000(0000) knlGS:0000000000000000
CS: 0010 DS: 0000 ES: 0000 CR0: 0000000080050033
CR2: 000055721be84000 CR3: 000000003ef6e000 CR4: 0000000000352ef0
DR0: 0000000000000000 DR1: 0000000000000000 DR2: 0000000000000000
DR3: 0000000000000000 DR6: 00000000fffe0ff0 DR7: 0000000000000400
Call Trace:
<TASK>
ocfs2_dx_dir_lookup+0x163/0x930 fs/ocfs2/dir.c:860
ocfs2_dx_dir_search fs/ocfs2/dir.c:920 [inline]
ocfs2_find_entry_dx fs/ocfs2/dir.c:1034 [inline]
ocfs2_find_entry+0x1309/0x2570 fs/ocfs2/dir.c:1071
ocfs2_check_dir_for_entry+0x17b/0x4a0 fs/ocfs2/dir.c:2040
ocfs2_mknod+0x83c/0x2b30 fs/ocfs2/namei.c:288
ocfs2_create+0x1ab/0x470 fs/ocfs2/namei.c:673
lookup_open fs/namei.c:3651 [inline]
open_last_lookups fs/namei.c:3750 [inline]
path_openat+0x193c/0x3590 fs/namei.c:3986
do_filp_open+0x27f/0x4e0 fs/namei.c:4016
do_sys_openat2+0x13e/0x1d0 fs/open.c:1428
do_sys_open fs/open.c:1443 [inline]
__do_sys_openat fs/open.c:1459 [inline]
__se_sys_openat fs/open.c:1454 [inline]
__x64_sys_openat+0x247/0x2a0 fs/open.c:1454
do_syscall_x64 arch/x86/entry/common.c:52 [inline]
do_syscall_64+0xf3/0x230 arch/x86/entry/common.c:83
entry_SYSCALL_64_after_hwframe+0x77/0x7f
RIP: 0033:0x7f4c42698bf9
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:00007ffef4145088 EFLAGS: 00000246 ORIG_RAX: 0000000000000101
RAX: ffffffffffffffda RBX: 00007f4c426649e3 RCX: 00007f4c42698bf9
RDX: 0000000000105042 RSI: 0000400000000080 RDI: 00000000ffffff9c
RBP: 0000400000000040 R08: 00000000000b45f8 R09: 00000000000b45f8
R10: 00000000000001ff R11: 0000000000000246 R12: 0000000000000001
R13: 00007ffef4145258 R14: 0000000000000001 R15: 0000000000000001
</TASK>
Modules linked in:
---[ end trace 0000000000000000 ]---
RIP: 0010:ocfs2_dx_dir_lookup_rec+0x325/0x810 fs/ocfs2/dir.c:812
Code: 20 48 83 c3 40 48 89 d8 48 c1 e8 03 42 80 3c 28 00 74 08 48 89 df e8 4a 4b 6f fe 48 8b 03 48 89 44 24 30 4c 89 e0 48 c1 e8 03 <42> 0f b6 04 28 84 c0 0f 85 c0 03 00 00 45 8b 3c 24 4c 89 f0 48 c1
RSP: 0018:ffffc9000d14eb40 EFLAGS: 00010246
RAX: 0000000000000000 RBX: ffff8880447788b8 RCX: ffff8880006f2440
RDX: 0000000000000000 RSI: 0000000000000000 RDI: ffff8880447788a0
RBP: ffffc9000d14ec50 R08: ffffffff83b9ce2e R09: ffffc9000d14ece0
R10: 23ec6d672c196c9a R11: 608b7c562adf3b03 R12: 0000000000000000
R13: dffffc0000000000 R14: ffff8880491092c0 R15: ffff8880491092c0
FS: 000055556a600380(0000) GS:ffff88801fc00000(0000) knlGS:0000000000000000
CS: 0010 DS: 0000 ES: 0000 CR0: 0000000080050033
CR2: 000055721bea2000 CR3: 000000003ef6e000 CR4: 0000000000352ef0
DR0: 0000000000000000 DR1: 0000000000000000 DR2: 0000000000000000
DR3: 0000000000000000 DR6: 00000000fffe0ff0 DR7: 0000000000000400
----------------
Code disassembly (best guess):
0: 20 48 83 and %cl,-0x7d(%rax)
3: c3 ret
4: 40 rex
5: 48 89 d8 mov %rbx,%rax
8: 48 c1 e8 03 shr $0x3,%rax
c: 42 80 3c 28 00 cmpb $0x0,(%rax,%r13,1)
11: 74 08 je 0x1b
13: 48 89 df mov %rbx,%rdi
16: e8 4a 4b 6f fe call 0xfe6f4b65
1b: 48 8b 03 mov (%rbx),%rax
1e: 48 89 44 24 30 mov %rax,0x30(%rsp)
23: 4c 89 e0 mov %r12,%rax
26: 48 c1 e8 03 shr $0x3,%rax
* 2a: 42 0f b6 04 28 movzbl (%rax,%r13,1),%eax <-- trapping instruction
2f: 84 c0 test %al,%al
31: 0f 85 c0 03 00 00 jne 0x3f7
37: 45 8b 3c 24 mov (%r12),%r15d
3b: 4c 89 f0 mov %r14,%rax
3e: 48 rex.W
3f: c1 .byte 0xc1
---
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.
prev parent reply other threads:[~2025-03-09 11:40 UTC|newest]
Thread overview: 2+ messages / expand[flat|nested] mbox.gz Atom feed top
2024-11-28 9:44 [syzbot] [ocfs2?] KASAN: slab-out-of-bounds Read in ocfs2_dx_dir_lookup_rec syzbot
2025-03-09 11:40 ` syzbot [this message]
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=67cd7e29.050a0220.e1a89.0007.GAE@google.com \
--to=syzbot+20282c1b2184a857ac4c@syzkaller.appspotmail.com \
--cc=jlbec@evilplan.org \
--cc=joseph.qi@linux.alibaba.com \
--cc=linux-kernel@vger.kernel.org \
--cc=mark@fasheh.com \
--cc=ocfs2-devel@lists.linux.dev \
--cc=syzkaller-bugs@googlegroups.com \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.