syzbot


KASAN: slab-out-of-bounds Read in dtInsertEntry

Status: upstream: reported C repro on 2025/04/08 17:54
Bug presence: origin:upstream
[Documentation on labels]
Reported-by: syzbot+45b09b7bfabcb2112ea2@syzkaller.appspotmail.com
First crash: 62d, last: 1d06h
Bug presence (1)
Date Name Commit Repro Result
2025/04/15 upstream (ToT) 834a4a689699 C [report] KASAN: slab-out-of-bounds Read in dtInsertEntry
Similar bugs (7)
Kernel Title Repro Cause bisect Fix bisect Count Last Reported Patched Status
upstream UBSAN: array-index-out-of-bounds in dtInsertEntry jfs C inconclusive 919 5h26m 248d 0/28 upstream: reported C repro on 2024/10/03 19:10
linux-4.19 general protection fault in dtInsertEntry C error 4 940d 987d 0/1 upstream: reported C repro on 2022/09/26 01:50
linux-5.15 BUG: unable to handle kernel paging request in dtInsertEntry origin:upstream missing-backport C error 298 4h56m 733d 0/3 upstream: reported C repro on 2023/06/07 09:20
upstream general protection fault in dtInsertEntry jfs C inconclusive 501 301d 426d 27/28 fixed on 2024/08/14 03:44
upstream BUG: unable to handle kernel NULL pointer dereference in dtInsertEntry jfs C error done 29 493d 987d 25/28 fixed on 2024/03/20 11:33
linux-6.1 BUG: unable to handle kernel paging request in dtInsertEntry C error 17 288d 733d 0/3 auto-obsoleted due to no activity on 2024/12/03 11:36
linux-4.14 general protection fault in dtInsertEntry C 3 831d 987d 0/1 upstream: reported C repro on 2022/09/25 23:44

Sample crash report:
loop0: detected capacity change from 0 to 32768
 ... Log Wrap ... Log Wrap ... Log Wrap ...
read_mapping_page failed!
ERROR: (device loop0): txCommit: 
read_mapping_page failed!
ERROR: (device loop0): txCommit: 
==================================================================
BUG: KASAN: slab-out-of-bounds in dtInsertEntry+0x10d6/0x1770 fs/jfs/jfs_dtree.c:3753
Read of size 4 at addr ffff888071bcb70c by task syz-executor111/4245

CPU: 1 PID: 4245 Comm: syz-executor111 Not tainted 6.1.134-syzkaller #0
Hardware name: Google Google Compute Engine/Google Compute Engine, BIOS Google 02/12/2025
Call Trace:
 <TASK>
 __dump_stack lib/dump_stack.c:88 [inline]
 dump_stack_lvl+0x1e3/0x2cb lib/dump_stack.c:106
 print_address_description mm/kasan/report.c:316 [inline]
 print_report+0x15f/0x4f0 mm/kasan/report.c:427
 kasan_report+0x136/0x160 mm/kasan/report.c:531
 dtInsertEntry+0x10d6/0x1770 fs/jfs/jfs_dtree.c:3753
 dtSplitPage+0x2e03/0x3f40 fs/jfs/jfs_dtree.c:1596
 dtSplitUp fs/jfs/jfs_dtree.c:1092 [inline]
 dtInsert+0x14e3/0x6d10 fs/jfs/jfs_dtree.c:871
 jfs_create+0x7b2/0xbb0 fs/jfs/namei.c:137
 lookup_open fs/namei.c:3482 [inline]
 open_last_lookups fs/namei.c:3550 [inline]
 path_openat+0x12f1/0x2e60 fs/namei.c:3780
 do_filp_open+0x230/0x480 fs/namei.c:3810
 do_sys_openat2+0x13b/0x4f0 fs/open.c:1318
 do_sys_open fs/open.c:1334 [inline]
 __do_sys_openat fs/open.c:1350 [inline]
 __se_sys_openat fs/open.c:1345 [inline]
 __x64_sys_openat+0x243/0x290 fs/open.c:1345
 do_syscall_x64 arch/x86/entry/common.c:51 [inline]
 do_syscall_64+0x3b/0xb0 arch/x86/entry/common.c:81
 entry_SYSCALL_64_after_hwframe+0x68/0xd2
RIP: 0033:0x7f6ee33ca6f9
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:00007ffe0ba14f28 EFLAGS: 00000246 ORIG_RAX: 0000000000000101
RAX: ffffffffffffffda RBX: 0030656c69662f2e RCX: 00007f6ee33ca6f9
RDX: 0000000000105042 RSI: 0000200000000200 RDI: 00000000ffffff9c
RBP: 0000200000000240 R08: 0000000000000000 R09: 0000000000000000
R10: 0000000000000150 R11: 0000000000000246 R12: 0000000000000001
R13: 00007ffe0ba15108 R14: 0000000000000001 R15: 0000000000000001
 </TASK>

