Logo di Syzkaller Ppdev Syzlang

Syzkaller Ppdev Syzlang

Community
Zhang-Henry
syzkaller-ppdev-syzlang

Write syzkaller syzlang system call descriptions for the Linux ppdev (parallel port) driver. Use when creating .txt and .txt.const files for fuzzing /dev/parportN devices, describing ppdev ioctls, resources, structs, flags, and computing ioctl command numbers.

Panoramica

Pubblicato daZhang-Henry
RepositoryCoEvoSkills
Nome della skillsyzkaller-ppdev-syzlang
Stelle
83
Fork
9
File inclusi
Solo istruzioni
LicenzaApache-2.0
Link
  • Istruzioni in Markdown

    Un file SKILL.md che il modello carica quando serve, consumando token solo quando una richiesta è effettivamente pertinente.

  • Funziona con qualsiasi LLM

    Le skill IA sono in semplice Markdown, non in codice specifico di un fornitore, quindi funzionano con GPT, Claude, Gemini, Grok o un modello locale.

  • Tutto nelle istruzioni

    Tutto ciò che serve al modello è nelle istruzioni: nessun file aggiuntivo da sincronizzare.

  • Open source

    Pubblicata da Zhang-Henry su GitHub. Leggi i sorgenti prima di installarla.

Installazione

Installa la skill IA Syzkaller Ppdev Syzlang in TypingMind per usarla con qualsiasi LLM, oppure copiala in un altro agente in grado di leggere SKILL.md.

1

Installa in TypingMind

TypingMind installa una skill direttamente dalla sua cartella GitHub: legge SKILL.md, raccoglie i file delle risorse e salva il risultato in locale.

  1. Apri l'app e vai su Plugin → Skill.
  2. Scegli "Installa da GitHub".
  3. Incolla l'URL della cartella della skill riportato qui sotto e conferma.
    https://github.com/Zhang-Henry/CoEvoSkills/tree/main/artifacts/skills/syzkaller-ppdev-syzlang/syzkaller-ppdev-syzlang
  4. Attiva la skill in ogni chat in cui vuoi averla a disposizione.
Plugin → Skill → Aggiungi skill → Da URL GitHub, poi incolla l'URL della cartella e premi Continua.
2

Installa in un altro agente

Qualsiasi agente che legge il formato Agent Skills può usare questa skill: copia la cartella della skill nella directory delle skill di quell'agente.

Claude Code — .claude/skills
git clone --depth 1 https://github.com/Zhang-Henry/CoEvoSkills.git /tmp/CoEvoSkills
mkdir -p .claude/skills
cp -r /tmp/CoEvoSkills/artifacts/skills/syzkaller-ppdev-syzlang/syzkaller-ppdev-syzlang .claude/skills/syzkaller-ppdev-syzlang
Dopo la copia, riavvia Claude Code per caricare la nuova skill.

Usala in TypingMind

Attiva Syzkaller Ppdev Syzlang in qualsiasi chat di TypingMind e al resto pensa il modello. Il nome e la descrizione della skill sono nel prompt di sistema e, non appena arriva una richiesta pertinente, il modello carica da solo le istruzioni complete: non devi mai richiamarla manualmente e non consuma token finché non viene effettivamente usata.

Il modello carica automaticamente Syzkaller Ppdev Syzlang non appena riceve una richiesta pertinente.

Funziona con qualsiasi modello IA

Le skill IA sono semplici istruzioni in Markdown, non codice specifico di un fornitore, quindi Syzkaller Ppdev Syzlang non è vincolata al modello per cui è stata scritta. Installala una sola volta in TypingMind e usala con GPT-5, Claude, Gemini, Grok, DeepSeek, Mistral, Llama o un modello locale che esegui tu, sempre con le tue chiavi API.

  • Caricata solo quando serve

    Il prompt di sistema contiene solo il nome e la descrizione. Le istruzioni vengono recuperate alla prima richiesta pertinente, quindi una skill inutilizzata non costa nulla.

  • Cambia modello durante la chat

    Poiché la skill è composta da istruzioni e non da codice, continua a funzionare anche se cambi modello: il nuovo modello legge lo stesso file SKILL.md.

Istruzioni della skill

Questo è il contenuto di SKILL.md che il modello carica. Leggilo prima dell'installazione: una skill è un insieme di istruzioni che il tuo modello seguirà.

Syzkaller Syzlang Descriptions for ppdev

This skill produces two files for the syzkaller kernel fuzzer:

  1. A .txt syzlang description file for the ppdev driver
  2. A .txt.const constants file with architecture-specific numeric values

File Structure

The .txt file follows this order:

  1. Include directives
  2. Resource declarations
  3. Device open call
  4. Ioctl descriptions
  5. Struct definitions
  6. Flag definitions

Include Directives

Start with the kernel headers that define ppdev and parport constants:

include <linux/ppdev.h>
include <linux/parport.h>

