kernel BUG in ocfs2_set_new_buffer_uptodate (3)

Status: upstream: reported on 2026/09/19 21:50
Subsystems: ocfs2
Labels: prio:high
[Documentation on labels]
Reported-by: syzbot+03aaa576f1daa1c1f2f0@syzkaller.appspotmail.com
Fix commit: b10ef5d2c208 ocfs2: validate chunk and block counts of the local quota file
Patched on: [ci-qemu-gce-upstream-auto ci-qemu-upstream ci-qemu-upstream-386 ci-qemu2-arm32 ci-qemu2-arm64 ci-qemu2-arm64-compat ci-qemu2-arm64-mte ci-qemu2-riscv64 ci-snapshot-upstream-root ci-upstream-bpf-kasan-gce ci-upstream-bpf-next-kasan-gce ci-upstream-gce-arm64 ci-upstream-gce-leak ci-upstream-kasan-badwrites-root ci-upstream-kasan-gce ci-upstream-kasan-gce-386 ci-upstream-kasan-gce-root ci-upstream-kasan-gce-selinux-root ci-upstream-kasan-gce-smack-root ci-upstream-linux-next-kasan-gce-root ci-upstream-net-kasan-gce ci-upstream-net-this-kasan-gce ci-upstream-rust-kasan-gce ci2-upstream-fs ci2-upstream-kcsan-gce ci2-upstream-usb], missing on: [ci-qemu-native-arm64-kvm ci-upstream-kmsan-gce-386-root ci-upstream-kmsan-gce-root]
First crash: 62d, last: 1d07h
▶ ▼ ✨ AI Jobs (1)
ID Workflow Result Correct Bug Created Started Finished Revision
62fab917 assessment-security DenialOfService: ✅ Exploitable: ❌ FilesystemTrigger: ✅ NetworkTrigger: ❌ PeripheralTrigger: ✅ RemoteTrigger: ❌ Unprivileged: ✅ UserNamespace: ✅ VMGuestTrigger: ❌ VMHostTrigger: ❌ ❓ kernel BUG in ocfs2_set_new_buffer_uptodate (3) 2026/09/17 00:56 2026/09/17 00:56 2026/09/17 01:35 95928915
▶ ▼ Discussions (2)
Title Replies (including bot) Last reply
[PATCH] ocfs2: validate chunk and block counts of the local quota file 2 (2) 2026/09/22 07:05
[syzbot] [ocfs2?] kernel BUG in ocfs2_set_new_buffer_uptodate (3) 0 (1) 2026/09/19 21:50
▶ ▼ Similar bugs (6)
Kernel Title Rank 🛈 Repro Cause bisect Fix bisect Count Last Reported Patched Status
upstream kernel BUG in ocfs2_set_new_buffer_uptodate ocfs2 -1 syz, C inconclusive 55 709d 820d 28/29 fixed on 2024/12/16 09:50
linux-6.6 kernel BUG in ocfs2_set_new_buffer_uptodate origin:upstream missing-backport -1 syz, C inconclusive 34 309d 428d 0/2 upstream: reported C repro on 2025/09/14 20:32
linux-5.15 kernel BUG in ocfs2_set_new_buffer_uptodate (2) origin:upstream -1 syz, C error 6 216d 554d 0/3 upstream: reported C repro on 2025/05/11 13:56
upstream kernel BUG in ocfs2_set_new_buffer_uptodate (2) ocfs2 -1 syz, C inconclusive done 3031 287d 691d 0/29 auto-obsoleted due to no activity on 2026/07/07 20:11
linux-6.1 kernel BUG in ocfs2_set_new_buffer_uptodate origin:upstream missing-backport -1 syz, C error 7 320d 680d 0/3 upstream: reported C repro on 2025/01/06 04:02
linux-5.15 kernel BUG in ocfs2_set_new_buffer_uptodate origin:upstream missing-backport -1 syz, C error 7 680d 770d 0/3 auto-obsoleted due to no activity on 2025/04/15 21:51

