Syzkaller ppdev syzlang

From XuShuwenn/RedAct · View interactive version

Syzkaller ppdev syzlang is an AI agent skill from the GitHub repository XuShuwenn/RedAct. Write syzlang device descriptions for Linux parallel port driver (ppdev) including ioctl definitions and resource types.

How to use this skill

Skill file

Syzkaller PPDEV Syzlang Support

When to Use

Required Files

  1. /opt/syzkaller/sys/linux/dev_ppdev.txt - syzlang descriptions
  2. /opt/syzkaller/sys/linux/dev_ppdev.txt.const - constant values

Workflow

  1. Read the full authoritative headers before writing anything: inspect linux/ppdev.h and any needed related definitions from linux/parport.h.
  2. Make a checklist of every ppdev ioctl, its ioctl number macro, argument type, and direction (_IO, _IOR, _IOW, _IOWR).
  3. Treat kernel headers as the source of truth for ioctl names, numbers, flags, and structs; do not guess, hand-invent, or add interfaces not verified in headers.
  4. Before creating either file, inspect a nearby syzkaller device description and its .const companion in /opt/syzkaller/sys/linux/ to copy repository-local formatting exactly.
  5. Only then write dev_ppdev.txt and dev_ppdev.txt.const.

dev_ppdev.txt Content

include <linux/ppdev.h>
include <linux/parport.h>
resource fd_ppdev[fd]
syz_open_dev/dev/parport# -> fd_ppdev
ioctl ppdev_ioc... (23 total)
ppdev_frob_struct { mask, val }
IEEE1284 mode flags + ppdev flags

dev_ppdev.txt.const

arches = amd64, 386
ioctl numbers and flag values

Verification Commands

cd /opt/syzkaller
make descriptions
make all TARGETOS=linux TARGETARCH=amd64

Run these only after reading back the generated files and confirming they are complete.

Tips

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.