Bug #79104
closedomap_digest_mismatch on s390 only after upgrade to tentacle
0%
Description
I took a look at the following which are the unique errors seen.
$ for file in $(ag -l "!= omap_digest"); do grep "!= omap_digest" $file; done|grep -oE 'omap_digest 0x[[:xdigit:]]+ != omap_digest 0x[[:xdigit:]]+'|sort -u omap_digest 0x11e26ae2 != omap_digest 0xa0cf5bd9 omap_digest 0x17c9c48b != omap_digest 0x24905ce6 omap_digest 0x1a72e2a1 != omap_digest 0x9d3cf13c omap_digest 0x2e6e438c != omap_digest 0x51bdc617 omap_digest 0x2f4b978e != omap_digest 0xe2221d42 omap_digest 0x330f4497 != omap_digest 0xbbbc1a16 omap_digest 0x3f43d24b != omap_digest 0x45ba7e54 omap_digest 0x465c653d != omap_digest 0x3ca5c922 omap_digest 0x47430f94 != omap_digest 0xb8791c09 omap_digest 0x588baf61 != omap_digest 0xa04e6bdf omap_digest 0x60e2248b != omap_digest 0xc377d112 omap_digest 0x6abfb4e7 != omap_digest 0x104618f8 omap_digest 0x76d816bb != omap_digest 0x6a2e6157 omap_digest 0x7d8879e6 != omap_digest 0xfa4821c9 omap_digest 0x7f55f781 != omap_digest 0x8790333f omap_digest 0x827f08c1 != omap_digest 0x551db305 omap_digest 0x85cb99d2 != omap_digest 0xd78c753 omap_digest 0x956f73d3 != omap_digest 0xe63a6394 omap_digest 0xade125e1 != omap_digest 0xb117520d omap_digest 0xb11c192b != omap_digest 0xc19b3af9 omap_digest 0xb560c468 != omap_digest 0xcf996877 omap_digest 0xc1751db2 != omap_digest 0x6511fb26 omap_digest 0xc3a03e4 != omap_digest 0x84895d65 omap_digest 0xd2b08337 != omap_digest 0xa1e59370 omap_digest 0xd5da2057 != omap_digest 0x84351b06 omap_digest 0xdf7ed215 != omap_digest 0x27bb16ab omap_digest 0xed3eba2e != omap_digest 0xba42fef9 omap_digest 0xf3ee44c5 != omap_digest 0xef183329 omap_digest 0xfdc5ac9c != omap_digest 0xac2a97cd
Given this only happens after an update to tentacle from an older version, and since only omap data digest is affected, and given that all digests in the extended attributes of all three shards of the object all agree with each other but all disagree with the versions calculated on the fly I went looking for a potential commit introduced in tentacle that might explain this behavior.
I identified b92c919fdb94dc1a284ed9b24d0b4929afa15b7e as a strong contender and then explained the situation to an AI and asked it if it could explain what was happening.
On x86 the old and new way of generating the hash are identical. On s390 (big-endian) the 4-byte length fields are byte-reversed. This is a genuine, architecture-specific behavioral change in the digest computation. The XOR-is-constant property is confirmed — for any fixed omap structure (entry count and key/value sizes), the XOR diff between old and new digests is the same regardless of omap content. This was verified empirically with 1,000 random trials per shape. 4/18 unique XOR diffs are numerically matched to specific omap structures (n, keylen, vallen) within the searched parameter space. Bottom line The theory is structurally sound and sourced directly from the code. The 4 confirmed numerical matches are not coincidences — the probability of 4 independent 32-bit values randomly landing in a set of 18 targets by chance is astronomically small. The 14 misses are a search-range problem, not a theory problem.
So not rock solid but a high level of confidence.
The write-temp-key workaround and the code fix are not commutative — applying both in the wrong order produces a third state. Anyone deploying the fix needs to know which objects were "remediated" on the buggy build so they can either remediate again, or pre-clear the digest before the fix lands.
In theory this should affect any s390 installation that upgrades to an affected version of tentacle or newer.
I'm working on a patch in conjunction with, and reviewed by the AI.
BH Updated by Brad Hubbard 4 months ago
- Tags set to s390
- Severity changed from 1 - critical to 2 - major
BH Updated by Brad Hubbard 4 months ago
- Pull request ID set to 70869
BH Updated by Brad Hubbard 4 months ago
- Status changed from In Progress to Fix Under Review
BH Updated by Brad Hubbard 4 months ago · Edited
So any cluster affected by this is currently in this state.
Pre-upgrade objects (the majority):
Stored digest = LE (written by pre-20.x bufferhash/encode() path)
Live scrub on buggy 20.x = BE → mismatch → currently flagged as invalid
Live scrub on patched build = LE → match → healed automatically, no action needed
Post-upgrade objects that received a write (the [0] "fixed by temp key" ones, and any object that had an omap write after the upgrade):
Stored digest = BE (written by buggy 20.x crc32_netstring)
Live scrub on buggy 20.x = BE → match → currently considered valid
Live scrub on patched build = LE → mismatch → will become newly invalid after patch
So it may be necessary to just clear the omap_digests on all objects in a pool and then deep scrub that pools pgs as soon as possible afterwards to recreate the digests.
RZ Updated by Radoslaw Zarzynski 4 months ago
Fix approved.
LF Updated by Laura Flores 4 months ago
- Status changed from Fix Under Review to Pending Backport
UB Updated by Upkeep Bot 4 months ago
- Merge Commit set to c08181452125997e6d8074980bd01b573bbb0444
- Fixed In set to v21.3.0-2137-gc081814521
- Upkeep Timestamp set to 2026-08-18T20:03:29+00:00
UB Updated by Upkeep Bot 4 months ago
- Copied to Backport #79582: umbrella: omap_digest_mismatch on s390 only after upgrade to tentacle added
UB Updated by Upkeep Bot 4 months ago
- Copied to Backport #79583: tentacle: omap_digest_mismatch on s390 only after upgrade to tentacle added
UB Updated by Upkeep Bot 4 months ago
- Tags (freeform) set to backport_processed
UB Updated by Upkeep Bot 3 months ago
- Status changed from Pending Backport to Backporting
- Tags (freeform) deleted (
backport_processed) - Upkeep Timestamp changed from 2026-08-18T20:03:29+00:00 to 2026-08-27T18:46:06+00:00