Allocated by task 4245:
 kasan_save_stack mm/kasan/common.c:45 [inline]
 kasan_set_track+0x4b/0x70 mm/kasan/common.c:52
 __kasan_slab_alloc+0x65/0x70 mm/kasan/common.c:328
 kasan_slab_alloc include/linux/kasan.h:201 [inline]
 slab_post_alloc_hook+0x52/0x3a0 mm/slab.h:737
 slab_alloc_node mm/slub.c:3398 [inline]
 slab_alloc mm/slub.c:3406 [inline]
 __kmem_cache_alloc_lru mm/slub.c:3413 [inline]
 kmem_cache_alloc_lru+0x10c/0x2d0 mm/slub.c:3429
 alloc_inode_sb include/linux/fs.h:3245 [inline]
 jfs_alloc_inode+0x24/0x60 fs/jfs/super.c:105
 alloc_inode fs/inode.c:261 [inline]
 iget_locked+0x1c8/0x830 fs/inode.c:1373
 jfs_iget+0x1e/0x3b0 fs/jfs/inode.c:29
 jfs_lookup+0x222/0x400 fs/jfs/namei.c:1467
 __lookup_slow+0x27e/0x3d0 fs/namei.c:1690
 lookup_slow+0x53/0x70 fs/namei.c:1707
 walk_component+0x2d0/0x400 fs/namei.c:1998
 lookup_last fs/namei.c:2455 [inline]
 path_lookupat+0x16f/0x450 fs/namei.c:2479
 filename_lookup+0x251/0x600 fs/namei.c:2508
 user_path_at_empty+0x3e/0x60 fs/namei.c:2905
 user_path_at include/linux/namei.h:57 [inline]
 __do_sys_chdir fs/open.c:514 [inline]
 __se_sys_chdir+0xbb/0x220 fs/open.c:508
 do_syscall_x64 arch/x86/entry/common.c:51 [inline]
 do_syscall_64+0x3b/0xb0 arch/x86/entry/common.c:81
 entry_SYSCALL_64_after_hwframe+0x68/0xd2

The buggy address belongs to the object at ffff888071bcae40
 which belongs to the cache jfs_ip of size 2240
The buggy address is located 12 bytes to the right of
 2240-byte region [ffff888071bcae40, ffff888071bcb700)

The buggy address belongs to the physical page:
page:ffffea0001c6f200 refcount:1 mapcount:0 mapping:0000000000000000 index:0x0 pfn:0x71bc8
head:ffffea0001c6f200 order:3 compound_mapcount:0 compound_pincount:0
flags: 0xfff00000010200(slab|head|node=0|zone=1|lastcpupid=0x7ff)
raw: 00fff00000010200 0000000000000000 dead000000000122 ffff888147afac80
raw: 0000000000000000 00000000800d000d 00000001ffffffff 0000000000000000
page dumped because: kasan: bad access detected
page_owner tracks the page as allocated
page last allocated via order 3, migratetype Reclaimable, gfp_mask 0xd2050(__GFP_IO|__GFP_NOWARN|__GFP_NORETRY|__GFP_COMP|__GFP_NOMEMALLOC|__GFP_RECLAIMABLE), pid 4245, tgid 4245 (syz-executor111), ts 70222488288, free_ts 22574414620
 set_page_owner include/linux/page_owner.h:31 [inline]
 post_alloc_hook+0x18d/0x1b0 mm/page_alloc.c:2532
 prep_new_page mm/page_alloc.c:2539 [inline]
 get_page_from_freelist+0x3731/0x38d0 mm/page_alloc.c:4328
 __alloc_pages+0x28d/0x770 mm/page_alloc.c:5606
 alloc_slab_page+0x6a/0x150 mm/slub.c:1794
 allocate_slab mm/slub.c:1939 [inline]
 new_slab+0x84/0x2d0 mm/slub.c:1992
 ___slab_alloc+0xc20/0x1270 mm/slub.c:3180
 __slab_alloc mm/slub.c:3279 [inline]
 slab_alloc_node mm/slub.c:3364 [inline]
 slab_alloc mm/slub.c:3406 [inline]
 __kmem_cache_alloc_lru mm/slub.c:3413 [inline]
 kmem_cache_alloc_lru+0x1a5/0x2d0 mm/slub.c:3429
 alloc_inode_sb include/linux/fs.h:3245 [inline]
 jfs_alloc_inode+0x24/0x60 fs/jfs/super.c:105
 alloc_inode fs/inode.c:261 [inline]
 new_inode_pseudo+0x61/0x1d0 fs/inode.c:1063
 new_inode+0x25/0x1d0 fs/inode.c:1091
 diReadSpecial+0x4e/0x680 fs/jfs/jfs_imap.c:426
 jfs_mount+0x71/0x820 fs/jfs/jfs_mount.c:87
 jfs_fill_super+0x598/0xc40 fs/jfs/super.c:556
 mount_bdev+0x2c9/0x3f0 fs/super.c:1443
 legacy_get_tree+0xeb/0x180 fs/fs_context.c:632
 vfs_get_tree+0x88/0x270 fs/super.c:1573