Sample crash report:
(syz.0.0,5352,0):ocfs2_mkdir:663 ERROR: status = -12
FAULT_INJECTION: forcing a failure.
name failslab, interval 1, probability 5, space 0, times 95
CPU: 0 UID: 0 PID: 5352 Comm: syz.0.0 Not tainted syzkaller #0 PREEMPT(full) 
Hardware name: QEMU Standard PC (Q35 + ICH9, 2009), BIOS 1.16.3-debian-1.16.3-2 04/01/2014
Call Trace:
 <TASK>
 dump_stack_lvl+0xe8/0x150 lib/dump_stack.c:120
 fail_dump lib/fault-inject.c:74 [inline]
 should_fail_ex+0x3eb/0x540 lib/fault-inject.c:175
 should_failslab+0xa8/0x100 mm/failslab.c:46
 slab_pre_alloc_hook mm/slub.c:4675 [inline]
 slab_alloc_node mm/slub.c:5011 [inline]
 kmem_cache_alloc_noprof+0x9c/0x600 mm/slub.c:5047
 sigqueue_alloc kernel/signal.c:437 [inline]
 __send_signal_locked+0x313/0x1010 kernel/signal.c:1111
 send_signal_locked+0x135/0x9e0 kernel/signal.c:1251
 force_sig_info_to_task+0x316/0x4b0 kernel/signal.c:1355
 force_sig_fault_to_task kernel/signal.c:1743 [inline]
 force_sig_fault+0xf0/0x150 kernel/signal.c:1748
 handle_page_fault arch/x86/mm/fault.c:1483 [inline]
 exc_page_fault+0x6a/0xc0 arch/x86/mm/fault.c:1536
 asm_exc_page_fault+0x26/0x30 arch/x86/include/asm/idtentry.h:595
RIP: 0033:0x7f6b2e592b21
Code: 0f 1f 84 00 00 00 00 00 90 48 ff ca 0f 8c ef 04 00 00 62 a1 c5 00 ef ff 89 f0 25 ff 0f 00 00 3d e0 0f 00 00 0f 87 e0 04 00 00 <62> e1 fe 28 6f 06 62 b2 7e 20 26 c0 c5 fb 93 c8 48 89 f8 48 83 fa
RSP: 002b:00007f6b2f4f2b98 EFLAGS: 00010283
RAX: 0000000000000000 RBX: 0000000000000007 RCX: 0000000000000000
RDX: 00000000000003fe RSI: 0000000000000000 RDI: 00007f6b2f4f2bc0
RBP: 00007f6b2f4f2bc0 R08: 0000000000000000 R09: 0000000000000000
R10: 0000000000000000 R11: 0000000000000002 R12: cccccccccccccccd
R13: 00007f6b2e826038 R14: 00007f6b2e825fa0 R15: 00007ffd0f901ab8
 </TASK>
FAULT_INJECTION: forcing a failure.
name failslab, interval 1, probability 5, space 0, times 94
CPU: 0 UID: 0 PID: 5352 Comm: syz.0.0 Not tainted syzkaller #0 PREEMPT(full) 
Hardware name: QEMU Standard PC (Q35 + ICH9, 2009), BIOS 1.16.3-debian-1.16.3-2 04/01/2014
Call Trace:
 <TASK>
 dump_stack_lvl+0xe8/0x150 lib/dump_stack.c:120
 fail_dump lib/fault-inject.c:74 [inline]
 should_fail_ex+0x3eb/0x540 lib/fault-inject.c:175
 should_failslab+0xa8/0x100 mm/failslab.c:46
 slab_pre_alloc_hook mm/slub.c:4675 [inline]
 slab_alloc_node mm/slub.c:5011 [inline]
 kmem_cache_alloc_noprof+0x9c/0x600 mm/slub.c:5047
 alloc_filename fs/namei.c:147 [inline]
 do_getname+0x2e/0x250 fs/namei.c:187
 getname_flags fs/namei.c:230 [inline]
 getname include/linux/fs.h:2569 [inline]
 class_filename_constructor include/linux/fs.h:2596 [inline]
 __do_sys_renameat2 fs/namei.c:6371 [inline]
 __se_sys_renameat2+0x34/0x2c0 fs/namei.c:6368
 do_syscall_x64 arch/x86/entry/syscall_64.c:61 [inline]
 do_syscall_64+0x171/0x540 arch/x86/entry/syscall_64.c:89
 entry_SYSCALL_64_after_hwframe+0x77/0x7f