Resource Declaration

Declare a file descriptor resource for ppdev devices:

resource fd_ppdev[fd]

Device Opening

Use syz_open_dev with the parport device path template. The # is replaced by syzkaller with small integers during fuzzing:

syz_open_dev$ppdev(dev ptr[in, string["/dev/parport#"]], id intptr, flags flags[open_flags]) fd_ppdev

Ioctl Descriptions

Each ioctl specializes the generic ioctl syscall with a $NAME suffix.

No-data ioctls (use _IO encoding)

These take exactly two parameters - fd and command constant. No third argument:

ioctl$PPCLAIM(fd fd_ppdev, cmd const[PPCLAIM])
ioctl$PPRELEASE(fd fd_ppdev, cmd const[PPRELEASE])
ioctl$PPYIELD(fd fd_ppdev, cmd const[PPYIELD])
ioctl$PPEXCL(fd fd_ppdev, cmd const[PPEXCL])

Data-transferring ioctls

These add a third ptr[direction, type] argument.

Direction mapping (this is critical to get right):

  • _IOW (user writes TO kernel) → ptr[in, ...]
  • _IOR (kernel reads OUT to user) → ptr[out, ...]

Mode management (4-byte int):

ioctl$PPSETMODE(fd fd_ppdev, cmd const[PPSETMODE], arg ptr[in, flags[ieee1284_modes, int32]])
ioctl$PPGETMODE(fd fd_ppdev, cmd const[PPGETMODE], arg ptr[out, int32])
ioctl$PPGETMODES(fd fd_ppdev, cmd const[PPGETMODES], arg ptr[out, int32])
ioctl$PPNEGOT(fd fd_ppdev, cmd const[PPNEGOT], arg ptr[in, flags[ieee1284_modes, int32]])

Data transfer (1-byte):

ioctl$PPRDATA(fd fd_ppdev, cmd const[PPRDATA], arg ptr[out, int8])
ioctl$PPWDATA(fd fd_ppdev, cmd const[PPWDATA], arg ptr[in, int8])
ioctl$PPDATADIR(fd fd_ppdev, cmd const[PPDATADIR], arg ptr[in, int32])

Status and control:

ioctl$PPRSTATUS(fd fd_ppdev, cmd const[PPRSTATUS], arg ptr[out, int8])
ioctl$PPRCONTROL(fd fd_ppdev, cmd const[PPRCONTROL], arg ptr[out, int8])
ioctl$PPWCONTROL(fd fd_ppdev, cmd const[PPWCONTROL], arg ptr[in, int8])
ioctl$PPFCONTROL(fd fd_ppdev, cmd const[PPFCONTROL], arg ptr[in, ppdev_frob_struct])
ioctl$PPWCTLONIRQ(fd fd_ppdev, cmd const[PPWCTLONIRQ], arg ptr[in, int8])

IRQ and timing:

ioctl$PPCLRIRQ(fd fd_ppdev, cmd const[PPCLRIRQ], arg ptr[out, int32])
ioctl$PPGETTIME(fd fd_ppdev, cmd const[PPGETTIME], arg ptr[out, timeval])
ioctl$PPSETTIME(fd fd_ppdev, cmd const[PPSETTIME], arg ptr[in, timeval])

Flags and phase (4-byte int):

ioctl$PPGETFLAGS(fd fd_ppdev, cmd const[PPGETFLAGS], arg ptr[out, int32])
ioctl$PPSETFLAGS(fd fd_ppdev, cmd const[PPSETFLAGS], arg ptr[in, flags[ppdev_flags, int32]])
ioctl$PPGETPHASE(fd fd_ppdev, cmd const[PPGETPHASE], arg ptr[out, int32])
ioctl$PPSETPHASE(fd fd_ppdev, cmd const[PPSETPHASE], arg ptr[in, int32])

Struct Definitions

ppdev_frob_struct {
	mask	int8
	val	int8
}

The frob struct is exactly 2 bytes (two unsigned char fields). Using wrong sizes changes the ioctl number.

Flag Definitions

ieee1284_modes = IEEE1284_MODE_NIBBLE, IEEE1284_MODE_BYTE, IEEE1284_MODE_COMPAT, IEEE1284_MODE_ECP, IEEE1284_MODE_ECPRLE, IEEE1284_MODE_ECPSWE, IEEE1284_MODE_EPP, IEEE1284_MODE_EPPSWE, IEEE1284_DEVICEID, IEEE1284_EXT_LINK
ppdev_flags = PP_FASTWRITE, PP_FASTREAD, PP_W91284PIC

Computing Ioctl Numbers for .txt.const

All ppdev ioctls use type character 'p' (ASCII 0x70 = 112).

Encoding formula

MacroFormula
_IO(type, nr)(type << 8) | nr
_IOR(type, nr, size)0x80000000 | (size << 16) | (type << 8) | nr
_IOW(type, nr, size)0x40000000 | (size << 16) | (type << 8) | nr

