loop3: detected capacity change from 0 to 4096 ntfs3: loop3: Different NTFS' sector size (1024) and media sector size (512) ================================================================== BUG: KASAN: stack-out-of-bounds in native_save_fl arch/x86/include/asm/irqflags.h:35 [inline] BUG: KASAN: stack-out-of-bounds in arch_local_save_flags arch/x86/include/asm/irqflags.h:70 [inline] BUG: KASAN: stack-out-of-bounds in arch_irqs_disabled arch/x86/include/asm/irqflags.h:130 [inline] BUG: KASAN: stack-out-of-bounds in lock_acquire+0x1c3/0x3c0 kernel/locking/lockdep.c:5669 Read of size 8 at addr ffffc9000ee4f95f by task syz-executor.3/23825 CPU: 0 PID: 23825 Comm: syz-executor.3 Not tainted 6.0.0-syzkaller-02734-g0326074ff465 #0 Hardware name: Google Google Compute Engine/Google Compute Engine, BIOS Google 09/22/2022 Call Trace: __dump_stack lib/dump_stack.c:88 [inline] dump_stack_lvl+0x1b1/0x28e lib/dump_stack.c:106 print_address_description+0x65/0x4b0 mm/kasan/report.c:317 print_report+0x108/0x1f0 mm/kasan/report.c:433 kasan_report+0xc3/0xf0 mm/kasan/report.c:495 native_save_fl arch/x86/include/asm/irqflags.h:35 [inline] arch_local_save_flags arch/x86/include/asm/irqflags.h:70 [inline] arch_irqs_disabled arch/x86/include/asm/irqflags.h:130 [inline] lock_acquire+0x1c3/0x3c0 kernel/locking/lockdep.c:5669 __raw_spin_lock include/linux/spinlock_api_smp.h:133 [inline] _raw_spin_lock+0x2a/0x40 kernel/locking/spinlock.c:154 spin_lock include/linux/spinlock.h:349 [inline] inode_sb_list_del fs/inode.c:503 [inline] evict+0x161/0x620 fs/inode.c:654 ntfs_fill_super+0x3af3/0x42a0 fs/ntfs3/super.c:1190 get_tree_bdev+0x400/0x620 fs/super.c:1323 vfs_get_tree+0x88/0x270 fs/super.c:1530 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:0x7fb652c8bada 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:00007fb653d89f88 EFLAGS: 00000202 ORIG_RAX: 00000000000000a5 RAX: ffffffffffffffda RBX: 0000000020000200 RCX: 00007fb652c8bada RDX: 0000000020000000 RSI: 0000000020000100 RDI: 00007fb653d89fe0 RBP: 00007fb653d8a020 R08: 00007fb653d8a020 R09: 0000000020000000 R10: 0000000000000000 R11: 0000000000000202 R12: 0000000020000000 R13: 0000000020000100 R14: 00007fb653d89fe0 R15: 000000002007aa80 The buggy address belongs to stack of task syz-executor.3/23825 and is located at offset 31 in frame: lock_acquire+0x0/0x3c0 kernel/locking/lockdep.c:5621 This frame has 3 objects: [32, 40) 'flags.i.i.i87' [64, 72) 'flags.i.i.i' [96, 136) 'hlock' The buggy address belongs to the virtual mapping at [ffffc9000ee48000, ffffc9000ee51000) created by: dup_task_struct+0x8b/0x490 kernel/fork.c:977 The buggy address belongs to the physical page: page:ffffea0001fccb00 refcount:1 mapcount:0 mapping:0000000000000000 index:0x0 pfn:0x7f32c memcg:ffff888066618502 flags: 0xfff00000000000(node=0|zone=1|lastcpupid=0x7ff) raw: 00fff00000000000 0000000000000000 dead000000000122 0000000000000000 raw: 0000000000000000 0000000000000000 00000001ffffffff ffff888066618502 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 2, tgid 2 (kthreadd), ts 727500129359, free_ts 724053914231 prep_new_page mm/page_alloc.c:2532 [inline] get_page_from_freelist+0x742/0x7c0 mm/page_alloc.c:4283 __alloc_pages+0x259/0x560 mm/page_alloc.c:5549 vm_area_alloc_pages mm/vmalloc.c:2958 [inline] __vmalloc_area_node mm/vmalloc.c:3026 [inline] __vmalloc_node_range+0x8f4/0x1290 mm/vmalloc.c:3196 alloc_thread_stack_node+0x307/0x500 kernel/fork.c:312 dup_task_struct+0x8b/0x490 kernel/fork.c:977 copy_process+0x637/0x3fa0 kernel/fork.c:2085 kernel_clone+0x21f/0x790 kernel/fork.c:2671 kernel_thread+0x150/0x1d0 kernel/fork.c:2724 create_kthread kernel/kthread.c:399 [inline] kthreadd+0x57c/0x750 kernel/kthread.c:745 ret_from_fork+0x1f/0x30 arch/x86/entry/entry_64.S:306 page last free stack trace: reset_page_owner include/linux/page_owner.h:24 [inline] free_pages_prepare mm/page_alloc.c:1449 [inline] free_pcp_prepare+0x812/0x900 mm/page_alloc.c:1499 free_unref_page_prepare mm/page_alloc.c:3380 [inline] free_unref_page+0x7d/0x5f0 mm/page_alloc.c:3476 __vunmap+0x877/0x9e0 mm/vmalloc.c:2696 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+0x2cd/0x490 sound/core/pcm_native.c:2704 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+0x3b9/0x820 fs/file_table.c:320 task_work_run+0x146/0x1c0 kernel/task_work.c:177 resume_user_mode_work include/linux/resume_user_mode.h:49 [inline] exit_to_user_mode_loop+0x124/0x150 kernel/entry/common.c:169 exit_to_user_mode_prepare+0xb2/0x140 kernel/entry/common.c:201 __syscall_exit_to_user_mode_work kernel/entry/common.c:283 [inline] syscall_exit_to_user_mode+0x26/0x60 kernel/entry/common.c:294 do_syscall_64+0x49/0xb0 arch/x86/entry/common.c:86 entry_SYSCALL_64_after_hwframe+0x63/0xcd Memory state around the buggy address: ffffc9000ee4f800: 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 ffffc9000ee4f880: 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 >ffffc9000ee4f900: 00 00 00 00 00 00 00 00 f1 f1 f1 f1 00 f2 f2 f2 ^ ffffc9000ee4f980: 00 f2 f2 f2 00 00 00 00 00 f3 f3 f3 f3 f3 f3 f3 ffffc9000ee4fa00: 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 ==================================================================