Bug#995425: linux-image-amd64: kernel BUG at fs/ext4/ext4_extents.h:199! (fast_commit feature)
It fixes the issue! Works correctly with that patch. El 2/10/21 a las 3:52 a. m., Salvatore Bonaccorso escribió: Control: tags -1 + moreinfo On Thu, Sep 30, 2021 at 08:26:38PM -0500, Nelson G wrote: Package: linux-image-amd64 Version: 5.10.46-5 Severity: normal Hello, There's a bug for the ext4 filesystem, when the fast_commit flag is enabled and you use fallocate or any other task that allocates space. You can easily reproduce this bug on a VM or raw hardware by doing the following: 1° You'll need a drive formatted with ext4 of course. 2° Enable fast_commit in that drive: tune2fs -O fast_commit /dev/yourdrive 3° mount 'yourdrive', and inside 'yourdrive' try the following: fallocate -l 2000MB file Can you check if the following fixes your issue? https://lore.kernel.org/linux-ext4/20210820044505.474318-1-hout...@huawei.com/ https://git.kernel.org/pub/scm/linux/kernel/git/tytso/ext4.git/commit/?h=dev=a2c2f0826e2b75560b31daf1cd9a755ab93cf4c6 Regards, Salvatore
Bug#995425: linux-image-amd64: kernel BUG at fs/ext4/ext4_extents.h:199! (fast_commit feature)
Control: tags -1 + moreinfo On Thu, Sep 30, 2021 at 08:26:38PM -0500, Nelson G wrote: > Package: linux-image-amd64 > Version: 5.10.46-5 > Severity: normal > > Hello, > > There's a bug for the ext4 filesystem, when the fast_commit flag is enabled > and > you use fallocate or any other task that allocates space. > > > You can easily reproduce this bug on a VM or raw hardware by doing the > following: > > 1° You'll need a drive formatted with ext4 of course. > 2° Enable fast_commit in that drive: tune2fs -O fast_commit /dev/yourdrive > 3° mount 'yourdrive', and inside 'yourdrive' try the following: fallocate -l > 2000MB file Can you check if the following fixes your issue? https://lore.kernel.org/linux-ext4/20210820044505.474318-1-hout...@huawei.com/ https://git.kernel.org/pub/scm/linux/kernel/git/tytso/ext4.git/commit/?h=dev=a2c2f0826e2b75560b31daf1cd9a755ab93cf4c6 Regards, Salvatore
Bug#995425: linux-image-amd64: kernel BUG at fs/ext4/ext4_extents.h:199! (fast_commit feature)
Package: linux-image-amd64 Version: 5.10.46-5 Severity: normal Hello, There's a bug for the ext4 filesystem, when the fast_commit flag is enabled and you use fallocate or any other task that allocates space. You can easily reproduce this bug on a VM or raw hardware by doing the following: 1° You'll need a drive formatted with ext4 of course. 2° Enable fast_commit in that drive: tune2fs -O fast_commit /dev/yourdrive 3° mount 'yourdrive', and inside 'yourdrive' try the following: fallocate -l 2000MB file You'll see a similar output in dmesg/jourald: [ 263.841804] kernel BUG at fs/ext4/ext4_extents.h:199! [ 263.841821] invalid opcode: [#1] SMP NOPTI [ 263.841827] CPU: 0 PID: 1283 Comm: fallocate Not tainted 5.10.0-8-amd64 #1 Debian 5.10.46-4 [ 263.841830] Hardware name: QEMU Standard PC (Q35 + ICH9, 2009), BIOS 1.14.0-2 04/01/2014 [ 263.841864] RIP: 0010:ext4_fc_write_inode_data+0x19e/0x1b0 [ext4] [ 263.841868] 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 00 8a d6 c6 31 c0 eb 84 b8 83 ff ff ff e9 7a ff ff ff <0f> 0b e8 4b e1 d5 c6 66 66 2e 0f 1f 84 00 00 00 00 00 0f 1f 44 00 [ 263.841871] RSP: 0018:c3eb8125fd88 EFLAGS: 00010246 [ 263.841875] RAX: RBX: 0001f800 RCX: 00028000 [ 263.841878] RDX: 00028000 RSI: 001216f9 RDI: 000359f0 [ 263.841881] RBP: 002540bf R08: c3eb8125fe6c R09: 0f7c [ 263.841883] R10: 9fe2c1418c74 R11: c3eb8125fc20 R12: 002540be [ 263.841885] R13: c3eb8125fe6c R14: 9fe2c37c8a80 R15: 9fe2c37c8a08 [ 263.841892] FS: 7fe263bcb5c0() GS:9fe33dc0() knlGS: [ 263.841895] CS: 0010 DS: ES: CR0: 80050033 [ 263.841897] CR2: 7fe263ae9e60 CR3: 050b6000 CR4: 003506f0 [ 263.841903] Call Trace: [ 263.841936] ext4_fc_commit+0x652/0x930 [ext4] [ 263.841961] ext4_sync_file+0xd4/0x350 [ext4] [ 263.841981] __x64_sys_fsync+0x34/0x60 [ 263.842017] do_syscall_64+0x33/0x80 [ 263.842041] entry_SYSCALL_64_after_hwframe+0x44/0xa9 [ 263.842055] RIP: 0033:0x7fe263afaa93 [ 263.842059] Code: 64 89 01 48 83 c8 ff c3 66 2e 0f 1f 84 00 00 00 00 00 0f 1f 44 00 00 64 8b 04 25 18 00 00 00 85 c0 75 14 b8 4a 00 00 00 0f 05 <48> 3d 00 f0 ff ff 77 45 c3 0f 1f 40 00 48 83 ec 18 89 7c 24 0c e8 [ 263.842062] RSP: 002b:7fff4b3c4af8 EFLAGS: 0246 ORIG_RAX: 004a [ 263.842065] RAX: ffda RBX: 558fd86a0660 RCX: 7fe263afaa93 [ 263.842068] RDX: RSI: RDI: 0003 [ 263.842069] RBP: 0003 R08: R09: [ 263.842076] R10: 0002540be400 R11: 0246 R12: 7fff4b3c4d28 [ 263.842078] R13: R14: R15: 0002540be400 [ 263.842083] Modules linked in: uinput 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 rfkill ip_set nf_tables nfnetlink snd_hda_codec_generic ledtrig_audio snd_hda_intel snd_intel_dspcfg soundwire_intel soundwire_generic_allocation snd_soc_core snd_compress soundwire_cadence snd_hda_codec amd_energy qxl snd_hda_core drm_ttm_helper snd_hwdep lz4 zram serio_raw zsmalloc iTCO_wdt evdev intel_pmc_bxt iTCO_vendor_support pcspkr soundwire_bus joydev ttm snd_pcm_oss watchdog snd_mixer_oss virtio_balloon virtio_console drm_kms_helper snd_pcm cec button snd_timer qemu_fw_cfg snd soundcore fuse drm configfs virtio_rng rng_core ip_tables x_tables autofs4 ext4 crc16 mbcache jbd2 btrfs blake2b_generic xor hid_generic usbhid raid6_pq libcrc32c crc32c_generic hid crct10dif_pclmul crct10dif_common crc32_pclmul crc32c_intel ghash_clmulni_intel ahci libahci libata aesni_intel libaes [ 263.842159] scsi_mod crypto_simd psmouse cryptd glue_helper virtio_blk virtio_net net_failover failover i2c_i801 xhci_pci i2c_smbus xhci_hcd lpc_ich usbcore usb_common virtio_pci virtio_ring virtio [ 263.842186] ---[ end trace d31468378c3555b1 ]--- [ 263.842214] RIP: 0010:ext4_fc_write_inode_data+0x19e/0x1b0 [ext4] [ 263.842218] 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 00 8a d6 c6 31 c0 eb 84 b8 83 ff ff ff e9 7a ff ff ff <0f> 0b e8 4b e1 d5 c6 66 66 2e 0f 1f 84 00 00 00 00 00 0f 1f 44 00 [ 263.842221] RSP: 0018:c3eb8125fd88 EFLAGS: 00010246 [ 263.842224] RAX: RBX: 0001f800 RCX: 00028000 [ 263.842226] RDX: 00028000 RSI: 001216f9 RDI: 000359f0 [ 263.842228] RBP: 002540bf R08: c3eb8125fe6c R09: 0f7c [ 263.842230] R10: 9fe2c1418c74 R11: c3eb8125fc20 R12: 002540be [ 263.842232] R13: c3eb8125fe6c R14: 9fe2c37c8a80 R15: 9fe2c37c8a08 [ 263.842239] FS: 7fe263bcb5c0() GS:9fe33dc0() knlGS: [ 263.842241] CS: 0010 DS: ES: