Bug 2438830
| Summary: | slab raid6-md126 start c00020016f0431b0 pointer offset 16 size 2544 list_add corruption. prev->next should be next | ||
|---|---|---|---|
| Product: | [Fedora] Fedora | Reporter: | jfiusdq |
| Component: | kernel | Assignee: | Justin M. Forbes <jforbes> |
| Status: | NEW --- | QA Contact: | Fedora Extras Quality Assurance <extras-qa> |
| Severity: | urgent | Docs Contact: | |
| Priority: | unspecified | ||
| Version: | 43 | CC: | acaringi, adscvr, airlied, hans, hpa, jforbes, kernel-maint, linville, masami256, mchehab, nickolasjcarr, ptalbert, steved, suraj.ghimire7 |
| Target Milestone: | --- | ||
| Target Release: | --- | ||
| Hardware: | All | ||
| OS: | Linux | ||
| Whiteboard: | |||
| Fixed In Version: | Doc Type: | --- | |
| Doc Text: | Story Points: | --- | |
| Clone Of: | Environment: | ||
| Last Closed: | Type: | --- | |
| Regression: | --- | Mount Type: | --- |
| Documentation: | --- | CRM: | |
| Verified Versions: | Category: | --- | |
| oVirt Team: | --- | RHEL 7.3 requirements from Atomic Host: | |
| Cloudforms Team: | --- | Target Upstream Version: | |
| Embargoed: | |||
|
Description
jfiusdq
2026-02-11 11:34:14 UTC
The bug doesnt seem to be arch-specific, so switching hardware to All.
After applying the patch at the end of this message for debugging, I have gotten an additional log which may give more insights into the issue:
Feb 11 22:01:44 localhost.localdomain kernel: md: md125: repair done.
Feb 12 04:53:21 localhost.localdomain kernel: ------------[ cut here ]------------
Feb 12 04:53:21 localhost.localdomain kernel: WARNING: CPU: 0 PID: 5105 at drivers/md/raid5.c:5682 release_stripe_plug+0x1a0/0x210 [raid456]
Feb 12 04:53:21 localhost.localdomain kernel: Modules linked in: dm_cache_smq dm_cache raid456 async_raid6_recov async_memcpy async_pq async_xor async_tx vhost_net vhost vhost_iotlb tap tun nft_masq nft_reject_ipv4 act_csum cls_u32 sch_htb nf_nat_tftp nf_conntrack_tftp bridge stp llc kvm_hv kvm rfkill xt_conntrack nft_compat 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 nf_tables raid10 sunrpc binfmt_misc snd_hda_intel snd_intel_dspcfg snd_hda_codec joydev snd_hda_core at24 snd_hwdep onboard_usb_dev snd_seq snd_seq_device snd_pcm atlantic ofpart snd_timer tg3 ipmi_powernv snd ipmi_devintf powernv_flash vmx_crypto ipmi_msghandler mtd macsec soundcore rtc_opal opal_prd i2c_opal dm_multipath loop nfnetlink zram lz4hc_compress lz4_compress xfs dm_thin_pool dm_persistent_data dm_bio_prison dm_crypt raid1 nvme mpt3sas nvme_core uas usb_storage nvme_keyring nvme_auth ast hkdf raid_class i2c_algo_bit scsi_transport_sas scsi_dh_rdac
Feb 12 04:53:21 localhost.localdomain kernel: scsi_dh_emc scsi_dh_alua i2c_dev fuse aes_gcm_p10_crypto crypto_simd cryptd
Feb 12 04:53:21 localhost.localdomain kernel: CPU: 0 UID: 0 PID: 5105 Comm: dmcrypt_write/2 Not tainted 6.18.9-200.fc43.ppc64le #1 PREEMPT(voluntary)
Feb 12 04:53:21 localhost.localdomain kernel: Hardware name: T2P9D01 REV 1.00 POWER9 (raw) 0x4e1202 opal:skiboot-ecb1dc7 PowerNV
Feb 12 04:53:21 localhost.localdomain kernel: NIP: c00800001f460bd8 LR: c00800001f460a70 CTR: 0000000000000000
Feb 12 04:53:21 localhost.localdomain kernel: REGS: c0002000473e37d0 TRAP: 0700 Not tainted (6.18.9-200.fc43.ppc64le)
Feb 12 04:53:21 localhost.localdomain kernel: MSR: 9000000000029033 <SF,HV,EE,ME,IR,DR,RI,LE> CR: 44004440 XER: 00000000
Feb 12 04:53:21 localhost.localdomain kernel: CFAR: c00800001f460ad0 IRQMASK: 0
GPR00: c00800001f460a70 c0002000473e3a70 c00800002b528c00 c000200022807980
GPR04: c0002000473e3f48 c0002000473e3f48 0000000000090102 c000201618ce63a8
GPR08: c0000004bea445a0 c000201618ce6370 c000200022807980 000000001029c800
GPR12: c000000000d01390 c000201fff7ef300 c000000000299c28 c000000040aa6f00
GPR16: 0000000000000000 0000000000000000 0000000000000000 0000000000000000
GPR20: 0000000000000000 0000000000000000 0000000000000000 0000000000000001
GPR24: 0000000000000000 c0002000473e3c70 c0000000668cc000 c00020011829ed30
GPR28: 0000000000000000 c000201618ce63a8 c000000066903000 c000201618ce6360
Feb 12 04:53:21 localhost.localdomain kernel: NIP [c00800001f460bd8] release_stripe_plug+0x1a0/0x210 [raid456]
Feb 12 04:53:21 localhost.localdomain kernel: LR [c00800001f460a70] release_stripe_plug+0x38/0x210 [raid456]
Feb 12 04:53:21 localhost.localdomain kernel: Call Trace:
Feb 12 04:53:21 localhost.localdomain kernel: [c0002000473e3a70] [c00800001f460a70] release_stripe_plug+0x38/0x210 [raid456] (unreliable)
Feb 12 04:53:21 localhost.localdomain kernel: [c0002000473e3b00] [c00800001f465ab4] make_stripe_request+0x32c/0x560 [raid456]
Feb 12 04:53:21 localhost.localdomain kernel: [c0002000473e3bd0] [c00800001f465eb8] raid5_make_request+0x1d0/0x610 [raid456]
Feb 12 04:53:21 localhost.localdomain kernel: [c0002000473e3d10] [c000000001369cc4] md_handle_request+0x1c4/0x400
Feb 12 04:53:21 localhost.localdomain kernel: [c0002000473e3da0] [c000000000d04270] __submit_bio+0x230/0x3d0
Feb 12 04:53:21 localhost.localdomain kernel: [c0002000473e3e40] [c000000000d044a4] __submit_bio_noacct+0x94/0x250
Feb 12 04:53:21 localhost.localdomain kernel: [c0002000473e3eb0] [c0000000013876fc] dm_submit_bio_remap+0x4c/0x120
Feb 12 04:53:21 localhost.localdomain kernel: [c0002000473e3ef0] [c00800001d0d26a8] dmcrypt_write+0x1a0/0x200 [dm_crypt]
Feb 12 04:53:21 localhost.localdomain kernel: [c0002000473e3f90] [c000000000299da8] kthread+0x188/0x1a0
Feb 12 04:53:21 localhost.localdomain kernel: [c0002000473e3fe0] [c00000000000ded8] start_kernel_thread+0x14/0x18
Feb 12 04:53:21 localhost.localdomain kernel: Code: 60000000 60420000 f9290000 f9290008 39290010 4200fff4 4bfffec8 60000000 60000000 60420000 f9410068 f9210060 <0fe00000> 3c820000 e8848050 3c620000
Feb 12 04:53:21 localhost.localdomain kernel: ---[ end trace 0000000000000000 ]---
Feb 12 04:53:21 localhost.localdomain kernel: raid5: plug list add with non-empty lru: sector=1147347968 state=90102 count=2
Patch:
--- a/drivers/md/raid5.c
+++ b/drivers/md/raid5.c
@@ -5676,10 +5676,20 @@
INIT_LIST_HEAD(cb->temp_inactive_list + i);
}
- if (!test_and_set_bit(STRIPE_ON_UNPLUG_LIST, &sh->state))
+ if (!test_and_set_bit(STRIPE_ON_UNPLUG_LIST, &sh->state)) {
+ /* Hold a ref for the plug list so release can't drop to zero. */
+ atomic_inc(&sh->count);
+ if (WARN_ON_ONCE(!list_empty(&sh->lru)))
+ pr_warn_ratelimited("raid5: plug list add with non-empty lru: sector=%llu state=%lx count=%d\n",
+ (unsigned long long)sh->sector,
+ sh->state, atomic_read(&sh->count));
list_add_tail(&sh->lru, &cb->list);
- else
- raid5_release_stripe(sh);
+ } else {
+ pr_warn_ratelimited("raid5: duplicate release_stripe_plug: sector=%llu state=%lx count=%d\n",
+ (unsigned long long)sh->sector,
+ sh->state, atomic_read(&sh->count));
+ }
+ raid5_release_stripe(sh);
}
static void make_discard_request(struct mddev *mddev, struct bio *bi)
I have minor data corruption (less than 1MB), in some areas of a postgresql database running on this array now in some heap table: ERROR: XX001: invalid page in block 6167878 of relation "base/16384/16763" and when zero-ing those pages using "zero_damaged_pages=on", it keeps coming back at the same location, running scrub/check detects no errors. I went back to stock Fedora kernel as to rule out anything custom I tried to add more logging, or fix it, and today I was met with a lockup of my RAID6 array again:
[335766.687929] slab raid6-md126 start c000000cca80b2e0 pointer offset 16 size 2544
[335766.687995] list_add corruption. prev->next should be next (c000200076aab660), but was c000000cca80b2f0. (prev=c000000cca80b2f0).
[335766.688057] ------------[ cut here ]------------
[335766.688093] kernel BUG at lib/list_debug.c:32!
[335766.688125] Oops: Exception in kernel mode, sig: 5 [#1]
[335766.688167] LE PAGE_SIZE=64K MMU=Radix SMP NR_CPUS=2048 NUMA PowerNV
[335766.688200] Modules linked in: vhost_net vhost vhost_iotlb tap tun nft_masq nft_reject_ipv4 act_csum cls_u32 sch_htb nf_nat_tftp nf_conntrack_tftp bridge stp llc kvm_hv kvm rfkill xt_conntrack nft_compat 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 nf_tables dm_cache_smq dm_cache raid456 async_raid6_recov async_memcpy async_pq async_xor async_tx raid10 sunrpc binfmt_misc snd_hda_intel snd_intel_dspcfg snd_hda_codec snd_hda_core joydev snd_hwdep at24 snd_seq snd_seq_device snd_pcm onboard_usb_dev atlantic snd_timer ofpart snd powernv_flash ipmi_powernv tg3 ipmi_devintf vmx_crypto mtd macsec soundcore ipmi_msghandler opal_prd rtc_opal i2c_opal loop dm_multipath nfnetlink zram lz4hc_compress lz4_compress xfs dm_thin_pool dm_persistent_data dm_bio_prison dm_crypt raid1 nvme nvme_core mpt3sas uas nvme_keyring usb_storage nvme_auth hkdf ast i2c_algo_bit raid_class scsi_transport_sas scsi_dh_rdac
[335766.688372] scsi_dh_emc scsi_dh_alua i2c_dev fuse aes_gcm_p10_crypto crypto_simd cryptd
[335766.689068] CPU: 17 UID: 0 PID: 2767 Comm: dmcrypt_write/2 Not tainted 6.18.10-200.fc43.ppc64le #1 PREEMPT(voluntary)
[335766.689178] Hardware name: T2P9D01 REV 1.00 POWER9 (raw) 0x4e1202 opal:skiboot-ecb1dc7 PowerNV
[335766.689228] NIP: c000000000e0a23c LR: c000000000e0a238 CTR: 0000000000000000
[335766.689293] REGS: c00020005e36f7a0 TRAP: 0700 Not tainted (6.18.10-200.fc43.ppc64le)
[335766.689363] MSR: 9000000000029033 <SF,HV,EE,ME,IR,DR,RI,LE> CR: 24004280 XER: 000000dd
[335766.689426] CFAR: c00000000034546c IRQMASK: 0
GPR00: c000000000e0a238 c00020005e36fa40 c0000000026ba900 0000000000000075
GPR04: 00000000ffffbfff 0000000000000001 0000201ff74a0000 0000000000000001
GPR08: 0000000000000027 0000000000000000 0000000000000000 c00020005e36f890
GPR12: c000201fff18ffa8 c000201fff7de580 c000000000299c28 c000000018f1f640
GPR16: 0000000000000000 0000000000000000 0000000000000000 0000000000000000
GPR20: 0000000000000000 0000000000000000 0000000000000000 0000000000000001
GPR24: 0000000000000000 c00020005e36fc70 c00000003fe2c800 c000201ccfe48530
GPR28: 0000000000000000 c000000f4e856608 c000200009788000 c000000f4e8565c0
[335766.690017] NIP [c000000000e0a23c] __list_add_valid_or_report+0xdc/0x140
[335766.690069] LR [c000000000e0a238] __list_add_valid_or_report+0xd8/0x140
[335766.690146] Call Trace:
[335766.690198] [c00020005e36fa40] [c000000000e0a238] __list_add_valid_or_report+0xd8/0x140 (unreliable)
[335766.690278] [c00020005e36fab0] [c008000026560ad4] release_stripe_plug+0x9c/0x150 [raid456]
[335766.690343] [c00020005e36fb00] [c0080000265659f4] make_stripe_request+0x32c/0x560 [raid456]
[335766.690433] [c00020005e36fbd0] [c008000026565df8] raid5_make_request+0x1d0/0x610 [raid456]
[335766.690510] [c00020005e36fd10] [c00000000136a3a4] md_handle_request+0x1c4/0x400
[335766.690590] [c00020005e36fda0] [c000000000d048f0] __submit_bio+0x230/0x3d0
[335766.690656] [c00020005e36fe40] [c000000000d04b24] __submit_bio_noacct+0x94/0x250
[335766.690719] [c00020005e36feb0] [c000000001387e5c] dm_submit_bio_remap+0x4c/0x120
[335766.690810] [c00020005e36fef0] [c00800001c3326a8] dmcrypt_write+0x1a0/0x200 [dm_crypt]
[335766.690902] [c00020005e36ff90] [c000000000299da8] kthread+0x188/0x1a0
[335766.690993] [c00020005e36ffe0] [c00000000000ded8] start_kernel_thread+0x14/0x18
[335766.691087] Code: f8c10060 f8010080 4b883835 60000000 3c62ff82 38639420 e8c10060 e9210068 e8a60000 7d244b78 4b53b1f5 60000000 <0fe00000> 7c0802a6 7c852378 7c641b78
[335766.691220] ---[ end trace 0000000000000000 ]---
[335767.221202] pstore: backend (nvram) writing error (-1)
[335767.221269] note: dmcrypt_write/2[2767] exited with irqs disabled
[335767.221342] ------------[ cut here ]------------
[335767.221372] WARNING: CPU: 17 PID: 2767 at kernel/exit.c:903 do_exit+0x5c/0x5b0
[335767.221412] Modules linked in: vhost_net vhost vhost_iotlb tap tun nft_masq nft_reject_ipv4 act_csum cls_u32 sch_htb nf_nat_tftp nf_conntrack_tftp bridge stp llc kvm_hv kvm rfkill xt_conntrack nft_compat 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 nf_tables dm_cache_smq dm_cache raid456 async_raid6_recov async_memcpy async_pq async_xor async_tx raid10 sunrpc binfmt_misc snd_hda_intel snd_intel_dspcfg snd_hda_codec snd_hda_core joydev snd_hwdep at24 snd_seq snd_seq_device snd_pcm onboard_usb_dev atlantic snd_timer ofpart snd powernv_flash ipmi_powernv tg3 ipmi_devintf vmx_crypto mtd macsec soundcore ipmi_msghandler opal_prd rtc_opal i2c_opal loop dm_multipath nfnetlink zram lz4hc_compress lz4_compress xfs dm_thin_pool dm_persistent_data dm_bio_prison dm_crypt raid1 nvme nvme_core mpt3sas uas nvme_keyring usb_storage nvme_auth hkdf ast i2c_algo_bit raid_class scsi_transport_sas scsi_dh_rdac
[335767.221597] scsi_dh_emc scsi_dh_alua i2c_dev fuse aes_gcm_p10_crypto crypto_simd cryptd
[335767.222381] CPU: 17 UID: 0 PID: 2767 Comm: dmcrypt_write/2 Tainted: G D 6.18.10-200.fc43.ppc64le #1 PREEMPT(voluntary)
[335767.222457] Tainted: [D]=DIE
[335767.222499] Hardware name: T2P9D01 REV 1.00 POWER9 (raw) 0x4e1202 opal:skiboot-ecb1dc7 PowerNV
[335767.222607] NIP: c00000000026035c LR: c000000000260950 CTR: 0000000000000000
[335767.222726] REGS: c00020005e36f330 TRAP: 0700 Tainted: G D (6.18.10-200.fc43.ppc64le)
[335767.222812] MSR: 9000000002029033 <SF,HV,VEC,EE,ME,IR,DR,RI,LE> CR: 24004280 XER: 200400dd
[335767.222861] CFAR: c00000000026094c IRQMASK: 0
GPR00: c000000000260950 c00020005e36f5d0 c0000000026ba900 0000000000000005
GPR04: 0000000000002710 0000000000000001 0000201ff74a0000 0000000000000001
GPR08: 0000000000000005 0000000000000001 c00020005e36ff18 0000000000004000
GPR12: c000201fff18ffa8 c000201fff7de580 0000000000000000 0000000000000000
GPR16: 0000000000000000 0000000000000000 0000000000000000 0000000000000000
GPR20: 0000000000000000 0000000000000000 0000000000000000 0000000000000000
GPR24: 0000000000000000 0000000000000000 0000000000000000 0000000000000000
GPR28: 0000000000000005 0000000000000003 c000000003e3a900 c00020005e2c9800
[335767.223321] NIP [c00000000026035c] do_exit+0x5c/0x5b0
[335767.223381] LR [c000000000260950] make_task_dead+0xa0/0x1d0
[335767.223456] Call Trace:
[335767.223495] [c00020005e36f5d0] [c00020005e36f600] 0xc00020005e36f600 (unreliable)
[335767.223594] [c00020005e36f670] [c000000000260950] make_task_dead+0xa0/0x1d0
[335767.223654] [c00020005e36f6f0] [c00000000002a314] oops_end+0x164/0x1a0
[335767.223706] [c00020005e36f770] [c000000000009b2c] program_check_common_virt+0x3bc/0x3c0
[335767.223761] ---- interrupt: 700 at __list_add_valid_or_report+0xdc/0x140
[335767.223821] NIP: c000000000e0a23c LR: c000000000e0a238 CTR: 0000000000000000
[335767.223892] REGS: c00020005e36f7a0 TRAP: 0700 Tainted: G D (6.18.10-200.fc43.ppc64le)
[335767.223982] MSR: 9000000000029033 <SF,HV,EE,ME,IR,DR,RI,LE> CR: 24004280 XER: 000000dd
[335767.224047] CFAR: c00000000034546c IRQMASK: 0
GPR00: c000000000e0a238 c00020005e36fa40 c0000000026ba900 0000000000000075
GPR04: 00000000ffffbfff 0000000000000001 0000201ff74a0000 0000000000000001
GPR08: 0000000000000027 0000000000000000 0000000000000000 c00020005e36f890
GPR12: c000201fff18ffa8 c000201fff7de580 c000000000299c28 c000000018f1f640
GPR16: 0000000000000000 0000000000000000 0000000000000000 0000000000000000
GPR20: 0000000000000000 0000000000000000 0000000000000000 0000000000000001
GPR24: 0000000000000000 c00020005e36fc70 c00000003fe2c800 c000201ccfe48530
GPR28: 0000000000000000 c000000f4e856608 c000200009788000 c000000f4e8565c0
[335767.224614] NIP [c000000000e0a23c] __list_add_valid_or_report+0xdc/0x140
[335767.224699] LR [c000000000e0a238] __list_add_valid_or_report+0xd8/0x140
[335767.224801] ---- interrupt: 700
[335767.224850] [c00020005e36fab0] [c008000026560ad4] release_stripe_plug+0x9c/0x150 [raid456]
[335767.224940] [c00020005e36fb00] [c0080000265659f4] make_stripe_request+0x32c/0x560 [raid456]
[335767.225020] [c00020005e36fbd0] [c008000026565df8] raid5_make_request+0x1d0/0x610 [raid456]
[335767.225090] [c00020005e36fd10] [c00000000136a3a4] md_handle_request+0x1c4/0x400
[335767.225162] [c00020005e36fda0] [c000000000d048f0] __submit_bio+0x230/0x3d0
[335767.225219] [c00020005e36fe40] [c000000000d04b24] __submit_bio_noacct+0x94/0x250
[335767.225350] [c00020005e36feb0] [c000000001387e5c] dm_submit_bio_remap+0x4c/0x120
[335767.225409] [c00020005e36fef0] [c00800001c3326a8] dmcrypt_write+0x1a0/0x200 [dm_crypt]
[335767.225472] [c00020005e36ff90] [c000000000299da8] kthread+0x188/0x1a0
[335767.225535] [c00020005e36ffe0] [c00000000000ded8] start_kernel_thread+0x14/0x18
[335767.225608] Code: 91610008 f8010010 f821ff61 e92d0c78 f9210078 39200000 892d0932 552907fe 0b090000 e95f0c68 312affff 7d295110 <0b090000> ebbf0b90 ebdf0b88 7fa3eb78
[335767.225723] ---[ end trace 0000000000000000 ]---
This message is a reminder that Fedora Linux 43 is nearing its end of life. Fedora will stop maintaining and issuing updates for Fedora Linux 43 on 2026-12-02. It is Fedora's policy to close all bug reports from releases that are no longer maintained. At that time this bug will be closed as EOL if it remains open with a 'version' of '43'. Package Maintainer: If you wish for this bug to remain open because you plan to fix it in a currently maintained version, change the 'version' to a later Fedora Linux version. Note that the version field may be hidden. Click the "Show advanced fields" button if you do not see it. Thank you for reporting this issue and we are sorry that we were not able to fix it before Fedora Linux 43 is end of life. If you would still like to see this bug fixed and are able to reproduce it against a later version of Fedora Linux, you are encouraged to change the 'version' to a later version prior to this bug being closed. |