You are not logged in.

#1 2021-03-15 19:07:18

rmmod
Member
Registered: 2021-03-15
Posts: 1

ext4 + fast_commit + fallocate = segfault + BUG in dmesg

Hi,

I'm using fully updated Arch on my desktop, with the latest official kernel:

$ uname -a
Linux desktop 5.11.6-arch1-1 #1 SMP PREEMPT Thu, 11 Mar 2021 13:48:23 +0000 x86_64 GNU/Linux

lshw output:

desktop
    description: Computer
    width: 64 bits
    capabilities: smp vsyscall32
  *-core
       description: Motherboard
       physical id: 0
     *-memory
          description: System memory
          physical id: 0
          size: 32GiB
     *-cpu
          product: Intel(R) Core(TM) i5-4460  CPU @ 3.20GHz
          vendor: Intel Corp.
          physical id: 1
          bus info: cpu@0
          size: 3354MHz
          capacity: 3400MHz
          width: 64 bits
          capabilities: fpu fpu_exception wp vme de pse tsc msr pae mce cx8 apic sep mtrr pge mca cmov pat pse36 clflush dts acpi mmx fxsr sse sse2 ss ht tm pbe syscall nx pdpe1gb rdtscp x86-64 constant_tsc arch_perfmon pebs bts rep_good nopl xtopology nonstop_tsc cpuid aperfmperf pni pclmulqdq dtes64 monitor ds_cpl vmx est tm2 ssse3 sdbg fma cx16 xtpr pdcm pcid sse4_1 sse4_2 x2apic movbe popcnt tsc_deadline_timer aes xsave avx f16c rdrand lahf_lm abm cpuid_fault epb invpcid_single ssbd ibrs ibpb stibp tpr_shadow vnmi flexpriority ept vpid ept_ad fsgsbase tsc_adjust bmi1 avx2 smep bmi2 erms invpcid xsaveopt dtherm ida arat pln pts md_clear flush_l1d cpufreq
     *-pci
          description: Host bridge
          product: 4th Gen Core Processor DRAM Controller
          vendor: Intel Corporation
          physical id: 100
          bus info: pci@0000:00:00.0
          version: 06
          width: 32 bits
          clock: 33MHz
          configuration: driver=hsw_uncore
          resources: irq:0
        *-pci:0
             description: PCI bridge
             product: Xeon E3-1200 v3/4th Gen Core Processor PCI Express x16 Controller
             vendor: Intel Corporation
             physical id: 1
             bus info: pci@0000:00:01.0
             version: 06
             width: 32 bits
             clock: 33MHz
             capabilities: pci normal_decode bus_master cap_list
             configuration: driver=pcieport
             resources: irq:25 ioport:e000(size=4096) memory:f7e00000-f7efffff ioport:c00000000(size=6442450944)
           *-display
                description: VGA compatible controller
                product: Ellesmere [Radeon RX 470/480/570/570X/580/580X/590]
                vendor: Advanced Micro Devices, Inc. [AMD/ATI]
                physical id: 0
                bus info: pci@0000:01:00.0
                version: e7
                width: 64 bits
                clock: 33MHz
                capabilities: vga_controller bus_master cap_list rom
                configuration: driver=amdgpu latency=0
                resources: iomemory:c0-bf iomemory:d0-cf irq:39 memory:c00000000-cffffffff memory:d00000000-d001fffff ioport:e000(size=256) memory:f7e00000-f7e3ffff memory:c0000-dffff
           *-multimedia
                description: Audio device
                product: Ellesmere HDMI Audio [Radeon RX 470/480 / 570/580/590]
                vendor: Advanced Micro Devices, Inc. [AMD/ATI]
                physical id: 0.1
                bus info: pci@0000:01:00.1
                version: 00
                width: 64 bits
                clock: 33MHz
                capabilities: bus_master cap_list
                configuration: driver=snd_hda_intel latency=0
                resources: irq:38 memory:f7e60000-f7e63fff
        *-usb:0
             description: USB controller
             product: 9 Series Chipset Family USB xHCI Controller
             vendor: Intel Corporation
             physical id: 14
             bus info: pci@0000:00:14.0
             version: 00
             width: 64 bits
             clock: 33MHz
             capabilities: xhci bus_master cap_list
             configuration: driver=xhci_hcd latency=0
             resources: irq:34 memory:f7f00000-f7f0ffff
        *-communication
             description: Communication controller
             product: 9 Series Chipset Family ME Interface #1
             vendor: Intel Corporation
             physical id: 16
             bus info: pci@0000:00:16.0
             version: 00
             width: 64 bits
             clock: 33MHz
             capabilities: bus_master cap_list
             configuration: driver=mei_me latency=0
             resources: irq:35 memory:f7f18000-f7f1800f
        *-multimedia
             description: Audio device
             product: 9 Series Chipset Family HD Audio Controller
             vendor: Intel Corporation
             physical id: 1b
             bus info: pci@0000:00:1b.0
             version: 00
             width: 64 bits
             clock: 33MHz
             capabilities: bus_master cap_list
             configuration: driver=snd_hda_intel latency=0
             resources: irq:37 memory:f7f10000-f7f13fff
        *-pci:1
             description: PCI bridge
             product: 9 Series Chipset Family PCI Express Root Port 1
             vendor: Intel Corporation
             physical id: 1c
             bus info: pci@0000:00:1c.0
             version: d0
             width: 32 bits
             clock: 33MHz
             capabilities: pci normal_decode bus_master cap_list
             configuration: driver=pcieport
             resources: irq:26 memory:f7d00000-f7dfffff
           *-nvme
                description: NVMe device
                product: Samsung SSD 970 EVO Plus 1TB
                vendor: Samsung Electronics Co Ltd
                physical id: 0
                bus info: pci@0000:02:00.0
                logical name: /dev/nvme0
                version: 2B2QEXM7
                serial: S4EWNX0N519790K
                width: 64 bits
                clock: 33MHz
                capabilities: nvme nvm_express bus_master cap_list
                configuration: driver=nvme latency=0 nqn=nqn.2014.08.org.nvmexpress:144d144dS4EWNX0N519790K     Samsung SSD 970 EVO Plus 1TB state=live
                resources: irq:16 memory:f7d00000-f7d03fff
              *-namespace
                   description: NVMe disk
                   physical id: 1
                   bus info: nvme@0:1
                   logical name: /dev/nvme0n1
                   configuration: wwid=eui.0025385501b05c4e
        *-pci:2
             description: PCI bridge
             product: 9 Series Chipset Family PCI Express Root Port 3
             vendor: Intel Corporation
             physical id: 1c.2
             bus info: pci@0000:00:1c.2
             version: d0
             width: 32 bits
             clock: 33MHz
             capabilities: pci normal_decode bus_master cap_list
             configuration: driver=pcieport
             resources: irq:27 ioport:d000(size=4096) memory:f7c00000-f7cfffff ioport:f0300000(size=1048576)
           *-network
                description: Ethernet interface
                product: RTL8111/8168/8411 PCI Express Gigabit Ethernet Controller
                vendor: Realtek Semiconductor Co., Ltd.
                physical id: 0
                bus info: pci@0000:03:00.0
                logical name: enp3s0
                version: 11
                serial: 14:dd:a9:7e:b4:c2
                size: 1Gbit/s
                capacity: 1Gbit/s
                width: 64 bits
                clock: 33MHz
                capabilities: bus_master cap_list ethernet physical tp mii 10bt 10bt-fd 100bt 100bt-fd 1000bt-fd autonegotiation
                configuration: autonegotiation=on broadcast=yes driver=r8169 driverversion=5.11.6-arch1-1 duplex=full firmware=rtl8168g-2_0.0.1 02/06/13 ip=192.168.100.200 latency=0 link=yes multicast=yes port=MII speed=1Gbit/s
                resources: irq:18 ioport:d000(size=256) memory:f7c00000-f7c00fff memory:f0300000-f0303fff
        *-usb:1
             description: USB controller
             product: 9 Series Chipset Family USB EHCI Controller #1
             vendor: Intel Corporation
             physical id: 1d
             bus info: pci@0000:00:1d.0
             version: 00
             width: 32 bits
             clock: 33MHz
             capabilities: ehci bus_master cap_list
             configuration: driver=ehci-pci latency=0
             resources: irq:23 memory:f7f16000-f7f163ff
        *-isa
             description: ISA bridge
             product: H97 Chipset LPC Controller
             vendor: Intel Corporation
             physical id: 1f
             bus info: pci@0000:00:1f.0
             version: 00
             width: 32 bits
             clock: 33MHz
             capabilities: isa bus_master cap_list
             configuration: driver=lpc_ich latency=0
             resources: irq:0
        *-sata
             description: SATA controller
             product: 9 Series Chipset Family SATA Controller [AHCI Mode]
             vendor: Intel Corporation
             physical id: 1f.2
             bus info: pci@0000:00:1f.2
             version: 00
             width: 32 bits
             clock: 66MHz
             capabilities: sata ahci_1.0 bus_master cap_list
             configuration: driver=ahci latency=0
             resources: irq:29 ioport:f070(size=8) ioport:f060(size=4) ioport:f050(size=8) ioport:f040(size=4) ioport:f020(size=32) memory:f7f15000-f7f157ff
        *-serial
             description: SMBus
             product: 9 Series Chipset Family SMBus Controller
             vendor: Intel Corporation
             physical id: 1f.3
             bus info: pci@0000:00:1f.3
             version: 00
             width: 64 bits
             clock: 33MHz
             configuration: driver=i801_smbus latency=0
             resources: irq:18 memory:f7f14000-f7f140ff ioport:f000(size=32)
     *-pnp00:00
          product: System Board
          physical id: 2
          capabilities: pnp
          configuration: driver=system
     *-pnp00:01
          product: Motherboard registers
          physical id: 3
          capabilities: pnp
          configuration: driver=system
     *-pnp00:02
          product: AT Real-Time Clock
          physical id: 4
          capabilities: pnp
          configuration: driver=rtc_cmos
     *-pnp00:03
          product: PnP device INT3f0d
          vendor: Interphase Corporation
          physical id: 5
          capabilities: pnp
          configuration: driver=system
     *-pnp00:04
          product: Motherboard registers
          physical id: 6
          capabilities: pnp
          configuration: driver=system
     *-pnp00:05
          product: Motherboard registers
          physical id: 7
          capabilities: pnp
          configuration: driver=system
     *-pnp00:06
          product: Motherboard registers
          physical id: 8
          capabilities: pnp
          configuration: driver=system
  *-scsi
       physical id: 1
       bus info: scsi@4
       logical name: scsi4
       capabilities: scsi-host
       configuration: driver=usb-storage

