Log Message:
-----------
pkg/hash: support hashing strings
Currently passing wrong types (e.g. a string) to hash.Hash/String leads
to silent misbehavior: the part is ignored in the hash.
This is a very bad failure mode. Panic loudly.
And support hashing strings.
Changed paths:
M pkg/bisect/bisect.go
M pkg/instance/instance.go
A pkg/osutil/semaphore.go
M pkg/updater/updater.go
M syz-ci/manager.go
Log Message:
-----------
pkg/osutil: move Semaphore from pkg/instance
Semaphore is a very low-level primitive type,
while pkg/instance is a very high-level package with lots of deps.
Semaphore does not belong there, and may lead to cyclic deps
if we use it more. Move it to pkg/osutil. It's not really OS-specific,
but we don't have a better package.