loop3: detected capacity change from 0 to 2048 ================================================================== BUG: KASAN: use-after-free in check_igot_inode fs/ext4/inode.c:-1 [inline] BUG: KASAN: use-after-free in __ext4_iget+0x2b8/0x3d80 fs/ext4/inode.c:4862 Read of size 8 at addr ffff88806fcf85d0 by task syz.3.7841/21965 CPU: 1 PID: 21965 Comm: syz.3.7841 Not tainted syzkaller #0 Hardware name: Google Google Compute Engine/Google Compute Engine, BIOS Google 10/02/2025 Call Trace: dump_stack_lvl+0x168/0x22e lib/dump_stack.c:106 print_address_description mm/kasan/report.c:316 [inline] print_report+0xa8/0x210 mm/kasan/report.c:420 kasan_report+0x10b/0x140 mm/kasan/report.c:524 check_igot_inode fs/ext4/inode.c:-1 [inline] __ext4_iget+0x2b8/0x3d80 fs/ext4/inode.c:4862 __ext4_fill_super fs/ext4/super.c:5404 [inline] ext4_fill_super+0x6147/0x8150 fs/ext4/super.c:5668 get_tree_bdev+0x3f1/0x610 fs/super.c:1366 vfs_get_tree+0x88/0x270 fs/super.c:1573 do_new_mount+0x24a/0xa40 fs/namespace.c:3078 do_mount fs/namespace.c:3421 [inline] __do_sys_mount fs/namespace.c:3629 [inline] __se_sys_mount+0x2d6/0x3c0 fs/namespace.c:3606 do_syscall_x64 arch/x86/entry/common.c:51 [inline] do_syscall_64+0x4c/0xa0 arch/x86/entry/common.c:81 entry_SYSCALL_64_after_hwframe+0x68/0xd2 RIP: 0033:0x7f5afc59076a Code: d8 64 89 02 48 c7 c0 ff ff ff ff eb a6 e8 de 1a 00 00 66 2e 0f 1f 84 00 00 00 00 00 0f 1f 40 00 49 89 ca b8 a5 00 00 00 0f 05 <48> 3d 01 f0 ff ff 73 01 c3 48 c7 c1 a8 ff ff ff f7 d8 64 89 01 48 RSP: 002b:00007f5afd3d7e68 EFLAGS: 00000246 ORIG_RAX: 00000000000000a5 RAX: ffffffffffffffda RBX: 00007f5afd3d7ef0 RCX: 00007f5afc59076a RDX: 0000200000000780 RSI: 00002000000007c0 RDI: 00007f5afd3d7eb0 RBP: 0000200000000780 R08: 00007f5afd3d7ef0 R09: 0000000000000000 R10: 0000000000000000 R11: 0000000000000246 R12: 00002000000007c0 R13: 00007f5afd3d7eb0 R14: 000000000000076a R15: 0000200000000800 Allocated by task 5034: kasan_save_stack mm/kasan/common.c:45 [inline] kasan_set_track+0x4b/0x70 mm/kasan/common.c:52 __kasan_slab_alloc+0x6b/0x80 mm/kasan/common.c:328 kasan_slab_alloc include/linux/kasan.h:201 [inline] slab_post_alloc_hook+0x4b/0x480 mm/slab.h:737 slab_alloc_node mm/slub.c:3359 [inline] slab_alloc mm/slub.c:3367 [inline] __kmem_cache_alloc_lru mm/slub.c:3374 [inline] kmem_cache_alloc_lru+0x11a/0x2e0 mm/slub.c:3390 alloc_inode_sb include/linux/fs.h:3245 [inline] reiserfs_alloc_inode+0x26/0xc0 fs/reiserfs/super.c:642 alloc_inode fs/inode.c:261 [inline] iget5_locked+0x9e/0x260 fs/inode.c:1328 reiserfs_fill_super+0x116c/0x2340 fs/reiserfs/super.c:2053 mount_bdev+0x287/0x3c0 fs/super.c:1443 legacy_get_tree+0xe6/0x180 fs/fs_context.c:632 vfs_get_tree+0x88/0x270 fs/super.c:1573 do_new_mount+0x24a/0xa40 fs/namespace.c:3078 do_mount fs/namespace.c:3421 [inline] __do_sys_mount fs/namespace.c:3629 [inline] __se_sys_mount+0x2d6/0x3c0 fs/namespace.c:3606 do_syscall_x64 arch/x86/entry/common.c:51 [inline] do_syscall_64+0x4c/0xa0 arch/x86/entry/common.c:81 entry_SYSCALL_64_after_hwframe+0x68/0xd2 Last potentially related work creation: kasan_save_stack+0x3a/0x60 mm/kasan/common.c:45 __kasan_record_aux_stack+0xb2/0xc0 mm/kasan/generic.c:486 call_rcu+0x154/0x980 kernel/rcu/tree.c:2849 destroy_inode fs/inode.c:316 [inline] evict+0x7da/0x870 fs/inode.c:720 reiserfs_fill_super+0x13ff/0x2340 fs/reiserfs/super.c:2078 mount_bdev+0x287/0x3c0 fs/super.c:1443 legacy_get_tree+0xe6/0x180 fs/fs_context.c:632 vfs_get_tree+0x88/0x270 fs/super.c:1573 do_new_mount+0x24a/0xa40 fs/namespace.c:3078 do_mount fs/namespace.c:3421 [inline] __do_sys_mount fs/namespace.c:3629 [inline] __se_sys_mount+0x2d6/0x3c0 fs/namespace.c:3606 do_syscall_x64 arch/x86/entry/common.c:51 [inline] do_syscall_64+0x4c/0xa0 arch/x86/entry/common.c:81 entry_SYSCALL_64_after_hwframe+0x68/0xd2 The buggy address belongs to the object at ffff88806fcf8000 which belongs to the cache reiser_inode_cache of size 1568 The buggy address is located 1488 bytes inside of 1568-byte region [ffff88806fcf8000, ffff88806fcf8620) The buggy address belongs to the physical page: page:ffffea0001bf3e00 refcount:1 mapcount:0 mapping:0000000000000000 index:0xffff88806fcfe360 pfn:0x6fcf8 head:ffffea0001bf3e00 order:3 compound_mapcount:0 compound_pincount:0 memcg:ffff88801d259f01 flags: 0xfff00000010200(slab|head|node=0|zone=1|lastcpupid=0x7ff) raw: 00fff00000010200 0000000000000000 dead000000000122 ffff888147ea0780 raw: ffff88806fcfe360 0000000080130005 00000001ffffffff ffff88801d259f01 page dumped because: kasan: bad access detected page_owner tracks the page as allocated page last allocated via order 3, migratetype Reclaimable, gfp_mask 0x1d20d0(__GFP_IO|__GFP_FS|__GFP_NOWARN|__GFP_NORETRY|__GFP_COMP|__GFP_NOMEMALLOC|__GFP_HARDWALL|__GFP_RECLAIMABLE), pid 5034, tgid 5033 (syz.1.521), ts 95946183090, free_ts 95316070033 set_page_owner include/linux/page_owner.h:31 [inline] post_alloc_hook+0x173/0x1a0 mm/page_alloc.c:2532 prep_new_page mm/page_alloc.c:2539 [inline] get_page_from_freelist+0x1a26/0x1ac0 mm/page_alloc.c:4328 __alloc_pages+0x1df/0x4e0 mm/page_alloc.c:5614 alloc_slab_page+0x5d/0x160 mm/slub.c:1799 allocate_slab mm/slub.c:1944 [inline] new_slab+0x87/0x2c0 mm/slub.c:1997 ___slab_alloc+0xbc6/0x1230 mm/slub.c:3154 __slab_alloc mm/slub.c:3240 [inline] slab_alloc_node mm/slub.c:3325 [inline] slab_alloc mm/slub.c:3367 [inline] __kmem_cache_alloc_lru mm/slub.c:3374 [inline] kmem_cache_alloc_lru+0x1ae/0x2e0 mm/slub.c:3390 alloc_inode_sb include/linux/fs.h:3245 [inline] reiserfs_alloc_inode+0x26/0xc0 fs/reiserfs/super.c:642 alloc_inode fs/inode.c:261 [inline] iget5_locked+0x9e/0x260 fs/inode.c:1328 reiserfs_fill_super+0x116c/0x2340 fs/reiserfs/super.c:2053 mount_bdev+0x287/0x3c0 fs/super.c:1443 legacy_get_tree+0xe6/0x180 fs/fs_context.c:632 vfs_get_tree+0x88/0x270 fs/super.c:1573 do_new_mount+0x24a/0xa40 fs/namespace.c:3078 do_mount fs/namespace.c:3421 [inline] __do_sys_mount fs/namespace.c:3629 [inline] __se_sys_mount+0x2d6/0x3c0 fs/namespace.c:3606 do_syscall_x64 arch/x86/entry/common.c:51 [inline] do_syscall_64+0x4c/0xa0 arch/x86/entry/common.c:81 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+0x8b4/0x9a0 mm/page_alloc.c:3384 free_unref_page+0x2e/0x3f0 mm/page_alloc.c:3479 qlink_free mm/kasan/quarantine.c:168 [inline] qlist_free_all+0x76/0xe0 mm/kasan/quarantine.c:187 kasan_quarantine_reduce+0x144/0x160 mm/kasan/quarantine.c:294 __kasan_slab_alloc+0x1e/0x80 mm/kasan/common.c:305 kasan_slab_alloc include/linux/kasan.h:201 [inline] slab_post_alloc_hook+0x4b/0x480 mm/slab.h:737 slab_alloc_node mm/slub.c:3359 [inline] __kmem_cache_alloc_node+0x140/0x260 mm/slub.c:3398 __do_kmalloc_node mm/slab_common.c:935 [inline] __kmalloc+0xa0/0x240 mm/slab_common.c:949 kmalloc include/linux/slab.h:568 [inline] kzalloc include/linux/slab.h:699 [inline] rfkill_alloc+0x9a/0x250 net/rfkill/core.c:984 nfc_register_device+0x114/0x310 net/nfc/core.c:1129 nci_register_device+0x87c/0x9c0 net/nfc/nci/core.c:1265 virtual_ncidev_open+0x55/0xc0 drivers/nfc/virtual_ncidev.c:150 misc_open+0x2f2/0x360 drivers/char/misc.c:143 chrdev_open+0x597/0x670 fs/char_dev.c:414 do_dentry_open+0x7e9/0x10d0 fs/open.c:882 do_open fs/namei.c:3634 [inline] path_openat+0x25c6/0x2e70 fs/namei.c:3791 Memory state around the buggy address: ffff88806fcf8480: fb fb fb fb fb fb fb fb fb fb fb fb fb fb fb fb ffff88806fcf8500: fb fb fb fb fb fb fb fb fb fb fb fb fb fb fb fb >ffff88806fcf8580: fb fb fb fb fb fb fb fb fb fb fb fb fb fb fb fb ^ ffff88806fcf8600: fb fb fb fb fc fc fc fc fc fc fc fc fc fc fc fc ffff88806fcf8680: fc fc fc fc 00 00 00 00 00 00 00 00 00 00 00 00 ==================================================================