loop2: detected capacity change from 0 to 1024 ================================================================== BUG: KASAN: slab-out-of-bounds in __ext4_iget+0x254/0x31ac fs/ext4/inode.c:4652 Read of size 8 at addr ffff0000ecdf7f40 by task syz.2.4060/12718 CPU: 1 PID: 12718 Comm: syz.2.4060 Not tainted 5.15.179-syzkaller #0 Hardware name: Google Google Compute Engine/Google Compute Engine, BIOS Google 02/12/2025 Call trace: dump_backtrace+0x0/0x530 arch/arm64/kernel/stacktrace.c:152 show_stack+0x2c/0x3c arch/arm64/kernel/stacktrace.c:216 __dump_stack lib/dump_stack.c:88 [inline] dump_stack_lvl+0x108/0x170 lib/dump_stack.c:106 print_address_description+0x7c/0x3f0 mm/kasan/report.c:248 __kasan_report mm/kasan/report.c:434 [inline] kasan_report+0x174/0x1e4 mm/kasan/report.c:451 __asan_report_load8_noabort+0x44/0x50 mm/kasan/report_generic.c:309 __ext4_iget+0x254/0x31ac fs/ext4/inode.c:4652 ext4_fill_super+0x690c/0x8768 fs/ext4/super.c:4841 mount_bdev+0x274/0x370 fs/super.c:1400 ext4_mount+0x44/0x58 fs/ext4/super.c:6603 legacy_get_tree+0xd4/0x16c fs/fs_context.c:611 vfs_get_tree+0x90/0x274 fs/super.c:1530 do_new_mount+0x278/0x8fc fs/namespace.c:3012 path_mount+0x594/0x101c fs/namespace.c:3342 do_mount fs/namespace.c:3355 [inline] __do_sys_mount fs/namespace.c:3563 [inline] __se_sys_mount fs/namespace.c:3540 [inline] __arm64_sys_mount+0x510/0x5e0 fs/namespace.c:3540 __invoke_syscall arch/arm64/kernel/syscall.c:38 [inline] invoke_syscall+0x98/0x2b8 arch/arm64/kernel/syscall.c:52 el0_svc_common+0x138/0x258 arch/arm64/kernel/syscall.c:142 do_el0_svc+0x58/0x14c arch/arm64/kernel/syscall.c:181 el0_svc+0x7c/0x1f0 arch/arm64/kernel/entry-common.c:608 el0t_64_sync_handler+0x84/0xe4 arch/arm64/kernel/entry-common.c:626 el0t_64_sync+0x1a0/0x1a4 arch/arm64/kernel/entry.S:584 Allocated by task 330: kasan_save_stack mm/kasan/common.c:38 [inline] kasan_set_track mm/kasan/common.c:46 [inline] set_alloc_info mm/kasan/common.c:434 [inline] __kasan_slab_alloc+0x8c/0xcc mm/kasan/common.c:467 kasan_slab_alloc include/linux/kasan.h:254 [inline] slab_post_alloc_hook+0x74/0x3f4 mm/slab.h:519 slab_alloc_node mm/slub.c:3220 [inline] slab_alloc mm/slub.c:3228 [inline] kmem_cache_alloc+0x1dc/0x45c mm/slub.c:3233 alloc_inode fs/inode.c:263 [inline] new_inode_pseudo+0x110/0x200 fs/inode.c:1001 new_inode+0x38/0x174 fs/inode.c:1030 debugfs_get_inode fs/debugfs/inode.c:72 [inline] __debugfs_create_file+0x13c/0x464 fs/debugfs/inode.c:409 debugfs_create_file_unsafe+0x60/0x78 fs/debugfs/inode.c:500 debugfs_create_x64+0x88/0xa0 fs/debugfs/file.c:716 debugfs_create_xul include/linux/debugfs.h:401 [inline] ieee80211_sta_debugfs_add+0x478/0x678 net/mac80211/debugfs_sta.c:1040 sta_info_insert_finish net/mac80211/sta_info.c:683 [inline] sta_info_insert_rcu+0x1658/0x1f18 net/mac80211/sta_info.c:733 ieee80211_ibss_finish_sta+0x1e8/0x2d8 net/mac80211/ibss.c:589 ieee80211_ibss_add_sta+0x5b4/0x7b8 net/mac80211/ibss.c:647 ieee80211_update_sta_info net/mac80211/ibss.c:1031 [inline] ieee80211_rx_bss_info net/mac80211/ibss.c:1121 [inline] ieee80211_rx_mgmt_probe_beacon net/mac80211/ibss.c:1614 [inline] ieee80211_ibss_rx_queued_mgmt+0x13bc/0x2814 net/mac80211/ibss.c:1643 ieee80211_iface_process_skb net/mac80211/iface.c:1456 [inline] ieee80211_iface_work+0x5b4/0xa80 net/mac80211/iface.c:1510 process_one_work+0x790/0x11b8 kernel/workqueue.c:2310 worker_thread+0x910/0x1034 kernel/workqueue.c:2457 kthread+0x37c/0x45c kernel/kthread.c:334 ret_from_fork+0x10/0x20 arch/arm64/kernel/entry.S:870 The buggy address belongs to the object at ffff0000ecdf77b0 which belongs to the cache inode_cache of size 1168 The buggy address is located 768 bytes to the right of 1168-byte region [ffff0000ecdf77b0, ffff0000ecdf7c40) The buggy address belongs to the page: page:000000007235f4bd refcount:1 mapcount:0 mapping:0000000000000000 index:0x0 pfn:0x12cdf4 head:000000007235f4bd order:2 compound_mapcount:0 compound_pincount:0 memcg:ffff0000ed2dc501 flags: 0x5ffc00000010200(slab|head|node=0|zone=2|lastcpupid=0x7ff) raw: 05ffc00000010200 0000000000000000 dead000000000122 ffff0000c0840480 raw: 0000000000000000 00000000000c000c 00000001ffffffff ffff0000ed2dc501 page dumped because: kasan: bad access detected Memory state around the buggy address: ffff0000ecdf7e00: fc fc fc fc fc fc fc fc fc fc fc fc fc fc fc fc ffff0000ecdf7e80: fc fc fc fc fc fc fc fc fc fc fc fc fc fc fc fc >ffff0000ecdf7f00: fc fc fc fc fc fc fc fc fc fc fc fc fc fc fc fc ^ ffff0000ecdf7f80: fc fc fc fc fc fc fc fc fc fc fc fc fc fc fc fc ffff0000ecdf8000: 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 ================================================================== EXT4-fs (loop2): revision level too high, forcing read-only mode EXT4-fs (loop2): orphan cleanup on readonly fs EXT4-fs error (device loop2): ext4_map_blocks:738: inode #3: block 3: comm syz.2.4060: lblock 3 mapped to illegal pblock 3 (length 1) Quota error (device loop2): write_blk: dquota write failed Quota error (device loop2): find_free_dqentry: Can't write quota data block 3 Quota error (device loop2): qtree_write_dquot: Error -117 occurred while creating quota EXT4-fs error (device loop2): ext4_acquire_dquot:6197: comm syz.2.4060: Failed to acquire dquot type 0 EXT4-fs error (device loop2): ext4_map_blocks:628: inode #3: block 3: comm syz.2.4060: lblock 3 mapped to illegal pblock 3 (length 1) Quota error (device loop2): qtree_write_dquot: Error -117 occurred while creating quota EXT4-fs error (device loop2): ext4_acquire_dquot:6197: comm syz.2.4060: Failed to acquire dquot type 0 EXT4-fs error (device loop2): ext4_free_blocks:6223: comm syz.2.4060: Freeing blocks not in datazone - block = 0, count = 4096 EXT4-fs error (device loop2): ext4_map_blocks:628: inode #3: block 3: comm syz.2.4060: lblock 3 mapped to illegal pblock 3 (length 1) Quota error (device loop2): qtree_write_dquot: Error -117 occurred while creating quota EXT4-fs error (device loop2): ext4_acquire_dquot:6197: comm syz.2.4060: Failed to acquire dquot type 0 EXT4-fs (loop2): 1 orphan inode deleted EXT4-fs (loop2): mounted filesystem without journal. Opts: ,errors=continue. Quota mode: writeback. ================================================================================ UBSAN: array-index-out-of-bounds in kernel/locking/qspinlock.c:130:9 index 16382 is out of range for type 'unsigned long[8]' CPU: 0 PID: 12718 Comm: syz.2.4060 Tainted: G B 5.15.179-syzkaller #0 Hardware name: Google Google Compute Engine/Google Compute Engine, BIOS Google 02/12/2025 Call trace: dump_backtrace+0x0/0x530 arch/arm64/kernel/stacktrace.c:152 show_stack+0x2c/0x3c arch/arm64/kernel/stacktrace.c:216 __dump_stack lib/dump_stack.c:88 [inline] dump_stack_lvl+0x108/0x170 lib/dump_stack.c:106 dump_stack+0x1c/0x58 lib/dump_stack.c:113 ubsan_epilogue lib/ubsan.c:151 [inline] __ubsan_handle_out_of_bounds+0x108/0x15c lib/ubsan.c:282 decode_tail kernel/locking/qspinlock.c:130 [inline] queued_spin_lock_slowpath+0x854/0x938 kernel/locking/qspinlock.c:468 queued_spin_lock include/asm-generic/qspinlock.h:85 [inline] do_raw_spin_lock+0x334/0x35c kernel/locking/spinlock_debug.c:115 __raw_spin_lock include/linux/spinlock_api_smp.h:143 [inline] _raw_spin_lock+0xb8/0x10c kernel/locking/spinlock.c:154 spin_lock include/linux/spinlock.h:363 [inline] lockref_get+0x20/0x74 lib/lockref.c:51 dget include/linux/dcache.h:327 [inline] open_xa_root fs/reiserfs/xattr.c:129 [inline] open_xa_dir+0x158/0x578 fs/reiserfs/xattr.c:152 xattr_lookup+0x3c/0x268 fs/reiserfs/xattr.c:395 reiserfs_xattr_get+0xec/0x598 fs/reiserfs/xattr.c:684 reiserfs_get_acl+0x94/0x638 fs/reiserfs/xattr_acl.c:214 get_acl+0x160/0x378 fs/posix_acl.c:153 check_acl+0x40/0x198 fs/namei.c:307 acl_permission_check fs/namei.c:352 [inline] generic_permission+0x340/0x478 fs/namei.c:405 reiserfs_permission+0x74/0xa8 fs/reiserfs/xattr.c:961 do_inode_permission fs/namei.c:459 [inline] inode_permission+0x1d0/0x3b4 fs/namei.c:526 may_open+0x290/0x3bc fs/namei.c:3232 do_open fs/namei.c:3606 [inline] path_openat+0x1d7c/0x26cc fs/namei.c:3742 do_filp_open+0x1a8/0x3b4 fs/namei.c:3769 do_sys_openat2+0x128/0x3e0 fs/open.c:1253 do_sys_open fs/open.c:1269 [inline] __do_sys_openat fs/open.c:1285 [inline] __se_sys_openat fs/open.c:1280 [inline] __arm64_sys_openat+0x1f0/0x240 fs/open.c:1280 __invoke_syscall arch/arm64/kernel/syscall.c:38 [inline] invoke_syscall+0x98/0x2b8 arch/arm64/kernel/syscall.c:52 el0_svc_common+0x138/0x258 arch/arm64/kernel/syscall.c:142 do_el0_svc+0x58/0x14c arch/arm64/kernel/syscall.c:181 el0_svc+0x7c/0x1f0 arch/arm64/kernel/entry-common.c:608 el0t_64_sync_handler+0x84/0xe4 arch/arm64/kernel/entry-common.c:626 el0t_64_sync+0x1a0/0x1a4 arch/arm64/kernel/entry.S:584 ================================================================================ Unable to handle kernel paging request at virtual address ffff800014ad7730 Mem abort info: ESR = 0x0000000096000047 EC = 0x25: DABT (current EL), IL = 32 bits SET = 0, FnV = 0 EA = 0, S1PTW = 0 FSC = 0x07: level 3 translation fault Data abort info: ISV = 0, ISS = 0x00000047 CM = 0, WnR = 1 swapper pgtable: 4k pages, 48-bit VAs, pgdp=00000001ae199000 [ffff800014ad7730] pgd=100000023ffff003, p4d=100000023ffff003, pud=100000023fffe003, pmd=100000023fff9003, pte=0000000000000000 Internal error: Oops: 0000000096000047 [#1] PREEMPT SMP Modules linked in: CPU: 0 PID: 12718 Comm: syz.2.4060 Tainted: G B 5.15.179-syzkaller #0 Hardware name: Google Google Compute Engine/Google Compute Engine, BIOS Google 02/12/2025 pstate: 80400005 (Nzcv daif +PAN -UAO -TCO -DIT -SSBS BTYPE=--) pc : queued_spin_lock_slowpath+0x36c/0x938 kernel/locking/qspinlock.c:471 lr : decode_tail kernel/locking/qspinlock.c:130 [inline] lr : queued_spin_lock_slowpath+0x854/0x938 kernel/locking/qspinlock.c:468 sp : ffff8000207a70e0 x29: ffff8000207a7180 x28: 1ffff000040f4e28 x27: 0000000000000000 x26: dfff800000000000 x25: ffff7000040f4e20 x24: 0000000000040000 x23: ffff800014ad7730 x22: ffff0001b4187708 x21: ffff0001b4187700 x20: ffff800014ad7730 x19: ffff0000dc201890 x18: 0000000000000002 x17: 0000000000000002 x16: ffff800008336cf0 x15: 00000000ffffffff x14: ffff0000ee7db680 x13: 0000000000000001 x12: 0000000000080000 x11: 0000000000071fc7 x10: ffff800014ad7700 x9 : 0000000000000003 x8 : 0000000000000000 x7 : 0000000000000001 x6 : 0000000000000001 x5 : ffff8000207a67d8 x4 : ffff800014c4fe40 x3 : ffff80000819cb88 x2 : 0000000000000001 x1 : 0000000000000004 x0 : ffff0001b4187708 Call trace: queued_spin_lock_slowpath+0x36c/0x938 kernel/locking/qspinlock.c:474 queued_spin_lock include/asm-generic/qspinlock.h:85 [inline] do_raw_spin_lock+0x334/0x35c kernel/locking/spinlock_debug.c:115 __raw_spin_lock include/linux/spinlock_api_smp.h:143 [inline] _raw_spin_lock+0xb8/0x10c kernel/locking/spinlock.c:154 spin_lock include/linux/spinlock.h:363 [inline] lockref_get+0x20/0x74 lib/lockref.c:51 dget include/linux/dcache.h:327 [inline] open_xa_root fs/reiserfs/xattr.c:129 [inline] open_xa_dir+0x158/0x578 fs/reiserfs/xattr.c:152 xattr_lookup+0x3c/0x268 fs/reiserfs/xattr.c:395 reiserfs_xattr_get+0xec/0x598 fs/reiserfs/xattr.c:684 reiserfs_get_acl+0x94/0x638 fs/reiserfs/xattr_acl.c:214 get_acl+0x160/0x378 fs/posix_acl.c:153 check_acl+0x40/0x198 fs/namei.c:307 acl_permission_check fs/namei.c:352 [inline] generic_permission+0x340/0x478 fs/namei.c:405 reiserfs_permission+0x74/0xa8 fs/reiserfs/xattr.c:961 do_inode_permission fs/namei.c:459 [inline] inode_permission+0x1d0/0x3b4 fs/namei.c:526 may_open+0x290/0x3bc fs/namei.c:3232 do_open fs/namei.c:3606 [inline] path_openat+0x1d7c/0x26cc fs/namei.c:3742 do_filp_open+0x1a8/0x3b4 fs/namei.c:3769 do_sys_openat2+0x128/0x3e0 fs/open.c:1253 do_sys_open fs/open.c:1269 [inline] __do_sys_openat fs/open.c:1285 [inline] __se_sys_openat fs/open.c:1280 [inline] __arm64_sys_openat+0x1f0/0x240 fs/open.c:1280 __invoke_syscall arch/arm64/kernel/syscall.c:38 [inline] invoke_syscall+0x98/0x2b8 arch/arm64/kernel/syscall.c:52 el0_svc_common+0x138/0x258 arch/arm64/kernel/syscall.c:142 do_el0_svc+0x58/0x14c arch/arm64/kernel/syscall.c:181 el0_svc+0x7c/0x1f0 arch/arm64/kernel/entry-common.c:608 el0t_64_sync_handler+0x84/0xe4 arch/arm64/kernel/entry-common.c:626 el0t_64_sync+0x1a0/0x1a4 arch/arm64/kernel/entry.S:584 Code: aa1703e0 94174bfc aa1603e0 52800081 (f90002f5) ---[ end trace de82200d51ddffaf ]--- ---------------- Code disassembly (best guess): 0: aa1703e0 mov x0, x23 4: 94174bfc bl 0x5d2ff4 8: aa1603e0 mov x0, x22 c: 52800081 mov w1, #0x4 // #4 * 10: f90002f5 str x21, [x23] <-- trapping instruction