Syzkaller ioctl syzlang

From XuShuwenn/RedAct · View interactive version

Syzkaller ioctl syzlang is an AI agent skill from the GitHub repository XuShuwenn/RedAct. Model Linux character devices in syzkaller: create syzlang files with ioctl ops, compute constants (with arch overrides), and verify via sysgen/build.

How to use this skill

Skill file

Syzkaller Device Modeling for Linux IOCTL Interfaces

Build complete syzlang support for a Linux character device: define resources and openers, describe ioctls with correct directions and types, compute and record constants (including arch-specific overrides), and validate with syzkaller's generator and build pipeline.

When to Use

Activate this skill when you need to:

Core Workflow

  1. Inventory the interface from headers
  1. Map kernel types to syzlang types
  1. Author the device description (dev_*.txt)
  1. Compute constants and create the .const file
  1. Verify

Verification Checklist

Common Pitfalls and How to Avoid Them

Optional Script Usage

Use scripts/ioc_calc.py to compute ioctl numbers programmatically.

Example usage (generic, not device-specific):

1) Compute values:

2) Add to .const:

Templates

By following this workflow and checks, you can reliably add new Linux device interfaces to syzkaller with correctly directed ioctls, accurate constants, and build-verified descriptions.

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.