Report a bug#
Collect what the maintainers need to reproduce a problem, remove what identifies your hosts, and file it as a GitHub issue. This page is for bugs. A suspected vulnerability goes to Report a vulnerability instead, privately.
Before you begin#
Decide whether the problem is a vulnerability: a way to load BPF that no trusted key signed, to detach or bypass enforcement, to change sealed state, or to make evidence verify for a state the target is not in. Report those as Report a vulnerability describes, and do not open a public issue.
If a command refused with
tamperedorshirudo statusreportstampered, preserve the evidence first, as Respond to a tampered target describes, and do not reboot the target before it is safe.Reproduce the problem on the
mainbranch. shirudo has no releases yet (Versions and compatibility).Root on the target. On a target,
shirudois the binary on the runtime image (Boot integration).A directory on the target for the files, here
bug/, outside/var/lib/shirudo. shirudo refuses to write a report into sealed state.
Collect on the target#
Record the version and the version ID:
target# shirudo version > bug/version.txt
It prints two lines, for example:
shirudo (58d3fa7-dirty-rc0, "Social BPF Coding") version-id: 58b05ab35a2bcefaa649faf15f8c6be0211e24cea710450c1a29298c3b5c7de0
Save the status with the system block and the eventlog:
target# shirudo status --json --show-full > bug/status.json
The
systemblock holds the kernel release, version and build ID, and everyCONFIG_*value from/boot/config-<release>when that file exists. status JSON lists the fields.Save the pre-flight checks:
target# shirudo init --check-only > bug/preflight.txt
--check-onlyruns the pre-flight checks and stops there.Save the report of the command that fails.
upatch loadandupatch unloadwrite one with--report:target# shirudo upatch load --report=bug/load-report.json <upatch>
<upatch>is the artifact that fails to load.bpm tree syncprints its report to standard output, or to--report=<path>. Run a command again only to get its report. Never repeat a command that refused withtampered.Save shirudo’s journal of this boot:
target# journalctl --boot --identifier=shirudo \ --output=short-iso-precise > bug/journal.txt
shirudo logs under the identifier
shirudo, from the initrd’siniton. For a problem in an earlier boot, pass that boot, for example--boot=-1.Save the kernel’s messages of this boot:
target# journalctl --boot --dmesg --output=short-iso-precise \ > bug/kernel.txt
Record the kernel command line and the active LSMs:
target# cat /proc/cmdline /sys/kernel/security/lsm > bug/cmdline.txt
If
kernel_configinstatus.jsonis empty, because there is no/boot/config-<release>, save the configuration the kernel carries instead:target# zcat /proc/config.gz > bug/config.txt
This needs
CONFIG_IKCONFIG_PROC. Otherwise take the configuration from the kernel build.Add the kernel tree, the commit and the patches applied to it. A release number does not identify a bpf-next kernel, see System requirements.
Collect on the operator host#
Collect these when the problem involves a build, a package, a publication or a verification:
Record the operator’s version:
operator$ shirudo version > bug/operator-version.txt
Record the package and the toolchain:
operator$ dpkg-query --show shirudo-operator >> bug/operator-version.txt operator$ openssl version >> bug/operator-version.txt operator$ clang --version >> bug/operator-version.txt
On an RPM-based host use
rpm --query shirudo-operator. Theshirudo-buildhelper has no version command. Note which one ran:SHIRUDO_BUILDif set, else/usr/libexec/shirudo/shirudo-build, else the first onPATH.Save the exact command line, its complete output and its exit status.
For a problem with an artifact, save what it declares:
operator$ shirudo upatch info --json <upatch> > bug/upatch-info.json
Attach the artifact itself only if you may share the program it carries.
For a problem with
attest verifyorattest predict, save the command and its report. Attach the evidence document only after you have read the next section.
Remove what identifies your hosts#
None of the files above contains the TPM owner password or a registry or
collector credential. shirudo config prints tpm.owner_auth as
redacted and has no credential settings. They do contain values that
identify your hosts and your infrastructure:
Value |
Where |
Identifies |
|---|---|---|
Host name |
|
The host |
|
|
The host and the boot |
Attestation key name, endorsement key and its certificate |
The evidence document, |
The TPM. Its endorsement key is unique to it |
The firmware event log and systemd’s measurement log |
|
The firmware, its boot entries, and what systemd measured, which can include the machine ID |
Certificate SHA-256 values and fingerprints |
|
Your signing keys |
Registry hosts and repositories, OTLP endpoint, S3 URI, tenant ID |
The journal of the bpm and export units, |
Your infrastructure |
Addresses, user names, paths |
The journal, the kernel messages |
Hosts and people |
Replace each value with the same placeholder everywhere it appears, so that the files stay consistent with each other.
Never attach these files:
/etc/shirudo/shirudo.conffrom the initrd or from the runtime image. Both carrytpm.owner_auth./etc/shirudo/bpm/environmentand/etc/shirudo/map-export.env. They carry registry and collector credentials.Registry authentication files.
The operator’s key directory,
/var/lib/shirudo/keysby default or the one--keys-dirnames. It holds the private signing key.
File the issue#
Write a title that names the command or component and the symptom, for example
upatch load: verifier_rejected for a kprobe upatch.Describe what you did, what you expected and what happened, and give the shirudo commit, the version IDs of the target and the operator, and the kernel tree and commit.
Attach the files from
bug/and submit the issue.
Verify#
Open the issue and read each attachment once more for a value from the table above. If one slipped through, delete the attachment and attach a cleaned copy.
Next steps#
Troubleshoot by symptom for known symptoms and their causes
Failure categories and exit status for the category and phase in a report
Interoperability when the problem involves other software on the target