page last free stack trace:
 reset_page_owner include/linux/page_owner.h:24 [inline]
 free_pages_prepare mm/page_alloc.c:1459 [inline]
 free_pcp_prepare mm/page_alloc.c:1509 [inline]
 free_unref_page_prepare+0x12a6/0x15b0 mm/page_alloc.c:3384
 free_unref_page+0x33/0x3e0 mm/page_alloc.c:3479
 free_contig_range+0x9a/0x150 mm/page_alloc.c:9566
 destroy_args+0xfe/0x997 mm/debug_vm_pgtable.c:1031
 debug_vm_pgtable+0x46d/0x4c2 mm/debug_vm_pgtable.c:1354
 do_one_initcall+0x265/0x8f0 init/main.c:1298
 do_initcall_level+0x157/0x207 init/main.c:1371
 do_initcalls+0x49/0x86 init/main.c:1387
 kernel_init_freeable+0x45c/0x60f init/main.c:1626
 kernel_init+0x19/0x290 init/main.c:1514
 ret_from_fork+0x1f/0x30 arch/x86/entry/entry_64.S:295

Memory state around the buggy address:
 ffff888071bcb600: 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00
 ffff888071bcb680: 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00
>ffff888071bcb700: fc fc fc fc fc fc fc fc fc fc fc fc fc fc fc fc
                      ^
 ffff888071bcb780: 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00
 ffff888071bcb800: 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00
==================================================================

