ci starts bisection 2023-05-19 06:35:50.277189302 +0000 UTC m=+109736.895870467 bisecting fixing commit since 4a7d37e824f57dbace61abf62f53843800bd245c building syzkaller on 42a4d50890beed97e5e9868be922faa6285f4a12 ensuring issue is reproducible on original commit 4a7d37e824f57dbace61abf62f53843800bd245c testing commit 4a7d37e824f57dbace61abf62f53843800bd245c gcc compiler: gcc (Debian 10.2.1-6) 10.2.1 20210110, GNU ld (GNU Binutils for Debian) 2.35.2 kernel signature: 7cfb81c81e012dc8c3f19d637bfcce83f438f1fa09751e02b99d2c0993272648 run #0: crashed: KASAN: use-after-free Read in dtSearch run #1: crashed: KASAN: use-after-free Read in dtSearch run #2: crashed: KASAN: slab-out-of-bounds Read in dtSearch run #3: crashed: KASAN: slab-out-of-bounds Read in dtSearch run #4: crashed: KASAN: use-after-free Read in dtSearch run #5: crashed: KASAN: slab-out-of-bounds Read in dtSearch run #6: crashed: KASAN: use-after-free Read in dtSearch run #7: crashed: KASAN: slab-out-of-bounds Read in dtSearch run #8: crashed: KASAN: use-after-free Read in dtSearch run #9: crashed: KASAN: slab-out-of-bounds Read in dtSearch run #10: crashed: KASAN: slab-out-of-bounds Read in dtSearch run #11: crashed: KASAN: use-after-free Read in dtSearch run #12: crashed: KASAN: use-after-free Read in dtSearch run #13: crashed: KASAN: use-after-free Read in dtSearch run #14: crashed: KASAN: slab-out-of-bounds Read in dtSearch run #15: crashed: KASAN: use-after-free Read in dtSearch run #16: crashed: KASAN: slab-out-of-bounds Read in dtSearch run #17: crashed: KASAN: use-after-free Read in dtSearch run #18: crashed: KASAN: slab-out-of-bounds Read in dtSearch run #19: crashed: KASAN: slab-out-of-bounds Read in dtSearch testing current HEAD 2d1bcbc6cd703e64caf8df314e3669b4786e008a testing commit 2d1bcbc6cd703e64caf8df314e3669b4786e008a gcc compiler: gcc (Debian 10.2.1-6) 10.2.1 20210110, GNU ld (GNU Binutils for Debian) 2.35.2 kernel signature: baa4da725cf18e4028550722e1e52dc266658841b9f8f09cbe8ff2ac1c593927 run #0: crashed: KASAN: slab-use-after-free Read in dtSearch run #1: crashed: KASAN: slab-out-of-bounds Read in dtSearch run #2: crashed: KASAN: slab-out-of-bounds Read in dtSearch run #3: crashed: KASAN: slab-out-of-bounds Read in dtSearch run #4: crashed: KASAN: slab-out-of-bounds Read in dtSearch run #5: crashed: KASAN: use-after-free Read in dtSearch run #6: crashed: KASAN: slab-out-of-bounds Read in dtSearch run #7: crashed: KASAN: use-after-free Read in dtSearch run #8: crashed: KASAN: slab-out-of-bounds Read in dtSearch run #9: crashed: KASAN: slab-out-of-bounds Read in dtSearch crash still not fixed/happens on the oldest tested release revisions tested: 2, total time: 25m26.600531977s (build: 18m29.913528939s, test: 6m9.71800828s) crash still not fixed on HEAD or HEAD had kernel test errors commit msg: Merge tag 'probes-fixes-v6.4-rc1' of git://git.kernel.org/pub/scm/linux/kernel/git/trace/linux-trace crash: KASAN: slab-out-of-bounds Read in dtSearch loop0: detected capacity change from 0 to 14901 ================================================================== BUG: KASAN: slab-out-of-bounds in ciCompare fs/jfs/jfs_dtree.c:3393 [inline] BUG: KASAN: slab-out-of-bounds in dtSearch+0x1dac/0x21c0 fs/jfs/jfs_dtree.c:639 Read of size 1 at addr ffff88806faef9f4 by task syz-executor.0/5667 CPU: 1 PID: 5667 Comm: syz-executor.0 Not tainted 6.4.0-rc2-syzkaller #0 Hardware name: Google Google Compute Engine/Google Compute Engine, BIOS Google 04/28/2023 Call Trace: __dump_stack lib/dump_stack.c:88 [inline] dump_stack_lvl+0x64/0xb0 lib/dump_stack.c:106 print_address_description.constprop.0+0x2c/0x3c0 mm/kasan/report.c:351 print_report mm/kasan/report.c:462 [inline] kasan_report+0x11c/0x130 mm/kasan/report.c:572 ciCompare fs/jfs/jfs_dtree.c:3393 [inline] dtSearch+0x1dac/0x21c0 fs/jfs/jfs_dtree.c:639 jfs_lookup+0x14b/0x2a0 fs/jfs/namei.c:1454 lookup_open.isra.0+0x844/0x1510 fs/namei.c:3470 open_last_lookups fs/namei.c:3560 [inline] path_openat+0x7ad/0x2280 fs/namei.c:3788 do_filp_open+0x1a9/0x3e0 fs/namei.c:3818 do_sys_openat2+0x11e/0x3f0 fs/open.c:1356 do_sys_open fs/open.c:1372 [inline] __do_sys_open fs/open.c:1380 [inline] __se_sys_open fs/open.c:1376 [inline] __x64_sys_open+0x101/0x1a0 fs/open.c:1376 do_syscall_x64 arch/x86/entry/common.c:50 [inline] do_syscall_64+0x39/0xb0 arch/x86/entry/common.c:80 entry_SYSCALL_64_after_hwframe+0x63/0xcd RIP: 0033:0x7f3abf28c0f9 Code: 28 00 00 00 75 05 48 83 c4 28 c3 e8 f1 19 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:00007f3abffac168 EFLAGS: 00000246 ORIG_RAX: 0000000000000002 RAX: ffffffffffffffda RBX: 00007f3abf3abf80 RCX: 00007f3abf28c0f9 RDX: 0000000000000000 RSI: 000000000014da42 RDI: 00000000200000c0 RBP: 00007f3abf2e7ae9 R08: 0000000000000000 R09: 0000000000000000 R10: 0000000000000000 R11: 0000000000000246 R12: 0000000000000000 R13: 00007ffe3a48e85f R14: 00007f3abffac300 R15: 0000000000022000 Allocated by task 5667: kasan_save_stack+0x22/0x40 mm/kasan/common.c:45 kasan_set_track+0x25/0x30 mm/kasan/common.c:52 __kasan_slab_alloc+0x7f/0x90 mm/kasan/common.c:328 kasan_slab_alloc include/linux/kasan.h:186 [inline] slab_post_alloc_hook mm/slab.h:711 [inline] slab_alloc_node mm/slub.c:3451 [inline] slab_alloc mm/slub.c:3459 [inline] __kmem_cache_alloc_lru mm/slub.c:3466 [inline] kmem_cache_alloc_lru+0x20a/0x600 mm/slub.c:3482 alloc_inode_sb include/linux/fs.h:2705 [inline] jfs_alloc_inode+0x1e/0x50 fs/jfs/super.c:105 alloc_inode+0x56/0x1e0 fs/inode.c:260 new_inode_pseudo fs/inode.c:1018 [inline] new_inode+0x1a/0x240 fs/inode.c:1046 diReadSpecial+0x4d/0x650 fs/jfs/jfs_imap.c:422 jfs_mount+0x275/0x6e0 fs/jfs/jfs_mount.c:166 jfs_fill_super+0x553/0xbe0 fs/jfs/super.c:556 mount_bdev+0x2d5/0x3c0 fs/super.c:1380 legacy_get_tree+0xfe/0x1f0 fs/fs_context.c:610 vfs_get_tree+0x83/0x320 fs/super.c:1510 do_new_mount fs/namespace.c:3039 [inline] path_mount+0x836/0x1a30 fs/namespace.c:3369 do_mount fs/namespace.c:3382 [inline] __do_sys_mount fs/namespace.c:3591 [inline] __se_sys_mount fs/namespace.c:3568 [inline] __x64_sys_mount+0x1f9/0x270 fs/namespace.c:3568 do_syscall_x64 arch/x86/entry/common.c:50 [inline] do_syscall_64+0x39/0xb0 arch/x86/entry/common.c:80 entry_SYSCALL_64_after_hwframe+0x63/0xcd The buggy address belongs to the object at ffff88806faeef00 which belongs to the cache jfs_ip of size 2240 The buggy address is located 564 bytes to the right of allocated 2240-byte region [ffff88806faeef00, ffff88806faef7c0) The buggy address belongs to the physical page: page:ffffea0001beba00 refcount:1 mapcount:0 mapping:0000000000000000 index:0x0 pfn:0x6fae8 head:ffffea0001beba00 order:3 entire_mapcount:0 nr_pages_mapped:0 pincount:0 memcg:ffff8880280d5801 flags: 0xfff00000010200(slab|head|node=0|zone=1|lastcpupid=0x7ff) page_type: 0xffffffff() raw: 00fff00000010200 ffff888018215500 dead000000000122 0000000000000000 raw: 0000000000000000 00000000000d000d 00000001ffffffff ffff8880280d5801 page dumped because: kasan: bad access detected page_owner tracks the page as allocated page last allocated via order 3, migratetype Reclaimable, gfp_mask 0x1d2050(__GFP_IO|__GFP_NOWARN|__GFP_NORETRY|__GFP_COMP|__GFP_NOMEMALLOC|__GFP_HARDWALL|__GFP_RECLAIMABLE), pid 5640, tgid 5638 (syz-executor.0), ts 57548794998, free_ts 6768704454 prep_new_page mm/page_alloc.c:1738 [inline] get_page_from_freelist+0xf41/0x2c00 mm/page_alloc.c:3502 __alloc_pages+0x1cb/0x4a0 mm/page_alloc.c:4768 alloc_slab_page mm/slub.c:1851 [inline] allocate_slab+0x25f/0x390 mm/slub.c:1998 new_slab mm/slub.c:2051 [inline] ___slab_alloc+0xa91/0x1400 mm/slub.c:3192 __slab_alloc.constprop.0+0x56/0xa0 mm/slub.c:3291 __slab_alloc_node mm/slub.c:3344 [inline] slab_alloc_node mm/slub.c:3441 [inline] slab_alloc mm/slub.c:3459 [inline] __kmem_cache_alloc_lru mm/slub.c:3466 [inline] kmem_cache_alloc_lru+0x4a8/0x600 mm/slub.c:3482 alloc_inode_sb include/linux/fs.h:2705 [inline] jfs_alloc_inode+0x1e/0x50 fs/jfs/super.c:105 alloc_inode+0x56/0x1e0 fs/inode.c:260 new_inode_pseudo fs/inode.c:1018 [inline] new_inode+0x1a/0x240 fs/inode.c:1046 diReadSpecial+0x4d/0x650 fs/jfs/jfs_imap.c:422 jfs_mount+0xb5/0x6e0 fs/jfs/jfs_mount.c:87 jfs_fill_super+0x553/0xbe0 fs/jfs/super.c:556 mount_bdev+0x2d5/0x3c0 fs/super.c:1380 legacy_get_tree+0xfe/0x1f0 fs/fs_context.c:610 vfs_get_tree+0x83/0x320 fs/super.c:1510 do_new_mount fs/namespace.c:3039 [inline] path_mount+0x836/0x1a30 fs/namespace.c:3369 page last free stack trace: reset_page_owner include/linux/page_owner.h:24 [inline] free_pages_prepare mm/page_alloc.c:1302 [inline] free_unref_page_prepare+0x629/0xca0 mm/page_alloc.c:2564 free_unref_page+0x33/0x370 mm/page_alloc.c:2659 free_contig_range+0xb5/0x180 mm/page_alloc.c:6994 destroy_args+0x50a/0x700 mm/debug_vm_pgtable.c:1023 debug_vm_pgtable+0x18fd/0x31a0 mm/debug_vm_pgtable.c:1403 do_one_initcall+0xc2/0x3c0 init/main.c:1246 do_initcall_level init/main.c:1319 [inline] do_initcalls init/main.c:1335 [inline] do_basic_setup init/main.c:1354 [inline] kernel_init_freeable+0x541/0x950 init/main.c:1571 kernel_init+0x1a/0x1c0 init/main.c:1462 ret_from_fork+0x1f/0x30 arch/x86/entry/entry_64.S:308 Memory state around the buggy address: ffff88806faef880: fc fc fc fc fc fc fc fc fc fc fc fc fc fc fc fc ffff88806faef900: fc fc fc fc fc fc fc fc fc fc fc fc fc fc fc fc >ffff88806faef980: fc fc fc fc fc fc fc fc fc fc fc fc fc fc fc fc ^ ffff88806faefa00: fc fc fc fc fc fc fc fc fc fc fc fc fc fc fc fc ffff88806faefa80: fc fc fc fc fc fc fc fc fc fc fc fc fc fc fc fc ==================================================================