Data type sizes: int=4, char/unsigned char=1, ppdev_frob_struct=2, timeval=16 (on 64-bit)

Example: PPSETMODE = _IOW('p', 0x80, int)

0x40000000 | (4 << 16) | (0x70 << 8) | 0x80 = 0x40047080 = 1074032768

Constants File Format

The .txt.const file must:

  • Start with arches = amd64, 386 (or appropriate architectures)
  • List every symbolic constant from the .txt file
  • Use decimal values (not hex)
  • Include ioctl command numbers, flag values, and all other constants

A missing constant causes syz-sysgen compilation failure.

Common Pitfalls

  1. Direction confusion: _IOR → ptr[out, ...], _IOW → ptr[in, ...]. The R/W is from kernel perspective.
  2. Wrong data sizes: Each ioctl encodes its argument size. int=4 bytes, char=1 byte, frob=2 bytes, timeval=16 bytes.
  3. Hex in const file: Values must be decimal. 0x40047080 is wrong; 1074032768 is correct.
  4. Missing arches line: The const file needs arches = amd64, 386.
  5. No-data ioctls with extra args: _IO ioctls (PPCLAIM, PPRELEASE, PPYIELD, PPEXCL) must NOT have a third pointer argument.
  6. Missing constants: Every symbol in .txt needs an entry in .txt.const.

Domande frequenti

Cosa fa la skill IA Syzkaller Ppdev Syzlang?

Write syzkaller syzlang system call descriptions for the Linux ppdev (parallel port) driver. Use when creating .txt and .txt.const files for fuzzing /dev/parportN devices, describing ppdev ioctls, resources, structs, flags, and computing ioctl command numbers.

Perché usare Syzkaller Ppdev Syzlang su TypingMind?

Perché la installi una volta e la usi con qualsiasi modello. Syzkaller Ppdev Syzlang è scritta in semplice Markdown anziché in codice specifico di un fornitore, quindi la stessa skill funziona con GPT-5, Claude, Gemini, Grok o un modello locale, e puoi cambiare modello durante la chat senza che la skill smetta di funzionare. TypingMind usa le tue chiavi API, quindi paghi direttamente i fornitori anziché un abbonamento per posto utente, e le tue skill e chat restano nel tuo spazio di archiviazione.

Come installo Syzkaller Ppdev Syzlang in TypingMind?

Apri Plugin → Skill → Installa da GitHub in TypingMind e incolla https://github.com/Zhang-Henry/CoEvoSkills/tree/main/artifacts/skills/syzkaller-ppdev-syzlang/syzkaller-ppdev-syzlang. TypingMind legge il file SKILL.md e installa la skill, che puoi abilitare per ogni singola chat.

Quali modelli IA possono usare Syzkaller Ppdev Syzlang?

Qualsiasi modello che colleghi a TypingMind. Le skill IA sono semplici istruzioni in Markdown anziché codice specifico di un fornitore, quindi GPT, Claude, Gemini, Grok e i modelli locali possono tutti caricare questa skill quando una richiesta corrisponde al suo scopo.

Quanti modelli IA posso usare con Syzkaller Ppdev Syzlang?

Quanti ne vuoi. Se un modello supporta le skill, puoi usarlo con Syzkaller Ppdev Syzlang: GPT, Claude, Gemini, Grok, DeepSeek, Mistral, Llama e molti altri, tutti su TypingMind con le tue chiavi API.

La skill IA Syzkaller Ppdev Syzlang è gratuita?

Sì. È pubblicata su GitHub da Zhang-Henry con licenza Apache-2.0. Paghi solo il tuo fornitore IA per i token che usi.

Cosa sono le skill IA?

Una skill IA è un pacchetto di istruzioni riutilizzabili che insegna a un modello IA come svolgere un'attività specifica. Segue il formato aperto Agent Skills: un file SKILL.md con un nome e una descrizione, più eventuali script, template o file di riferimento di cui il modello potrebbe aver bisogno. Il modello legge le istruzioni solo quando la tua richiesta corrisponde alla skill, quindi una skill installata non comporta costi finché non viene usata.

In cosa si differenziano le skill IA dai plugin o dai server MCP?

Un plugin o un server MCP fornisce a un modello nuovi strumenti da richiamare: codice che viene eseguito da qualche parte e restituisce un risultato. Una skill IA, invece, fornisce al modello conoscenze e procedure: come affrontare un'attività, quali passaggi seguire e quali caratteristiche deve avere un buon output. Le skill sono semplici istruzioni in Markdown, quindi non richiedono server, chiavi API né ambienti di esecuzione e funzionano con qualsiasi modello.

Elenco completo

Crea subito il tuo spazio di lavoro AI

Iscriviti alla nostra newsletter per ricevere aggiornamenti sulle nuove funzionalità e sulle prossime iniziative a premi 👇