Memory allocation errors and system crashing due to buggy disk cache/inode allocations by ntfs3 kernel module.
Nov 26, 2025, 12:09 by [email protected]:
Quoted 168 lines
Nov 26, 2025, 09:54 by [email protected]:
Quoted 165 lines · On 11/23/25 11:35, [email protected] wrote:
Quoted 154 lines
Nov 19, 2025, 16:11 by [email protected]:
Quoted 61 lines · On 11/19/25 11:57, [email protected] wrote:
Quoted 50 lines
Nov 14, 2025, 10:39 by [email protected]:
Quoted 47 lines · On 10/4/25 13:26, [email protected] wrote:
Quoted 29 lines
I'm posting there first time, so I through it like generic bug mailing list, but I can say, that, for example, version 6.12.50-lts a little less pron to bug, but it occurs there as well. I'm using Linux 6.16.10 for now. So, bug is present a while, but i hardly to tell, in what kernel version it appeared, cause earlier, I didn't manage that big amount of files. Again, it's okay with ntfs-3g.
Oct 4, 2025, 14:12 by [email protected]:
Quoted 24 lines · On 10/4/25 13:03, [email protected] wrote:
Quoted 10 lines
Oct 4, 2025, 11:55 by [email protected]:
Quoted 7 lines
I'm expecting serious bug when writing large amount of files to NTFS hard drive, shortly after memory allocation errors and system crash occurs/ Firstly, I thought, than this is bug in linux kernel itself, somewhat disk cache allocation error, but when I tested same operations on ext4 drive or using NTFS-3G module, bug is not present.
Quoted 3 lines
To reproduce a bug, try cloning two big Git repositories to an external NTFS drive mounted with ntfs3 module.
Thx for the report.
What kernel version are your using?
You CCed the regression list, so I assume this used to work, which leads to two more questions: What was the last version where this works? Could you bisect?
Ciao, Thorsten
Hello,
I tried to reproduce the problem by cloning multiple large Git repositories onto an ntfs3-mounted NTFS volume, but the issue did not trigger on my side and no system crash occurred.
Could you provide a bit more detail about your case?
- What appears in the kernel logs before the crash or before the process enters the unkillable state? Any warnings, memory allocation errors, stack traces, or lockdep messages from dmesg would be very useful.
- What mount options are you using for ntfs3?
- Roughly how much data or how many files are needed to trigger the behavior?
- Does the problem happen immediately, or only after sustained I/O or high memory pressure?Quoted 8 lines
Quoted 6 lines
If you can capture the relevant portion of dmesg or the last messages shown before the freeze/hang, that would help a lot in diagnosing this.
Regards,
KonstantinThanks for response. After that situation, I changed driver to NTFS-3G, so were with stable work, but degraded performance, but at least without crashes. Today, after your response, I reverted again to ntfs3 to test cases, that I mention and I can't reproduce it either. As it didn't response from you for so long before now, I changed so many Linux OS settings, disabled USB autosuspend, disabled rtkit-daemon canary-thread, so there no more highest RT threads, changed some scheduling and memory management options, so now it's stable. I'm not expecting any crashes and lockups even with large amount of files. Unfortunately, during bug presenting I didn't able catch dmesg messages, `cause system crashed. The only my assumption, that it may had MFT allocation bug, when disk is practically full and driver have to handle MFT allocation, additional space, where new pieces is stored. I guess it, 'cause when I tested new ntfsplus driver, I expected this bug, when downloading multiple chunks of files, but without system crashing, just the download manager aborted file downloading with "memory allocation error" with corresponding dmesg errors. Right now, I don't expecting any issues with ntfs3, so I'll respond, if there will be any. Thank you.
Hello,
Quoted 9 lines
Thanks for the update and for taking the time to retest. Even though the issue is not currently reproducible, I’ll keep your report and the possible MFT allocation cause in mind. If it happens again and you’re able to capture any logs, please let me know - any extra information would be very helpful.
Regards,
KonstantinI copied folder with many small files to ext. disk with ntfs with 4 GB free space. I got MFT allocation error ntfsplus driver again, so when I returned to regular ntfs3 driver, files copied correctly and no file corruptions and issues visually at all, but just in case, i looked in dmesg logs and there massive kernel warning:
[ 305.576860] memmove: detected field-spanning write (size 3552) of single field "re" at
fs/ntfs3/index.c:863(siz e 0)
[ 305.576882] WARNING: CPU: 2 PID: 10325 atfs/ntfs3/index.c:863indx_delete_entry+0x1790/0x1870[ntfs3] [ 305.576901] Modules linked in: ntfs3snd_seq_dummysnd_hrtimersnd_seqsnd_seq_devicenfnetlink_queueudp_diagnf_conntrack_netlinktcp_diaginet_diagnft_masqnft_reject_ipv4act_csumcls_u32sch_htbnft_queuebridgenft_chain_natnf_natstp llc ccmalgif_aeadcrypto_nulldes3_ede_x86_64cbcdes_genericlibdesalgif_skciphercmac md4 algif_hashaf_algoverlaynft_reject_inetnf_reject_ipv4nf_reject_ipv6nft_rejectnft_limitnft_ctnf_conntracknf_defrag_ipv6nf_defrag_ipv4nf_tableslibcrc32c mousedevums_realtekjoydev uasusb_storageintel_rapl_msrintel_rapl_commonx86_pkg_temp_thermalintel_powerclampcoretempiTCO_wdtsnd_hda_codec_realtekintel_pmc_bxtiwldvmkvm_intelsnd_hda_codec_genericat24snd_hda_codec_hdmisnd_hda_scodec_componentkvmmei_pxpsnd_hda_inteliTCO_vendor_supportmei_hdcpmac80211 irqbypasssnd_intel_dspcfgsnd_intel_sdw_acpilibarc4 psmouse raplsnd_hda_codecserio_rawatkbdintel_cstateiwlwifisnd_hda_corelibps2i2c_i801vfatintel_uncorefat r8169vivaldi_fmappcspkrsnd_hwdep[ 305.576964]i2c_smbuscfg80211i2c_muxsnd_pcmrealtekmdio_devresrfkillsnd_timerlpc_ichlibphymei_mesnd m ei soundcorefujitsu_laptopsparse_keymapmac_hidsch_cakevboxnetflt(OE) vboxnetadp(OE) vboxdrv(OE)usbip_hostusbip_coretcp_bbrpkcs8_key_parseri2c_devsgcrypto_userntsync loopdm_modnfnetlink zram 842_decompress 842_compre sslz4hc_compresslz4_compressbpf_preloadip_tablesx_tablespolyval_clmulni(E)aesni_intel(E)polyval_generic(E)ghash_clmulni_intel(E)crypto_simd(E)i8042(E) cryptd(E)crc32_pclmul(E)sha256_ssse3(E)sha512_ssse3(E)gf128mul(E )sha1_ssse3(E)crct10dif_pclmul(E)serio(E) i915(E) ext4(E) video(E)drm_display_helper(E)wmi(E) jbd2(E) mbcache(
E) usbhid(E)crc32c_intel(E)i2c_algo_bit(E)crc32c_generic(E)crc16(E) cec(E)intel_gtt(E)hid_generic(E)ttm(E) drm_buddy(E)
[ 305.577018] CPU: 2 UID: 0 PID: 10325 Comm: pool-2 Tainted: G S U W OE 6.12.58-1-cachyos-lts #109c56554d06e0af6d4f01298236cdf5f899167af
[ 305.577024] Tainted: [S]=CPU_OUT_OF_SPEC, [U]=USER, [W]=WARN, [O]=OOT_MODULE, [E]=UNSIGNED_MODULE [ 305.577026] Hardware name: FUJITSU LIFEBOOK AH532/G21/FJNBB1D, BIOS Version 1.12 06/10/2019
[ 305.577027] RIP: 0010:indx_delete_entry+0x1790/0x1870 [ntfs3]
[ 305.577039] Code: ff 48 c7 c2 90 e3 a4 c1 48 c7 c7 b8 e3 a4 c1 4c 89 54 24 70 4c 89 44 24 68 48 89 74 24 60 c6 0 5 45 f4 00 00 01 e8 70 6f ea c4 <0f> 0b 4c 8b 54 24 70 4c 8b 44 24 68 48 8b 74 24 60 e9 b4 fd ff ff [ 305.577041] RSP: 0018:ffffd4b4204479b0 EFLAGS: 00010246
[ 305.577043] RAX: 0000000000000000 RBX:ffff8d851754a200RCX: 0000000000000027
[ 305.577045] RDX:ffff8d86ef3218c8RSI: 0000000000000001 RDI:ffff8d86ef3218c0
[ 305.577046] RBP:ffff8d85f9eecbd0R08:00000000ffffefffR09: 0000000000000003
[ 305.577048] R10:ffffffff88a5d760R11:ffffd4b420447800R12: 0000000000000002
[ 305.577049] R13: 0000000000000000 R14:ffff8d85f9eecca0R15:ffff8d851754b800
[ 305.577051] FS: 00007ae95eb086c0(0000) GS:ffff8d86ef300000(0000) knlGS:0000000000000000
[ 305.577053] CS: 0010 DS: 0000 ES: 0000 CR0: 0000000080050033
[ 305.577055] CR2:00005ddc06731088CR3:000000021e9ac003CR4:00000000001706f0
[ 305.577057] Call Trace:
[ 305.577059] <TASK>
[ 305.577064]ni_remove_name+0x10b/0x270[ntfs3ffcddedc8a078abf7548ec42d6d01f0087e2d815]
[ 305.577078]ntfs_unlink_inode+0x15e/0x360[ntfs3ffcddedc8a078abf7548ec42d6d01f0087e2d815]
[ 305.577090]ntfs_unlink+0x44/0x70[ntfs3ffcddedc8a078abf7548ec42d6d01f0087e2d815]
[ 305.577100]vfs_unlink+0x114/0x2a0
[ 305.577105]do_unlinkat+0x2ea/0x380
[ 305.577110]__x64_sys_unlink+0xb7/0x1e0
[ 305.577114]do_syscall_64+0x7b/0x190
[ 305.577120] ?__x64_sys_futex+0x353/0x550
[ 305.577125] ?syscall_exit_to_user_mode_prepare+0x11e/0x1b0
[ 305.577130] ?syscall_exit_to_user_mode+0x37/0x190
[ 305.577134] ?do_syscall_64+0x87/0x190
[ 305.577138] ?__x64_sys_futex+0x2cc/0x550
[ 305.577141] ?syscall_exit_to_user_mode_prepare+0x11e/0x1b0
[ 305.577144] ?syscall_exit_to_user_mode+0x37/0x190
[ 305.577148] ?do_syscall_64+0x87/0x190
[ 305.577151] ?vfs_write+0x114/0x4b0
[ 305.577154] ?__call_rcu_common+0xd4/0xab0
[ 305.577158] ?evict+0x1ec/0x390
[ 305.577161] ?mntput+0x61/0x3e0
[ 305.577164] ?syscall_exit_to_user_mode_prepare+0x11e/0x1b0
[ 305.577168] ?syscall_exit_to_user_mode+0x37/0x190
[ 305.577171] ?do_syscall_64+0x87/0x190
[ 305.577174] ?syscall_exit_to_user_mode_prepare+0x11e/0x1b0
[ 305.577177] ?syscall_exit_to_user_mode+0x37/0x190
[ 305.577181] ?do_syscall_64+0x87/0x190
[ 305.577184] ?do_syscall_64+0x87/0x190
[ 305.577187] ?do_syscall_64+0x87/0x190
[ 305.577189] ?irqentry_exit_to_user_mode+0x2c/0x190
[ 305.577193]entry_SYSCALL_64_after_hwframe+0x76/0x7e
[ 305.577198] RIP: 0033:0x7ae96950e39b
[ 305.577220] Code: ff 67 e8 08 93 01 00 0f 1f 84 00 00 00 00 00 f3 0f 1e fa b8 5f 00 00 00 0f 05 c3 0f 1f 40 00 f 3 0f 1e fa b8 57 00 00 00 0f 05 <48> 3d 00 f0 ff ff 77 05 c3 0f 1f 40 00 48 8b 15 41 99 0f 00 f7 d8 [ 305.577221] RSP: 002b:00007ae95eb07728 EFLAGS: 00000206ORIG_RAX: 0000000000000057
[ 305.577224] RAX: ffffffffffffffda RBX:00007ae948002e70RCX:00007ae96950e39b
[ 305.577226] RDX: 0000000000000055 RSI:00007ae948179220RDI:00007ae948002e70
[ 305.577227] RBP:00007ae95eb07740R08: 0000000000000000 R09:00005ddc05ec28e0
[ 305.577228] R10: aaaaaaaaaaaaaaab R11: 0000000000000206 R12:00007ae95eb077b0
[ 305.577230] R13:00007ae9481786c0R14:00005ddc06b78be0R15: 0000000000000008
[ 305.577233] </TASK>
[ 305.577234] ---[ end trace 0000000000000000 ]---Quoted 2 lines
Again there is no any visual error and file corruptions error, if I didn't go to dmesg logs, I didn't notice any issues, but there is some reason for this warning.
Hello,
Thanks for the report. To look into this, I need a bit more detail. Could you provide the kernel version you were running when the warning occurred, as well as the exact mount options used? This information would be very helpful for diagnosing the issue.
Quoted 5 lines
Quoted 3 lines
Regards,
KonstantinHello, kernel version was 6.12.58 and mount options was (rw,nosuid,nodev,noexec,noatime,uid=0,gid=0,iocharset=utf8,uhelper=udisks) at the time of warning occurring.
Today the same dmesg warning occur with same case of writing multiple chunks of files, same mount options, but with kernel version 6.17.9:
[ 1643.344671] memmove: detected field-spanning write (size 2032) of single field "re" at fs/ntfs3/index.c:863 (size 0) [ 1643.344705] WARNING: CPU: 3 PID: 30215 at fs/ntfs3/index.c:863 indx_delete_entry+0x179d/0x1880 [ntfs3] [ 1643.344728] Modules linked in: nft_redir nft_nat tun xt_MASQUERADE nft_compat veth ntfs3 snd_seq_dummy snd_hrtimer snd_seq snd_seq_device nfnetlink_queue udp_diag nf_conntrack_netlink tcp_diag inet_diag nft_masq nft_reject_ipv4 act_csum cls_u32 sch_htb nft_queue nft_chain_nat nf_nat bridge stp llc ccm algif_aead des3_ede_x86_64 des_generic libdes algif_skcipher cmac md4 algif_hash af_alg overlay nft_reject_inet nf_reject_ipv4 nf_reject_ipv6 nft_reject nft_limit nft_ct nf_conntrack nf_defrag_ipv6 nf_defrag_ipv4 nf_tables ums_realtek uas iwldvm usb_storage mousedev intel_rapl_msr mac80211 libarc4 mei_pxp intel_rapl_common mei_hdcp x86_pkg_temp_thermal intel_powerclamp at24 iTCO_wdt iwlwifi vfat intel_pmc_bxt fat coretemp iTCO_vendor_support r8169 kvm_intel realtek rapl intel_cstate mdio_devres snd_hda_codec_intelhdmi cfg80211 snd_hda_codec_nvhdmi snd_hda_codec_alc269 snd_hda_scodec_component snd_hda_codec_hdmi libphy intel_uncore snd_hda_codec_realtek_lib snd_hda_codec_generic snd_hda_intel mdio_bus rfkill snd_hda_codec [ 1643.344819] snd_hda_core snd_intel_dspcfg snd_intel_sdw_acpi snd_hwdep snd_pcm joydev mei_me snd_timer fujitsu_laptop i2c_i801 snd sparse_keymap mac_hid psmouse i2c_smbus pcspkr mei soundcore i2c_mux lpc_ich sch_cake vboxnetflt(OE) vboxnetadp(OE) vboxdrv(OE) kvm irqbypass usbip_host usbip_core tcp_bbr pkcs8_key_parser i2c_dev sg crypto_user ntsync loop dm_mod nfnetlink zram 842_decompress 842_compress lz4hc_compress lz4_compress ip_tables x_tables aesni_intel(E) ghash_clmulni_intel(E) polyval_clmulni(E) serio_raw(E) i915(E) video(E) wmi(E) drm_display_helper(E) intel_gtt(E) drm_buddy(E) ttm(E) i2c_algo_bit(E) cec(E) [ 1643.344863] CPU: 3 UID: 1000 PID: 30215 Comm: filec Tainted: G S U OE 6.17.9-zen1-1-zen #1 PREEMPT(voluntary) 63aa26d4b39f24c743d2811fd066d702705167eb [ 1643.344869] Tainted: [S]=CPU_OUT_OF_SPEC, [U]=USER, [O]=OOT_MODULE, [E]=UNSIGNED_MODULE [ 1643.344870] Hardware name: FUJITSU LIFEBOOK AH532/G21/FJNBB1D, BIOS Version 1.12 06/10/2019 [ 1643.344873] RIP: 0010:indx_delete_entry+0x179d/0x1880 [ntfs3] [ 1643.344888] Code: c2 b0 b5 88 c1 48 89 c6 4c 89 54 24 70 48 c7 c7 d8 b5 88 c1 4c 89 44 24 68 48 89 44 24 60 c6 05 98 b1 1f 00 01 e8 93 b2 ee ed <0f> 0b 4c 8b 54 24 70 4c 8b 44 24 68 48 8b 44 24 60 e9 b1 fd ff ff [ 1643.344891] RSP: 0018:ffffcfc0eaa6b8c8 EFLAGS: 00010246 [ 1643.344895] RAX: 0000000000000000 RBX: ffff888a13088a00 RCX: 0000000000000000 [ 1643.344897] RDX: ffff888bef39cfc8 RSI: 0000000000000001 RDI: ffff888bef39cfc0 [ 1643.344899] RBP: ffff88890f8543f0 R08: ffffffffb1ab8b01 R09: 0000000000000000 [ 1643.344900] R10: ffffffffb1a60be0 R11: ffffcfc0eaa6b6f8 R12: 0000000000000001 [ 1643.344901] R13: 0000000000000000 R14: ffff88890f8544c0 R15: ffff888a13089200 [ 1643.344903] FS: 00007f5fd99b9b38(0000) GS:ffff888c3cc46000(0000) knlGS:0000000000000000 [ 1643.344905] CS: 0010 DS: 0000 ES: 0000 CR0: 0000000080050033 [ 1643.344907] CR2: 00007f5fd8ee0000 CR3: 00000001d5546006 CR4: 00000000001706f0 [ 1643.344909] Call Trace: [ 1643.344912] <TASK> [ 1643.344917] ni_remove_name+0x10a/0x250 [ntfs3 64facacbcfd9013cf87d7a9536a0f059d924d72e] [ 1643.344931] ntfs_unlink_inode+0x15d/0x380 [ntfs3 64facacbcfd9013cf87d7a9536a0f059d924d72e] [ 1643.344942] ntfs_unlink+0x4d/0x80 [ntfs3 64facacbcfd9013cf87d7a9536a0f059d924d72e] [ 1643.344953] vfs_unlink+0x114/0x2a0 [ 1643.344958] do_unlinkat+0x2b6/0x350 [ 1643.344962] __x64_sys_unlink+0xb7/0x1e0 [ 1643.344964] do_syscall_64+0x81/0x970 [ 1643.344968] ? mntput+0x60/0x360 [ 1643.344972] ? _copy_to_user+0x31/0x40 [ 1643.344976] ? __x64_sys_newlstat+0x24f/0x2e0 [ 1643.344979] ? ntfs_read_hdr+0x1d4/0x2a0 [ntfs3 64facacbcfd9013cf87d7a9536a0f059d924d72e] [ 1643.344992] ? syscall_exit_work+0xe8/0x1b0 [ 1643.344997] ? do_syscall_64+0x244/0x970 [ 1643.345000] ? syscall_exit_work+0xe8/0x1b0 [ 1643.345002] ? do_syscall_64+0x244/0x970 [ 1643.345005] ? do_unlinkat+0x317/0x350 [ 1643.345008] ? syscall_exit_work+0xe8/0x1b0 [ 1643.345011] ? do_syscall_64+0x244/0x970 [ 1643.345013] ? do_syscall_64+0x244/0x970 [ 1643.345015] ? syscall_exit_work+0xe8/0x1b0 [ 1643.345018] ? do_syscall_64+0x244/0x970 [ 1643.345020] ? syscall_exit_work+0xe8/0x1b0 [ 1643.345023] ? do_syscall_64+0x244/0x970 [ 1643.345025] ? do_syscall_64+0x244/0x970 [ 1643.345027] ? irq_exit_rcu+0x55/0x100 [ 1643.345030] entry_SYSCALL_64_after_hwframe+0x76/0x7e [ 1643.345033] RIP: 0033:0x7f5fd9f4a7a8 [ 1643.345054] Code: 0c e8 98 ed ff ff 48 83 c4 18 83 e8 01 c3 e9 dd e3 ff ff 48 8d 35 28 0b 04 00 e9 d1 e3 ff ff 48 83 ec 08 b8 57 00 00 00 0f 05 <89> c2 83 f8 eb 74 0d 48 63 fa e8 ef da fd ff 48 83 c4 08 c3 b8 54 [ 1643.345056] RSP: 002b:00007f5fd99b8d00 EFLAGS: 00000206 ORIG_RAX: 0000000000000057 [ 1643.345058] RAX: ffffffffffffffda RBX: 00007f5fd9dee160 RCX: 00007f5fd9f4a7a8 [ 1643.345060] RDX: 0000000000000000 RSI: 00007f5fd99b8d30 RDI: 00007f5fd981d690 [ 1643.345061] RBP: 00007f5fd99b8d30 R08: 00007f5fd99b8c70 R09: 00000000ffffff9c [ 1643.345062] R10: 0000000000000000 R11: 0000000000000206 R12: 00007f5fd981d5d0 [ 1643.345064] R13: 00007f5fd99b8d30 R14: 0000000000000000 R15: 00007f5fd99b8ed0 [ 1643.345067] </TASK> [ 1643.345068] ---[ end trace 0000000000000000 ]---
But no visible warnings or error in the interface.
Konstantin Komarov
maintainerQuoted 232 lines · On 11/26/25 15:08, [email protected] wrote:
Nov 26, 2025, 12:09 by [email protected]:
Quoted 166 lines
Nov 26, 2025, 09:54 by [email protected]:
Quoted 164 lines · On 11/23/25 11:35, [email protected] wrote:
Quoted 154 lines
Nov 19, 2025, 16:11 by [email protected]:
Quoted 61 lines · On 11/19/25 11:57, [email protected] wrote:
Quoted 50 lines
Nov 14, 2025, 10:39 by [email protected]:
Quoted 47 lines · On 10/4/25 13:26, [email protected] wrote:
Quoted 29 lines
I'm posting there first time, so I through it like generic bug mailing list, but I can say, that, for example, version 6.12.50-lts a little less pron to bug, but it occurs there as well. I'm using Linux 6.16.10 for now. So, bug is present a while, but i hardly to tell, in what kernel version it appeared, cause earlier, I didn't manage that big amount of files. Again, it's okay with ntfs-3g.
Oct 4, 2025, 14:12 by [email protected]:
Quoted 24 lines · On 10/4/25 13:03, [email protected] wrote:
Quoted 10 lines
Oct 4, 2025, 11:55 by [email protected]:
Quoted 7 lines
I'm expecting serious bug when writing large amount of files to NTFS hard drive, shortly after memory allocation errors and system crash occurs/ Firstly, I thought, than this is bug in linux kernel itself, somewhat disk cache allocation error, but when I tested same operations on ext4 drive or using NTFS-3G module, bug is not present.
Quoted 3 lines
To reproduce a bug, try cloning two big Git repositories to an external NTFS drive mounted with ntfs3 module.
Thx for the report.
What kernel version are your using?
You CCed the regression list, so I assume this used to work, which leads to two more questions: What was the last version where this works? Could you bisect?
Ciao, Thorsten
Hello,
I tried to reproduce the problem by cloning multiple large Git repositories onto an ntfs3-mounted NTFS volume, but the issue did not trigger on my side and no system crash occurred.
Could you provide a bit more detail about your case?
- What appears in the kernel logs before the crash or before the process enters the unkillable state? Any warnings, memory allocation errors, stack traces, or lockdep messages from dmesg would be very useful.
- What mount options are you using for ntfs3?
- Roughly how much data or how many files are needed to trigger the behavior?
- Does the problem happen immediately, or only after sustained I/O or high memory pressure?Quoted 8 lines
Quoted 6 lines
If you can capture the relevant portion of dmesg or the last messages shown before the freeze/hang, that would help a lot in diagnosing this.
Regards,
KonstantinThanks for response. After that situation, I changed driver to NTFS-3G, so were with stable work, but degraded performance, but at least without crashes. Today, after your response, I reverted again to ntfs3 to test cases, that I mention and I can't reproduce it either. As it didn't response from you for so long before now, I changed so many Linux OS settings, disabled USB autosuspend, disabled rtkit-daemon canary-thread, so there no more highest RT threads, changed some scheduling and memory management options, so now it's stable. I'm not expecting any crashes and lockups even with large amount of files. Unfortunately, during bug presenting I didn't able catch dmesg messages, `cause system crashed. The only my assumption, that it may had MFT allocation bug, when disk is practically full and driver have to handle MFT allocation, additional space, where new pieces is stored. I guess it, 'cause when I tested new ntfsplus driver, I expected this bug, when downloading multiple chunks of files, but without system crashing, just the download manager aborted file downloading with "memory allocation error" with corresponding dmesg errors. Right now, I don't expecting any issues with ntfs3, so I'll respond, if there will be any. Thank you.
Hello,
Quoted 9 lines
Thanks for the update and for taking the time to retest. Even though the issue is not currently reproducible, I’ll keep your report and the possible MFT allocation cause in mind. If it happens again and you’re able to capture any logs, please let me know - any extra information would be very helpful.
Regards,
KonstantinI copied folder with many small files to ext. disk with ntfs with 4 GB free space. I got MFT allocation error ntfsplus driver again, so when I returned to regular ntfs3 driver, files copied correctly and no file corruptions and issues visually at all, but just in case, i looked in dmesg logs and there massive kernel warning:
[ 305.576860] memmove: detected field-spanning write (size 3552) of single field "re" at
fs/ntfs3/index.c:863(siz e 0)
[ 305.576882] WARNING: CPU: 2 PID: 10325 atfs/ntfs3/index.c:863indx_delete_entry+0x1790/0x1870[ntfs3] [ 305.576901] Modules linked in: ntfs3snd_seq_dummysnd_hrtimersnd_seqsnd_seq_devicenfnetlink_queueudp_diagnf_conntrack_netlinktcp_diaginet_diagnft_masqnft_reject_ipv4act_csumcls_u32sch_htbnft_queuebridgenft_chain_natnf_natstp llc ccmalgif_aeadcrypto_nulldes3_ede_x86_64cbcdes_genericlibdesalgif_skciphercmac md4 algif_hashaf_algoverlaynft_reject_inetnf_reject_ipv4nf_reject_ipv6nft_rejectnft_limitnft_ctnf_conntracknf_defrag_ipv6nf_defrag_ipv4nf_tableslibcrc32c mousedevums_realtekjoydev uasusb_storageintel_rapl_msrintel_rapl_commonx86_pkg_temp_thermalintel_powerclampcoretempiTCO_wdtsnd_hda_codec_realtekintel_pmc_bxtiwldvmkvm_intelsnd_hda_codec_genericat24snd_hda_codec_hdmisnd_hda_scodec_componentkvmmei_pxpsnd_hda_inteliTCO_vendor_supportmei_hdcpmac80211 irqbypasssnd_intel_dspcfgsnd_intel_sdw_acpilibarc4 psmouse raplsnd_hda_codecserio_rawatkbdintel_cstateiwlwifisnd_hda_corelibps2i2c_i801vfatintel_uncorefat r8169vivaldi_fmappcspkrsnd_hwdep[ 305.576964]i2c_smbuscfg80211i2c_muxsnd_pcmrealtekmdio_devresrfkillsnd_timerlpc_ichlibphymei_mesnd m ei soundcorefujitsu_laptopsparse_keymapmac_hidsch_cakevboxnetflt(OE) vboxnetadp(OE) vboxdrv(OE)usbip_hostusbip_coretcp_bbrpkcs8_key_parseri2c_devsgcrypto_userntsync loopdm_modnfnetlink zram 842_decompress 842_compre sslz4hc_compresslz4_compressbpf_preloadip_tablesx_tablespolyval_clmulni(E)aesni_intel(E)polyval_generic(E)ghash_clmulni_intel(E)crypto_simd(E)i8042(E) cryptd(E)crc32_pclmul(E)sha256_ssse3(E)sha512_ssse3(E)gf128mul(E )sha1_ssse3(E)crct10dif_pclmul(E)serio(E) i915(E) ext4(E) video(E)drm_display_helper(E)wmi(E) jbd2(E) mbcache(
E) usbhid(E)crc32c_intel(E)i2c_algo_bit(E)crc32c_generic(E)crc16(E) cec(E)intel_gtt(E)hid_generic(E)ttm(E) drm_buddy(E)
[ 305.577018] CPU: 2 UID: 0 PID: 10325 Comm: pool-2 Tainted: G S U W OE 6.12.58-1-cachyos-lts #109c56554d06e0af6d4f01298236cdf5f899167af
[ 305.577024] Tainted: [S]=CPU_OUT_OF_SPEC, [U]=USER, [W]=WARN, [O]=OOT_MODULE, [E]=UNSIGNED_MODULE [ 305.577026] Hardware name: FUJITSU LIFEBOOK AH532/G21/FJNBB1D, BIOS Version 1.12 06/10/2019
[ 305.577027] RIP: 0010:indx_delete_entry+0x1790/0x1870 [ntfs3]
[ 305.577039] Code: ff 48 c7 c2 90 e3 a4 c1 48 c7 c7 b8 e3 a4 c1 4c 89 54 24 70 4c 89 44 24 68 48 89 74 24 60 c6 0 5 45 f4 00 00 01 e8 70 6f ea c4 <0f> 0b 4c 8b 54 24 70 4c 8b 44 24 68 48 8b 74 24 60 e9 b4 fd ff ff [ 305.577041] RSP: 0018:ffffd4b4204479b0 EFLAGS: 00010246
[ 305.577043] RAX: 0000000000000000 RBX:ffff8d851754a200RCX: 0000000000000027
[ 305.577045] RDX:ffff8d86ef3218c8RSI: 0000000000000001 RDI:ffff8d86ef3218c0
[ 305.577046] RBP:ffff8d85f9eecbd0R08:00000000ffffefffR09: 0000000000000003
[ 305.577048] R10:ffffffff88a5d760R11:ffffd4b420447800R12: 0000000000000002
[ 305.577049] R13: 0000000000000000 R14:ffff8d85f9eecca0R15:ffff8d851754b800
[ 305.577051] FS: 00007ae95eb086c0(0000) GS:ffff8d86ef300000(0000) knlGS:0000000000000000
[ 305.577053] CS: 0010 DS: 0000 ES: 0000 CR0: 0000000080050033
[ 305.577055] CR2:00005ddc06731088CR3:000000021e9ac003CR4:00000000001706f0
[ 305.577057] Call Trace:
[ 305.577059] <TASK>
[ 305.577064]ni_remove_name+0x10b/0x270[ntfs3ffcddedc8a078abf7548ec42d6d01f0087e2d815]
[ 305.577078]ntfs_unlink_inode+0x15e/0x360[ntfs3ffcddedc8a078abf7548ec42d6d01f0087e2d815]
[ 305.577090]ntfs_unlink+0x44/0x70[ntfs3ffcddedc8a078abf7548ec42d6d01f0087e2d815]
[ 305.577100]vfs_unlink+0x114/0x2a0
[ 305.577105]do_unlinkat+0x2ea/0x380
[ 305.577110]__x64_sys_unlink+0xb7/0x1e0
[ 305.577114]do_syscall_64+0x7b/0x190
[ 305.577120] ?__x64_sys_futex+0x353/0x550
[ 305.577125] ?syscall_exit_to_user_mode_prepare+0x11e/0x1b0
[ 305.577130] ?syscall_exit_to_user_mode+0x37/0x190
[ 305.577134] ?do_syscall_64+0x87/0x190
[ 305.577138] ?__x64_sys_futex+0x2cc/0x550
[ 305.577141] ?syscall_exit_to_user_mode_prepare+0x11e/0x1b0
[ 305.577144] ?syscall_exit_to_user_mode+0x37/0x190
[ 305.577148] ?do_syscall_64+0x87/0x190
[ 305.577151] ?vfs_write+0x114/0x4b0
[ 305.577154] ?__call_rcu_common+0xd4/0xab0
[ 305.577158] ?evict+0x1ec/0x390
[ 305.577161] ?mntput+0x61/0x3e0
[ 305.577164] ?syscall_exit_to_user_mode_prepare+0x11e/0x1b0
[ 305.577168] ?syscall_exit_to_user_mode+0x37/0x190
[ 305.577171] ?do_syscall_64+0x87/0x190
[ 305.577174] ?syscall_exit_to_user_mode_prepare+0x11e/0x1b0
[ 305.577177] ?syscall_exit_to_user_mode+0x37/0x190
[ 305.577181] ?do_syscall_64+0x87/0x190
[ 305.577184] ?do_syscall_64+0x87/0x190
[ 305.577187] ?do_syscall_64+0x87/0x190
[ 305.577189] ?irqentry_exit_to_user_mode+0x2c/0x190
[ 305.577193]entry_SYSCALL_64_after_hwframe+0x76/0x7e
[ 305.577198] RIP: 0033:0x7ae96950e39b
[ 305.577220] Code: ff 67 e8 08 93 01 00 0f 1f 84 00 00 00 00 00 f3 0f 1e fa b8 5f 00 00 00 0f 05 c3 0f 1f 40 00 f 3 0f 1e fa b8 57 00 00 00 0f 05 <48> 3d 00 f0 ff ff 77 05 c3 0f 1f 40 00 48 8b 15 41 99 0f 00 f7 d8 [ 305.577221] RSP: 002b:00007ae95eb07728 EFLAGS: 00000206ORIG_RAX: 0000000000000057
[ 305.577224] RAX: ffffffffffffffda RBX:00007ae948002e70RCX:00007ae96950e39b
[ 305.577226] RDX: 0000000000000055 RSI:00007ae948179220RDI:00007ae948002e70
[ 305.577227] RBP:00007ae95eb07740R08: 0000000000000000 R09:00005ddc05ec28e0
[ 305.577228] R10: aaaaaaaaaaaaaaab R11: 0000000000000206 R12:00007ae95eb077b0
[ 305.577230] R13:00007ae9481786c0R14:00005ddc06b78be0R15: 0000000000000008
[ 305.577233] </TASK>
[ 305.577234] ---[ end trace 0000000000000000 ]---Quoted 2 lines
Again there is no any visual error and file corruptions error, if I didn't go to dmesg logs, I didn't notice any issues, but there is some reason for this warning.
Hello,
Thanks for the report. To look into this, I need a bit more detail. Could you provide the kernel version you were running when the warning occurred, as well as the exact mount options used? This information would be very helpful for diagnosing the issue.
Quoted 5 lines
Quoted 3 lines
Regards,
KonstantinHello, kernel version was 6.12.58 and mount options was (rw,nosuid,nodev,noexec,noatime,uid=0,gid=0,iocharset=utf8,uhelper=udisks) at the time of warning occurring.
Today the same dmesg warning occur with same case of writing multiple chunks of files, same mount options, but with kernel version 6.17.9:
[ 1643.344671] memmove: detected field-spanning write (size 2032) of single field "re" at fs/ntfs3/index.c:863 (size 0) [ 1643.344705] WARNING: CPU: 3 PID: 30215 at fs/ntfs3/index.c:863 indx_delete_entry+0x179d/0x1880 [ntfs3] [ 1643.344728] Modules linked in: nft_redir nft_nat tun xt_MASQUERADE nft_compat veth ntfs3 snd_seq_dummy snd_hrtimer snd_seq snd_seq_device nfnetlink_queue udp_diag nf_conntrack_netlink tcp_diag inet_diag nft_masq nft_reject_ipv4 act_csum cls_u32 sch_htb nft_queue nft_chain_nat nf_nat bridge stp llc ccm algif_aead des3_ede_x86_64 des_generic libdes algif_skcipher cmac md4 algif_hash af_alg overlay nft_reject_inet nf_reject_ipv4 nf_reject_ipv6 nft_reject nft_limit nft_ct nf_conntrack nf_defrag_ipv6 nf_defrag_ipv4 nf_tables ums_realtek uas iwldvm usb_storage mousedev intel_rapl_msr mac80211 libarc4 mei_pxp intel_rapl_common mei_hdcp x86_pkg_temp_thermal intel_powerclamp at24 iTCO_wdt iwlwifi vfat intel_pmc_bxt fat coretemp iTCO_vendor_support r8169 kvm_intel realtek rapl intel_cstate mdio_devres snd_hda_codec_intelhdmi cfg80211 snd_hda_codec_nvhdmi snd_hda_codec_alc269 snd_hda_scodec_component snd_hda_codec_hdmi libphy intel_uncore snd_hda_codec_realtek_lib snd_hda_codec_generic snd_hda_intel mdio_bus rfkill snd_hda_codec [ 1643.344819] snd_hda_core snd_intel_dspcfg snd_intel_sdw_acpi snd_hwdep snd_pcm joydev mei_me snd_timer fujitsu_laptop i2c_i801 snd sparse_keymap mac_hid psmouse i2c_smbus pcspkr mei soundcore i2c_mux lpc_ich sch_cake vboxnetflt(OE) vboxnetadp(OE) vboxdrv(OE) kvm irqbypass usbip_host usbip_core tcp_bbr pkcs8_key_parser i2c_dev sg crypto_user ntsync loop dm_mod nfnetlink zram 842_decompress 842_compress lz4hc_compress lz4_compress ip_tables x_tables aesni_intel(E) ghash_clmulni_intel(E) polyval_clmulni(E) serio_raw(E) i915(E) video(E) wmi(E) drm_display_helper(E) intel_gtt(E) drm_buddy(E) ttm(E) i2c_algo_bit(E) cec(E) [ 1643.344863] CPU: 3 UID: 1000 PID: 30215 Comm: filec Tainted: G S U OE 6.17.9-zen1-1-zen #1 PREEMPT(voluntary) 63aa26d4b39f24c743d2811fd066d702705167eb [ 1643.344869] Tainted: [S]=CPU_OUT_OF_SPEC, [U]=USER, [O]=OOT_MODULE, [E]=UNSIGNED_MODULE [ 1643.344870] Hardware name: FUJITSU LIFEBOOK AH532/G21/FJNBB1D, BIOS Version 1.12 06/10/2019 [ 1643.344873] RIP: 0010:indx_delete_entry+0x179d/0x1880 [ntfs3] [ 1643.344888] Code: c2 b0 b5 88 c1 48 89 c6 4c 89 54 24 70 48 c7 c7 d8 b5 88 c1 4c 89 44 24 68 48 89 44 24 60 c6 05 98 b1 1f 00 01 e8 93 b2 ee ed <0f> 0b 4c 8b 54 24 70 4c 8b 44 24 68 48 8b 44 24 60 e9 b1 fd ff ff [ 1643.344891] RSP: 0018:ffffcfc0eaa6b8c8 EFLAGS: 00010246 [ 1643.344895] RAX: 0000000000000000 RBX: ffff888a13088a00 RCX: 0000000000000000 [ 1643.344897] RDX: ffff888bef39cfc8 RSI: 0000000000000001 RDI: ffff888bef39cfc0 [ 1643.344899] RBP: ffff88890f8543f0 R08: ffffffffb1ab8b01 R09: 0000000000000000 [ 1643.344900] R10: ffffffffb1a60be0 R11: ffffcfc0eaa6b6f8 R12: 0000000000000001 [ 1643.344901] R13: 0000000000000000 R14: ffff88890f8544c0 R15: ffff888a13089200 [ 1643.344903] FS: 00007f5fd99b9b38(0000) GS:ffff888c3cc46000(0000) knlGS:0000000000000000 [ 1643.344905] CS: 0010 DS: 0000 ES: 0000 CR0: 0000000080050033 [ 1643.344907] CR2: 00007f5fd8ee0000 CR3: 00000001d5546006 CR4: 00000000001706f0 [ 1643.344909] Call Trace: [ 1643.344912] <TASK> [ 1643.344917] ni_remove_name+0x10a/0x250 [ntfs3 64facacbcfd9013cf87d7a9536a0f059d924d72e] [ 1643.344931] ntfs_unlink_inode+0x15d/0x380 [ntfs3 64facacbcfd9013cf87d7a9536a0f059d924d72e] [ 1643.344942] ntfs_unlink+0x4d/0x80 [ntfs3 64facacbcfd9013cf87d7a9536a0f059d924d72e] [ 1643.344953] vfs_unlink+0x114/0x2a0 [ 1643.344958] do_unlinkat+0x2b6/0x350 [ 1643.344962] __x64_sys_unlink+0xb7/0x1e0 [ 1643.344964] do_syscall_64+0x81/0x970 [ 1643.344968] ? mntput+0x60/0x360 [ 1643.344972] ? _copy_to_user+0x31/0x40 [ 1643.344976] ? __x64_sys_newlstat+0x24f/0x2e0 [ 1643.344979] ? ntfs_read_hdr+0x1d4/0x2a0 [ntfs3 64facacbcfd9013cf87d7a9536a0f059d924d72e] [ 1643.344992] ? syscall_exit_work+0xe8/0x1b0 [ 1643.344997] ? do_syscall_64+0x244/0x970 [ 1643.345000] ? syscall_exit_work+0xe8/0x1b0 [ 1643.345002] ? do_syscall_64+0x244/0x970 [ 1643.345005] ? do_unlinkat+0x317/0x350 [ 1643.345008] ? syscall_exit_work+0xe8/0x1b0 [ 1643.345011] ? do_syscall_64+0x244/0x970 [ 1643.345013] ? do_syscall_64+0x244/0x970 [ 1643.345015] ? syscall_exit_work+0xe8/0x1b0 [ 1643.345018] ? do_syscall_64+0x244/0x970 [ 1643.345020] ? syscall_exit_work+0xe8/0x1b0 [ 1643.345023] ? do_syscall_64+0x244/0x970 [ 1643.345025] ? do_syscall_64+0x244/0x970 [ 1643.345027] ? irq_exit_rcu+0x55/0x100 [ 1643.345030] entry_SYSCALL_64_after_hwframe+0x76/0x7e [ 1643.345033] RIP: 0033:0x7f5fd9f4a7a8 [ 1643.345054] Code: 0c e8 98 ed ff ff 48 83 c4 18 83 e8 01 c3 e9 dd e3 ff ff 48 8d 35 28 0b 04 00 e9 d1 e3 ff ff 48 83 ec 08 b8 57 00 00 00 0f 05 <89> c2 83 f8 eb 74 0d 48 63 fa e8 ef da fd ff 48 83 c4 08 c3 b8 54 [ 1643.345056] RSP: 002b:00007f5fd99b8d00 EFLAGS: 00000206 ORIG_RAX: 0000000000000057 [ 1643.345058] RAX: ffffffffffffffda RBX: 00007f5fd9dee160 RCX: 00007f5fd9f4a7a8 [ 1643.345060] RDX: 0000000000000000 RSI: 00007f5fd99b8d30 RDI: 00007f5fd981d690 [ 1643.345061] RBP: 00007f5fd99b8d30 R08: 00007f5fd99b8c70 R09: 00000000ffffff9c [ 1643.345062] R10: 0000000000000000 R11: 0000000000000206 R12: 00007f5fd981d5d0 [ 1643.345064] R13: 00007f5fd99b8d30 R14: 0000000000000000 R15: 00007f5fd99b8ed0 [ 1643.345067] </TASK> [ 1643.345068] ---[ end trace 0000000000000000 ]---
Quoted 1 line
But no visible warnings or error in the interface.
Hello, Thanks for providing the kernel version, mount options, and the additional dmesg warning. I will investigate this and follow up with the results once I have more details. Regards, Konstantin