[v6.6] general protection fault in ocfs2_prepare_dir_for_insert

0 views
Skip to first unread message

syzbot

unread,
9:49 AM (9 hours ago) 9:49 AM
to syzkaller...@googlegroups.com
Hello,

syzbot found the following issue on:

HEAD commit: 5fa4793a2d2d Linux 6.6.119
git tree: linux-6.6.y
console output: https://syzkaller.appspot.com/x/log.txt?x=179eb9b4580000
kernel config: https://syzkaller.appspot.com/x/.config?x=691a6769a86ac817
dashboard link: https://syzkaller.appspot.com/bug?extid=4a95be9920417e49cbd5
compiler: Debian clang version 20.1.8 (++20250708063551+0c9f909b7976-1~exp1~20250708183702.136), Debian LLD 20.1.8

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

Downloadable assets:
disk image: https://storage.googleapis.com/syzbot-assets/63699875f1dd/disk-5fa4793a.raw.xz
vmlinux: https://storage.googleapis.com/syzbot-assets/8506652fcb6f/vmlinux-5fa4793a.xz
kernel image: https://storage.googleapis.com/syzbot-assets/1b30ceed1710/bzImage-5fa4793a.xz

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

ocfs2: Mounting device (7,2) on (node local, slot 0) with ordered data mode.
general protection fault, probably for non-canonical address 0xdffffc0000000001: 0000 [#1] PREEMPT SMP KASAN
KASAN: null-ptr-deref in range [0x0000000000000008-0x000000000000000f]
CPU: 0 PID: 5854 Comm: syz.2.3 Not tainted syzkaller #0
Hardware name: Google Google Compute Engine/Google Compute Engine, BIOS Google 10/25/2025
RIP: 0010:ocfs2_find_dir_space_id fs/ocfs2/dir.c:3426 [inline]
RIP: 0010:ocfs2_prepare_dir_for_insert+0x2f23/0x5480 fs/ocfs2/dir.c:4306
Code: 18 00 e9 e1 11 00 00 e8 8b 71 37 fe e9 a9 02 00 00 e8 81 71 37 fe 4c 8b 7c 24 70 49 8d 7e 08 49 8d 5e 09 48 89 f8 48 c1 e8 03 <42> 0f b6 04 20 84 c0 0f 85 78 20 00 00 4c 2b bc 24 88 00 00 00 48
RSP: 0018:ffffc900047ef040 EFLAGS: 00010202
RAX: 0000000000000001 RBX: 0000000000000009 RCX: 0000000000080000
RDX: ffffc9000daca000 RSI: 0000000000005b0d RDI: 0000000000000008
RBP: ffffc900047ef770 R08: ffffc900047efa80 R09: 608b7c562adf3b03
R10: 23ec6d672c196c9a R11: 608b7c562adf3b03 R12: dffffc0000000000
R13: ffff88805f3a5df8 R14: 0000000000000000 R15: 00000001000001c0
FS: 00007f60f9c0d6c0(0000) GS:ffff8880b8e00000(0000) knlGS:0000000000000000
CS: 0010 DS: 0000 ES: 0000 CR0: 0000000080050033
CR2: 00007f2e0b851763 CR3: 000000005e142000 CR4: 00000000003506f0
Call Trace:
<TASK>
__ocfs2_prepare_orphan_dir+0x146/0x2c0 fs/ocfs2/namei.c:2167
ocfs2_prepare_orphan_dir+0xfa/0x3f0 fs/ocfs2/namei.c:2210
ocfs2_unlink+0x8fa/0x18f0 fs/ocfs2/namei.c:960
vfs_unlink+0x389/0x600 fs/namei.c:4333
do_unlinkat+0x328/0x570 fs/namei.c:4399
__do_sys_unlinkat fs/namei.c:4442 [inline]
__se_sys_unlinkat fs/namei.c:4435 [inline]
__x64_sys_unlinkat+0xd5/0xe0 fs/namei.c:4435
do_syscall_x64 arch/x86/entry/common.c:51 [inline]
do_syscall_64+0x55/0xb0 arch/x86/entry/common.c:81
entry_SYSCALL_64_after_hwframe+0x68/0xd2
RIP: 0033:0x7f60f8d8f749
Code: ff ff c3 66 2e 0f 1f 84 00 00 00 00 00 0f 1f 40 00 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 a8 ff ff ff f7 d8 64 89 01 48
RSP: 002b:00007f60f9c0d038 EFLAGS: 00000246 ORIG_RAX: 0000000000000107
RAX: ffffffffffffffda RBX: 00007f60f8fe5fa0 RCX: 00007f60f8d8f749
RDX: 0000000000000000 RSI: 0000200000000380 RDI: ffffffffffffff9c
RBP: 00007f60f8e13f91 R08: 0000000000000000 R09: 0000000000000000
R10: 0000000000000000 R11: 0000000000000246 R12: 0000000000000000
R13: 00007f60f8fe6038 R14: 00007f60f8fe5fa0 R15: 00007ffc53225b18
</TASK>
Modules linked in:
---[ end trace 0000000000000000 ]---
RIP: 0010:ocfs2_find_dir_space_id fs/ocfs2/dir.c:3426 [inline]
RIP: 0010:ocfs2_prepare_dir_for_insert+0x2f23/0x5480 fs/ocfs2/dir.c:4306
Code: 18 00 e9 e1 11 00 00 e8 8b 71 37 fe e9 a9 02 00 00 e8 81 71 37 fe 4c 8b 7c 24 70 49 8d 7e 08 49 8d 5e 09 48 89 f8 48 c1 e8 03 <42> 0f b6 04 20 84 c0 0f 85 78 20 00 00 4c 2b bc 24 88 00 00 00 48
RSP: 0018:ffffc900047ef040 EFLAGS: 00010202
RAX: 0000000000000001 RBX: 0000000000000009 RCX: 0000000000080000
RDX: ffffc9000daca000 RSI: 0000000000005b0d RDI: 0000000000000008
RBP: ffffc900047ef770 R08: ffffc900047efa80 R09: 608b7c562adf3b03
R10: 23ec6d672c196c9a R11: 608b7c562adf3b03 R12: dffffc0000000000
R13: ffff88805f3a5df8 R14: 0000000000000000 R15: 00000001000001c0
FS: 00007f60f9c0d6c0(0000) GS:ffff8880b8f00000(0000) knlGS:0000000000000000
CS: 0010 DS: 0000 ES: 0000 CR0: 0000000080050033
CR2: 00007f1f945e9000 CR3: 000000005e142000 CR4: 00000000003506e0
----------------
Code disassembly (best guess):
0: 18 00 sbb %al,(%rax)
2: e9 e1 11 00 00 jmp 0x11e8
7: e8 8b 71 37 fe call 0xfe377197
c: e9 a9 02 00 00 jmp 0x2ba
11: e8 81 71 37 fe call 0xfe377197
16: 4c 8b 7c 24 70 mov 0x70(%rsp),%r15
1b: 49 8d 7e 08 lea 0x8(%r14),%rdi
1f: 49 8d 5e 09 lea 0x9(%r14),%rbx
23: 48 89 f8 mov %rdi,%rax
26: 48 c1 e8 03 shr $0x3,%rax
* 2a: 42 0f b6 04 20 movzbl (%rax,%r12,1),%eax <-- trapping instruction
2f: 84 c0 test %al,%al
31: 0f 85 78 20 00 00 jne 0x20af
37: 4c 2b bc 24 88 00 00 sub 0x88(%rsp),%r15
3e: 00
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.

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

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

syzbot

unread,
10:20 AM (8 hours ago) 10:20 AM
to syzkaller...@googlegroups.com
syzbot has found a reproducer for the following issue on:

HEAD commit: 5fa4793a2d2d Linux 6.6.119
git tree: linux-6.6.y
console output: https://syzkaller.appspot.com/x/log.txt?x=15fee31a580000
kernel config: https://syzkaller.appspot.com/x/.config?x=691a6769a86ac817
dashboard link: https://syzkaller.appspot.com/bug?extid=4a95be9920417e49cbd5
compiler: Debian clang version 20.1.8 (++20250708063551+0c9f909b7976-1~exp1~20250708183702.136), Debian LLD 20.1.8
syz repro: https://syzkaller.appspot.com/x/repro.syz?x=14eb751a580000
C reproducer: https://syzkaller.appspot.com/x/repro.c?x=12eb751a580000
mounted in repro: https://storage.googleapis.com/syzbot-assets/4cdf72ba55b9/mount_0.gz
fsck result: OK (log: https://syzkaller.appspot.com/x/fsck.log?x=15feb9b4580000)

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

ocfs2: Mounting device (7,0) on (node local, slot 0) with ordered data mode.
general protection fault, probably for non-canonical address 0xdffffc0000000001: 0000 [#1] PREEMPT SMP KASAN
KASAN: null-ptr-deref in range [0x0000000000000008-0x000000000000000f]
CPU: 0 PID: 5920 Comm: syz.0.17 Not tainted syzkaller #0
Hardware name: Google Google Compute Engine/Google Compute Engine, BIOS Google 10/25/2025
RIP: 0010:ocfs2_find_dir_space_id fs/ocfs2/dir.c:3426 [inline]
RIP: 0010:ocfs2_prepare_dir_for_insert+0x2f23/0x5480 fs/ocfs2/dir.c:4306
Code: 18 00 e9 e1 11 00 00 e8 8b 71 37 fe e9 a9 02 00 00 e8 81 71 37 fe 4c 8b 7c 24 70 49 8d 7e 08 49 8d 5e 09 48 89 f8 48 c1 e8 03 <42> 0f b6 04 20 84 c0 0f 85 78 20 00 00 4c 2b bc 24 88 00 00 00 48
RSP: 0018:ffffc90003537040 EFLAGS: 00010202
RAX: 0000000000000001 RBX: 0000000000000009 RCX: ffff88807034bc00
RDX: 0000000000000000 RSI: ffff8880240670c8 RDI: 0000000000000008
RBP: ffffc90003537770 R08: ffffc90003537a80 R09: 608b7c562adf3b03
R10: 23ec6d672c196c9a R11: 608b7c562adf3b03 R12: dffffc0000000000
R13: ffff88805d10ddf8 R14: 0000000000000000 R15: 00000001000001c0
FS: 000055555c7fd500(0000) GS:ffff8880b8e00000(0000) knlGS:0000000000000000
CS: 0010 DS: 0000 ES: 0000 CR0: 0000000080050033
CR2: 0000001b33c63fff CR3: 0000000026ab5000 CR4: 00000000003506f0
Call Trace:
<TASK>
__ocfs2_prepare_orphan_dir+0x146/0x2c0 fs/ocfs2/namei.c:2167
ocfs2_prepare_orphan_dir+0xfa/0x3f0 fs/ocfs2/namei.c:2210
ocfs2_unlink+0x8fa/0x18f0 fs/ocfs2/namei.c:960
vfs_unlink+0x389/0x600 fs/namei.c:4333
do_unlinkat+0x328/0x570 fs/namei.c:4399
__do_sys_unlinkat fs/namei.c:4442 [inline]
__se_sys_unlinkat fs/namei.c:4435 [inline]
__x64_sys_unlinkat+0xd5/0xe0 fs/namei.c:4435
do_syscall_x64 arch/x86/entry/common.c:51 [inline]
do_syscall_64+0x55/0xb0 arch/x86/entry/common.c:81
entry_SYSCALL_64_after_hwframe+0x68/0xd2
RIP: 0033:0x7f86f1d8f749
Code: ff ff c3 66 2e 0f 1f 84 00 00 00 00 00 0f 1f 40 00 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 a8 ff ff ff f7 d8 64 89 01 48
RSP: 002b:00007ffc4ee49fb8 EFLAGS: 00000246 ORIG_RAX: 0000000000000107
RAX: ffffffffffffffda RBX: 00007f86f1fe5fa0 RCX: 00007f86f1d8f749
RDX: 0000000000000000 RSI: 0000200000000380 RDI: ffffffffffffff9c
RBP: 00007f86f1e13f91 R08: 0000000000000000 R09: 0000000000000000
R10: 0000000000000000 R11: 0000000000000246 R12: 0000000000000000
R13: 00007f86f1fe5fa0 R14: 00007f86f1fe5fa0 R15: 0000000000000003
</TASK>
Modules linked in:
---[ end trace 0000000000000000 ]---
RIP: 0010:ocfs2_find_dir_space_id fs/ocfs2/dir.c:3426 [inline]
RIP: 0010:ocfs2_prepare_dir_for_insert+0x2f23/0x5480 fs/ocfs2/dir.c:4306
Code: 18 00 e9 e1 11 00 00 e8 8b 71 37 fe e9 a9 02 00 00 e8 81 71 37 fe 4c 8b 7c 24 70 49 8d 7e 08 49 8d 5e 09 48 89 f8 48 c1 e8 03 <42> 0f b6 04 20 84 c0 0f 85 78 20 00 00 4c 2b bc 24 88 00 00 00 48
RSP: 0018:ffffc90003537040 EFLAGS: 00010202
RAX: 0000000000000001 RBX: 0000000000000009 RCX: ffff88807034bc00
RDX: 0000000000000000 RSI: ffff8880240670c8 RDI: 0000000000000008
RBP: ffffc90003537770 R08: ffffc90003537a80 R09: 608b7c562adf3b03
R10: 23ec6d672c196c9a R11: 608b7c562adf3b03 R12: dffffc0000000000
R13: ffff88805d10ddf8 R14: 0000000000000000 R15: 00000001000001c0
FS: 000055555c7fd500(0000) GS:ffff8880b8e00000(0000) knlGS:0000000000000000
CS: 0010 DS: 0000 ES: 0000 CR0: 0000000080050033
CR2: 0000001b33c63fff CR3: 0000000026ab5000 CR4: 00000000003506f0
----------------
Code disassembly (best guess):
0: 18 00 sbb %al,(%rax)
2: e9 e1 11 00 00 jmp 0x11e8
7: e8 8b 71 37 fe call 0xfe377197
c: e9 a9 02 00 00 jmp 0x2ba
11: e8 81 71 37 fe call 0xfe377197
16: 4c 8b 7c 24 70 mov 0x70(%rsp),%r15
1b: 49 8d 7e 08 lea 0x8(%r14),%rdi
1f: 49 8d 5e 09 lea 0x9(%r14),%rbx
23: 48 89 f8 mov %rdi,%rax
26: 48 c1 e8 03 shr $0x3,%rax
* 2a: 42 0f b6 04 20 movzbl (%rax,%r12,1),%eax <-- trapping instruction
2f: 84 c0 test %al,%al
31: 0f 85 78 20 00 00 jne 0x20af
37: 4c 2b bc 24 88 00 00 sub 0x88(%rsp),%r15
3e: 00
3f: 48 rex.W


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

syzbot

unread,
2:22 PM (4 hours ago) 2:22 PM
to syzkaller...@googlegroups.com
Hello,

syzbot found the following issue on:

HEAD commit: 68efe5a6c16a Linux 5.15.197
git tree: linux-5.15.y
console output: https://syzkaller.appspot.com/x/log.txt?x=1701577c580000
kernel config: https://syzkaller.appspot.com/x/.config?x=7e6ed99963d6ee1d
dashboard link: https://syzkaller.appspot.com/bug?extid=958945cfbe7735cc63b6
compiler: Debian clang version 20.1.8 (++20250708063551+0c9f909b7976-1~exp1~20250708183702.136), Debian LLD 20.1.8

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

Downloadable assets:
disk image: https://storage.googleapis.com/syzbot-assets/900f9b9bd850/disk-68efe5a6.raw.xz
vmlinux: https://storage.googleapis.com/syzbot-assets/1e089a5019a6/vmlinux-68efe5a6.xz
kernel image: https://storage.googleapis.com/syzbot-assets/b319f477b907/bzImage-68efe5a6.xz

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

JBD2: Ignoring recovery information on journal
ocfs2: Mounting device (7,3) on (node local, slot 0) with ordered data mode.
general protection fault, probably for non-canonical address 0xdffffc0000000001: 0000 [#1] PREEMPT SMP KASAN
KASAN: null-ptr-deref in range [0x0000000000000008-0x000000000000000f]
CPU: 0 PID: 4433 Comm: syz.3.21 Not tainted syzkaller #0
Hardware name: Google Google Compute Engine/Google Compute Engine, BIOS Google 10/25/2025
RIP: 0010:ocfs2_find_dir_space_id fs/ocfs2/dir.c:3425 [inline]
RIP: 0010:ocfs2_prepare_dir_for_insert+0x2d5b/0x5240 fs/ocfs2/dir.c:4305
Code: e8 3a f2 61 fe e9 40 01 00 00 e8 30 f2 61 fe 49 bd 00 00 00 00 00 fc ff df 49 8d 7c 24 08 4d 8d 74 24 09 48 89 f8 48 c1 e8 03 <42> 0f b6 04 28 84 c0 48 8b 5c 24 20 0f 85 e6 1f 00 00 48 2b 9c 24
RSP: 0018:ffffc90004697040 EFLAGS: 00010202
RAX: 0000000000000001 RBX: ffff88805f076c88 RCX: 0000000000080000
RDX: ffffc9000dc19000 RSI: 0000000000005e27 RDI: 0000000000000008
RBP: ffffc90004697770 R08: ffffc90004697a80 R09: 0000000000000002
R10: 0000000000000002 R11: 0000000000000002 R12: 0000000000000000
R13: dffffc0000000000 R14: 0000000000000009 R15: ffff88805f076c38
FS: 00007f95dbf6b6c0(0000) GS:ffff8880b9000000(0000) knlGS:0000000000000000
CS: 0010 DS: 0000 ES: 0000 CR0: 0000000080050033
CR2: 000000110c25811c CR3: 000000005c980000 CR4: 00000000003506f0
DR0: 0000000000000000 DR1: 0000000000000000 DR2: 0000000000000000
DR3: 0000000000000000 DR6: 00000000fffe0ff0 DR7: 0000000000000400
Call Trace:
<TASK>
__ocfs2_prepare_orphan_dir+0x142/0x2c0 fs/ocfs2/namei.c:2164
ocfs2_prepare_orphan_dir+0xf6/0x3f0 fs/ocfs2/namei.c:2207
ocfs2_unlink+0x8fa/0x17f0 fs/ocfs2/namei.c:959
vfs_unlink+0x385/0x600 fs/namei.c:4288
do_unlinkat+0x382/0x6f0 fs/namei.c:4356
__do_sys_unlinkat fs/namei.c:4399 [inline]
__se_sys_unlinkat fs/namei.c:4392 [inline]
__x64_sys_unlinkat+0xd1/0xe0 fs/namei.c:4392
do_syscall_x64 arch/x86/entry/common.c:50 [inline]
do_syscall_64+0x4c/0xa0 arch/x86/entry/common.c:80
entry_SYSCALL_64_after_hwframe+0x66/0xd0
RIP: 0033:0x7f95ddd04749
Code: ff ff c3 66 2e 0f 1f 84 00 00 00 00 00 0f 1f 40 00 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 a8 ff ff ff f7 d8 64 89 01 48
RSP: 002b:00007f95dbf6b038 EFLAGS: 00000246 ORIG_RAX: 0000000000000107
RAX: ffffffffffffffda RBX: 00007f95ddf5afa0 RCX: 00007f95ddd04749
RDX: 0000000000000000 RSI: 0000200000000380 RDI: ffffffffffffff9c
RBP: 00007f95ddd88f91 R08: 0000000000000000 R09: 0000000000000000
R10: 0000000000000000 R11: 0000000000000246 R12: 0000000000000000
R13: 00007f95ddf5b038 R14: 00007f95ddf5afa0 R15: 00007ffd48090488
</TASK>
Modules linked in:
---[ end trace 42d41cc1d440e6a0 ]---
RIP: 0010:ocfs2_find_dir_space_id fs/ocfs2/dir.c:3425 [inline]
RIP: 0010:ocfs2_prepare_dir_for_insert+0x2d5b/0x5240 fs/ocfs2/dir.c:4305
Code: e8 3a f2 61 fe e9 40 01 00 00 e8 30 f2 61 fe 49 bd 00 00 00 00 00 fc ff df 49 8d 7c 24 08 4d 8d 74 24 09 48 89 f8 48 c1 e8 03 <42> 0f b6 04 28 84 c0 48 8b 5c 24 20 0f 85 e6 1f 00 00 48 2b 9c 24
RSP: 0018:ffffc90004697040 EFLAGS: 00010202
RAX: 0000000000000001 RBX: ffff88805f076c88 RCX: 0000000000080000
RDX: ffffc9000dc19000 RSI: 0000000000005e27 RDI: 0000000000000008
RBP: ffffc90004697770 R08: ffffc90004697a80 R09: 0000000000000002
R10: 0000000000000002 R11: 0000000000000002 R12: 0000000000000000
R13: dffffc0000000000 R14: 0000000000000009 R15: ffff88805f076c38
FS: 00007f95dbf6b6c0(0000) GS:ffff8880b9100000(0000) knlGS:0000000000000000
CS: 0010 DS: 0000 ES: 0000 CR0: 0000000080050033
CR2: 0000556acae015a0 CR3: 000000005c980000 CR4: 00000000003506e0
DR0: 0000000000000000 DR1: 0000000000000000 DR2: 0000000000000000
DR3: 0000000000000000 DR6: 00000000fffe0ff0 DR7: 0000000000000400
----------------
Code disassembly (best guess):
0: e8 3a f2 61 fe call 0xfe61f23f
5: e9 40 01 00 00 jmp 0x14a
a: e8 30 f2 61 fe call 0xfe61f23f
f: 49 bd 00 00 00 00 00 movabs $0xdffffc0000000000,%r13
16: fc ff df
19: 49 8d 7c 24 08 lea 0x8(%r12),%rdi
1e: 4d 8d 74 24 09 lea 0x9(%r12),%r14
23: 48 89 f8 mov %rdi,%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: 48 8b 5c 24 20 mov 0x20(%rsp),%rbx
36: 0f 85 e6 1f 00 00 jne 0x2022
3c: 48 rex.W
3d: 2b .byte 0x2b
3e: 9c pushf
3f: 24 .byte 0x24

syzbot

unread,
2:49 PM (4 hours ago) 2:49 PM
to syzkaller...@googlegroups.com
syzbot has found a reproducer for the following issue on:

HEAD commit: 68efe5a6c16a Linux 5.15.197
git tree: linux-5.15.y
console output: https://syzkaller.appspot.com/x/log.txt?x=14bdb9b4580000
kernel config: https://syzkaller.appspot.com/x/.config?x=7e6ed99963d6ee1d
dashboard link: https://syzkaller.appspot.com/bug?extid=958945cfbe7735cc63b6
compiler: Debian clang version 20.1.8 (++20250708063551+0c9f909b7976-1~exp1~20250708183702.136), Debian LLD 20.1.8
syz repro: https://syzkaller.appspot.com/x/repro.syz?x=1183e31a580000
C reproducer: https://syzkaller.appspot.com/x/repro.c?x=15abbdc2580000
mounted in repro: https://storage.googleapis.com/syzbot-assets/9f67b1afd08a/mount_0.gz
fsck result: OK (log: https://syzkaller.appspot.com/x/fsck.log?x=12b44d58580000)

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

option from the mount to silence this warning.
=======================================================
JBD2: Ignoring recovery information on journal
ocfs2: Mounting device (7,0) on (node local, slot 0) with ordered data mode.
general protection fault, probably for non-canonical address 0xdffffc0000000001: 0000 [#1] PREEMPT SMP KASAN
KASAN: null-ptr-deref in range [0x0000000000000008-0x000000000000000f]
CPU: 0 PID: 4352 Comm: syz.0.17 Not tainted syzkaller #0
Hardware name: Google Google Compute Engine/Google Compute Engine, BIOS Google 10/25/2025
RIP: 0010:ocfs2_find_dir_space_id fs/ocfs2/dir.c:3425 [inline]
RIP: 0010:ocfs2_prepare_dir_for_insert+0x2d5b/0x5240 fs/ocfs2/dir.c:4305
Code: e8 3a f2 61 fe e9 40 01 00 00 e8 30 f2 61 fe 49 bd 00 00 00 00 00 fc ff df 49 8d 7c 24 08 4d 8d 74 24 09 48 89 f8 48 c1 e8 03 <42> 0f b6 04 28 84 c0 48 8b 5c 24 20 0f 85 e6 1f 00 00 48 2b 9c 24
RSP: 0018:ffffc90002f5f040 EFLAGS: 00010202
RAX: 0000000000000001 RBX: ffff88805c505e48 RCX: ffff888023a95940
RDX: 0000000000000000 RSI: ffff8880742a90c8 RDI: 0000000000000008
RBP: ffffc90002f5f770 R08: ffffc90002f5fa80 R09: 0000000000000002
R10: 0000000000000002 R11: 0000000000000000 R12: 0000000000000000
R13: dffffc0000000000 R14: 0000000000000009 R15: ffff88805c505df8
FS: 0000555567351500(0000) GS:ffff8880b9000000(0000) knlGS:0000000000000000
CS: 0010 DS: 0000 ES: 0000 CR0: 0000000080050033
CR2: 00007fbca75f9000 CR3: 00000000691d5000 CR4: 00000000003506f0
DR0: 0000000000000000 DR1: 0000000000000000 DR2: 0000000000000000
DR3: 0000000000000000 DR6: 00000000fffe0ff0 DR7: 0000000000000400
Call Trace:
<TASK>
__ocfs2_prepare_orphan_dir+0x142/0x2c0 fs/ocfs2/namei.c:2164
ocfs2_prepare_orphan_dir+0xf6/0x3f0 fs/ocfs2/namei.c:2207
ocfs2_unlink+0x8fa/0x17f0 fs/ocfs2/namei.c:959
vfs_unlink+0x385/0x600 fs/namei.c:4288
do_unlinkat+0x382/0x6f0 fs/namei.c:4356
__do_sys_unlinkat fs/namei.c:4399 [inline]
__se_sys_unlinkat fs/namei.c:4392 [inline]
__x64_sys_unlinkat+0xd1/0xe0 fs/namei.c:4392
do_syscall_x64 arch/x86/entry/common.c:50 [inline]
do_syscall_64+0x4c/0xa0 arch/x86/entry/common.c:80
entry_SYSCALL_64_after_hwframe+0x66/0xd0
RIP: 0033:0x7f0950c4c749
Code: ff ff c3 66 2e 0f 1f 84 00 00 00 00 00 0f 1f 40 00 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 a8 ff ff ff f7 d8 64 89 01 48
RSP: 002b:00007ffc378baa08 EFLAGS: 00000246 ORIG_RAX: 0000000000000107
RAX: ffffffffffffffda RBX: 00007f0950ea2fa0 RCX: 00007f0950c4c749
RDX: 0000000000000000 RSI: 0000200000000380 RDI: ffffffffffffff9c
RBP: 00007f0950cd0f91 R08: 0000000000000000 R09: 0000000000000000
R10: 0000000000000000 R11: 0000000000000246 R12: 0000000000000000
R13: 00007f0950ea2fa0 R14: 00007f0950ea2fa0 R15: 0000000000000003
</TASK>
Modules linked in:
---[ end trace 7f3397a5a75b2648 ]---
RIP: 0010:ocfs2_find_dir_space_id fs/ocfs2/dir.c:3425 [inline]
RIP: 0010:ocfs2_prepare_dir_for_insert+0x2d5b/0x5240 fs/ocfs2/dir.c:4305
Code: e8 3a f2 61 fe e9 40 01 00 00 e8 30 f2 61 fe 49 bd 00 00 00 00 00 fc ff df 49 8d 7c 24 08 4d 8d 74 24 09 48 89 f8 48 c1 e8 03 <42> 0f b6 04 28 84 c0 48 8b 5c 24 20 0f 85 e6 1f 00 00 48 2b 9c 24
RSP: 0018:ffffc90002f5f040 EFLAGS: 00010202
RAX: 0000000000000001 RBX: ffff88805c505e48 RCX: ffff888023a95940
RDX: 0000000000000000 RSI: ffff8880742a90c8 RDI: 0000000000000008
RBP: ffffc90002f5f770 R08: ffffc90002f5fa80 R09: 0000000000000002
R10: 0000000000000002 R11: 0000000000000000 R12: 0000000000000000
R13: dffffc0000000000 R14: 0000000000000009 R15: ffff88805c505df8
FS: 0000555567351500(0000) GS:ffff8880b9100000(0000) knlGS:0000000000000000
CS: 0010 DS: 0000 ES: 0000 CR0: 0000000080050033
CR2: 00007fbca75f6000 CR3: 00000000691d5000 CR4: 00000000003506e0
DR0: 0000000000000000 DR1: 0000000000000000 DR2: 0000000000000000
DR3: 0000000000000000 DR6: 00000000fffe0ff0 DR7: 0000000000000400
----------------
Code disassembly (best guess):
0: e8 3a f2 61 fe call 0xfe61f23f
5: e9 40 01 00 00 jmp 0x14a
a: e8 30 f2 61 fe call 0xfe61f23f
f: 49 bd 00 00 00 00 00 movabs $0xdffffc0000000000,%r13
16: fc ff df
19: 49 8d 7c 24 08 lea 0x8(%r12),%rdi
1e: 4d 8d 74 24 09 lea 0x9(%r12),%r14
23: 48 89 f8 mov %rdi,%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: 48 8b 5c 24 20 mov 0x20(%rsp),%rbx
36: 0f 85 e6 1f 00 00 jne 0x2022
3c: 48 rex.W
3d: 2b .byte 0x2b
3e: 9c pushf
3f: 24 .byte 0x24


---
Reply all
Reply to author
Forward
0 new messages