ci2 starts bisection 2023-06-14 12:36:39.315121316 +0000 UTC m=+61594.963552856 bisecting fixing commit since b0ece631f84a3e70341496b000b094b7dfdf4e5f building syzkaller on 2b9ba477a18ed0cc53e6b29a9641292709a7ba24 ensuring issue is reproducible on original commit b0ece631f84a3e70341496b000b094b7dfdf4e5f testing commit b0ece631f84a3e70341496b000b094b7dfdf4e5f gcc compiler: gcc (GCC) 10.2.1 20210217, GNU ld (GNU Binutils for Debian) 2.35.2 kernel signature: aa14bf858dcdb711ff987ffb09a68d11ada06187261683ac099e5d3070092c86 all runs: crashed: KASAN: use-after-free Read in reiserfs_get_unused_objectid testing current HEAD 471e639e59d128f4bf58000a118b2ceca3893f98 testing commit 471e639e59d128f4bf58000a118b2ceca3893f98 gcc compiler: gcc (GCC) 10.2.1 20210217, GNU ld (GNU Binutils for Debian) 2.35.2 kernel signature: 34c6f061a43a184998bf5a9a52ae40377cebbf655a12b2afe77a05e87b7c3fa4 run #0: crashed: KASAN: out-of-bounds Read in reiserfs_get_unused_objectid run #1: crashed: KASAN: use-after-free Read in reiserfs_get_unused_objectid run #2: crashed: KASAN: out-of-bounds Read in reiserfs_get_unused_objectid run #3: crashed: KASAN: use-after-free Read in reiserfs_get_unused_objectid run #4: crashed: KASAN: out-of-bounds Read in reiserfs_get_unused_objectid run #5: crashed: KASAN: use-after-free Read in reiserfs_get_unused_objectid run #6: crashed: KASAN: use-after-free Read in reiserfs_get_unused_objectid run #7: crashed: KASAN: use-after-free Read in reiserfs_get_unused_objectid run #8: crashed: KASAN: use-after-free Read in reiserfs_get_unused_objectid run #9: crashed: KASAN: use-after-free Read in reiserfs_get_unused_objectid crash still not fixed/happens on the oldest tested release revisions tested: 2, total time: 28m56.404003205s (build: 21m41.616398879s, test: 6m50.429457286s) crash still not fixed on HEAD or HEAD had kernel test errors commit msg: Linux 5.15.117 crash: KASAN: use-after-free Read in reiserfs_get_unused_objectid REISERFS (device loop0): journal params: device loop0, size 512, journal first block 18, max trans len 256, max batch 225, max commit age 30, max trans age 30 REISERFS (device loop0): checking transaction log (loop0) REISERFS (device loop0): Using r5 hash to sort names ================================================================== BUG: KASAN: use-after-free in reiserfs_get_unused_objectid+0x26f/0x3c0 fs/reiserfs/objectid.c:87 Read of size 250888 at addr ffff88806f5dc058 by task syz-executor.0/3961 CPU: 0 PID: 3961 Comm: syz-executor.0 Not tainted 5.15.117-syzkaller #0 Hardware name: Google Google Compute Engine/Google Compute Engine, BIOS Google 05/27/2023 Call Trace: __dump_stack lib/dump_stack.c:88 [inline] dump_stack_lvl+0x57/0x7d lib/dump_stack.c:106 print_address_description.constprop.0.cold+0x6c/0x309 mm/kasan/report.c:248 __kasan_report mm/kasan/report.c:434 [inline] kasan_report.cold+0x83/0xdf mm/kasan/report.c:451 check_region_inline mm/kasan/generic.c:183 [inline] kasan_check_range+0x13d/0x180 mm/kasan/generic.c:189 memmove+0x20/0x60 mm/kasan/shadow.c:54 reiserfs_get_unused_objectid+0x26f/0x3c0 fs/reiserfs/objectid.c:87 reiserfs_new_inode+0x422/0x1ee0 fs/reiserfs/inode.c:1952 reiserfs_mkdir+0x40c/0x870 fs/reiserfs/namei.c:845 xattr_mkdir fs/reiserfs/xattr.c:76 [inline] create_privroot fs/reiserfs/xattr.c:889 [inline] reiserfs_xattr_init+0x49d/0xb20 fs/reiserfs/xattr.c:1012 reiserfs_fill_super+0x1bcf/0x26f0 fs/reiserfs/super.c:2179 mount_bdev+0x2cc/0x3b0 fs/super.c:1378 legacy_get_tree+0xfa/0x1f0 fs/fs_context.c:610 vfs_get_tree+0x7f/0x2c0 fs/super.c:1508 do_new_mount fs/namespace.c:2994 [inline] path_mount+0x41e/0x1a30 fs/namespace.c:3324 do_mount fs/namespace.c:3337 [inline] __do_sys_mount fs/namespace.c:3545 [inline] __se_sys_mount fs/namespace.c:3522 [inline] __x64_sys_mount+0x1f5/0x260 fs/namespace.c:3522 do_syscall_x64 arch/x86/entry/common.c:50 [inline] do_syscall_64+0x35/0xb0 arch/x86/entry/common.c:80 entry_SYSCALL_64_after_hwframe+0x61/0xcb RIP: 0033:0x7f8da31ec69a Code: 48 c7 c2 b8 ff ff ff f7 d8 64 89 02 b8 ff ff ff ff eb d2 e8 b8 04 00 00 0f 1f 84 00 00 00 00 00 49 89 ca b8 a5 00 00 00 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:00007f8da255cf88 EFLAGS: 00000246 ORIG_RAX: 00000000000000a5 RAX: ffffffffffffffda RBX: 0000000000001138 RCX: 00007f8da31ec69a RDX: 0000000020000080 RSI: 0000000020000040 RDI: 00007f8da255cfe0 RBP: 00007f8da255d020 R08: 00007f8da255d020 R09: 0000000000008008 R10: 0000000000008008 R11: 0000000000000246 R12: 0000000020000080 R13: 0000000020000040 R14: 00007f8da255cfe0 R15: 00000000200000c0 The buggy address belongs to the page: page:ffffea0001bd7700 refcount:3 mapcount:0 mapping:ffff888011075af0 index:0x10 pfn:0x6f5dc memcg:ffff88807630c000 aops:def_blk_aops ino:700000 flags: 0xfff00000002022(referenced|active|private|node=0|zone=1|lastcpupid=0x7ff) raw: 00fff00000002022 0000000000000000 dead000000000122 ffff888011075af0 raw: 0000000000000010 ffff888070309d98 00000003ffffffff ffff88807630c000 page dumped because: kasan: bad access detected page_owner tracks the page as allocated page last allocated via order 0, migratetype Movable, gfp_mask 0x108c48(GFP_NOFS|__GFP_NOFAIL|__GFP_HARDWALL|__GFP_MOVABLE), pid 3961, ts 68769341029, free_ts 68767025674 prep_new_page mm/page_alloc.c:2426 [inline] get_page_from_freelist+0xa76/0x2f80 mm/page_alloc.c:4159 __alloc_pages+0x1b2/0x470 mm/page_alloc.c:5421 pagecache_get_page+0x247/0x10f0 mm/filemap.c:1940 find_or_create_page include/linux/pagemap.h:420 [inline] grow_dev_page fs/buffer.c:949 [inline] grow_buffers fs/buffer.c:1014 [inline] __getblk_slow+0x1b1/0x890 fs/buffer.c:1041 __getblk_gfp fs/buffer.c:1336 [inline] __bread_gfp+0x1d7/0x300 fs/buffer.c:1381 sb_bread include/linux/buffer_head.h:337 [inline] read_super_block+0x7c/0x840 fs/reiserfs/super.c:1606 reiserfs_fill_super+0xa41/0x26f0 fs/reiserfs/super.c:1968 mount_bdev+0x2cc/0x3b0 fs/super.c:1378 legacy_get_tree+0xfa/0x1f0 fs/fs_context.c:610 vfs_get_tree+0x7f/0x2c0 fs/super.c:1508 do_new_mount fs/namespace.c:2994 [inline] path_mount+0x41e/0x1a30 fs/namespace.c:3324 do_mount fs/namespace.c:3337 [inline] __do_sys_mount fs/namespace.c:3545 [inline] __se_sys_mount fs/namespace.c:3522 [inline] __x64_sys_mount+0x1f5/0x260 fs/namespace.c:3522 do_syscall_x64 arch/x86/entry/common.c:50 [inline] do_syscall_64+0x35/0xb0 arch/x86/entry/common.c:80 entry_SYSCALL_64_after_hwframe+0x61/0xcb 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+0x2c5/0x780 mm/page_alloc.c:1391 free_unref_page_prepare mm/page_alloc.c:3317 [inline] free_unref_page_list+0x16f/0xf40 mm/page_alloc.c:3433 release_pages+0xbe3/0x14c0 mm/swap.c:963 tlb_batch_pages_flush mm/mmu_gather.c:49 [inline] tlb_flush_mmu_free mm/mmu_gather.c:240 [inline] tlb_flush_mmu mm/mmu_gather.c:247 [inline] tlb_finish_mmu+0x127/0x790 mm/mmu_gather.c:338 exit_mmap+0x1b7/0x540 mm/mmap.c:3188 __mmput+0xed/0x430 kernel/fork.c:1118 exit_mm kernel/exit.c:548 [inline] do_exit+0x91f/0x2400 kernel/exit.c:859 do_group_exit+0xe7/0x290 kernel/exit.c:994 __do_sys_exit_group kernel/exit.c:1005 [inline] __se_sys_exit_group kernel/exit.c:1003 [inline] __x64_sys_exit_group+0x35/0x40 kernel/exit.c:1003 do_syscall_x64 arch/x86/entry/common.c:50 [inline] do_syscall_64+0x35/0xb0 arch/x86/entry/common.c:80 entry_SYSCALL_64_after_hwframe+0x61/0xcb Memory state around the buggy address: ffff88806f5dcf00: 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 ffff88806f5dcf80: 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 >ffff88806f5dd000: ff ff ff ff ff ff ff ff ff ff ff ff ff ff ff ff ^ ffff88806f5dd080: ff ff ff ff ff ff ff ff ff ff ff ff ff ff ff ff ffff88806f5dd100: ff ff ff ff ff ff ff ff ff ff ff ff ff ff ff ff ==================================================================