./strace-static-x86_64 -e \!wait4,clock_nanosleep,nanosleep -s 100 -x -f ./syz-executor2681290054 <...> Warning: Permanently added '10.128.1.165' (ECDSA) to the list of known hosts. execve("./syz-executor2681290054", ["./syz-executor2681290054"], 0x7ffd55546740 /* 10 vars */) = 0 brk(NULL) = 0x555556dd4000 brk(0x555556dd4c40) = 0x555556dd4c40 arch_prctl(ARCH_SET_FS, 0x555556dd4300) = 0 uname({sysname="Linux", nodename="syzkaller", ...}) = 0 readlink("/proc/self/exe", "/root/syz-executor2681290054", 4096) = 28 brk(0x555556df5c40) = 0x555556df5c40 brk(0x555556df6000) = 0x555556df6000 mprotect(0x7f3537518000, 16384, PROT_READ) = 0 mmap(0x1ffff000, 4096, PROT_NONE, MAP_PRIVATE|MAP_FIXED|MAP_ANONYMOUS, -1, 0) = 0x1ffff000 mmap(0x20000000, 16777216, PROT_READ|PROT_WRITE|PROT_EXEC, MAP_PRIVATE|MAP_FIXED|MAP_ANONYMOUS, -1, 0) = 0x20000000 mmap(0x21000000, 4096, PROT_NONE, MAP_PRIVATE|MAP_FIXED|MAP_ANONYMOUS, -1, 0) = 0x21000000 memfd_create("syzkaller", 0) = 3 mmap(NULL, 138412032, PROT_READ|PROT_WRITE, MAP_PRIVATE|MAP_ANONYMOUS, -1, 0) = 0x7f352f040000 write(3, "\xeb\x52\x90\x4e\x54\x46\x53\x20\x20\x20\x20\x00\x10\x01\x00\x00\x00\x00\x00\x00\x00\xf8\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x80\x00\x80\x00\xff\x01\x00\x00\x00\x00\x00\x00\x04\x00\x00\x00\x00\x00\x00\x00\xff\x00\x00\x00\x00\x00\x00\x00\x01\x00\x00\x00\x20\x00\x00\x00\xf7\x9a\x81\x47\x2b\x73\xcf\x43\x00\x00\x00\x00\x0e\x1f\xbe\x71\x7c\xac\x22\xc0\x74\x0b\x56\xb4\x0e\xbb\x07\x00"..., 2097152) = 2097152 munmap(0x7f352f040000, 2097152) = 0 openat(AT_FDCWD, "/dev/loop0", O_RDWR) = 4 ioctl(4, LOOP_SET_FD, 3) = 0 close(3) = 0 mkdir("./file0", 0777) = 0 syzkaller login: [ 55.675418][ T4991] memfd_create() without MFD_EXEC nor MFD_NOEXEC_SEAL, pid=4991 'syz-executor268' [ 55.710711][ T4991] loop0: detected capacity change from 0 to 4096 [ 55.723386][ T4991] ntfs: (device loop0): ntfs_is_extended_system_file(): Corrupt file name attribute. You should run chkdsk. [ 55.734885][ T4991] ntfs: (device loop0): ntfs_read_locked_inode(): $DATA attribute is missing. [ 55.743830][ T4991] ntfs: (device loop0): ntfs_read_locked_inode(): Failed with error code -2. Marking corrupt inode 0x1 as bad. Run chkdsk. [ 55.756858][ T4991] ntfs: (device loop0): load_system_files(): Failed to load $MFTMirr. Mounting read-only. Run ntfsfix and/or chkdsk. mount("/dev/loop0", "./file0", "ntfs", MS_NOSUID, "") = 0 openat(AT_FDCWD, "./file0", O_RDONLY|O_DIRECTORY) = 3 chdir("./file0") = 0 ioctl(4, LOOP_CLR_FD) = 0 close(4) = 0 openat(AT_FDCWD, ".", O_RDONLY) = 4 [ 55.775818][ T4991] ntfs: volume version 3.1. [ 55.782233][ T4991] ntfs: (device loop0): ntfs_lookup_inode_by_name(): Corrupt directory. Aborting lookup. [ 55.792175][ T4991] ntfs: (device loop0): check_windows_hibernation_status(): Failed to find inode number for hiberfil.sys. [ 55.803513][ T4991] ntfs: (device loop0): load_system_files(): Failed to determine if Windows is hibernated. Will not be able to remount read-write. Run chkdsk. [ 55.830788][ T4991] ================================================================== [ 55.838893][ T4991] BUG: KASAN: slab-out-of-bounds in ntfs_readdir+0xea1/0x2b70 [ 55.846397][ T4991] Read of size 1 at addr ffff88802774e0f1 by task syz-executor268/4991 [ 55.854651][ T4991] [ 55.856983][ T4991] CPU: 1 PID: 4991 Comm: syz-executor268 Not tainted 6.4.0-rc5-syzkaller-00016-ga4d7d7011219 #0 [ 55.867373][ T4991] Hardware name: Google Google Compute Engine/Google Compute Engine, BIOS Google 05/25/2023 [ 55.877417][ T4991] Call Trace: [ 55.880679][ T4991] [ 55.883592][ T4991] dump_stack_lvl+0x1e7/0x2d0 [ 55.888256][ T4991] ? irq_work_queue+0xca/0x150 [ 55.893000][ T4991] ? nf_tcp_handle_invalid+0x650/0x650 [ 55.898440][ T4991] ? panic+0x770/0x770 [ 55.902487][ T4991] ? _printk+0xd5/0x120 [ 55.906624][ T4991] print_report+0x163/0x540 [ 55.911106][ T4991] ? mutex_unlock+0x10/0x10 [ 55.915679][ T4991] ? __virt_addr_valid+0x22f/0x2e0 [ 55.920773][ T4991] ? __phys_addr+0xba/0x170 [ 55.925260][ T4991] ? ntfs_readdir+0xea1/0x2b70 [ 55.930012][ T4991] kasan_report+0x176/0x1b0 [ 55.934497][ T4991] ? ntfs_readdir+0xea1/0x2b70 [ 55.939241][ T4991] ntfs_readdir+0xea1/0x2b70 [ 55.943816][ T4991] ? read_lock_is_recursive+0x20/0x20 [ 55.949170][ T4991] ? __down_write_common+0x161/0x200 [ 55.954435][ T4991] ? clear_nonspinnable+0x60/0x60 [ 55.959438][ T4991] ? ntfs_unmap_page+0x260/0x260 [ 55.964356][ T4991] ? iterate_dir+0x135/0x570 [ 55.968931][ T4991] iterate_dir+0x228/0x570 [ 55.973335][ T4991] __se_sys_getdents64+0x20d/0x4f0 [ 55.978429][ T4991] ? _raw_spin_unlock_irq+0x2e/0x50 [ 55.983605][ T4991] ? __x64_sys_getdents64+0x80/0x80 [ 55.988784][ T4991] ? filldir+0x6a0/0x6a0 [ 55.993011][ T4991] ? syscall_enter_from_user_mode+0x32/0x230 [ 55.998974][ T4991] ? syscall_enter_from_user_mode+0x8c/0x230 [ 56.004934][ T4991] do_syscall_64+0x41/0xc0 [ 56.009335][ T4991] entry_SYSCALL_64_after_hwframe+0x63/0xcd [ 56.015211][ T4991] RIP: 0033:0x7f353748c7a9 [ 56.019636][ T4991] Code: 28 00 00 00 75 05 48 83 c4 28 c3 e8 51 14 00 00 90 48 89 f8 48 89 f7 48 89 d6 48 89 ca 4d 89 c2 4d 89 c8 4c 8b 4c 24 08 0f 05 <48> 3d 01 f0 ff ff 73 01 c3 48 c7 c1 c0 ff ff ff f7 d8 64 89 01 48 [ 56.039222][ T4991] RSP: 002b:00007fff471894d8 EFLAGS: 00000246 ORIG_RAX: 00000000000000d9 [ 56.047617][ T4991] RAX: ffffffffffffffda RBX: 0000000000000000 RCX: 00007f353748c7a9 [ 56.055568][ T4991] RDX: 00000000000000ab RSI: 0000000020000080 RDI: 0000000000000004 [ 56.063521][ T4991] RBP: 00007f353744c040 R08: 0000000000000000 R09: 0000000000000000 [ 56.071472][ T4991] R10: 000000000001f1b8 R11: 0000000000000246 R12: 00007f353744c0d0 [ 56.079424][ T4991] R13: 0000000000000000 R14: 0000000000000000 R15: 0000000000000000 [ 56.087378][ T4991] [ 56.090379][ T4991] [ 56.092686][ T4991] Allocated by task 4991: [ 56.096988][ T4991] kasan_set_track+0x4f/0x70 [ 56.101561][ T4991] __kasan_kmalloc+0x98/0xb0 [ 56.106130][ T4991] __kmalloc+0xb9/0x230 [ 56.110266][ T4991] ntfs_readdir+0x829/0x2b70 [ 56.114837][ T4991] iterate_dir+0x228/0x570 [ 56.119250][ T4991] __se_sys_getdents64+0x20d/0x4f0 [ 56.124363][ T4991] do_syscall_64+0x41/0xc0 [ 56.128779][ T4991] entry_SYSCALL_64_after_hwframe+0x63/0xcd [ 56.134662][ T4991] [ 56.136968][ T4991] The buggy address belongs to the object at ffff88802774e080 [ 56.136968][ T4991] which belongs to the cache kmalloc-64 of size 64 [ 56.150827][ T4991] The buggy address is located 57 bytes to the right of [ 56.150827][ T4991] allocated 56-byte region [ffff88802774e080, ffff88802774e0b8) [ 56.165297][ T4991] [ 56.167600][ T4991] The buggy address belongs to the physical page: [ 56.173999][ T4991] page:ffffea00009dd380 refcount:1 mapcount:0 mapping:0000000000000000 index:0x0 pfn:0x2774e [ 56.184142][ T4991] ksm flags: 0xfff00000000200(slab|node=0|zone=1|lastcpupid=0x7ff) [ 56.192026][ T4991] page_type: 0xffffffff() [ 56.196349][ T4991] raw: 00fff00000000200 ffff888012441640 ffffea0000a452c0 dead000000000003 [ 56.204917][ T4991] raw: 0000000000000000 0000000080200020 00000001ffffffff 0000000000000000 [ 56.213476][ T4991] page dumped because: kasan: bad access detected [ 56.219866][ T4991] page_owner tracks the page as allocated [ 56.225565][ T4991] page last allocated via order 0, migratetype Unmovable, gfp_mask 0x12cc0(GFP_KERNEL|__GFP_NOWARN|__GFP_NORETRY), pid 56, tgid 56 (kworker/u4:4), ts 10903518356, free_ts 10315929249 [ 56.243775][ T4991] post_alloc_hook+0x1e6/0x210 [ 56.248528][ T4991] get_page_from_freelist+0x321c/0x33a0 [ 56.254057][ T4991] __alloc_pages+0x255/0x670 [ 56.258626][ T4991] alloc_slab_page+0x6a/0x160 [ 56.263283][ T4991] new_slab+0x84/0x2f0 [ 56.267326][ T4991] ___slab_alloc+0xa85/0x10a0 [ 56.271987][ T4991] __kmem_cache_alloc_node+0x1b8/0x290 [ 56.277436][ T4991] kmalloc_node_trace+0x27/0xe0 [ 56.282273][ T4991] __get_vm_area_node+0x125/0x370 [ 56.287272][ T4991] __vmalloc_node_range+0x3e5/0x14e0 [ 56.292535][ T4991] dup_task_struct+0x3e5/0x7d0 [ 56.297280][ T4991] copy_process+0x5c8/0x4290 [ 56.301856][ T4991] kernel_clone+0x222/0x800 [ 56.306334][ T4991] user_mode_thread+0x132/0x190 [ 56.311161][ T4991] call_usermodehelper_exec_work+0x5c/0x220 [ 56.317035][ T4991] process_one_work+0x8a0/0x10e0 [ 56.321957][ T4991] page last free stack trace: [ 56.326605][ T4991] free_unref_page_prepare+0x903/0xa30 [ 56.332045][ T4991] free_unref_page+0x37/0x3f0 [ 56.336696][ T4991] vfree+0x186/0x2e0 [ 56.340571][ T4991] delayed_vfree_work+0x56/0x80 [ 56.345400][ T4991] process_one_work+0x8a0/0x10e0 [ 56.350321][ T4991] worker_thread+0xa63/0x1210 [ 56.354981][ T4991] kthread+0x2b8/0x350 [ 56.359029][ T4991] ret_from_fork+0x1f/0x30 [ 56.363427][ T4991] [ 56.365732][ T4991] Memory state around the buggy address: [ 56.371344][ T4991] ffff88802774df80: fc fc fc fc fc fc fc fc fc fc fc fc fc fc fc fc [ 56.379388][ T4991] ffff88802774e000: fa fb fb fb fb fb fb fb fc fc fc fc fc fc fc fc [ 56.387427][ T4991] >ffff88802774e080: 00 00 00 00 00 00 00 fc fc fc fc fc fc fc fc fc [ 56.395463][ T4991] ^ [ 56.403153][ T4991] ffff88802774e100: fb fb fb fb fb fb fb fb fc fc fc fc fc fc fc fc [ 56.411189][ T4991] ffff88802774e180: fb fb fb fb fb fb fb fb fc fc fc fc fc fc fc fc [ 56.419222][ T4991] ================================================================== [ 56.427586][ T4991] Kernel panic - not syncing: KASAN: panic_on_warn set ... [ 56.434788][ T4991] CPU: 1 PID: 4991 Comm: syz-executor268 Not tainted 6.4.0-rc5-syzkaller-00016-ga4d7d7011219 #0 [ 56.445185][ T4991] Hardware name: Google Google Compute Engine/Google Compute Engine, BIOS Google 05/25/2023 [ 56.455225][ T4991] Call Trace: [ 56.458491][ T4991] [ 56.461410][ T4991] dump_stack_lvl+0x1e7/0x2d0 [ 56.466086][ T4991] ? nf_tcp_handle_invalid+0x650/0x650 [ 56.471535][ T4991] ? panic+0x770/0x770 [ 56.475680][ T4991] ? preempt_schedule_common+0x83/0xc0 [ 56.481133][ T4991] ? vscnprintf+0x5d/0x80 [ 56.485454][ T4991] panic+0x30f/0x770 [ 56.489335][ T4991] ? check_panic_on_warn+0x21/0xa0 [ 56.494440][ T4991] ? __memcpy_flushcache+0x2b0/0x2b0 [ 56.499718][ T4991] ? _raw_spin_unlock_irqrestore+0x12c/0x140 [ 56.505687][ T4991] ? _raw_spin_unlock+0x40/0x40 [ 56.510524][ T4991] ? print_report+0x4fb/0x540 [ 56.515201][ T4991] check_panic_on_warn+0x82/0xa0 [ 56.520129][ T4991] ? ntfs_readdir+0xea1/0x2b70 [ 56.524883][ T4991] end_report+0x63/0x110 [ 56.529115][ T4991] kasan_report+0x183/0x1b0 [ 56.533609][ T4991] ? ntfs_readdir+0xea1/0x2b70 [ 56.538365][ T4991] ntfs_readdir+0xea1/0x2b70 [ 56.542952][ T4991] ? read_lock_is_recursive+0x20/0x20 [ 56.548315][ T4991] ? __down_write_common+0x161/0x200 [ 56.553608][ T4991] ? clear_nonspinnable+0x60/0x60 [ 56.558619][ T4991] ? ntfs_unmap_page+0x260/0x260 [ 56.563549][ T4991] ? iterate_dir+0x135/0x570 [ 56.568129][ T4991] iterate_dir+0x228/0x570 [ 56.572539][ T4991] __se_sys_getdents64+0x20d/0x4f0 [ 56.577640][ T4991] ? _raw_spin_unlock_irq+0x2e/0x50 [ 56.582827][ T4991] ? __x64_sys_getdents64+0x80/0x80 [ 56.588025][ T4991] ? filldir+0x6a0/0x6a0 [ 56.592261][ T4991] ? syscall_enter_from_user_mode+0x32/0x230 [ 56.598231][ T4991] ? syscall_enter_from_user_mode+0x8c/0x230 [ 56.604198][ T4991] do_syscall_64+0x41/0xc0 [ 56.608607][ T4991] entry_SYSCALL_64_after_hwframe+0x63/0xcd [ 56.614491][ T4991] RIP: 0033:0x7f353748c7a9 [ 56.618894][ T4991] Code: 28 00 00 00 75 05 48 83 c4 28 c3 e8 51 14 00 00 90 48 89 f8 48 89 f7 48 89 d6 48 89 ca 4d 89 c2 4d 89 c8 4c 8b 4c 24 08 0f 05 <48> 3d 01 f0 ff ff 73 01 c3 48 c7 c1 c0 ff ff ff f7 d8 64 89 01 48 [ 56.638488][ T4991] RSP: 002b:00007fff471894d8 EFLAGS: 00000246 ORIG_RAX: 00000000000000d9 [ 56.646888][ T4991] RAX: ffffffffffffffda RBX: 0000000000000000 RCX: 00007f353748c7a9 [ 56.654845][ T4991] RDX: 00000000000000ab RSI: 0000000020000080 RDI: 0000000000000004 [ 56.662801][ T4991] RBP: 00007f353744c040 R08: 0000000000000000 R09: 0000000000000000 [ 56.670766][ T4991] R10: 000000000001f1b8 R11: 0000000000000246 R12: 00007f353744c0d0 [ 56.678724][ T4991] R13: 0000000000000000 R14: 0000000000000000 R15: 0000000000000000 [ 56.686689][ T4991] [ 56.689850][ T4991] Kernel Offset: disabled [ 56.694161][ T4991] Rebooting in 86400 seconds..