ciss.ko incorrect hash

Hi,

I have functional 15.1-RELEASE-p6 amd64 system (traditional, UFS) which has been upgraded (freebsd-update) over many releases. It is lately complaining over incorrect hash for freebsd-update but I went with it anyway. The culprit seems to be ciss.ko, according to freebsd-update IDS:

Code:
/boot/kernel/ciss.ko has SHA256 hash e2452dd9bfdfc427b98b08d2ffedb56b9c2146d3c5091c89643896b21d6cb752, but should have SHA256 hash 001a0694e078f16fc965510635b501bc3cdfb2d0d881881e0cf6f950854fbd41.
/boot/kernel/ciss.ko has SHA256 hash e2452dd9bfdfc427b98b08d2ffedb56b9c2146d3c5091c89643896b21d6cb752, but should have SHA256 hash a4252bcc88e2fa03534ebfb228459e35b22bc86e1c3a8f1e094cbc3264761463.
/boot/kernel/ciss.ko has SHA256 hash e2452dd9bfdfc427b98b08d2ffedb56b9c2146d3c5091c89643896b21d6cb752, but should have SHA256 hash d8ad8a440399c3953d6cab439e25bfea4559071a8e160f14923c31d5415f948e.

I guess I could copy ciss.ko from another functional system, but which one should it be? How come three different correct hashes are reported?

Thank you in advance.
 
Well, if you have another system with the same release and patch (and same architecture) you can always run sha256sum on the /boot/kernel/ciss.ko on that machine and compare.
 
001a0694e078f16fc965510635b501bc3cdfb2d0d881881e0cf6f950854fbd41
one extracted from FreeBSD-kernel-generic-15.1p6~41fd35a70f.pkg
 
Yes, I have 001a0694e078f16fc965510635b501bc3cdfb2d0d881881e0cf6f950854fbd41 on another similar system which does not have problem with incorrect hash.

But why does freebsd-update IDS report three different correct hashes?
 
i can't be 100% sure but here is my take
the index-all file created from data on freebsd servers is a combo of all the release files + all the patched files in subsequent patches
so if there are 2 patch levels some files are 2x and some can be 3x (if they changed with every patch)
when the comparing with the actual files on the filesystem is done if your hash matches any of the official patches or the release one is not shown
if it matches none is shown n times depending how many patches changed the file
 
Back
Top