================================================================== BUG: KASAN: slab-out-of-bounds in run_unpack+0x84f/0xd00 fs/ntfs3/run.c:944 Read of size 1 at addr ffff8880667d3978 by task syz-executor.4/1410 CPU: 0 PID: 1410 Comm: syz-executor.4 Not tainted 6.1.0-rc7-syzkaller-00190-g97ee9d1c1696 #0 Hardware name: Google Google Compute Engine/Google Compute Engine, BIOS Google 10/26/2022 Call Trace: __dump_stack lib/dump_stack.c:88 [inline] dump_stack_lvl+0x1b1/0x28e lib/dump_stack.c:106 print_address_description+0x74/0x340 mm/kasan/report.c:284 print_report+0x107/0x1f0 mm/kasan/report.c:395 kasan_report+0xcd/0x100 mm/kasan/report.c:495 run_unpack+0x84f/0xd00 fs/ntfs3/run.c:944 run_unpack_ex+0xcc/0x870 fs/ntfs3/run.c:1057 ntfs_read_mft fs/ntfs3/inode.c:368 [inline] ntfs_iget5+0x1cfa/0x36f0 fs/ntfs3/inode.c:501 ntfs_fill_super+0x29a7/0x42a0 fs/ntfs3/super.c:1071 get_tree_bdev+0x400/0x620 fs/super.c:1324 vfs_get_tree+0x88/0x270 fs/super.c:1531 do_new_mount+0x289/0xad0 fs/namespace.c:3040 do_mount fs/namespace.c:3383 [inline] __do_sys_mount fs/namespace.c:3591 [inline] __se_sys_mount+0x2d3/0x3c0 fs/namespace.c:3568 do_syscall_x64 arch/x86/entry/common.c:50 [inline] do_syscall_64+0x3d/0xb0 arch/x86/entry/common.c:80 entry_SYSCALL_64_after_hwframe+0x63/0xcd RIP: 0033:0x7f5ffd68d60a 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:00007f5ffe365f88 EFLAGS: 00000202 ORIG_RAX: 00000000000000a5 RAX: ffffffffffffffda RBX: 000000000001f1d8 RCX: 00007f5ffd68d60a RDX: 0000000020000080 RSI: 000000002001f1c0 RDI: 00007f5ffe365fe0 RBP: 00007f5ffe366020 R08: 00007f5ffe366020 R09: 0000000002200008 R10: 0000000002200008 R11: 0000000000000202 R12: 0000000020000080 R13: 000000002001f1c0 R14: 00007f5ffe365fe0 R15: 0000000020000380 The buggy address belongs to the object at ffff8880667d34d0 which belongs to the cache gfs2_glock(aspace) of size 1224 The buggy address is located 1192 bytes inside of 1224-byte region [ffff8880667d34d0, ffff8880667d3998) The buggy address belongs to the physical page: page:ffffea000199f400 refcount:1 mapcount:0 mapping:0000000000000000 index:0x0 pfn:0x667d0 head:ffffea000199f400 order:2 compound_mapcount:0 compound_pincount:0 flags: 0xfff00000010200(slab|head|node=0|zone=1|lastcpupid=0x7ff) raw: 00fff00000010200 0000000000000000 dead000000000122 ffff88801cd5a500 raw: 0000000000000000 00000000800c000c 00000001ffffffff 0000000000000000 page dumped because: kasan: bad access detected page_owner tracks the page as allocated page last allocated via order 2, migratetype Unmovable, gfp_mask 0x1d2040(__GFP_IO|__GFP_NOWARN|__GFP_NORETRY|__GFP_COMP|__GFP_NOMEMALLOC|__GFP_HARDWALL), pid 28422, tgid 28421 (syz-executor.1), ts 1393418415083, free_ts 1302239689222 prep_new_page mm/page_alloc.c:2539 [inline] get_page_from_freelist+0x742/0x7c0 mm/page_alloc.c:4291 __alloc_pages+0x259/0x560 mm/page_alloc.c:5558 alloc_slab_page+0xbd/0x190 mm/slub.c:1794 allocate_slab+0x5e/0x4b0 mm/slub.c:1939 new_slab mm/slub.c:1992 [inline] ___slab_alloc+0x782/0xe20 mm/slub.c:3180 __slab_alloc mm/slub.c:3279 [inline] slab_alloc_node mm/slub.c:3364 [inline] slab_alloc mm/slub.c:3406 [inline] __kmem_cache_alloc_lru mm/slub.c:3413 [inline] kmem_cache_alloc+0x24c/0x300 mm/slub.c:3422 gfs2_glock_get+0x2be/0xf80 fs/gfs2/glock.c:1173 gfs2_inode_lookup+0x294/0xd90 fs/gfs2/inode.c:135 gfs2_lookup_root fs/gfs2/ops_fstype.c:462 [inline] init_sb+0x9da/0x12b0 fs/gfs2/ops_fstype.c:529 gfs2_fill_super+0x19ac/0x2700 fs/gfs2/ops_fstype.c:1214 get_tree_bdev+0x400/0x620 fs/super.c:1324 gfs2_get_tree+0x50/0x210 fs/gfs2/ops_fstype.c:1330 vfs_get_tree+0x88/0x270 fs/super.c:1531 do_new_mount+0x289/0xad0 fs/namespace.c:3040 do_mount fs/namespace.c:3383 [inline] __do_sys_mount fs/namespace.c:3591 [inline] __se_sys_mount+0x2d3/0x3c0 fs/namespace.c:3568 do_syscall_x64 arch/x86/entry/common.c:50 [inline] do_syscall_64+0x3d/0xb0 arch/x86/entry/common.c:80 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+0x80c/0x8f0 mm/page_alloc.c:1509 free_unref_page_prepare mm/page_alloc.c:3387 [inline] free_unref_page+0x7d/0x5f0 mm/page_alloc.c:3483 __vunmap+0x877/0x9e0 mm/vmalloc.c:2713 do_free_pages sound/core/pcm_memory.c:65 [inline] snd_pcm_lib_free_pages+0x213/0x2e0 sound/core/pcm_memory.c:471 do_hw_free sound/core/pcm_native.c:876 [inline] snd_pcm_release_substream+0x2ae/0x470 sound/core/pcm_native.c:2705 snd_pcm_oss_release_file sound/core/oss/pcm_oss.c:2413 [inline] snd_pcm_oss_release+0x1a3/0x270 sound/core/oss/pcm_oss.c:2592 __fput+0x3ba/0x880 fs/file_table.c:320 task_work_run+0x243/0x300 kernel/task_work.c:179 resume_user_mode_work include/linux/resume_user_mode.h:49 [inline] exit_to_user_mode_loop+0x124/0x150 kernel/entry/common.c:171 exit_to_user_mode_prepare+0xb2/0x140 kernel/entry/common.c:203 __syscall_exit_to_user_mode_work kernel/entry/common.c:285 [inline] syscall_exit_to_user_mode+0x26/0x60 kernel/entry/common.c:296 do_syscall_64+0x49/0xb0 arch/x86/entry/common.c:86 entry_SYSCALL_64_after_hwframe+0x63/0xcd Memory state around the buggy address: ffff8880667d3800: fc fc fc fc fc fc fc fc fc fc fc fc fc fc fc fc ffff8880667d3880: fc fc fc fc fc fc fc fc fc fc fc fc fc fc fc fc >ffff8880667d3900: fc fc fc fc fc fc fc fc fc fc fc fc fc fc fc fc ^ ffff8880667d3980: fc fc fc fc fc fc fc fc fc fc fc fc fc fc fc fc ffff8880667d3a00: fc fc fc fc fc fc fc fc fc fc fc fc fc fc fc fc ==================================================================