Are hash mismatches a problem?

Are hash mismatches a problem? I get these 4 on diagnose and remain after running repair.
:point_down: :point_down: :point_down: :point_down: :point_down:

sudo swupd diagnose
Diagnosing version 42110
Downloading missing manifests…

Checking for missing files
[100%]

Checking for corrupt files
→ Hash mismatch for file: /usr/lib/modules/6.10.2-1454.native/modules.alias
→ Hash mismatch for file: /usr/lib/modules/6.10.2-1454.native/modules.alias.bin
→ Hash mismatch for file: /usr/lib/modules/6.10.2-1454.native/modules.dep
→ Hash mismatch for file: /usr/lib/modules/6.10.2-1454.native/modules.dep.bin
[100%]

Checking for extraneous files
[100%]

Inspected 289278 files
4 files did not match

Use “swupd repair” to correct the problems in the system

Diagnose successful

+++++++++++++++++++++++++++++++++++

sudo swupd repair
Diagnosing version 42110
Downloading missing manifests…

Checking for corrupt files
[100%]

Validate downloaded files
[100%]

Starting download of remaining update content. This may take a while (6 files)…
[100%]

Adding any missing files
[100%]

Repairing corrupt files
→ Hash mismatch for file: /usr/lib/modules/6.10.2-1454.native/modules.alias → fixed
→ Hash mismatch for file: /usr/lib/modules/6.10.2-1454.native/modules.alias.bin → fixed
→ Hash mismatch for file: /usr/lib/modules/6.10.2-1454.native/modules.dep → fixed
→ Hash mismatch for file: /usr/lib/modules/6.10.2-1454.native/modules.dep.bin → fixed
[100%]

Removing extraneous files
[100%]

Inspected 289278 files
4 files did not match
4 of 4 files were repaired
0 of 4 files were not repaired

Calling post-update helper scripts
External command: none
External command: Warning: The kernel is still using the old partition table.
External command: The new table will be used at the next reboot or after you
External command: run partprobe(8) or kpartx(8)
External command: The operation has completed successfully.

Repair successful

+++++++++++++++++++++++++++++++++++++++++++

sudo swupd diagnose
Diagnosing version 42110
Downloading missing manifests…

Checking for missing files
[100%]

Checking for corrupt files
→ Hash mismatch for file: /usr/lib/modules/6.10.2-1454.native/modules.alias
→ Hash mismatch for file: /usr/lib/modules/6.10.2-1454.native/modules.alias.bin
→ Hash mismatch for file: /usr/lib/modules/6.10.2-1454.native/modules.dep
→ Hash mismatch for file: /usr/lib/modules/6.10.2-1454.native/modules.dep.bin
[100%]

Checking for extraneous files
[100%]

Inspected 289278 files
4 files did not match

Use “swupd repair” to correct the problems in the system

Diagnose successful

I’m not able to replicate this issue but hash mismatches aren’t intended to be able to persist after a repair success. Can you see list what swupd hashdump shows for one of the files before and after repair?

Like this?

From off, Booted up computer.

sudo swupd hashdump modules.alias
Calculating hash with xattrs for: modules.alias
0000000000000000000000000000000000000000000000000000000000000000

+++++++++++++++++++

udo swupd hashdump modules.alias.bin
Calculating hash with xattrs for: modules.alias.bin
0000000000000000000000000000000000000000000000000000000000000000

++++++++++++++++++

sudo swupd hashdump modules.dep
Calculating hash with xattrs for: modules.dep
0000000000000000000000000000000000000000000000000000000000000000

++++++++++++++++++

sudo swupd hashdump modules.dep.bin
Calculating hash with xattrs for: modules.dep.bin
0000000000000000000000000000000000000000000000000000000000000000

++++++++++++++++++++++

sudo swupd repair
Diagnosing version 42110
Downloading missing manifests…

Checking for corrupt files
[100%]

Validate downloaded files
[100%]

No extra files need to be downloaded
[100%]

Adding any missing files
[100%]

Repairing corrupt files
→ Hash mismatch for file: /usr/lib/modules/6.10.2-1454.native/modules.alias → fixed
→ Hash mismatch for file: /usr/lib/modules/6.10.2-1454.native/modules.alias.bin → fixed
→ Hash mismatch for file: /usr/lib/modules/6.10.2-1454.native/modules.dep → fixed
→ Hash mismatch for file: /usr/lib/modules/6.10.2-1454.native/modules.dep.bin → fixed
[100%]