RIP: 0033:0x7f6b2e5a94d9
Code: ff c3 66 2e 0f 1f 84 00 00 00 00 00 0f 1f 44 00 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 e8 ff ff ff f7 d8 64 89 01 48
RSP: 002b:00007f6b2f4f2fe8 EFLAGS: 00000246 ORIG_RAX: 000000000000013c
RAX: ffffffffffffffda RBX: 00007f6b2e825fa0 RCX: 00007f6b2e5a94d9
RDX: ffffffffffffff9c RSI: 0000000000000000 RDI: ffffffffffffff9c
RBP: 00007f6b2e63804e R08: 0000000000000000 R09: 0000000000000000
R10: 0000200000010780 R11: 0000000000000246 R12: 0000000000000000
R13: 00007f6b2e826038 R14: 00007f6b2e825fa0 R15: 00007ffd0f901ab8
 </TASK>
------------[ cut here ]------------
kernel BUG at fs/ocfs2/uptodate.c:509!
Oops: invalid opcode: 0000 [#1] SMP KASAN NOPTI
CPU: 0 UID: 0 PID: 5352 Comm: syz.0.0 Not tainted syzkaller #0 PREEMPT(full) 
Hardware name: QEMU Standard PC (Q35 + ICH9, 2009), BIOS 1.16.3-debian-1.16.3-2 04/01/2014
RIP: 0010:ocfs2_set_new_buffer_uptodate+0x149/0x170 fs/ocfs2/uptodate.c:509
Code: 80 3c 20 00 74 08 4c 89 f7 e8 33 d3 33 fe 4d 8b 1e 48 89 df 5b 41 5c 41 5d 41 5e 41 5f 5d 41 ff e3 cc cc cc e8 c8 6c ba fd 90 <0f> 0b e8 c0 6c ba fd 90 0f 0b e8 b8 6c ba fd 90 0f 0b e8 b0 6c ba
RSP: 0018:ffffc9000e2aed48 EFLAGS: 00010287
RAX: ffffffff840ec878 RBX: ffff88805302f818 RCX: 0000000000100000
RDX: ffffc9000ef52000 RSI: 00000000000014b7 RDI: 00000000000014b8
RBP: 0000000000000001 R08: ffffffff91be45bf R09: 1ffffffff237c8b7
R10: dffffc0000000000 R11: fffffbfff237c8b8 R12: dffffc0000000000
R13: ffff88805301c460 R14: ffff88805301c460 R15: ffff88801e825080
FS:  00007f6b2f4f36c0(0000) GS:ffff88808a9f4000(0000) knlGS:0000000000000000
CS:  0010 DS: 0000 ES: 0000 CR0: 0000000080050033
CR2: 00007f6b2f4f1ec0 CR3: 0000000041ade000 CR4: 0000000000352ef0
Call Trace:
 <TASK>
 ocfs2_extend_local_quota_file fs/ocfs2/quota_local.c:1180 [inline]
 ocfs2_create_local_dquot+0x80e/0x1aa0 fs/ocfs2/quota_local.c:1266
 ocfs2_acquire_dquot+0x82c/0xb70 fs/ocfs2/quota_global.c:897
 dqget+0x725/0xbd0 fs/quota/dquot.c:1018
 __dquot_initialize+0x33a/0xd40 fs/quota/dquot.c:1478
 ocfs2_get_init_inode+0x147/0x1c0 fs/ocfs2/namei.c:206
 ocfs2_mknod+0x8b0/0x2190 fs/ocfs2/namei.c:314
 ocfs2_create+0x195/0x460 fs/ocfs2/namei.c:677
 lookup_open+0x102d/0x1ae0 fs/namei.c:4575
 open_last_lookups fs/namei.c:4774 [inline]
 path_openat+0x70c/0x20f0 fs/namei.c:5013
 do_file_open+0x23e/0x4a0 fs/namei.c:5045
 do_sys_openat2+0x115/0x200 fs/open.c:1443
 do_sys_open fs/open.c:1449 [inline]
 __do_sys_openat fs/open.c:1465 [inline]
 __se_sys_openat fs/open.c:1460 [inline]
 __x64_sys_openat+0x138/0x170 fs/open.c:1460
 do_syscall_x64 arch/x86/entry/syscall_64.c:61 [inline]
 do_syscall_64+0x171/0x540 arch/x86/entry/syscall_64.c:89
 entry_SYSCALL_64_after_hwframe+0x77/0x7f
RIP: 0033:0x7f6b2e5a94d9
Code: ff c3 66 2e 0f 1f 84 00 00 00 00 00 0f 1f 44 00 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 e8 ff ff ff f7 d8 64 89 01 48
RSP: 002b:00007f6b2f4f2fe8 EFLAGS: 00000246 ORIG_RAX: 0000000000000101
RAX: ffffffffffffffda RBX: 00007f6b2e825fa0 RCX: 00007f6b2e5a94d9
RDX: 0000000000000042 RSI: 00002000000108c0 RDI: ffffffffffffff9c
RBP: 00007f6b2e63804e R08: 0000000000000000 R09: 0000000000000000
R10: 0000000000000000 R11: 0000000000000246 R12: 0000000000000000
R13: 00007f6b2e826038 R14: 00007f6b2e825fa0 R15: 00007ffd0f901ab8
 </TASK>
Modules linked in:
---[ end trace 0000000000000000 ]---
RIP: 0010:ocfs2_set_new_buffer_uptodate+0x149/0x170 fs/ocfs2/uptodate.c:509
Code: 80 3c 20 00 74 08 4c 89 f7 e8 33 d3 33 fe 4d 8b 1e 48 89 df 5b 41 5c 41 5d 41 5e 41 5f 5d 41 ff e3 cc cc cc e8 c8 6c ba fd 90 <0f> 0b e8 c0 6c ba fd 90 0f 0b e8 b8 6c ba fd 90 0f 0b e8 b0 6c ba
RSP: 0018:ffffc9000e2aed48 EFLAGS: 00010287
RAX: ffffffff840ec878 RBX: ffff88805302f818 RCX: 0000000000100000
RDX: ffffc9000ef52000 RSI: 00000000000014b7 RDI: 00000000000014b8
RBP: 0000000000000001 R08: ffffffff91be45bf R09: 1ffffffff237c8b7
R10: dffffc0000000000 R11: fffffbfff237c8b8 R12: dffffc0000000000
R13: ffff88805301c460 R14: ffff88805301c460 R15: ffff88801e825080
FS:  00007f6b2f4f36c0(0000) GS:ffff88808a9f4000(0000) knlGS:0000000000000000
CS:  0010 DS: 0000 ES: 0000 CR0: 0000000080050033
CR2: 00007f6b2f4f1ec0 CR3: 0000000041ade000 CR4: 0000000000352ef0

Crashes (5):
Time Kernel Commit Syzkaller Config Log Report Syz repro C repro VM info Assets (help?) Manager Title
2026/11/15 21:49 upstream fa2933aac170 819ebe34 .config console log report [disk image (non-bootable)] [vmlinux] [kernel image] ci-snapshot-upstream-root kernel BUG in ocfs2_set_new_buffer_uptodate
2026/11/15 21:49 upstream fa2933aac170 819ebe34 .config console log report [disk image (non-bootable)] [vmlinux] [kernel image] ci-snapshot-upstream-root kernel BUG in ocfs2_set_new_buffer_uptodate
2026/11/15 18:32 upstream 23c62304dde2 819ebe34 .config console log report [disk image (non-bootable)] [vmlinux] [kernel image] ci-snapshot-upstream-root kernel BUG in ocfs2_set_new_buffer_uptodate
2026/11/15 18:28 upstream 23c62304dde2 819ebe34 .config console log report [disk image (non-bootable)] [vmlinux] [kernel image] ci-snapshot-upstream-root kernel BUG in ocfs2_set_new_buffer_uptodate
2026/09/15 21:43 upstream f6e7b42bf05b f41e228a .config console log report [disk image (non-bootable)] [vmlinux] [kernel image] ci-snapshot-upstream-root kernel BUG in ocfs2_set_new_buffer_uptodate
* Struck through repros no longer work on HEAD.