================================================================== BUG: KASAN: stack-out-of-bounds in ino_get fs/ntfs3/ntfs.h:193 [inline] BUG: KASAN: stack-out-of-bounds in ntfs_set_inode+0x65/0x70 fs/ntfs3/inode.c:514 Read of size 4 at addr ffffc9000e10fcc7 by task syz-executor.1/19627 CPU: 3 PID: 19627 Comm: syz-executor.1 Not tainted 6.4.0-syzkaller-12274-g5133c9e51de4 #0 Hardware name: QEMU Standard PC (Q35 + ICH9, 2009), BIOS 1.14.0-2 04/01/2014 Call Trace: __dump_stack lib/dump_stack.c:88 [inline] dump_stack_lvl+0xd9/0x150 lib/dump_stack.c:106 print_address_description.constprop.0+0x2c/0x3c0 mm/kasan/report.c:364 print_report mm/kasan/report.c:475 [inline] kasan_report+0x11d/0x130 mm/kasan/report.c:588 ino_get fs/ntfs3/ntfs.h:193 [inline] ntfs_set_inode+0x65/0x70 fs/ntfs3/inode.c:514 inode_insert5+0x125/0x660 fs/inode.c:1231 iget5_locked fs/inode.c:1289 [inline] iget5_locked+0x225/0x2c0 fs/inode.c:1278 ntfs_iget5+0xd2/0x3670 fs/ntfs3/inode.c:523 ntfs_fill_super+0x3196/0x3c20 fs/ntfs3/super.c:1272 get_tree_bdev+0x43e/0x7d0 fs/super.c:1318 vfs_get_tree+0x8d/0x350 fs/super.c:1519 do_new_mount fs/namespace.c:3335 [inline] path_mount+0x136e/0x1e70 fs/namespace.c:3662 do_mount fs/namespace.c:3675 [inline] __do_sys_mount fs/namespace.c:3884 [inline] __se_sys_mount fs/namespace.c:3861 [inline] __x64_sys_mount+0x283/0x300 fs/namespace.c:3861 do_syscall_x64 arch/x86/entry/common.c:50 [inline] do_syscall_64+0x39/0xb0 arch/x86/entry/common.c:80 entry_SYSCALL_64_after_hwframe+0x63/0xcd RIP: 0033:0x7fcde028d8ba 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:00007fcde0f9df88 EFLAGS: 00000202 ORIG_RAX: 00000000000000a5 RAX: ffffffffffffffda RBX: 000000000001f73b RCX: 00007fcde028d8ba RDX: 0000000020000000 RSI: 000000002001f740 RDI: 00007fcde0f9dfe0 RBP: 00007fcde0f9e020 R08: 00007fcde0f9e020 R09: 0000000001000000 R10: 0000000001000000 R11: 0000000000000202 R12: 0000000020000000 R13: 000000002001f740 R14: 00007fcde0f9dfe0 R15: 0000000020000040 The buggy address belongs to stack of task syz-executor.1/19627 and is located at offset 127 in frame: ntfs_fill_super+0x0/0x3c20 fs/ntfs3/super.c:474 This frame has 5 objects: [48, 52) 'vcn' [64, 68) 'lcn' [80, 84) 'len' [96, 104) 'tt' [128, 136) 'ref' The buggy address belongs to the virtual mapping at [ffffc9000e108000, ffffc9000e111000) created by: kernel_clone+0xeb/0x890 kernel/fork.c:2911 The buggy address belongs to the physical page: page:ffffea0000992f00 refcount:1 mapcount:0 mapping:0000000000000000 index:0x0 pfn:0x264bc memcg:ffff888027ef9602 flags: 0xfff00000000000(node=0|zone=1|lastcpupid=0x7ff) page_type: 0xffffffff() raw: 00fff00000000000 0000000000000000 dead000000000122 0000000000000000 raw: 0000000000000000 0000000000000000 00000001ffffffff ffff888027ef9602 page dumped because: kasan: bad access detected page_owner tracks the page as allocated page last allocated via order 0, migratetype Unmovable, gfp_mask 0x102dc2(GFP_HIGHUSER|__GFP_NOWARN|__GFP_ZERO), pid 19611, tgid 19611 (syz-executor.3), ts 490017825703, free_ts 488644031308 set_page_owner include/linux/page_owner.h:31 [inline] post_alloc_hook+0x2db/0x350 mm/page_alloc.c:1570 prep_new_page mm/page_alloc.c:1577 [inline] get_page_from_freelist+0xfed/0x2d30 mm/page_alloc.c:3221 __alloc_pages+0x1cb/0x4a0 mm/page_alloc.c:4477 alloc_pages+0x1aa/0x270 mm/mempolicy.c:2279 vm_area_alloc_pages mm/vmalloc.c:3059 [inline] __vmalloc_area_node mm/vmalloc.c:3135 [inline] __vmalloc_node_range+0xb1c/0x14c0 mm/vmalloc.c:3316 alloc_thread_stack_node kernel/fork.c:309 [inline] dup_task_struct kernel/fork.c:1112 [inline] copy_process+0x13bb/0x75c0 kernel/fork.c:2329 kernel_clone+0xeb/0x890 kernel/fork.c:2911 __do_sys_clone+0xba/0x100 kernel/fork.c:3054 do_syscall_x64 arch/x86/entry/common.c:50 [inline] do_syscall_64+0x39/0xb0 arch/x86/entry/common.c:80 entry_SYSCALL_64_after_hwframe+0x63/0xcd page last free stack trace: reset_page_owner include/linux/page_owner.h:24 [inline] free_pages_prepare mm/page_alloc.c:1161 [inline] free_unref_page_prepare+0x62e/0xcb0 mm/page_alloc.c:2348 free_unref_page+0x33/0x370 mm/page_alloc.c:2443 vfree+0x180/0x7b0 mm/vmalloc.c:2842 delayed_vfree_work+0x57/0x70 mm/vmalloc.c:2763 process_one_work+0xa34/0x16f0 kernel/workqueue.c:2597 worker_thread+0x67d/0x10c0 kernel/workqueue.c:2748 kthread+0x344/0x440 kernel/kthread.c:389 ret_from_fork+0x1f/0x30 arch/x86/entry/entry_64.S:308 Memory state around the buggy address: ffffc9000e10fb80: 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 ffffc9000e10fc00: 00 00 00 00 00 00 00 00 00 f1 f1 f1 f1 f1 f1 04 >ffffc9000e10fc80: f2 04 f2 04 f2 00 f2 f2 f2 00 f3 f3 f3 00 00 00 ^ ffffc9000e10fd00: 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 ffffc9000e10fd80: 00 00 00 00 00 00 00 00 00 00 00 00 00 f1 f1 f1 ==================================================================