I have two ext4 partitions with fast_commit enabled on both:

/media/hdd (1 TB HDD, 250 GB free)

tune2fs 1.46.2 (28-Feb-2021)
Filesystem volume name:   <none>
Last mounted on:          /media/hdd
Filesystem UUID:          542baf98-b0e3-48e7-8941-abb9155c68b3
Filesystem magic number:  0xEF53
Filesystem revision #:    1 (dynamic)
Filesystem features:      has_journal ext_attr resize_inode dir_index fast_commit filetype needs_recovery extent 64bit flex_bg sparse_super large_file huge_file dir_nlink extra_isize metadata_csum
Filesystem flags:         signed_directory_hash 
Default mount options:    user_xattr acl
Filesystem state:         clean
Errors behavior:          Continue
Filesystem OS type:       Linux
Inode count:              61054976
Block count:              244190208
Reserved block count:     11925759
Overhead clusters:        3673904
Free blocks:              65706575
Free inodes:              61023556
First block:              0
Block size:               4096
Fragment size:            4096
Group descriptor size:    64
Reserved GDT blocks:      1010
Blocks per group:         32768
Fragments per group:      32768
Inodes per group:         8192
Inode blocks per group:   512
Flex block group size:    16
Filesystem created:       Fri Feb 19 00:06:39 2021
Last mount time:          Tue Mar 16 00:34:20 2021
Last write time:          Tue Mar 16 00:34:20 2021
Mount count:              18
Maximum mount count:      -1
Last checked:             Fri Feb 19 00:06:39 2021
Check interval:           0 (<none>)
Lifetime writes:          1200 GB
Reserved blocks uid:      0 (user root)
Reserved blocks gid:      0 (group root)
First inode:              11
Inode size:	          256
Required extra isize:     32
Desired extra isize:      32
Journal inode:            8
Default directory hash:   half_md4
Directory Hash Seed:      6f3e77cf-3ff2-4687-bd1f-4fb0668eeca8
Journal backup:           inode blocks
Checksum type:            crc32c
Checksum:                 0xcb953408