Removing extraneous files
[100%]

Inspected 289278 files
4 files did not match
4 of 4 files were repaired
0 of 4 files were not repaired

Calling post-update helper scripts
External command: none
External command: Warning: The kernel is still using the old partition table.
External command: The new table will be used at the next reboot or after you
External command: run partprobe(8) or kpartx(8)
External command: The operation has completed successfully.

Repair successful

++++++++++++++++++++++++

sudo swupd hashdump modules.alias
Calculating hash with xattrs for: modules.alias
0000000000000000000000000000000000000000000000000000000000000000

+++++++++++++++++++++++

sudo swupd hashdump modules.alias.bin
Calculating hash with xattrs for: modules.alias.bin
0000000000000000000000000000000000000000000000000000000000000000

++++++++++++++++++++++

sudo swupd hashdump modules.dep
Calculating hash with xattrs for: modules.dep
0000000000000000000000000000000000000000000000000000000000000000

++++++++++++++++++++++

sudo swupd hashdump modules.dep.bin
Calculating hash with xattrs for: modules.dep.bin
0000000000000000000000000000000000000000000000000000000000000000

++++++++++++++++++++++

sudo swupd diagnose
Diagnosing version 42110
Downloading missing manifests…

Checking for missing files
[100%]

Checking for corrupt files
→ Hash mismatch for file: /usr/lib/modules/6.10.2-1454.native/modules.alias
→ Hash mismatch for file: /usr/lib/modules/6.10.2-1454.native/modules.alias.bin
→ Hash mismatch for file: /usr/lib/modules/6.10.2-1454.native/modules.dep
→ Hash mismatch for file: /usr/lib/modules/6.10.2-1454.native/modules.dep.bin
[100%]

Checking for extraneous files
[100%]

Inspected 289278 files
4 files did not match

Use “swupd repair” to correct the problems in the system

Diagnose successful

I don’t understand this either and It dose not go away.

You’ll need to give it the full path to the file.
sudo swupd hashdump /usr/lib/modules/6.10.2-1454.native/modules.alias

That is a message you get when you’ve recently updated your partition table of an active partition.

Interesting. Haven’t messed with the partition table. Been getting that warning since, install.

sudo swupd hashdump /usr/lib/modules/6.10.2-1454.native/modules.alias
Calculating hash with xattrs for: /usr/lib/modules/6.10.2-1454.native/modules.alias
a0c3e92e8b79cafa4c3b215381f3ee452ad8e7439903dc03a626a6697eeb8df7

sudo swupd hashdump /usr/lib/modules/6.10.2-1454.native/modules.alias.bin
Calculating hash with xattrs for: /usr/lib/modules/6.10.2-1454.native/modules.alias.bin
c3597f9511e958945a370caec80d3c242ca83fd55ce649ef52a25f1857034af5

sudo swupd hashdump /usr/lib/modules/6.10.2-1454.native/modules.dep
Calculating hash with xattrs for: /usr/lib/modules/6.10.2-1454.native/modules.dep
13ed3a09b544f2d86d46a330255212928ee89a0a405e5616ebd0210858077dea

sudo swupd hashdump /usr/lib/modules/6.10.2-1454.native/modules.dep.bin
Calculating hash with xattrs for: /usr/lib/modules/6.10.2-1454.native/modules.dep.bin
7b16601699e59289942ba613e10f904cbdc473349958ce003c6e67f6aa21fdc2

++++++++++++++++++++++++++++++++

sudo swupd repair
Diagnosing version 42110
Downloading missing manifests…

Checking for corrupt files
[100%]

Validate downloaded files
[100%]

No extra files need to be downloaded
[100%]

Adding any missing files
[100%]

Repairing corrupt files
→ Hash mismatch for file: /usr/lib/modules/6.10.2-1454.native/modules.alias → fixed
→ Hash mismatch for file: /usr/lib/modules/6.10.2-1454.native/modules.alias.bin → fixed
→ Hash mismatch for file: /usr/lib/modules/6.10.2-1454.native/modules.dep → fixed
→ Hash mismatch for file: /usr/lib/modules/6.10.2-1454.native/modules.dep.bin → fixed
[100%]

