Additional reproduction

After filing the initial report, I reproduced the same kernel BUG
outside of Docker and outside of the ESP-IDF build environment.

A native Go application (foundry) running directly on the host also
triggered the identical BUG while writing to the same NTFS3 volume:

kernel BUG at fs/iomap/buffered-io.c:1061
RIP: iomap_write_end+0x1ea/0x1f0
  iomap_write_iter
  iomap_file_buffered_write
  ntfs_file_write_iter [ntfs3]

The userspace process differs (foundry instead of ninja/cc1), but the
faulting instruction, call trace, and BUG location are identical. This
indicates the issue is not specific to Docker, ESP-IDF, Ninja, or GCC,
but can also be reproduced by an unrelated native application performing
writes to the NTFS3 filesystem.

This further supports that the regression is in the ntfs3/iomap buffered
write path introduced in 7.0.0-28.

This is the new trace:

[38827.020642] ------------[ cut here ]------------
[38827.020652] kernel BUG at fs/iomap/buffered-io.c:1061!
[38827.020661] Oops: invalid opcode: 0000 [#2] SMP NOPTI
[38827.020668] CPU: 2 UID: 1000 PID: 226289 Comm: foundry Tainted: G      D W  
O        7.0.0-28-generic #28~24.04.1-Ubuntu PREEMPT(lazy) 
[38827.020674] Tainted: [D]=DIE, [W]=WARN, [O]=OOT_MODULE
[38827.020676] Hardware name: Dell Inc. Precision 5570/04NDTC, BIOS 1.41.0 
04/23/2026
[38827.020679] RIP: 0010:iomap_write_end+0x1ea/0x1f0
[38827.020687] Code: 00 e8 ea 34 f9 ff e9 30 ff ff ff 48 8b 13 83 e2 08 74 10 
e9 88 fe ff ff eb 8d 0f 0b e9 5b ff ff ff 0f 0b 31 c0 e9 16 ff ff ff <0f> 0b 0f 
1f 40 00 90 90 90 90 90 90 90 90 90 90 90 90 90 90 90 90
[38827.020691] RSP: 0018:ffffcaa302007ae8 EFLAGS: 00010297
[38827.020695] RAX: 0000000000000000 RBX: fffff15ad2497740 RCX: 0000000000000fc0
[38827.020698] RDX: 0000000000000040 RSI: 00000000000000b2 RDI: ffff88c103f94fc0
[38827.020700] RBP: ffffcaa302007b18 R08: 0000000000000000 R09: 0000000000000000
[38827.020702] R10: 0000000000000000 R11: 0000000000000000 R12: ffffcaa302007bc0
[38827.020704] R13: 00000000000000b2 R14: 00000000000000b2 R15: 00000000000000b2
[38827.020706] FS:  00007f2766367740(0000) GS:ffff88c8dfce3000(0000) 
knlGS:0000000000000000
[38827.020709] CS:  0010 DS: 0000 ES: 0000 CR0: 0000000080050033
[38827.020711] CR2: 000000c0002e4000 CR3: 0000000358ac4006 CR4: 0000000000f72ef0
[38827.020714] PKRU: 55555554
[38827.020716] Call Trace:
[38827.020719]  <TASK>
[38827.020722]  iomap_write_iter+0x17a/0x340
[38827.020732]  iomap_file_buffered_write+0xa5/0x110
[38827.020740]  ntfs_file_write_iter+0x263/0x300 [ntfs3]
[38827.020762]  vfs_write+0x29e/0x480
[38827.020768]  ksys_write+0x71/0xf0
[38827.020773]  __x64_sys_write+0x19/0x30
[38827.020777]  x64_sys_call+0x259/0x26e0
[38827.020783]  do_syscall_64+0xd9/0x5b0
[38827.020791]  ? ksys_write+0xdb/0xf0
[38827.020796]  ? arch_exit_to_user_mode_prepare.isra.0+0xd/0xe0
[38827.020801]  ? do_syscall_64+0x116/0x5b0
[38827.020806]  entry_SYSCALL_64_after_hwframe+0x76/0x7e
[38827.020810] RIP: 0033:0x407cae
[38827.020814] Code: ff cc cc cc cc cc cc cc cc cc cc cc cc cc cc cc cc cc cc 
cc cc cc cc cc cc cc cc cc 49 89 f2 48 89 fa 48 89 ce 48 89 df 0f 05 <48> 3d 01 
f0 ff ff 76 15 48 f7 d8 48 89 c1 48 c7 c0 ff ff ff ff 48
[38827.020817] RSP: 002b:000000c000030cf8 EFLAGS: 00000206 ORIG_RAX: 
0000000000000001
[38827.020820] RAX: ffffffffffffffda RBX: 0000000000000003 RCX: 0000000000407cae
[38827.020822] RDX: 00000000000000b2 RSI: 000000c000151980 RDI: 0000000000000003
[38827.020824] RBP: 000000c000030d38 R08: 0000000000000000 R09: 0000000000000000
[38827.020826] R10: 0000000000000000 R11: 0000000000000206 R12: 000000c000030e68
[38827.020828] R13: 000000c000277a40 R14: 000000c000002380 R15: ffffffffffffffff
[38827.020832]  </TASK>
[38827.020834] Modules linked in: ftdi_sio usbserial hidp uas usb_storage 
nf_conntrack_netlink veth ntfs3 ccm xt_conntrack xt_MASQUERADE bridge stp llc 
xfrm_user xfrm_algo xt_set ip_set nft_chain_nat nf_nat nf_conntrack 
nf_defrag_ipv6 nf_defrag_ipv4 xt_addrtype nft_compat nf_tables rfcomm 
snd_seq_dummy snd_hrtimer overlay nvidia_uvm(O) cmac algif_hash 
snd_hda_codec_intelhdmi algif_skcipher snd_hda_codec_hdmi af_alg dell_pc 
snd_ctl_led snd_hda_codec_alc269 snd_hda_codec_realtek_lib 
snd_hda_scodec_component snd_hda_codec_generic snd_hda_intel 
snd_sof_pci_intel_tgl snd_sof_pci_intel_cnl snd_sof_intel_hda_generic 
soundwire_intel snd_sof_intel_hda_sdw_bpt snd_sof_intel_hda_common 
snd_soc_hdac_hda snd_sof_intel_hda_mlink snd_sof_intel_hda soundwire_cadence 
snd_sof_pci snd_sof_xtensa_dsp snd_sof snd_sof_utils snd_soc_acpi_intel_match 
snd_soc_acpi_intel_sdca_quirks soundwire_generic_allocation snd_soc_sdw_utils 
snd_soc_acpi soundwire_bus snd_soc_sdca crc8 snd_soc_avs snd_soc_hda_codec 
snd_hda_ext_core snd_hda_codec snd_hda_core
[38827.020898]  snd_intel_dspcfg intel_uncore_frequency snd_intel_sdw_acpi 
intel_uncore_frequency_common qrtr snd_hwdep snd_soc_core snd_compress 
x86_pkg_temp_thermal intel_powerclamp ac97_bus iwlmvm bnep snd_pcm_dmaengine 
coretemp dell_rbtn snd_pcm cmdlinepart binfmt_misc mac80211 dell_laptop 
kvm_intel spi_nor snd_seq_midi dell_wmi xe mei_hdcp mei_pxp mtd intel_rapl_msr 
snd_seq_midi_event uvcvideo libarc4 videobuf2_vmalloc drm_gpusvm_helper 
nvidia_drm(O) snd_rawmidi kvm uvc videobuf2_memops gpu_sched btusb 
videobuf2_v4l2 snd_seq drm_gpuvm hid_sensor_custom_intel_hinge hid_sensor_als 
btmtk videobuf2_common drm_exec dell_smbios hid_sensor_trigger irqbypass btrtl 
iwlwifi drm_suballoc_helper nvidia_modeset(O) kfifo_buf snd_seq_device 
ghash_clmulni_intel btbcm videodev dell_wmi_sysman snd_timer aesni_intel 
btintel hid_sensor_iio_common dcdbas nls_iso8859_1 rapl intel_cstate bluetooth 
cdc_acm mc nvidia(O) dell_wmi_ddv dell_smm_hwmon i915 dell_wmi_descriptor 
firmware_attributes_class wmi_bmof industrialio i2c_i801 snd cfg80211
[38827.020974]  mei_me spi_intel_pci i2c_smbus soundcore i2c_mux spi_intel mei 
processor_thermal_device_pci processor_thermal_device dptf_power intel_pmc_core 
processor_thermal_wt_hint platform_temperature_control drm_buddy pmt_telemetry 
int3403_thermal drm_ttm_helper processor_thermal_soc_slider joydev 
pmt_discovery processor_thermal_rfim drm_display_helper ttm pmt_class 
processor_thermal_rapl intel_pmc_ssram_telemetry int3400_thermal 
intel_rapl_common intel_hid cec intel_vsec processor_thermal_wt_req 
acpi_thermal_rel sparse_keymap acpi_tad acpi_pad processor_thermal_power_floor 
processor_thermal_mbox int340x_thermal_zone rc_core i2c_algo_bit 
platform_profile igen6_edac input_leds mac_hid serio_raw sch_fq_codel msr 
parport_pc ppdev lp parport efi_pstore nfnetlink dmi_sysfs ip_tables x_tables 
autofs4 hid_sensor_custom hid_sensor_hub intel_ishtp_hid ucsi_acpi typec_ucsi 
typec hid_multitouch hid_generic rtsx_pci_sdmmc nvme nvme_core intel_lpss_pci 
video psmouse nvme_keyring intel_ish_ipc rtsx_pci intel_lpss i2c_hid_acpi
[38827.021041]  nvme_auth thunderbolt idma64 intel_ishtp i2c_hid hkdf wmi hid 
pinctrl_tigerlake
[38827.021053] ---[ end trace 0000000000000000 ]---

-- 
You received this bug notification because you are a member of Ubuntu
Bugs, which is subscribed to Ubuntu.
https://bugs.launchpad.net/bugs/2161222

Title:
  Kernel BUG at fs/iomap/buffered-io.c:1061 (iomap_write_end) via
  ntfs_file_write_iter on 7.0.0-28-generic — regression, reproducible
  under parallel build load on ntfs3

To manage notifications about this bug go to:
https://bugs.launchpad.net/ubuntu/+source/linux-hwe-7.0/+bug/2161222/+subscriptions


-- 
ubuntu-bugs mailing list
[email protected]
https://lists.ubuntu.com/mailman/listinfo/ubuntu-bugs

Reply via email to