Syzlang linux device ioctl

From XuShuwenn/RedAct · View interactive version

Syzlang linux device ioctl is an AI agent skill from the GitHub repository XuShuwenn/RedAct. Author syzkaller syzlang support for Linux character devices: resources, openers, ioctl descriptions, and per-arch constants with verification.

How to use this skill

Skill file

Syzkaller Device Description Authoring (Linux ioctls)

This skill guides creating syzkaller syzlang support for a Linux device node that exposes ioctl operations. It covers harvesting interface definitions from headers, mapping ioctl directions, defining resources, struct and flag sets, and producing a matching constants file with architecture-specific values. It also includes standard verification steps and robust recovery checks.

When to Use

Core Workflow

Phase 1: Inventory the Interface

Phase 2: Reuse Established Syzlang Patterns

Phase 3: Map Ioctl Directions and Argument Types

Phase 4: Author the Syzlang File (.txt)

Phase 5: Create the Constants File (.txt.const)

Phase 6: Verification

Verification Checklist

Common Pitfalls and Recoveries

Optional Script Usage

Use the provided helper to extract ioctl and flag macro values from headers. This reduces manual mistakes and helps detect architecture differences.

Success Criteria

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.