File operations on NTFS drives causes kernel BUG at fs/iomap/buffered-io.c:1061
[email protected] Sat, 2 May 2026 12:24:55 +0200 (CEST)
| Newsgroups | dev.linux.lists.ntfs3 |
|---|---|
| Message-ID | <[email protected]> |
Greetings, in the last few days (since updating to kernel 7.0), when I'm working with external NTFS-formatted usb drives, file operations randomly fail (e.g. git clone, rm, etc. suddenly "freeze") and this is what I see in dmesg: [17246.773355] ------------[ cut here ]------------ [17246.773369] kernel BUG at fs/iomap/buffered-io.c:1061! [17246.773382] Oops: invalid opcode: 0000 [#2] SMP NOPTI [17246.773387] CPU: 3 UID: 1000 PID: 295166 Comm: git Tainted: G D OE 7.0.3-arch1-1 #1 PREEMPT(full) 653fa807272d34162f0f7604ba64e0a2aa402e05 [17246.773394] Tainted: [D]=DIE, [O]=OOT_MODULE, [E]=UNSIGNED_MODULE [17246.773395] Hardware name: PCSpecialist Lafite Pro V 14M/X4SP4NAL, BIOS N.1.10PCS02 03/20/2025 [17246.773397] RIP: 0010:iomap_write_end+0x19b/0x1a0 [17246.773407] Code: 8b 38 e8 28 7f f9 ff e9 4b ff ff ff 48 8b 03 a8 08 74 10 e9 ce fe ff ff eb 8a 0f 0b e9 67 ff ff ff 0f 0b 31 c0 e9 32 ff ff ff <0f> 0b 0f 1f 00 90 90 90 90 90 90 90 90 90 90 90 90 90 90 90 90 f3 [17246.773409] RSP: 0018:ffffcd9becfff940 EFLAGS: 00010297 [17246.773412] RAX: 0000000000000040 RBX: ffffeeab172009c0 RCX: ffffeeab172009c0 [17246.773413] RDX: 0000000000000fc0 RSI: 0000000000000073 RDI: ffff8bc0835ecfc0 [17246.773414] RBP: 0000000000000073 R08: ffffcd9becfff9b8 R09: 0000000000000024 [17246.773415] R10: ffffcd9becfffb98 R11: ffff8bc8c8fe4380 R12: 0000000000000000 [17246.773415] R13: ffff8bc51615b5b0 R14: 0000000000000073 R15: 0000000000000000 [17246.773416] FS: 00007f897dfcc740(0000) GS:ffff8bd00d952000(0000) knlGS:0000000000000000 [17246.773417] CS: 0010 DS: 0000 ES: 0000 CR0: 0000000080050033 [17246.773418] CR2: 00007f897e0d2007 CR3: 000000072d1de000 CR4: 0000000000f50ef0 [17246.773420] PKRU: 55555554 [17246.773421] Call Trace: [17246.773423] <TASK> [17246.773425] iomap_file_buffered_write+0x20f/0x420 [17246.773436] ntfs_file_write_iter+0x89d/0xc00 [ntfs3 38413653d82eddff25f5aed43f273fd66f9943c1] [17246.773447] ? vfs_write+0x2e6/0x480 [17246.773452] ? vfs_write+0x2e6/0x480 [17246.773453] ? security_file_permission+0x48/0x130 [17246.773460] vfs_write+0x25d/0x480 [17246.773462] ksys_write+0x73/0xf0 [17246.773465] do_syscall_64+0x12b/0x15f0 [17246.773471] ? filemap_map_pages+0x4e3/0x770 [17246.773478] ? do_fault+0x353/0x5c0 [17246.773482] ? __handle_mm_fault+0x956/0xf80 [17246.773484] ? count_memcg_events+0xd7/0x190 [17246.773488] ? handle_mm_fault+0x1d7/0x2d0 [17246.773489] ? do_user_addr_fault+0x21a/0x680 [17246.773495] ? exc_page_fault+0x82/0x1d0 [17246.773498] ? __irq_exit_rcu+0x4c/0xf0 [17246.773502] entry_SYSCALL_64_after_hwframe+0x76/0x7e [17246.773505] RIP: 0033:0x7f897dc933be [17246.773562] Code: 4d 89 d8 e8 64 bb 00 00 4c 8b 5d f8 41 8b 93 08 03 00 00 59 5e 48 83 f8 fc 74 11 c9 c3 0f 1f 80 00 00 00 00 48 8b 45 10 0f 05 <c9> c3 83 e2 39 83 fa 08 75 e7 e8 03 ff ff ff 0f 1f 00 f3 0f 1e fa [17246.773563] RSP: 002b:00007ffe7bdc3b80 EFLAGS: 00000202 ORIG_RAX: 0000000000000001 [17246.773565] RAX: ffffffffffffffda RBX: 0000000000000073 RCX: 00007f897dc933be [17246.773566] RDX: 0000000000000073 RSI: 00007f897e0d2024 RDI: 0000000000000003 [17246.773567] RBP: 00007ffe7bdc3b90 R08: 0000000000000000 R09: 0000000000000000 [17246.773567] R10: 0000000000000000 R11: 0000000000000202 R12: 00007f897e0d2000 [17246.773568] R13: 0000000000000003 R14: 00007f897e0d2024 R15: 0000000000000073 [17246.773569] </TASK> [17246.773570] Modules linked in: ntfs3 ses enclosure scsi_transport_sas uas usb_storage rfcomm cmac algif_hash algif_skcipher af_alg snd_seq_dummy snd_hrtimer snd_seq snd_seq_device nft_fib_inet nft_fib_ipv4 nft_fib_ipv6 nft_fib nft_reject_inet nf_reject_ipv4 nf_reject_ipv6 nft_reject nft_ct nft_chain_nat nf_nat nf_conntrack nf_defrag_ipv6 nf_defrag_ipv4 nf_tables bnep vfat fat r8153_ecm snd_acp70 cdc_ether snd_acp_i2s snd_acp_pdm snd_acp_pcm usbnet snd_sof_amd_acp70 snd_sof_amd_acp63 snd_sof_amd_vangogh snd_sof_amd_rembrandt snd_sof_amd_renoir snd_sof_amd_acp snd_sof_pci snd_sof_xtensa_dsp snd_sof mt7921e snd_sof_utils snd_pci_ps snd_soc_acpi_amd_match mt7921_common snd_soc_acpi_amd_sdca_quirks snd_amd_sdw_acpi soundwire_amd mt792x_lib soundwire_generic_allocation soundwire_bus mt76_connac_lib snd_hda_codec_atihdmi snd_hda_codec_conexant snd_soc_sdca btusb mt76 snd_hda_codec_generic btmtk snd_hda_codec_hdmi snd_soc_core btrtl uvcvideo btbcm videobuf2_vmalloc snd_compress snd_hda_intel ac97_bus uvc btintel [17246.773619] snd_pcm_dmaengine videobuf2_memops snd_hda_codec snd_rpl_pci_acp6x videobuf2_v4l2 videobuf2_common snd_acp_pci amd_atl snd_amd_acpi_mach intel_rapl_msr snd_hda_core intel_rapl_common snd_intel_dspcfg mac80211 bluetooth dwmac_motorcomm spd5118 snd_acp_legacy_common videodev snd_intel_sdw_acpi snd_pci_acp6x stmmac_libpci snd_hwdep r8152 mii snd_pci_acp5x mc asus_wmi stmmac snd_pcm snd_rn_pci_acp3x cfg80211 sparse_keymap wmi_bmof rapl amd_pmf pcs_xpcs snd_timer snd_acp_config snd_soc_acpi i2c_piix4 amdtee phylink snd k10temp amdxdna rfkill mdio_devres soundcore snd_pci_acp3x joydev i2c_smbus libarc4 amd_sfh libphy platform_profile mousedev mdio_bus amd_pmc ptp pps_core mac_hid nfnetlink dm_crypt encrypted_keys trusted asn1_encoder tee ucsi_acpi nvme sdhci_pci typec_ucsi sdhci_uhs2 roles nvme_core sdhci hid_multitouch typec cqhci nvme_keyring ghash_clmulni_intel aesni_intel nvme_auth thunderbolt sp5100_tco mmc_core hkdf yt6801(OE) i2c_hid_acpi i2c_hid serio_raw amdgpu vboxnetflt(OE) vboxnetadp(OE) amdxcp [17246.773676] i2c_algo_bit drm_ttm_helper ttm drm_exec drm_panel_backlight_quirks gpu_sched drm_suballoc_helper video wmi drm_buddy vboxdrv(OE) drm_display_helper cec dm_mirror kvm_amd dm_region_hash dm_log ccp dm_mod kvm ntsync irqbypass crypto_user pkcs8_key_parser sg [17246.773695] ---[ end trace 0000000000000000 ]--- [17246.773699] RIP: 0010:iomap_write_end+0x19b/0x1a0 [17246.773700] Code: 8b 38 e8 28 7f f9 ff e9 4b ff ff ff 48 8b 03 a8 08 74 10 e9 ce fe ff ff eb 8a 0f 0b e9 67 ff ff ff 0f 0b 31 c0 e9 32 ff ff ff <0f> 0b 0f 1f 00 90 90 90 90 90 90 90 90 90 90 90 90 90 90 90 90 f3 [17246.773701] RSP: 0018:ffffcd9beac67870 EFLAGS: 00010293 [17246.773702] RAX: 0000000000000040 RBX: ffffeeab17389e00 RCX: ffffeeab17389e00 [17246.773703] RDX: 0000000000000fc0 RSI: 00000000000000b6 RDI: ffff8bc085170fc0 [17246.773703] RBP: 00000000000000b6 R08: ffffcd9beac678e8 R09: 0000000000000000 [17246.773704] R10: ffffcd9beac67ac8 R11: ffff8bc0a0868000 R12: 0000000000000000 [17246.773705] R13: ffff8bc5212002e8 R14: 00000000000000b6 R15: 0000000000000000 [17246.773705] FS: 00007f897dfcc740(0000) GS:ffff8bd00d952000(0000) knlGS:0000000000000000 [17246.773706] CS: 0010 DS: 0000 ES: 0000 CR0: 0000000080050033 [17246.773707] CR2: 00007f897e0d2007 CR3: 000000072d1de000 CR4: 0000000000f50ef0 [17246.773707] PKRU: 55555554 I also noticed a similar bug reported on this forum: https://discuss.cachyos.org/t/kernel-bug-in-iomap-write-end-triggered-by-ntfs3-buffered-write-linux-7-0-1-cachyos/28546 I'm running Arch Linux with kernel 7.0.3, using gnome, wayland and vulkan (amd apu.) raoul