Syz Extract Constants
Defining and extracting kernel constants for syzkaller syzlang descriptions
Install
npx skills add UCSB-NLP-Chang/Skill-Usage --skill syz-extract-constantsgit clone --depth 1 https://github.com/UCSB-NLP-Chang/Skill-Usage.git /tmp/Skill-Usage
mkdir -p ~/.claude/skills
cp -r /tmp/Skill-Usage/tasks/syzkaller-ppdev-syzlang/environment/skills/syz-extract-constants ~/.claude/skills/syz-extract-constantsPersonal skills live in ~/.claude/skills. Use .claude/skills in a project folder to share a skill with your team.
From the SKILL.md
# Defining Constants in Syzlang
## Overview
Syzkaller needs to know the actual values of kernel constants (ioctl numbers, flags, etc.) to generate valid fuzzing programs. There are two ways to provide these values:
1. **Manual `.const` file** - Define constants directly in a companion file
2. **`syz-extract` tool** - Extract values from kernel source headers (requires kernel source)
## Method 1: Manual Constants File (Recommended when no kernel source)
Create a `.const` file alongside your `.txt` file with the constant values:
### File naming
- Syzlang description: `sys/linux/dev_ppdev.txt`
- Constants file: `sys/linux/dev_ppdev.txt.const`
### Constants file format
```
# Constants for your syzlang descriptions
arches = 386, amd64, arm, arm64, mips64le, ppc64le, riscv64, s390x
PPCLAIM = 28811
PPRELEASE = 28812
IEEE1284_MODE_NIBBLE = 0
IEEE1284_MODE_BYTE = 1
```
The `arches` line declares which architectures these constants are valid for. For architecture-independent constants (like ioctls), list all architectures.
### Calculating ioctl values
Linux ioctl numbers are encoded as:
- `_IO(type, nr)` = `(type << 8) | nr`
- `_IOR(type, nr, size)` = `(2 << 30) | (size << 16) | (type << 8) | nr`
- `_IOW(type, nr, size)` = `(1 << 30) | (size << 16) | (type << 8) | nr`
- `_IOWR(type, nr, size)` = `(3 << 30) | (size << 16) | (type << 8) | nr`
For ppdev (type='p'=0x70):
- `PPCLAIM = _IO('p', 0x8b)` = `0x708b` = `28811`
## Method 2: Using syz-extract (Requires kernel source)Details
- Skill name
syz-extract-constants- Repository
- UCSB-NLP-Chang/Skill-Usage
- Path
tasks/syzkaller-ppdev-syzlang/environment/skills/syz-extract-constants/SKILL.md- Repo updated
- 8 April 2026
FAQ
What does the Syz Extract Constants skill do?
Defining and extracting kernel constants for syzkaller syzlang descriptions
How do I install the Syz Extract Constants skill?
skills CLI (Claude Code, Cursor, Codex and more): npx skills add UCSB-NLP-Chang/Skill-Usage --skill syz-extract-constants. Skills go in ~/.claude/skills (personal) or .claude/skills (project), and Claude loads them automatically when a task matches the description.
Is Syz Extract Constants popular?
It lives in UCSB-NLP-Chang/Skill-Usage, which has 49 GitHub stars and 5 forks.
Related skills
Pubchem Database
49UCSB-NLP-Chang/Skill-Usage
Query PubChem via PUG-REST API/PubChemPy (110M+ compounds). Search by name/CID/SMILES, retrieve properties, similarity/substructure searches, bioactivity, for cheminformatics.
Pymatgen
49UCSB-NLP-Chang/Skill-Usage
Materials science toolkit. Crystal structures (CIF, POSCAR), phase diagrams, band structure, DOS, Materials Project integration, format conversion, for computational materials science.
Rdkit
49UCSB-NLP-Chang/Skill-Usage
Cheminformatics toolkit for fine-grained molecular control. SMILES/SDF parsing, descriptors (MW, LogP, TPSA), fingerprints, substructure search, 2D/3D generation, similarity, reactions. For standard workflows with simpler interface, use datamol (wrapper around RDKit). Use rdkit for advanced control, custom sanitization, specialized algorithms.
Cryptography Selection
48sethdford/claude-skills
Select appropriate cryptographic algorithms and parameters for encryption, hashing, key derivation, and digital signatures.
Reflow Machine Maintenance Guidance
49UCSB-NLP-Chang/Skill-Usage
This skill should be considered when you need to answer reflow machine maintenance questions or provide detailed guidance based on thermocouple data, MES data or defect data and reflow technical handbooks. This skill covers how to obtain important concepts, calculations, definitions, thresholds, and others from the handbook and how to do cross validations between handbook and datasets.
Data Classification
48sethdford/claude-skills
Classify organizational data by sensitivity level and define handling, storage, and access requirements.
Browse the most popular Claude skills, all finance & crypto skills, or write your own with the skills generator.