Crashes (29):
Time Kernel Commit Syzkaller Config Log Report Syz repro C repro VM info Assets (help?) Manager Title
2025/04/15 07:20 linux-6.1.y 420102835862 0bd6db41 .config console log report syz / log C [disk image] [vmlinux] [kernel image] [mounted in repro (corrupt fs)] ci2-linux-6-1-kasan KASAN: slab-out-of-bounds Read in dtInsertEntry
2025/04/14 19:24 linux-6.1.y 420102835862 0bd6db41 .config console log report syz / log C [disk image] [vmlinux] [kernel image] [mounted in repro (corrupt fs)] ci2-linux-6-1-kasan-arm64 KASAN: slab-out-of-bounds Read in dtInsertEntry
2025/06/02 08:51 linux-6.1.y da3c5173c55f 3d2f584d .config console log report info [disk image] [vmlinux] [kernel image] ci2-linux-6-1-kasan KASAN: slab-out-of-bounds Read in dtInsertEntry
2025/06/02 08:51 linux-6.1.y da3c5173c55f 3d2f584d .config console log report info [disk image] [vmlinux] [kernel image] ci2-linux-6-1-kasan KASAN: slab-out-of-bounds Read in dtInsertEntry
2025/05/22 21:39 linux-6.1.y da3c5173c55f 0919b50b .config console log report info [disk image] [vmlinux] [kernel image] ci2-linux-6-1-kasan KASAN: slab-out-of-bounds Read in dtInsertEntry
2025/05/19 18:01 linux-6.1.y 325285d9fc86 b84f0537 .config console log report info [disk image] [vmlinux] [kernel image] ci2-linux-6-1-kasan KASAN: slab-out-of-bounds Read in dtInsertEntry
2025/05/10 18:45 linux-6.1.y 02b72ccb5f9d 77908e5f .config console log report info [disk image] [vmlinux] [kernel image] ci2-linux-6-1-kasan KASAN: slab-out-of-bounds Read in dtInsertEntry
2025/05/07 04:13 linux-6.1.y ac7079a42ea5 350f4ffc .config console log report info [disk image] [vmlinux] [kernel image] ci2-linux-6-1-kasan KASAN: slab-out-of-bounds Read in dtInsertEntry
2025/05/02 18:51 linux-6.1.y b6736e03756f b0714e37 .config console log report info [disk image] [vmlinux] [kernel image] ci2-linux-6-1-kasan KASAN: slab-out-of-bounds Read in dtInsertEntry
2025/04/28 22:21 linux-6.1.y 535ec20c5027 aeb6ec69 .config console log report info [disk image] [vmlinux] [kernel image] ci2-linux-6-1-kasan KASAN: slab-out-of-bounds Read in dtInsertEntry
2025/04/28 03:16 linux-6.1.y 535ec20c5027 c6b4fb39 .config console log report info [disk image] [vmlinux] [kernel image] ci2-linux-6-1-kasan KASAN: slab-out-of-bounds Read in dtInsertEntry
2025/04/28 03:15 linux-6.1.y 535ec20c5027 c6b4fb39 .config console log report info [disk image] [vmlinux] [kernel image] ci2-linux-6-1-kasan KASAN: slab-out-of-bounds Read in dtInsertEntry
2025/04/27 03:44 linux-6.1.y 535ec20c5027 c6b4fb39 .config console log report info [disk image] [vmlinux] [kernel image] ci2-linux-6-1-kasan KASAN: slab-out-of-bounds Read in dtInsertEntry
2025/04/22 23:54 linux-6.1.y 420102835862 53a8b9bd .config console log report info [disk image] [vmlinux] [kernel image] ci2-linux-6-1-kasan KASAN: slab-out-of-bounds Read in dtInsertEntry
2025/04/22 01:34 linux-6.1.y 420102835862 2a20f901 .config console log report info [disk image] [vmlinux] [kernel image] ci2-linux-6-1-kasan KASAN: slab-out-of-bounds Read in dtInsertEntry
2025/04/08 18:05 linux-6.1.y 3dfebb87d7eb a775275d .config console log report info [disk image] [vmlinux] [kernel image] ci2-linux-6-1-kasan KASAN: slab-out-of-bounds Read in dtInsertEntry
2025/04/08 18:05 linux-6.1.y 3dfebb87d7eb a775275d .config console log report info [disk image] [vmlinux] [kernel image] ci2-linux-6-1-kasan KASAN: slab-out-of-bounds Read in dtInsertEntry
2025/04/08 17:53 linux-6.1.y 3dfebb87d7eb a775275d .config console log report info [disk image] [vmlinux] [kernel image] ci2-linux-6-1-kasan KASAN: slab-out-of-bounds Read in dtInsertEntry
2025/06/08 11:58 linux-6.1.y 58485ff1a74f 4826c28e .config console log report info [disk image] [vmlinux] [kernel image] ci2-linux-6-1-kasan-arm64 KASAN: slab-out-of-bounds Read in dtInsertEntry
2025/06/01 15:26 linux-6.1.y da3c5173c55f 3d2f584d .config console log report info [disk image] [vmlinux] [kernel image] ci2-linux-6-1-kasan-arm64 KASAN: slab-out-of-bounds Read in dtInsertEntry
2025/05/30 06:28 linux-6.1.y da3c5173c55f 3d2f584d .config console log report info [disk image] [vmlinux] [kernel image] ci2-linux-6-1-kasan-arm64 KASAN: slab-out-of-bounds Read in dtInsertEntry
2025/05/13 18:29 linux-6.1.y 02b72ccb5f9d 7344edeb .config console log report info [disk image] [vmlinux] [kernel image] ci2-linux-6-1-kasan-arm64 KASAN: slab-out-of-bounds Read in dtInsertEntry
2025/05/10 17:21 linux-6.1.y 02b72ccb5f9d 77908e5f .config console log report info [disk image] [vmlinux] [kernel image] ci2-linux-6-1-kasan-arm64 KASAN: slab-out-of-bounds Read in dtInsertEntry
2025/04/25 02:44 linux-6.1.y 420102835862 9882047a .config console log report info [disk image] [vmlinux] [kernel image] ci2-linux-6-1-kasan-arm64 KASAN: slab-out-of-bounds Read in dtInsertEntry
2025/04/24 22:12 linux-6.1.y 420102835862 9882047a .config console log report info [disk image] [vmlinux] [kernel image] ci2-linux-6-1-kasan-arm64 KASAN: slab-out-of-bounds Read in dtInsertEntry
2025/04/20 11:58 linux-6.1.y 420102835862 2a20f901 .config console log report info [disk image] [vmlinux] [kernel image] ci2-linux-6-1-kasan-arm64 KASAN: slab-out-of-bounds Read in dtInsertEntry
2025/04/18 20:20 linux-6.1.y 420102835862 2a20f901 .config console log report info [disk image] [vmlinux] [kernel image] ci2-linux-6-1-kasan-arm64 KASAN: slab-out-of-bounds Read in dtInsertEntry
2025/04/14 18:44 linux-6.1.y 420102835862 0bd6db41 .config console log report info [disk image] [vmlinux] [kernel image] ci2-linux-6-1-kasan-arm64 KASAN: slab-out-of-bounds Read in dtInsertEntry
2025/04/11 19:11 linux-6.1.y 420102835862 94486846 .config console log report info [disk image] [vmlinux] [kernel image] ci2-linux-6-1-kasan-arm64 KASAN: slab-out-of-bounds Read in dtInsertEntry
* Struck through repros no longer work on HEAD.