syzkaller-build-loop
Full build workflow for adding new syscall descriptions to syzkaller
- License 许可
- Apache-2.0
- 最近更新
- 2026-04-21
- Stars
- ★ 0
- Forks
- 0
01 前言 Front Matter
- name
- syzkaller-build-loop
- description
- Full build workflow for adding new syscall descriptions to syzkaller
03 SKILL.md 正文
Syzkaller Description Workflow
Full Build Loop for New Descriptions
When adding new syscall descriptions, follow this workflow:
cd /opt/syzkaller
# 1. Write/edit your .txt file in sys/linux/
# 2. Create a .const file with constant values (see syz-extract-constants skill)
# The .const file should be named: sys/linux/your_file.txt.const
# 3. Compile descriptions
make descriptions
# 4. Build syzkaller
make all
Quick Rebuild (After Minor Edits)
If you only changed descriptions (not constants):
cd /opt/syzkaller
make descriptions # Runs syz-sysgen to compile descriptions
If you add new constants, update the .const file first.
Common Errors
Unknown type
unknown type foo_bar
- Type not defined, or defined after first use
- Define all types before using them
Constant not available / defined for none of the arches
SOME_CONST is defined for none of the arches
- The constant isn't in the
.constfile - Add it to
sys/linux/your_file.txt.constwith the correct value
Missing reference
undefined reference to 'some_type'
- Type defined in another file not being found
- Check includes or existing type definitions
Exploring Existing Code
Find examples of patterns:
grep -r "pattern" /opt/syzkaller/sys/linux/
Useful searches:
resource fd_- How other fd resources are definedioctl\$- Ioctl definition patternsread\$/write\$- Read/write specializationsstruct.*{- Struct definition patterns
Files to Reference
sys/linux/socket.txt- Network types (ifreq_t, sockaddr, etc.)sys/linux/sys.txt- Basic syscall patternssys/linux/fs.txt- File operations
04 同仓库更多 Skills
data-reconciliation
暂无简介
speech-to-text
Transcribe video to timestamped text using Whisper tiny model (pre-installed).
video-processor
Process videos by removing segments and concatenating remaining parts. Use when you need to remove detected pauses/openings from videos, create highlight reels, or batch process segment removals using ffmpeg filter_complex.
silence-detector
Detect initial silence segments in audio/video using energy-based analysis. Use when you need to find low-energy periods at the start of recordings (title slides, setup time, pre-roll silence).
segment-combiner
Combine multiple segment detection results into a unified list. Use when you need to merge segments from different detectors, prepare removal lists for video processing, or consolidate detection outputs.
report-generator
Generate compression reports for video processing. Use when you need to create structured JSON reports with duration statistics, compression ratios, and segment details after video processing.