Skip to content

Conversation

@dvyukov
Copy link
Collaborator

@dvyukov dvyukov commented Nov 24, 2025

  • pkg/hash: support hashing strings
  • pkg/updater: factor out of syz-ci
  • pkg/osutil: move Semaphore from pkg/instance
  • pkg/mgrconfig: export SplitTarget function

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.
@dvyukov dvyukov changed the title dvyukov agent preparation few assorted change in preparation syz-agent binary Nov 24, 2025
@dvyukov dvyukov changed the title few assorted change in preparation syz-agent binary few assorted changes in preparation syz-agent binary Nov 24, 2025
@dvyukov dvyukov enabled auto-merge November 24, 2025 07:10
Factor syzkaller updating functionality out of syz-ci
so that it can be reused in other binaries.
No functional changes intended.
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.
It will be useful for new syz-agent binary in the future.
@dvyukov dvyukov force-pushed the dvyukov-agent-preparation branch from a88e365 to b4bee18 Compare November 24, 2025 07:36
@dvyukov dvyukov added this pull request to the merge queue Nov 24, 2025
Merged via the queue into google:master with commit bf6fe8f Nov 24, 2025
17 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants