upstream patch https://lore.kernel.org/linux-ext4/20240925143325.518508-1-aleksandr.mikhalit...@canonical.com
-- You received this bug notification because you are a member of Kernel Packages, which is subscribed to linux in Ubuntu. https://bugs.launchpad.net/bugs/2081231 Title: kernel 6.8.0-40: ext4 online resize on thin-provisioned storage gives BUG at fs/ext4/resize.c:324 Status in linux package in Ubuntu: Confirmed Bug description: Hi, We're seeing failures of an ext4 resize on LVM and Ceph block devices in the LXD CI; the following call trace happens during resize2fs of an ext4 FS on an LVM lv. I'll also upload an apport report. Let me know if there's anything else I can provide! --- [ 54.268802] EXT4-fs (dm-8): mounted filesystem 210714a1-4375-4524-ab2e-019d0859cf5f r/w with ordered data mode. Quota mode: none. [ 54.273065] EXT4-fs (dm-8): resizing filesystem from 7168 to 786432 blocks [ 54.274006] ------------[ cut here ]------------ [ 54.274012] kernel BUG at fs/ext4/resize.c:324! [ 54.274773] invalid opcode: 0000 [#1] PREEMPT SMP NOPTI [ 54.275841] CPU: 10 PID: 1397 Comm: resize2fs Tainted: P O 6.8.0-40-generic #40~22.04.3-Ubuntu [ 54.282782] Hardware name: QEMU Standard PC (Q35 + ICH9, 2009)/LXD, BIOS unknown 2/2/2022 [ 54.285284] RIP: 0010:ext4_alloc_group_tables+0x532/0x540 [ 54.286769] Code: c2 f7 da 44 01 e0 8d 48 ff 89 4d c8 44 31 e1 85 d1 75 17 b9 fd ff ff ff 66 89 4d cc e9 32 fb ff ff 44 8b 45 a0 e9 a8 fe ff ff <0f> 0b 66 66 2e 0f 1f 84 00 00 00 00 00 90 90 90 90 90 90 90 90 90 [ 54.291216] RSP: 0018:ffffb691c3c53b78 EFLAGS: 00010202 [ 54.292109] RAX: 0000000000000018 RBX: ffff9bce87f5b000 RCX: 0000000000000016 [ 54.293312] RDX: 00000000fffffff0 RSI: ffff9bce8186d560 RDI: ffff9bce822a7800 [ 54.294433] RBP: ffffb691c3c53bd8 R08: 0000000000000010 R09: 0000000000000000 [ 54.295551] R10: 0000000000000000 R11: 0000000000000000 R12: 0000000000000001 [ 54.296515] R13: ffff9bce822a7800 R14: ffff9bce8186d560 R15: 00000000fffc3fe7 [ 54.297393] FS: 000075726aea3b80(0000) GS:ffff9bcf79d00000(0000) knlGS:0000000000000000 [ 54.298382] CS: 0010 DS: 0000 ES: 0000 CR0: 0000000080050033 [ 54.299197] CR2: 000075726ac5a230 CR3: 00000001192b4000 CR4: 0000000000750ef0 [ 54.300157] PKRU: 55555554 [ 54.300520] Call Trace: [ 54.300734] <TASK> [ 54.300910] ? show_regs+0x6d/0x80 [ 54.301191] ? die+0x37/0xa0 [ 54.301674] ? do_trap+0xd4/0xf0 [ 54.302163] ? do_error_trap+0x71/0xb0 [ 54.302675] ? ext4_alloc_group_tables+0x532/0x540 [ 54.303151] ? exc_invalid_op+0x52/0x80 [ 54.303728] ? ext4_alloc_group_tables+0x532/0x540 [ 54.304445] ? asm_exc_invalid_op+0x1b/0x20 [ 54.305092] ? ext4_alloc_group_tables+0x532/0x540 [ 54.305833] ext4_resize_fs+0x378/0x6d0 [ 54.306434] __ext4_ioctl+0x34e/0x1160 [ 54.307028] ? filename_lookup+0xe4/0x200 [ 54.307625] ? xa_load+0x87/0xf0 [ 54.308168] ext4_ioctl+0xe/0x20 [ 54.308697] __x64_sys_ioctl+0xa0/0xf0 [ 54.309328] x64_sys_call+0xa68/0x24b0 [ 54.309999] do_syscall_64+0x81/0x170 [ 54.310715] ? mntput+0x24/0x50 [ 54.311339] ? path_put+0x1e/0x30 [ 54.311982] ? do_faccessat+0x1c2/0x2f0 [ 54.312720] ? syscall_exit_to_user_mode+0x89/0x260 [ 54.313640] ? do_syscall_64+0x8d/0x170 [ 54.314424] ? handle_mm_fault+0xad/0x380 [ 54.315080] ? do_user_addr_fault+0x337/0x670 [ 54.315484] ? irqentry_exit_to_user_mode+0x7e/0x260 [ 54.315875] ? irqentry_exit+0x43/0x50 [ 54.316172] ? clear_bhb_loop+0x15/0x70 [ 54.316483] ? clear_bhb_loop+0x15/0x70 [ 54.317223] ? clear_bhb_loop+0x15/0x70 [ 54.317869] entry_SYSCALL_64_after_hwframe+0x78/0x80 [ 54.318699] RIP: 0033:0x75726ad1a94f [ 54.319434] Code: 00 48 89 44 24 18 31 c0 48 8d 44 24 60 c7 04 24 10 00 00 00 48 89 44 24 08 48 8d 44 24 20 48 89 44 24 10 b8 10 00 00 00 0f 05 <41> 89 c0 3d 00 f0 ff ff 77 1f 48 8b 44 24 18 64 48 2b 04 25 28 00 [ 54.323404] RSP: 002b:00007ffd784e7a80 EFLAGS: 00000246 ORIG_RAX: 0000000000000010 [ 54.324609] RAX: ffffffffffffffda RBX: 0000000000000001 RCX: 000075726ad1a94f [ 54.325304] RDX: 00007ffd784e7b80 RSI: 0000000040086610 RDI: 0000000000000004 [ 54.325933] RBP: 00005b0d59a2c990 R08: 0000000000000000 R09: 00007ffd784e79b7 [ 54.326570] R10: 0000000000000000 R11: 0000000000000246 R12: 0000000000000004 [ 54.327122] R13: 00005b0d59a2ca40 R14: 00005b0d59a2eb00 R15: 0000000000000000 [ 54.327672] </TASK> [ 54.327974] Modules linked in: dm_snapshot vhost_vsock vhost vhost_iotlb nft_masq ipmi_devintf ipmi_msghandler nft_chain_nat nf_nat nf_conntrack nf_defrag_ipv6 nf_defrag_ipv4 bridge stp llc nf_tables nfnetlink binfmt_misc nls_iso8859_1 zfs(PO) spl(O) intel_rapl_msr intel_rapl_common intel_uncore_frequency_common intel_pmc_core intel_vsec pmt_telemetry pmt_class kvm_intel kvm irqbypass crct10dif_pclmul crc32_pclmul polyval_clmulni polyval_generic ghash_clmulni_intel sha256_ssse3 dm_thin_pool sha1_ssse3 dm_persistent_data aesni_intel dm_bio_prison crypto_simd dm_bufio cryptd libcrc32c joydev rapl input_leds psmouse serio_raw ahci vmw_vsock_virtio_transport 9pnet_virtio lpc_ich virtio_gpu i2c_i801 vmw_vsock_virtio_transport_common libahci xhci_pci i2c_smbus 9pnet virtio_input xhci_pci_renesas virtiofs virtio_dma_buf vsock mac_hid qemu_fw_cfg vmgenid dm_multipath scsi_dh_rdac scsi_dh_emc scsi_dh_alua nfsd auth_rpcgss nfs_acl sch_fq_codel lockd grace efi_pstore sunrpc virtio_rng ip_t ables x_tables autofs4 [ 54.334172] ---[ end trace 0000000000000000 ]--- [ 54.812668] RIP: 0010:ext4_alloc_group_tables+0x532/0x540 [ 54.812719] Code: c2 f7 da 44 01 e0 8d 48 ff 89 4d c8 44 31 e1 85 d1 75 17 b9 fd ff ff ff 66 89 4d cc e9 32 fb ff ff 44 8b 45 a0 e9 a8 fe ff ff <0f> 0b 66 66 2e 0f 1f 84 00 00 00 00 00 90 90 90 90 90 90 90 90 90 [ 54.812720] RSP: 0018:ffffb691c3c53b78 EFLAGS: 00010202 [ 54.812723] RAX: 0000000000000018 RBX: ffff9bce87f5b000 RCX: 0000000000000016 [ 54.812726] RDX: 00000000fffffff0 RSI: ffff9bce8186d560 RDI: ffff9bce822a7800 [ 54.812726] RBP: ffffb691c3c53bd8 R08: 0000000000000010 R09: 0000000000000000 [ 54.812727] R10: 0000000000000000 R11: 0000000000000000 R12: 0000000000000001 [ 54.812728] R13: ffff9bce822a7800 R14: ffff9bce8186d560 R15: 00000000fffc3fe7 [ 54.812728] FS: 000075726aea3b80(0000) GS:ffff9bcf79d00000(0000) knlGS:0000000000000000 [ 54.812729] CS: 0010 DS: 0000 ES: 0000 CR0: 0000000080050033 [ 54.812730] CR2: 000075726ac5a230 CR3: 00000001192b4000 CR4: 0000000000750ef0 [ 54.812733] PKRU: 55555554 [ 64.950818] ------------[ cut here ]------------ [ 64.953153] WARNING: CPU: 9 PID: 1057 at fs/namespace.c:1258 cleanup_mnt+0x14d/0x170 [ 64.955700] Modules linked in: dm_snapshot vhost_vsock vhost vhost_iotlb nft_masq ipmi_devintf ipmi_msghandler nft_chain_nat nf_nat nf_conntrack nf_defrag_ipv6 nf_defrag_ipv4 bridge stp llc nf_tables nfnetlink binfmt_misc nls_iso8859_1 zfs(PO) spl(O) intel_rapl_msr intel_rapl_common intel_uncore_frequency_common intel_pmc_core intel_vsec pmt_telemetry pmt_class kvm_intel kvm irqbypass crct10dif_pclmul crc32_pclmul polyval_clmulni polyval_generic ghash_clmulni_intel sha256_ssse3 dm_thin_pool sha1_ssse3 dm_persistent_data aesni_intel dm_bio_prison crypto_simd dm_bufio cryptd libcrc32c joydev rapl input_leds psmouse serio_raw ahci vmw_vsock_virtio_transport 9pnet_virtio lpc_ich virtio_gpu i2c_i801 vmw_vsock_virtio_transport_common libahci xhci_pci i2c_smbus 9pnet virtio_input xhci_pci_renesas virtiofs virtio_dma_buf vsock mac_hid qemu_fw_cfg vmgenid dm_multipath scsi_dh_rdac scsi_dh_emc scsi_dh_alua nfsd auth_rpcgss nfs_acl sch_fq_codel lockd grace efi_pstore sunrpc virtio_rng ip_t ables x_tables autofs4 [ 64.973727] CPU: 9 PID: 1057 Comm: lxd Tainted: P D O 6.8.0-40-generic #40~22.04.3-Ubuntu [ 64.974883] Hardware name: QEMU Standard PC (Q35 + ICH9, 2009)/LXD, BIOS unknown 2/2/2022 [ 64.975834] RIP: 0010:cleanup_mnt+0x14d/0x170 [ 64.976469] Code: 00 85 c0 75 19 e8 53 fb ff ff e9 79 ff ff ff c7 87 3c 01 00 00 00 00 00 00 e9 59 ff ff ff c7 87 3c 01 00 00 00 00 00 00 eb db <0f> 0b 48 83 bb 40 01 00 00 00 0f 84 d1 fe ff ff 48 89 df e8 5b 27 [ 64.978258] RSP: 0018:ffffb691c13c7bb8 EFLAGS: 00010202 [ 64.978792] RAX: 0000000000000001 RBX: ffff9bce8463d800 RCX: 0000000000000000 [ 64.979442] RDX: 0000000000000000 RSI: 0000000000000000 RDI: 0000000000000000 [ 64.980254] RBP: ffffb691c13c7bd8 R08: 0000000000000000 R09: 0000000000000000 [ 64.981133] R10: 0000000000000000 R11: 0000000000000000 R12: ffff9bce85bf5200 [ 64.981788] R13: ffff9bce85bf5ed4 R14: 0000000000000000 R15: 0000000000000000 [ 64.982442] FS: 00007f8427400640(0000) GS:ffff9bcf79c80000(0000) knlGS:0000000000000000 [ 64.983231] CS: 0010 DS: 0000 ES: 0000 CR0: 0000000080050033 [ 64.983796] CR2: 000000c00145df80 CR3: 000000010af52000 CR4: 0000000000750ef0 [ 64.984449] PKRU: 55555554 [ 64.984859] Call Trace: [ 64.985270] <TASK> [ 64.985681] ? show_regs+0x6d/0x80 [ 64.986287] ? __warn+0x89/0x160 [ 64.986790] ? cleanup_mnt+0x14d/0x170 [ 64.987352] ? report_bug+0x17e/0x1b0 [ 64.987947] ? handle_bug+0x46/0x90 [ 64.988526] ? exc_invalid_op+0x18/0x80 [ 64.989252] ? asm_exc_invalid_op+0x1b/0x20 [ 64.989930] ? cleanup_mnt+0x14d/0x170 [ 64.990532] ? cleanup_mnt+0x18/0x170 [ 64.991188] __cleanup_mnt+0x12/0x20 [ 64.991708] task_work_run+0x5e/0xa0 [ 64.992229] syscall_exit_to_user_mode+0x25a/0x260 [ 64.992758] do_syscall_64+0x8d/0x170 [ 64.993209] ? __fput+0x15e/0x2e0 [ 64.993621] ? __fput_sync+0x1c/0x30 [ 64.994072] ? syscall_exit_to_user_mode+0x89/0x260 [ 64.994522] ? do_syscall_64+0x8d/0x170 [ 64.994933] ? generic_exec_single+0x3a/0x150 [ 64.995387] ? smp_call_function_single_async+0x22/0x50 [ 64.995839] ? nohz_balancer_kick+0x17c/0x3c0 [ 64.996265] ? trigger_load_balance+0x4d/0x70 [ 64.996672] ? scheduler_tick+0x14e/0x370 [ 64.997135] ? update_process_times+0x8e/0xb0 [ 64.997541] ? kvm_clock_get_cycles+0x18/0x40 [ 64.997993] ? ktime_get+0x45/0xc0 [ 64.998346] ? __pfx_tick_nohz_highres_handler+0x10/0x10 [ 64.998823] ? lapic_next_deadline+0x2c/0x50 [ 64.999227] ? clockevents_program_event+0xb3/0x140 [ 64.999635] ? tick_program_event+0x43/0xa0 [ 65.000054] ? hrtimer_interrupt+0x11f/0x250 [ 65.000423] ? irqentry_exit_to_user_mode+0x7e/0x260 [ 65.000820] ? clear_bhb_loop+0x15/0x70 [ 65.001163] ? clear_bhb_loop+0x15/0x70 [ 65.001493] ? clear_bhb_loop+0x15/0x70 [ 65.001817] entry_SYSCALL_64_after_hwframe+0x78/0x80 [ 65.002208] RIP: 0033:0x41ec6e [ 65.002534] Code: 48 83 ec 38 e8 13 00 00 00 48 83 c4 38 5d c3 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 [ 65.003704] RSP: 002b:000000c0011c3958 EFLAGS: 00000206 ORIG_RAX: 00000000000000a6 [ 65.004213] RAX: 0000000000000000 RBX: 000000c000a89020 RCX: 000000000041ec6e [ 65.004695] RDX: 0000000000000000 RSI: 0000000000000000 RDI: 000000c000a89020 [ 65.005187] RBP: 000000c0011c3998 R08: 0000000000000000 R09: 0000000000000000 [ 65.005668] R10: 0000000000000000 R11: 0000000000000206 R12: 000000c000a89020 [ 65.006158] R13: 0000000000000000 R14: 000000c0018f41c0 R15: 00000000000ffff3 [ 65.006640] </TASK> [ 65.006883] ---[ end trace 0000000000000000 ]--- [ 65.008344] EXT4-fs (dm-8): unmounting filesystem 210714a1-4375-4524-ab2e-019d0859cf5f. [ 65.020171] ------------[ cut here ]------------ [ 65.021236] VFS: Busy inodes after unmount of dm-8 (ext4) [ 65.021260] WARNING: CPU: 1 PID: 1057 at fs/super.c:649 generic_shutdown_super+0x120/0x180 [ 65.024441] Modules linked in: dm_snapshot vhost_vsock vhost vhost_iotlb nft_masq ipmi_devintf ipmi_msghandler nft_chain_nat nf_nat nf_conntrack nf_defrag_ipv6 nf_defrag_ipv4 bridge stp llc nf_tables nfnetlink binfmt_misc nls_iso8859_1 zfs(PO) spl(O) intel_rapl_msr intel_rapl_common intel_uncore_frequency_common intel_pmc_core intel_vsec pmt_telemetry pmt_class kvm_intel kvm irqbypass crct10dif_pclmul crc32_pclmul polyval_clmulni polyval_generic ghash_clmulni_intel sha256_ssse3 dm_thin_pool sha1_ssse3 dm_persistent_data aesni_intel dm_bio_prison crypto_simd dm_bufio cryptd libcrc32c joydev rapl input_leds psmouse serio_raw ahci vmw_vsock_virtio_transport 9pnet_virtio lpc_ich virtio_gpu i2c_i801 vmw_vsock_virtio_transport_common libahci xhci_pci i2c_smbus 9pnet virtio_input xhci_pci_renesas virtiofs virtio_dma_buf vsock mac_hid qemu_fw_cfg vmgenid dm_multipath scsi_dh_rdac scsi_dh_emc scsi_dh_alua nfsd auth_rpcgss nfs_acl sch_fq_codel lockd grace efi_pstore sunrpc virtio_rng ip_t ables x_tables autofs4 [ 65.034645] CPU: 1 PID: 1057 Comm: lxd Tainted: P D W O 6.8.0-40-generic #40~22.04.3-Ubuntu [ 65.035455] Hardware name: QEMU Standard PC (Q35 + ICH9, 2009)/LXD, BIOS unknown 2/2/2022 [ 65.036136] RIP: 0010:generic_shutdown_super+0x120/0x180 [ 65.036618] Code: cc cc e8 13 0f f1 ff 48 8b bb 00 01 00 00 eb cd 48 8b 43 28 48 8d b3 c0 03 00 00 48 c7 c7 78 85 de b5 48 8b 10 e8 90 d1 c1 ff <0f> 0b 4c 8d ab 40 05 00 00 4c 89 ef e8 1f ae d3 00 48 8b 8b 48 05 [ 65.037985] RSP: 0018:ffffb691c13c7b20 EFLAGS: 00010246 [ 65.038451] RAX: 0000000000000000 RBX: ffff9bce822a7800 RCX: 0000000000000000 [ 65.039339] RDX: 0000000000000000 RSI: 0000000000000000 RDI: 0000000000000000 [ 65.040725] RBP: ffffb691c13c7b38 R08: 0000000000000000 R09: 0000000000000000 [ 65.042177] R10: 0000000000000000 R11: 0000000000000000 R12: ffff9bce822a7d48 [ 65.043385] R13: ffff9bce85bf5ed4 R14: 0000000000000000 R15: 0000000000000000 [ 65.044140] FS: 00007f8427400640(0000) GS:ffff9bcf79880000(0000) knlGS:0000000000000000 [ 65.044779] CS: 0010 DS: 0000 ES: 0000 CR0: 0000000080050033 [ 65.045314] CR2: 00007e16299ffa00 CR3: 000000010af52000 CR4: 0000000000750ef0 [ 65.045914] PKRU: 55555554 [ 65.046280] Call Trace: [ 65.046633] <TASK> [ 65.047011] ? show_regs+0x6d/0x80 [ 65.047403] ? __warn+0x89/0x160 [ 65.047783] ? generic_shutdown_super+0x120/0x180 [ 65.048241] ? report_bug+0x17e/0x1b0 [ 65.048641] ? handle_bug+0x46/0x90 [ 65.049104] ? exc_invalid_op+0x18/0x80 [ 65.049509] ? asm_exc_invalid_op+0x1b/0x20 [ 65.049960] ? generic_shutdown_super+0x120/0x180 [ 65.050409] kill_block_super+0x1b/0x50 [ 65.050816] ext4_kill_sb+0x22/0x50 [ 65.051236] deactivate_locked_super+0x32/0xc0 [ 65.051675] deactivate_super+0x46/0x60 [ 65.052165] cleanup_mnt+0xc6/0x170 [ 65.052540] __cleanup_mnt+0x12/0x20 [ 65.052941] task_work_run+0x5e/0xa0 [ 65.053316] syscall_exit_to_user_mode+0x25a/0x260 [ 65.053749] do_syscall_64+0x8d/0x170 [ 65.054137] ? __fput+0x15e/0x2e0 [ 65.054498] ? __fput_sync+0x1c/0x30 [ 65.054871] ? syscall_exit_to_user_mode+0x89/0x260 [ 65.055317] ? do_syscall_64+0x8d/0x170 [ 65.055701] ? generic_exec_single+0x3a/0x150 [ 65.056124] ? smp_call_function_single_async+0x22/0x50 [ 65.056578] ? nohz_balancer_kick+0x17c/0x3c0 [ 65.057033] ? trigger_load_balance+0x4d/0x70 [ 65.057436] ? scheduler_tick+0x14e/0x370 [ 65.057815] ? update_process_times+0x8e/0xb0 [ 65.058215] ? kvm_clock_get_cycles+0x18/0x40 [ 65.058601] ? ktime_get+0x45/0xc0 [ 65.058974] ? __pfx_tick_nohz_highres_handler+0x10/0x10 [ 65.059392] ? lapic_next_deadline+0x2c/0x50 [ 65.059755] ? clockevents_program_event+0xb3/0x140 [ 65.060194] ? tick_program_event+0x43/0xa0 [ 65.060549] ? hrtimer_interrupt+0x11f/0x250 [ 65.060926] ? irqentry_exit_to_user_mode+0x7e/0x260 [ 65.061313] ? clear_bhb_loop+0x15/0x70 [ 65.061636] ? clear_bhb_loop+0x15/0x70 [ 65.061983] ? clear_bhb_loop+0x15/0x70 [ 65.062290] entry_SYSCALL_64_after_hwframe+0x78/0x80 [ 65.062656] RIP: 0033:0x41ec6e [ 65.062977] Code: 48 83 ec 38 e8 13 00 00 00 48 83 c4 38 5d c3 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 [ 65.064134] RSP: 002b:000000c0011c3958 EFLAGS: 00000206 ORIG_RAX: 00000000000000a6 [ 65.064636] RAX: 0000000000000000 RBX: 000000c000a89020 RCX: 000000000041ec6e [ 65.065126] RDX: 0000000000000000 RSI: 0000000000000000 RDI: 000000c000a89020 [ 65.065606] RBP: 000000c0011c3998 R08: 0000000000000000 R09: 0000000000000000 [ 65.066094] R10: 0000000000000000 R11: 0000000000000206 R12: 000000c000a89020 [ 65.066569] R13: 0000000000000000 R14: 000000c0018f41c0 R15: 00000000000ffff3 [ 65.067058] </TASK> [ 65.067300] ---[ end trace 0000000000000000 ]--- To manage notifications about this bug go to: https://bugs.launchpad.net/ubuntu/+source/linux/+bug/2081231/+subscriptions -- Mailing list: https://launchpad.net/~kernel-packages Post to : kernel-packages@lists.launchpad.net Unsubscribe : https://launchpad.net/~kernel-packages More help : https://help.launchpad.net/ListHelp