syzbot


KASAN: use-after-free Read in ocfs2_fault (2)

Status: upstream: reported C repro on 2026/01/15 08:30
Bug presence: origin:upstream
[Documentation on labels]
Reported-by: syzbot+f898b1c69dd9e471ab17@syzkaller.appspotmail.com
First crash: 147d, last: 28d
Fix bisection: failed (error log, bisect log)
  
Bug presence (1)
Date Name Commit Repro Result
2026/01/15 upstream (ToT) 603c05a1639f C [report] KASAN: slab-use-after-free Read in ocfs2_fault
Similar bugs (4)
Kernel Title Rank 🛈 Repro Cause bisect Fix bisect Count Last Reported Patched Status
linux-5.15 KASAN: use-after-free Read in ocfs2_fault 19 1 397d 397d 0/3 auto-obsoleted due to no activity on 2025/08/18 07:54
linux-6.1 KASAN: use-after-free Read in ocfs2_fault origin:lts-only 19 C error 22 41d 377d 0/3 upstream: reported C repro on 2025/05/31 00:13
upstream KASAN: slab-use-after-free Read in ocfs2_fault ocfs2 19 C done 363 57d 637d 29/29 fixed on 2026/05/21 07:50
linux-6.6 KASAN: slab-use-after-free Read in ocfs2_fault origin:upstream missing-backport 19 C error 3 169d 267d 0/2 upstream: reported C repro on 2025/09/17 19:37
Last patch testing requests (3)
Created Duration User Patch Repo Result
2026/06/08 12:42 23m retest repro linux-5.15.y OK log
2026/01/29 11:22 1h22m retest repro linux-5.15.y report log
2026/01/29 11:02 1h37m retest repro linux-5.15.y report log

Sample crash report:
(syz.3.321,5930,1):ocfs2_block_check_validate:402 ERROR: CRC32 failed: stored: 0xb3775c19, computed 0x2dd1c265. Applying ECC.
JBD2: Ignoring recovery information on journal
ocfs2: Mounting device (7,3) on (node local, slot 0) with ordered data mode.
==================================================================
BUG: KASAN: use-after-free in ocfs2_fault+0xda/0x3d0 fs/ocfs2/mmap.c:41
Read of size 8 at addr ffff88802295e9e8 by task syz.3.321/5930

CPU: 0 PID: 5930 Comm: syz.3.321 Not tainted syzkaller #0
Hardware name: Google Google Compute Engine/Google Compute Engine, BIOS Google 04/18/2026
Call Trace:
 <TASK>
 dump_stack_lvl+0x188/0x250 lib/dump_stack.c:106
 print_address_description+0x60/0x2d0 mm/kasan/report.c:248
 __kasan_report mm/kasan/report.c:434 [inline]
 kasan_report+0xdf/0x130 mm/kasan/report.c:451
 ocfs2_fault+0xda/0x3d0 fs/ocfs2/mmap.c:41
 __do_fault+0x141/0x330 mm/memory.c:3928
 do_read_fault mm/memory.c:4264 [inline]
 do_fault mm/memory.c:4392 [inline]
 handle_pte_fault mm/memory.c:4650 [inline]
 __handle_mm_fault mm/memory.c:4785 [inline]
 handle_mm_fault+0x2985/0x4410 mm/memory.c:4883
 faultin_page mm/gup.c:976 [inline]
 __get_user_pages+0x94b/0x11e0 mm/gup.c:1197
 populate_vma_page_range+0x213/0x290 mm/gup.c:1529
 __mm_populate+0x275/0x3b0 mm/gup.c:1638
 mm_populate include/linux/mm.h:2646 [inline]
 vm_mmap_pgoff+0x212/0x2d0 mm/util.c:556
 ksys_mmap_pgoff+0x54b/0x790 mm/mmap.c:1635
 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:0x7fdc2abd6e59
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:00007fdc28e30028 EFLAGS: 00000246 ORIG_RAX: 0000000000000009
RAX: ffffffffffffffda RBX: 00007fdc2ae4ffa0 RCX: 00007fdc2abd6e59
RDX: 0000000000000002 RSI: 0000000000b36000 RDI: 0000200000000000
RBP: 00007fdc2ac6cd6f R08: 0000000000000007 R09: 0000000000000000
R10: 0000000000028011 R11: 0000000000000246 R12: 0000000000000000
R13: 00007fdc2ae50038 R14: 00007fdc2ae4ffa0 R15: 00007fffc8597bf8
 </TASK>

Allocated by task 5930:
 kasan_save_stack mm/kasan/common.c:38 [inline]
 kasan_set_track mm/kasan/common.c:46 [inline]
 set_alloc_info mm/kasan/common.c:434 [inline]
 __kasan_slab_alloc+0x9c/0xd0 mm/kasan/common.c:467
 kasan_slab_alloc include/linux/kasan.h:254 [inline]
 slab_post_alloc_hook+0x4c/0x380 mm/slab.h:519
 slab_alloc_node mm/slub.c:3225 [inline]
 slab_alloc mm/slub.c:3233 [inline]
 kmem_cache_alloc+0x100/0x290 mm/slub.c:3238
 vm_area_alloc+0x20/0xe0 kernel/fork.c:350
 __mmap_region mm/mmap.c:1782 [inline]
 mmap_region+0xac0/0x1650 mm/mmap.c:2933
 do_mmap+0x819/0xe90 mm/mmap.c:1586
 vm_mmap_pgoff+0x1c1/0x2d0 mm/util.c:551
 ksys_mmap_pgoff+0x54b/0x790 mm/mmap.c:1635
 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

Freed by task 5962:
 kasan_save_stack mm/kasan/common.c:38 [inline]
 kasan_set_track+0x4b/0x70 mm/kasan/common.c:46
 kasan_set_free_info+0x1f/0x40 mm/kasan/generic.c:360
 ____kasan_slab_free+0xd5/0x110 mm/kasan/common.c:366
 kasan_slab_free include/linux/kasan.h:230 [inline]
 slab_free_hook mm/slub.c:1710 [inline]
 slab_free_freelist_hook+0xea/0x170 mm/slub.c:1736
 slab_free mm/slub.c:3504 [inline]
 kmem_cache_free+0x8f/0x210 mm/slub.c:3520
 remove_vma mm/mmap.c:188 [inline]
 remove_vma_list mm/mmap.c:2628 [inline]
 __do_munmap+0xc81/0xdf0 mm/mmap.c:2902
 do_munmap mm/mmap.c:2910 [inline]
 munmap_vma_range mm/mmap.c:603 [inline]
 __mmap_region mm/mmap.c:1757 [inline]
 mmap_region+0x8b4/0x1650 mm/mmap.c:2933
 do_mmap+0x819/0xe90 mm/mmap.c:1586
 vm_mmap_pgoff+0x1c1/0x2d0 mm/util.c:551
 ksys_mmap_pgoff+0x140/0x790 mm/mmap.c:1635
 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

The buggy address belongs to the object at ffff88802295e948
 which belongs to the cache vm_area_struct of size 200
The buggy address is located 160 bytes inside of
 200-byte region [ffff88802295e948, ffff88802295ea10)
The buggy address belongs to the page:
page:ffffea00008a5780 refcount:1 mapcount:0 mapping:0000000000000000 index:0x0 pfn:0x2295e
memcg:ffff88801b394b01
flags: 0xfff00000000200(slab|node=0|zone=1|lastcpupid=0x7ff)
raw: 00fff00000000200 dead000000000100 dead000000000122 ffff888140007a00
raw: 0000000000000000 00000000000f000f 00000001ffffffff ffff88801b394b01
page dumped because: kasan: bad access detected
page_owner tracks the page as allocated
page last allocated via order 0, migratetype Unmovable, gfp_mask 0x12cc0(GFP_KERNEL|__GFP_NOWARN|__GFP_NORETRY), pid 4037, ts 47352041379, free_ts 47350153005
 prep_new_page mm/page_alloc.c:2426 [inline]
 get_page_from_freelist+0x1bbd/0x1ca0 mm/page_alloc.c:4192
 __alloc_pages+0x1ee/0x480 mm/page_alloc.c:5501
 alloc_slab_page mm/slub.c:1780 [inline]
 allocate_slab mm/slub.c:1917 [inline]
 new_slab+0xc0/0x4b0 mm/slub.c:1980
 ___slab_alloc+0x80a/0xdd0 mm/slub.c:3013
 __slab_alloc mm/slub.c:3100 [inline]
 slab_alloc_node mm/slub.c:3191 [inline]
 slab_alloc mm/slub.c:3233 [inline]
 kmem_cache_alloc+0x195/0x290 mm/slub.c:3238
 vm_area_dup+0x1e/0xb0 kernel/fork.c:358
 __split_vma+0xb1/0x410 mm/mmap.c:2730
 __do_munmap+0x3fe/0xdf0 mm/mmap.c:2865
 do_munmap mm/mmap.c:2910 [inline]
 munmap_vma_range mm/mmap.c:603 [inline]
 __mmap_region mm/mmap.c:1757 [inline]
 mmap_region+0x8b4/0x1650 mm/mmap.c:2933
 do_mmap+0x819/0xe90 mm/mmap.c:1586
 vm_mmap_pgoff+0x1c1/0x2d0 mm/util.c:551
 ksys_mmap_pgoff+0x54b/0x790 mm/mmap.c:1635
 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
page last free stack trace:
 reset_page_owner include/linux/page_owner.h:24 [inline]
 free_pages_prepare mm/page_alloc.c:1340 [inline]
 free_pcp_prepare mm/page_alloc.c:1391 [inline]
 free_unref_page_prepare+0x637/0x6c0 mm/page_alloc.c:3317
 free_unref_page_list+0x119/0x820 mm/page_alloc.c:3433
 release_pages+0x186c/0x1be0 mm/swap.c:963
 tlb_batch_pages_flush mm/mmu_gather.c:50 [inline]
 tlb_flush_mmu_free mm/mmu_gather.c:241 [inline]
 tlb_flush_mmu mm/mmu_gather.c:248 [inline]
 tlb_finish_mmu+0x1b4/0x370 mm/mmu_gather.c:371
 exit_mmap+0x3d0/0x640 mm/mmap.c:3218
 __mmput+0x115/0x3b0 kernel/fork.c:1127
 exec_mmap+0x51d/0x610 fs/exec.c:1035
 begin_new_exec+0x7e8/0x1160 fs/exec.c:1293
 load_elf_binary+0x99c/0x28e0 fs/binfmt_elf.c:1001
 search_binary_handler fs/exec.c:1742 [inline]
 exec_binprm fs/exec.c:1783 [inline]
 bprm_execve+0xaee/0x1840 fs/exec.c:1852
 do_execveat_common+0x51e/0x6d0 fs/exec.c:1957
 do_execve fs/exec.c:2027 [inline]
 __do_sys_execve fs/exec.c:2103 [inline]
 __se_sys_execve fs/exec.c:2098 [inline]
 __x64_sys_execve+0x8e/0xa0 fs/exec.c:2098
 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

Memory state around the buggy address:
 ffff88802295e880: fb fb fb fb fb fb fb fb fb fb fb fb fb fb fb fb
 ffff88802295e900: fb fc fc fc fc fc fc fc fc fa fb fb fb fb fb fb
>ffff88802295e980: fb fb fb fb fb fb fb fb fb fb fb fb fb fb fb fb
                                                          ^
 ffff88802295ea00: fb fb fc fc fc fc fc fc fc fc fa fb fb fb fb fb
 ffff88802295ea80: fb fb fb fb fb fb fb fb fb fb fb fb fb fb fb fb
==================================================================

Crashes (3):
Time Kernel Commit Syzkaller Config Log Report Syz repro C repro VM info Assets (help?) Manager Title
2026/05/15 03:34 linux-5.15.y de8dfb3f0278 6ccb967e .config console log report info [disk image] [vmlinux] [kernel image] ci2-linux-5-15-kasan KASAN: use-after-free Read in ocfs2_fault
2026/01/15 09:47 linux-5.15.y 68efe5a6c16a d6526ea3 .config console log report syz / log C [disk image] [vmlinux] [kernel image] [mounted in repro (clean fs)] ci2-linux-5-15-kasan KASAN: use-after-free Read in ocfs2_fault
2026/01/15 08:29 linux-5.15.y 68efe5a6c16a d6526ea3 .config console log report info [disk image] [vmlinux] [kernel image] ci2-linux-5-15-kasan KASAN: use-after-free Read in ocfs2_fault
* Struck through repros no longer work on HEAD.