/ (1 TB Samsung 970 SSD, 800 GB free)

tune2fs 1.46.2 (28-Feb-2021)
Filesystem volume name:   <none>
Last mounted on:          /
Filesystem UUID:          1729bdd4-02e5-44b0-ad45-bf6953fb0a3f
Filesystem magic number:  0xEF53
Filesystem revision #:    1 (dynamic)
Filesystem features:      has_journal ext_attr resize_inode dir_index fast_commit filetype needs_recovery extent 64bit flex_bg sparse_super large_file huge_file dir_nlink extra_isize metadata_csum
Filesystem flags:         signed_directory_hash 
Default mount options:    user_xattr acl
Filesystem state:         clean
Errors behavior:          Continue
Filesystem OS type:       Linux
Inode count:              52428800
Block count:              209715200
Reserved block count:     10485760
Overhead clusters:        3576090
Free blocks:              191053476
Free inodes:              50814332
First block:              0
Block size:               4096
Fragment size:            4096
Group descriptor size:    64
Reserved GDT blocks:      1024
Blocks per group:         32768
Fragments per group:      32768
Inodes per group:         8192
Inode blocks per group:   512
Flex block group size:    16
Filesystem created:       Sat Jan 16 15:43:00 2021
Last mount time:          Tue Mar 16 00:34:18 2021
Last write time:          Tue Mar 16 00:34:18 2021
Mount count:              49
Maximum mount count:      -1
Last checked:             Sat Jan 16 15:43:00 2021
Check interval:           0 (<none>)
Lifetime writes:          852 GB
Reserved blocks uid:      0 (user root)
Reserved blocks gid:      0 (group root)
First inode:              11
Inode size:	          256
Required extra isize:     32
Desired extra isize:      32
Journal inode:            8
Default directory hash:   half_md4
Directory Hash Seed:      ba105775-cf12-4659-a07c-47f30ae40016
Journal backup:           inode blocks
Checksum type:            crc32c
Checksum:                 0x142db358

