Syzkaller build loop

From XuShuwenn/RedAct · View interactive version

Syzkaller build loop is an AI agent skill from the GitHub repository XuShuwenn/RedAct. Full build workflow for adding new syscall descriptions to syzkaller

How to use this skill

Skill file

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

Constant not available / defined for none of the arches

SOME_CONST is defined for none of the arches

Missing reference

undefined reference to 'some_type'

Exploring Existing Code

Find examples of patterns:

grep -r "pattern" /opt/syzkaller/sys/linux/

Useful searches:

Files to Reference

Use this skill with your AI agent: Open on Skill Issue to copy, download, or add to your library. Works with Claude, ChatGPT, Gemini, Cursor, Windsurf and more.