Removing extraneous files
[100%]

Inspected 289278 files
4 files did not match
4 of 4 files were repaired
0 of 4 files were not repaired

Calling post-update helper scripts
External command: none
External command: Warning: The kernel is still using the old partition table.
External command: The new table will be used at the next reboot or after you
External command: run partprobe(8) or kpartx(8)
External command: The operation has completed successfully.

Repair successful

++++++++++++++++++++++++

sudo swupd diagnose
Diagnosing version 42110
Downloading missing manifests…

Checking for missing files
[100%]

Checking for corrupt files
→ Hash mismatch for file: /usr/lib/modules/6.10.2-1454.native/modules.alias
→ Hash mismatch for file: /usr/lib/modules/6.10.2-1454.native/modules.alias.bin
→ Hash mismatch for file: /usr/lib/modules/6.10.2-1454.native/modules.dep
→ Hash mismatch for file: /usr/lib/modules/6.10.2-1454.native/modules.dep.bin
[100%]

Checking for extraneous files
[100%]

Inspected 289278 files
4 files did not match

Use “swupd repair” to correct the problems in the system

Diagnose successful

++++++++++++++++++++++

sudo swupd hashdump /usr/lib/modules/6.10.2-1454.native/modules.alias
Calculating hash with xattrs for: /usr/lib/modules/6.10.2-1454.native/modules.alias
a0c3e92e8b79cafa4c3b215381f3ee452ad8e7439903dc03a626a6697eeb8df7

sudo swupd hashdump /usr/lib/modules/6.10.2-1454.native/modules.alias.bin
Calculating hash with xattrs for: /usr/lib/modules/6.10.2-1454.native/modules.alias.bin
c3597f9511e958945a370caec80d3c242ca83fd55ce649ef52a25f1857034af5

sudo swupd hashdump /usr/lib/modules/6.10.2-1454.native/modules.dep
Calculating hash with xattrs for: /usr/lib/modules/6.10.2-1454.native/modules.dep
13ed3a09b544f2d86d46a330255212928ee89a0a405e5616ebd0210858077dea

sudo swupd hashdump /usr/lib/modules/6.10.2-1454.native/modules.dep.bin
Calculating hash with xattrs for: /usr/lib/modules/6.10.2-1454.native/modules.dep.bin
7b16601699e59289942ba613e10f904cbdc473349958ce003c6e67f6aa21fdc2

Did you restart your system after the installation?

Yes.

Also, root has created and delete permission on the folder, 6.10.2-1454.native.

modified:
2 August 2024 03∶40∶48 PM

3:53pm right now.

Well that is the wrong hash and consistently so… Very weird.

Could you download the following:
https://download.clearlinux.org/update/42110/files/ec6682a1a43c09b7ec521088c154091bf1f5bacbb7f26f2565aad9841a0d9bf4.tar

Extract it with:
sudo tar xf ec6682a1a43c09b7ec521088c154091bf1f5bacbb7f26f2565aad9841a0d9bf4.tar

and then run:
swupd hashdump ec6682a1a43c09b7ec521088c154091bf1f5bacbb7f26f2565aad9841a0d9bf4

and tell me what you get?

Just jumping in here… this is because DKMS has added new modules and had to run depmod to update these specific files so the new modules will load automatically. Unfortunately swupd can’t really distinguish that case, so it’s just an artifact of using DKMS.

As @william.douglas was trying to mention, this is a completely separate issue. If this specifically still happens after a reboot, please open a new thread to discuss it.

1 Like

Just to note, on all files root has read/ write permission set.

swupd hashdump ec6682a1a43c09b7ec521088c154091bf1f5bacbb7f26f2565aad9841a0d9bf4
Calculating hash with xattrs for: ec6682a1a43c09b7ec521088c154091bf1f5bacbb7f26f2565aad9841a0d9bf4
ec6682a1a43c09b7ec521088c154091bf1f5bacbb7f26f2565aad9841a0d9bf4

Roger that. been there since install on July 30, 2024.

So, ignore the mismatch errors?

For those specific files, yes.

1 Like

Okay. Started a new thread in regards the partition table warning.