SMART is clean, and fsck reports no errors.

I think I might've encountered a bug in ext4. Steps to reproduce (works reliably on both partitions):

$ fallocate --length 50G junk &
$ mkdir test
[1]+  Segmentation fault      fallocate --length 50G junk

Sometimes fallocate works fine, but when I issue a sync or use the created file (like mkfs.btrfs junk), it segfauls.

Any further operations on this file (like rm junk), or fallocate'ing a second one, hang in uninterruptible sleep, which prevents the machine from being shut down, and forces me to issue Alt+SysRq+REISUB.

I always find the same message in dmesg:

[  519.289330] ------------[ cut here ]------------
[  519.289333] kernel BUG at fs/ext4/ext4_extents.h:199!
[  519.289339] invalid opcode: 0000 [#1] PREEMPT SMP NOPTI
[  519.289341] CPU: 2 PID: 1372 Comm: fallocate Not tainted 5.11.6-arch1-1 #1
[  519.289344] Hardware name: ASUS All Series/H97M-E, BIOS 2702 03/28/2016
[  519.289345] RIP: 0010:ext4_fc_write_inode_data+0x1dc/0x1f0 [ext4]
[  519.289378] Code: 7f 00 00 74 25 66 81 ca 00 80 66 89 54 24 30 e9 62 ff ff ff 4c 89 ff e8 32 26 43 e5 31 c0 eb 84 b8 83 ff ff ff e9 7a ff ff ff <0f> 0b e8 fd 6f 42 e5 66 66 2e 0f 1f 84 00 00 00 00 00 66 90 0f 1f
[  519.289380] RSP: 0018:ffffc170820d7d58 EFLAGS: 00010246
[  519.289383] RAX: 0000000000000000 RBX: 000000000005a000 RCX: 0000000000078000
[  519.289384] RDX: 0000000000078000 RSI: 000000000000000f RDI: ffff9cbe239f2dd8
[  519.289386] RBP: 0000000000c80000 R08: 0000000000000001 R09: 0000000000000df8
[  519.289387] R10: ffff9cbd83b22000 R11: ffffc170820d7bf0 R12: 0000000000c7ffff
[  519.289388] R13: ffffc170820d7e3c R14: ffff9cbe239f2b28 R15: ffff9cbe239f2ab0
[  519.289390] FS:  00007fa479051740(0000) GS:ffff9cc47ed00000(0000) knlGS:0000000000000000
[  519.289392] CS:  0010 DS: 0000 ES: 0000 CR0: 0000000080050033
[  519.289393] CR2: 00007fe0fe13d020 CR3: 000000011c544005 CR4: 00000000001706e0
[  519.289395] Call Trace:
[  519.289398]  ext4_fc_commit+0x947/0xa10 [ext4]
[  519.289424]  ext4_sync_file+0xd4/0x370 [ext4]
[  519.289441]  __x64_sys_fsync+0x34/0x60
[  519.289445]  do_syscall_64+0x33/0x40
[  519.289449]  entry_SYSCALL_64_after_hwframe+0x44/0xa9
[  519.289453] RIP: 0033:0x7fa47914acc7
[  519.289455] Code: 64 89 01 48 83 c8 ff c3 66 2e 0f 1f 84 00 00 00 00 00 90 f3 0f 1e fa 64 8b 04 25 18 00 00 00 85 c0 75 10 b8 4a 00 00 00 0f 05 <48> 3d 00 f0 ff ff 77 41 c3 48 83 ec 18 89 7c 24 0c e8 f3 e4 f8 ff
[  519.289457] RSP: 002b:00007ffd595120f8 EFLAGS: 00000246 ORIG_RAX: 000000000000004a
[  519.289459] RAX: ffffffffffffffda RBX: 000055fc69c0e660 RCX: 00007fa47914acc7
[  519.289461] RDX: 0000000000000000 RSI: 0000000000000000 RDI: 0000000000000003
[  519.289462] RBP: 0000000000000003 R08: 0000000000000000 R09: 0000000000000000
[  519.289463] R10: 0000000c80000000 R11: 0000000000000246 R12: 00007ffd59512328
[  519.289464] R13: 0000000000000000 R14: 0000000000000000 R15: 0000000c80000000
[  519.289467] Modules linked in: xt_tcpudp macvlan wireguard curve25519_x86_64 libchacha20poly1305 chacha_x86_64 poly1305_x86_64 libblake2s blake2s_x86_64 ip6_udp_tunnel udp_tunnel libcurve25519_generic libchacha libblake2s_generic xt_conntrack nf_conntrack nf_defrag_ipv6 nf_defrag_ipv4 libcrc32c nct6775 hwmon_vid iptable_filter sr_mod cdrom mousedev usbhid uas cp210x usb_storage intel_rapl_msr intel_rapl_common x86_pkg_temp_thermal intel_powerclamp coretemp kvm_intel amdgpu snd_hda_codec_realtek snd_hda_codec_generic kvm ledtrig_audio snd_hda_codec_hdmi snd_hda_intel snd_intel_dspcfg soundwire_intel irqbypass soundwire_generic_allocation soundwire_cadence crct10dif_pclmul snd_hda_codec crc32_pclmul ghash_clmulni_intel snd_hda_core eeepc_wmi snd_hwdep gpu_sched asus_wmi iTCO_wdt soundwire_bus mei_hdcp i2c_algo_bit drm_ttm_helper intel_pmc_bxt sparse_keymapvfat at24 iTCO_vendor_support wmi_bmof mxm_wmi aesni_intel fat snd_soc_core ttm crypto_simd snd_compress rfkill ac97_bus cryptd
[  519.289508]  snd_pcm_dmaengine glue_helper r8169 snd_pcm drm_kms_helper rapl intel_cstate intel_uncore realtek pcspkr mei_me snd_timer i2c_i801 mdio_devres cec snd i2c_smbus lpc_ich syscopyarea soundcore mei libphy sysfillrect sysimgblt fb_sys_fops mac_hid wmi acpi_pad video drm fuse agpgart bpf_preload ip_tables x_tables ext4 crc32c_generic crc16 mbcache jbd2 xhci_pci crc32c_intel xhci_pci_renesas
[  519.289534] ---[ end trace a2ec9972903497d7 ]---
[  519.290245] ------------[ cut here ]------------
[  519.290246] WARNING: CPU: 2 PID: 1372 at kernel/rcu/tree_plugin.h:297 rcu_note_context_switch+0x42/0x480
[  519.290250] Modules linked in: xt_tcpudp macvlan wireguard curve25519_x86_64 libchacha20poly1305 chacha_x86_64 poly1305_x86_64 libblake2s blake2s_x86_64 ip6_udp_tunnel udp_tunnel libcurve25519_generic libchacha libblake2s_generic xt_conntrack nf_conntrack nf_defrag_ipv6 nf_defrag_ipv4 libcrc32c nct6775 hwmon_vid iptable_filter sr_mod cdrom mousedev usbhid uas cp210x usb_storage intel_rapl_msr intel_rapl_common x86_pkg_temp_thermal intel_powerclamp coretemp kvm_intel amdgpu snd_hda_codec_realtek snd_hda_codec_generic kvm ledtrig_audio snd_hda_codec_hdmi snd_hda_intel snd_intel_dspcfg soundwire_intel irqbypass soundwire_generic_allocation soundwire_cadence crct10dif_pclmul snd_hda_codec crc32_pclmul ghash_clmulni_intel snd_hda_core eeepc_wmi snd_hwdep gpu_sched asus_wmi iTCO_wdt soundwire_bus mei_hdcp i2c_algo_bit drm_ttm_helper intel_pmc_bxt sparse_keymapvfat at24 iTCO_vendor_support wmi_bmof mxm_wmi aesni_intel fat snd_soc_core ttm crypto_simd snd_compress rfkill ac97_bus cryptd
[  519.290286]  snd_pcm_dmaengine glue_helper r8169 snd_pcm drm_kms_helper rapl intel_cstate intel_uncore realtek pcspkr mei_me snd_timer i2c_i801 mdio_devres cec snd i2c_smbus lpc_ich syscopyarea soundcore mei libphy sysfillrect sysimgblt fb_sys_fops mac_hid wmi acpi_pad video drm fuse agpgart bpf_preload ip_tables x_tables ext4 crc32c_generic crc16 mbcache jbd2 xhci_pci crc32c_intel xhci_pci_renesas
[  519.290307] CPU: 2 PID: 1372 Comm: fallocate Tainted: G      D           5.11.6-arch1-1 #1
[  519.290309] Hardware name: ASUS All Series/H97M-E, BIOS 2702 03/28/2016
[  519.290310] RIP: 0010:rcu_note_context_switch+0x42/0x480
[  519.290312] Code: c3 00 d2 02 00 65 48 03 1d 83 7c 2f 5b 0f 1f 44 00 00 40 84 ed 75 15 65 48 8b 04 25 c0 7b 01 00 8b 90 fc 03 00 00 85 d2 7e 02 <0f> 0b 65 48 8b 04 25 c0 7b 01 00 8b 80 fc 03 00 00 85 c0 7e 0a 41
[  519.290314] RSP: 0018:ffffc170820d7790 EFLAGS: 00010002
[  519.290316] RAX: ffff9cbd825e8000 RBX: ffff9cc47ed2d200 RCX: 0000000000000000
[  519.290318] RDX: 0000000000000001 RSI: ffffffffa567b12b RDI: 0000000000000000
[  519.290319] RBP: 0000000000000000 R08: 0000000000000001 R09: ffff9cc47ecac4f0
[  519.290320] R10: 0000000000016bf9 R11: 000000000001870a R12: ffff9cc47ed2c3c0
[  519.290321] R13: ffff9cbd825e8000 R14: ffff9cbd825e8000 R15: ffff9cbd83eac000
[  519.290323] FS:  00007fa479051740(0000) GS:ffff9cc47ed00000(0000) knlGS:0000000000000000
[  519.290325] CS:  0010 DS: 0000 ES: 0000 CR0: 0000000080050033
[  519.290326] CR2: 00007fe0fe13d020 CR3: 000000011c544005 CR4: 00000000001706e0
[  519.290327] Call Trace:
[  519.290329]  __schedule+0xac/0x8b0
[  519.290333]  schedule+0x5b/0xc0
[  519.290336]  schedule_timeout+0x11c/0x160
[  519.290338]  wait_for_completion+0x9e/0x100
[  519.290341]  virt_efi_query_variable_info+0x141/0x150
[  519.290344]  efi_query_variable_store+0x7b/0x1e0
[  519.290348]  ? vsnprintf+0x6e/0x4f0
[  519.290352]  efivar_entry_set_safe+0xbd/0x210
[  519.290356]  efi_pstore_write+0x12d/0x1a0
[  519.290359]  pstore_dump+0x127/0x350
[  519.290362]  kmsg_dump+0xa8/0xd0
[  519.290365]  oops_end+0x61/0xd0
[  519.290367]  do_trap+0xcb/0x120
[  519.290371]  ? ext4_fc_write_inode_data+0x1dc/0x1f0 [ext4]
[  519.290395]  do_error_trap+0x64/0xa0
[  519.290398]  ? ext4_fc_write_inode_data+0x1dc/0x1f0 [ext4]
[  519.290421]  exc_invalid_op+0x4e/0x70
[  519.290423]  ? ext4_fc_write_inode_data+0x1dc/0x1f0 [ext4]
[  519.290446]  asm_exc_invalid_op+0x12/0x20
[  519.290449] RIP: 0010:ext4_fc_write_inode_data+0x1dc/0x1f0 [ext4]
[  519.290472] Code: 7f 00 00 74 25 66 81 ca 00 80 66 89 54 24 30 e9 62 ff ff ff 4c 89 ff e8 32 26 43 e5 31 c0 eb 84 b8 83 ff ff ff e9 7a ff ff ff <0f> 0b e8 fd 6f 42 e5 66 66 2e 0f 1f 84 00 00 00 00 00 66 90 0f 1f
[  519.290474] RSP: 0018:ffffc170820d7d58 EFLAGS: 00010246
[  519.290475] RAX: 0000000000000000 RBX: 000000000005a000 RCX: 0000000000078000
[  519.290477] RDX: 0000000000078000 RSI: 000000000000000f RDI: ffff9cbe239f2dd8
[  519.290478] RBP: 0000000000c80000 R08: 0000000000000001 R09: 0000000000000df8
[  519.290479] R10: ffff9cbd83b22000 R11: ffffc170820d7bf0 R12: 0000000000c7ffff
[  519.290480] R13: ffffc170820d7e3c R14: ffff9cbe239f2b28 R15: ffff9cbe239f2ab0
[  519.290483]  ? ext4_fc_write_inode_data+0xc8/0x1f0 [ext4]
[  519.290507]  ext4_fc_commit+0x947/0xa10 [ext4]
[  519.290531]  ext4_sync_file+0xd4/0x370 [ext4]
[  519.290547]  __x64_sys_fsync+0x34/0x60
[  519.290551]  do_syscall_64+0x33/0x40
[  519.290554]  entry_SYSCALL_64_after_hwframe+0x44/0xa9
[  519.290557] RIP: 0033:0x7fa47914acc7
[  519.290558] Code: 64 89 01 48 83 c8 ff c3 66 2e 0f 1f 84 00 00 00 00 00 90 f3 0f 1e fa 64 8b 04 25 18 00 00 00 85 c0 75 10 b8 4a 00 00 00 0f 05 <48> 3d 00 f0 ff ff 77 41 c3 48 83 ec 18 89 7c 24 0c e8 f3 e4 f8 ff
[  519.290560] RSP: 002b:00007ffd595120f8 EFLAGS: 00000246 ORIG_RAX: 000000000000004a
[  519.290562] RAX: ffffffffffffffda RBX: 000055fc69c0e660 RCX: 00007fa47914acc7
[  519.290564] RDX: 0000000000000000 RSI: 0000000000000000 RDI: 0000000000000003
[  519.290565] RBP: 0000000000000003 R08: 0000000000000000 R09: 0000000000000000
[  519.290566] R10: 0000000c80000000 R11: 0000000000000246 R12: 00007ffd59512328
[  519.290567] R13: 0000000000000000 R14: 0000000000000000 R15: 0000000c80000000
[  519.290569] ---[ end trace a2ec9972903497d8 ]---
[  519.352610] RIP: 0010:ext4_fc_write_inode_data+0x1dc/0x1f0 [ext4]
[  519.352645] Code: 7f 00 00 74 25 66 81 ca 00 80 66 89 54 24 30 e9 62 ff ff ff 4c 89 ff e8 32 26 43 e5 31 c0 eb 84 b8 83 ff ff ff e9 7a ff ff ff <0f> 0b e8 fd 6f 42 e5 66 66 2e 0f 1f 84 00 00 00 00 00 66 90 0f 1f
[  519.352647] RSP: 0018:ffffc170820d7d58 EFLAGS: 00010246
[  519.352650] RAX: 0000000000000000 RBX: 000000000005a000 RCX: 0000000000078000
[  519.352651] RDX: 0000000000078000 RSI: 000000000000000f RDI: ffff9cbe239f2dd8
[  519.352652] RBP: 0000000000c80000 R08: 0000000000000001 R09: 0000000000000df8
[  519.352654] R10: ffff9cbd83b22000 R11: ffffc170820d7bf0 R12: 0000000000c7ffff
[  519.352655] R13: ffffc170820d7e3c R14: ffff9cbe239f2b28 R15: ffff9cbe239f2ab0
[  519.352656] FS:  00007fa479051740(0000) GS:ffff9cc47ed00000(0000) knlGS:0000000000000000
[  519.352658] CS:  0010 DS: 0000 ES: 0000 CR0: 0000000080050033
[  519.352659] CR2: 00007fe0fe13d020 CR3: 000000011c544006 CR4: 00000000001706e0

The problem is, I don't have any other machine to test it on. If anyone is using fast_commit, could you please check if it's reproducible on your machine?

I will prepare a throwaway VM and test it there, but it'll take me a day or two, and it'll still be running on the same hardware.

Thank you.

Offline

Board footer

Powered by FluxBB