bisecting fixing commit since 2585cf9dfaaddf00b069673f27bb3f8530e2039c building syzkaller on 49ca1f59e37fcf63dc38a6bd2b60fcc47a0a708e testing commit 2585cf9dfaaddf00b069673f27bb3f8530e2039c compiler: gcc (GCC) 10.2.1 20210217, GNU ld (GNU Binutils for Debian) 2.35.2 kernel signature: 015092ff7a0760ceff06061bbbad6e736bdd718b2247898d00baadba9be5c0b2 all runs: crashed: KASAN: out-of-bounds Read in leaf_paste_entries testing current HEAD e3084ed48fd6b661fe434da0cb36d7d6706cf27f testing commit e3084ed48fd6b661fe434da0cb36d7d6706cf27f compiler: gcc (GCC) 10.2.1 20210217, GNU ld (GNU Binutils for Debian) 2.35.2 kernel signature: ce90e91b5d79402b7da5210d2afc4636e1440104d6d4bd3087b9fb639d976845 all runs: crashed: KASAN: out-of-bounds Read in leaf_paste_entries revisions tested: 2, total time: 20m55.966519721s (build: 14m5.735433298s, test: 6m21.520964436s) the crash still happens on HEAD commit msg: Merge tag 'pinctrl-v5.17-1' of git://git.kernel.org/pub/scm/linux/kernel/git/linusw/linux-pinctrl crash: KASAN: out-of-bounds Read in leaf_paste_entries REISERFS (device loop0): journal params: device loop0, size 15748, journal first block 18, max trans len 1024, max batch 900, max commit age 30, max trans age 30 REISERFS (device loop0): checking transaction log (loop0) REISERFS (device loop0): Using tea hash to sort names ================================================================== BUG: KASAN: out-of-bounds in memmove include/linux/fortify-string.h:241 [inline] BUG: KASAN: out-of-bounds in leaf_paste_entries+0x405/0xa10 fs/reiserfs/lbalance.c:1377 Read of size 18446744073709551584 at addr ffff888061e70fa4 by task syz-executor392/4060 CPU: 1 PID: 4060 Comm: syz-executor392 Not tainted 5.16.0-syzkaller #0 Hardware name: Google Google Compute Engine/Google Compute Engine, BIOS Google 01/01/2011 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+0x8d/0x303 mm/kasan/report.c:255 __kasan_report mm/kasan/report.c:442 [inline] kasan_report.cold+0x83/0xdf mm/kasan/report.c:459 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 memmove include/linux/fortify-string.h:241 [inline] leaf_paste_entries+0x405/0xa10 fs/reiserfs/lbalance.c:1377 balance_leaf_finish_node_paste_dirent fs/reiserfs/do_balan.c:1295 [inline] balance_leaf_finish_node_paste fs/reiserfs/do_balan.c:1321 [inline] balance_leaf_finish_node fs/reiserfs/do_balan.c:1364 [inline] balance_leaf+0x8d17/0xd3d0 fs/reiserfs/do_balan.c:1452 do_balance+0x2ee/0x760 fs/reiserfs/do_balan.c:1888 reiserfs_paste_into_item+0x63c/0x7b0 fs/reiserfs/stree.c:2159 reiserfs_add_entry+0x7fb/0xc50 fs/reiserfs/namei.c:567 reiserfs_mkdir+0x5a3/0x860 fs/reiserfs/namei.c:860 create_privroot fs/reiserfs/xattr.c:889 [inline] reiserfs_xattr_init+0x412/0xa60 fs/reiserfs/xattr.c:1012 reiserfs_fill_super+0x1c65/0x2780 fs/reiserfs/super.c:2175 mount_bdev+0x2cb/0x3b0 fs/super.c:1370 legacy_get_tree+0xfa/0x1f0 fs/fs_context.c:610 vfs_get_tree+0x7f/0x2c0 fs/super.c:1500 do_new_mount fs/namespace.c:2994 [inline] path_mount+0x7e8/0x1a40 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+0x44/0xae RIP: 0033:0x7f91736b2d0a Code: 48 c7 c2 c0 ff ff ff f7 d8 64 89 02 b8 ff ff ff ff eb d2 e8 a8 00 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 c0 ff ff ff f7 d8 64 89 01 48 RSP: 002b:00007fffe274fb98 EFLAGS: 00000286 ORIG_RAX: 00000000000000a5 RAX: ffffffffffffffda RBX: 00007fffe274fbf0 RCX: 00007f91736b2d0a RDX: 0000000020000000 RSI: 0000000020000100 RDI: 00007fffe274fbb0 RBP: 00007fffe274fbb0 R08: 00007fffe274fbf0 R09: 0000000000000000 R10: 0000000000000000 R11: 0000000000000286 R12: 00000000200002a8 R13: 0000000000000003 R14: 0000000000000004 R15: 0000000000000007 The buggy address belongs to the page: page:ffffea0001879c00 refcount:3 mapcount:0 mapping:ffff88801613e948 index:0x3d97 pfn:0x61e70 memcg:ffff888010490000 aops:def_blk_aops ino:700000 flags: 0xfff00000002022(referenced|active|private|node=0|zone=1|lastcpupid=0x7ff) raw: 00fff00000002022 0000000000000000 dead000000000122 ffff88801613e948 raw: 0000000000003d97 ffff8880628483e0 00000003ffffffff ffff888010490000 page dumped because: kasan: bad access detected page_owner tracks the page as allocated page last allocated via order 0, migratetype Movable, gfp_mask 0x148c48(GFP_NOFS|__GFP_NOFAIL|__GFP_COMP|__GFP_HARDWALL|__GFP_MOVABLE), pid 4060, ts 67951866095, free_ts 9222131239 prep_new_page mm/page_alloc.c:2418 [inline] get_page_from_freelist+0xa6f/0x2f10 mm/page_alloc.c:4149 __alloc_pages+0x1b2/0x500 mm/page_alloc.c:5369 folio_alloc+0x12/0x40 mm/mempolicy.c:2200 filemap_alloc_folio mm/filemap.c:1010 [inline] __filemap_get_folio+0x3b9/0x940 mm/filemap.c:1925 pagecache_get_page+0x10/0x100 mm/folio-compat.c:125 find_or_create_page include/linux/pagemap.h:488 [inline] grow_dev_page fs/buffer.c:949 [inline] grow_buffers fs/buffer.c:1014 [inline] __getblk_slow+0x187/0x830 fs/buffer.c:1041 sb_getblk include/linux/buffer_head.h:327 [inline] search_by_key+0x35c/0x4380 fs/reiserfs/stree.c:672 reiserfs_read_locked_inode+0x144/0x21c0 fs/reiserfs/inode.c:1557 reiserfs_fill_super+0x12e7/0x2780 fs/reiserfs/super.c:2071 mount_bdev+0x2cb/0x3b0 fs/super.c:1370 legacy_get_tree+0xfa/0x1f0 fs/fs_context.c:610 vfs_get_tree+0x7f/0x2c0 fs/super.c:1500 do_new_mount fs/namespace.c:2994 [inline] path_mount+0x7e8/0x1a40 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+0x44/0xae page last free stack trace: reset_page_owner include/linux/page_owner.h:24 [inline] free_pages_prepare mm/page_alloc.c:1338 [inline] free_pcp_prepare+0x374/0x870 mm/page_alloc.c:1389 free_unref_page_prepare mm/page_alloc.c:3309 [inline] free_unref_page+0x19/0x690 mm/page_alloc.c:3388 free_contig_range+0xa8/0xf0 mm/page_alloc.c:9271 destroy_args+0x7e/0x503 mm/debug_vm_pgtable.c:1016 debug_vm_pgtable+0x1eb5/0x1f39 mm/debug_vm_pgtable.c:1330 do_one_initcall+0xbe/0x440 init/main.c:1297 do_initcall_level init/main.c:1370 [inline] do_initcalls init/main.c:1386 [inline] do_basic_setup init/main.c:1405 [inline] kernel_init_freeable+0x5ab/0x605 init/main.c:1610 kernel_init+0x14/0x130 init/main.c:1499 ret_from_fork+0x1f/0x30 arch/x86/entry/entry_64.S:295 Memory state around the buggy address: ffff888061e70e80: 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 ffff888061e70f00: 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 >ffff888061e70f80: 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 ^ ffff888061e71000: ff ff ff ff ff ff ff ff ff ff ff ff ff ff ff ff ffff888061e71080: ff ff ff ff ff ff ff ff ff ff ff ff ff ff ff ff ==================================================================