Repository navigation
Docs: kshell exec /shell.elf | cat does not hang - #190
Merged
Merged
Conversation
The 2026-10 audit recorded this as an open, undiagnosed hang. Serial-direct
tracing shows the probe typed every line while shell.elf was being
signature-verified with interrupts masked, so QEMU's PS/2 queue dropped the
keystrokes ("echo INNER" arrived as "eche", "exit" never arrived) and the
child waited on stdin. With typing held until the child read stdin, the
pipeline completed and the outer shell answered.
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Corrects
doc/SECURITY_AUDIT_2026-10.md§3. The kernel-shellexec /shell.elf | cat"hang" recorded in #189 is a probe artifact, not a kernel bug.Diagnosis (serial-direct instrumentation, since reverted):
stdin_readon the console. The kernel shell was blocked insys_waitpidon it, as designed.shell.elfwas being signature-verified with interrupts masked. QEMU's PS/2 queue dropped the overflow:echo INNERreached the child aseche, andexitnever arrived.echo INNERandexitwere received, the child exited,waitpidreturned,INNERcame out throughcat, and the outer shell answeredecho OUTERALIVE.Docs only; no code change.
🤖 Generated with Claude Code