Hello,
I encountered a kernel BUG related to buffered writes on an NTFS3 filesystem. The crash occurs inside the generic iomap buffered‑IO path, called from ntfs_file_write_iter(). This appears to be a kernel‑side logic error rather than a userspace issue.
The issue has happened multiple times, but it is not yet reliably reproducible. It seems to occur under similar conditions (writes from a 32‑bit process to an NTFS3 volume), but not on every attempt.
System Information
-
Distribution: CachyOS (Arch‑based)
-
Kernel:
7.0.1‑1‑cachyos(PREEMPT) -
Hardware:
-
MSI MAG X570S Tomahawk Max WiFi (MS‑7D54)
-
BIOS 1.C0 (2025‑09‑03)
-
-
CPU: AMD Ryzen (8 cores visible in trace)
-
Filesystem involved:
ntfs3 -
Taint flags:
G O(NVIDIA out‑of‑tree module loaded) -
Full system log:
https://paste.cachyos.org/81db076.txt
Summary of the Issue
A kernel BUG is triggered during a buffered write to an NTFS3 filesystem.
The BUG originates in:
fs/iomap/buffered-io.c:1061
iomap_write_end+0x205/0x210
The write originates from a 32‑bit userspace process (Comm: CGenericAsyncFi), likely via int80 syscall emulation (Wine/Proton or similar).
This suggests a logic error in the interaction between NTFS3’s write_iter implementation and the generic iomap buffered write path.
Kernel Trace (excerpt)
kernel BUG at fs/iomap/buffered-io.c:1061!
Oops: invalid opcode: 0000 [#1] SMP NOPTI
CPU: 8 PID: 33291 Comm: CGenericAsyncFi Tainted: G O 7.0.1-1-cachyos
RIP: 0010:iomap_write_end+0x205/0x210
Call Trace:
iomap_file_buffered_write+0x283/0x490
ntfs_file_write_iter+0x2b3/0x300 [ntfs3]
vfs_write+0x2b6/0x3e0
__ia32_sys_write+0x84/0xf0
do_int80_emulation+0x136/0xa40
The full trace is included in the linked log file.
Reproduction Context
-
The issue has occurred multiple times, but not deterministically.
-
It always happened during writes to an NTFS3‑mounted volume.
-
The triggering process was a 32‑bit application performing write operations.
-
The crash occurs during buffered I/O, not direct I/O.
I can provide mount options or attempt further testing if needed.
Expected Behavior
Buffered writes to NTFS3 should complete normally without triggering a BUG in the iomap write‑end path.
Actual Behavior
The kernel hits a BUG() assertion in iomap_write_end(), causing an Oops and stack trace.
The system continues running, but the userspace process crashes.
Additional Notes
-
The kernel is tainted due to NVIDIA modules, but the crash occurs entirely within the filesystem and iomap code paths.
-
The BUG location suggests a logic error in iomap’s end‑write accounting or page state handling triggered by NTFS3.
-
I am able to test vanilla kernels or provide additional logs if required.
Please let me know if further debugging information, mount options, or additional testing would be helpful.
Thank you.
