/open-source/syzkaller-8022.txt
[DIR] Index of /open-source
[TXT] syzkaller-8022.txt 2026-10-16 15:18 1.5K raw file
syzkaller: describing the GPIO character device
PR https://github.com/google/syzkaller/pull/8022
Issue https://github.com/google/syzkaller/issues/533
Opened 2026-10-15
Merged 2026-10-16 by a-nogikh
syzkaller is Google's coverage-guided kernel fuzzer. It only calls the
interfaces it has descriptions for: text files that spell out each
syscall, ioctl and struct. Issue #533 tracks Linux interfaces that
have no descriptions yet. The GPIO character device was one of them.
What the PR adds
sys/linux/dev_gpio.txt (189 lines) describes /dev/gpiochipN, the
interface from include/uapi/linux/gpio.h:
- chip info and line info
- line info watching, with the change events you read back
- ABI v2 line requests, their values and config ioctls, and edge
event reads
- the deprecated ABI v1 line handle and line event requests
The constants (dev_gpio.txt.const, 48 lines) were extracted from
Linux v7.2.
Where it runs
The device needs CONFIG_GPIO_CDEV and some GPIO chip. On the syzbot
dashboard, GPIO_CDEV is on in the android, chromeos, stable arm64
KASAN and upstream arm, arm64, riscv64 and allyes configs, and off in
every upstream x86 config, s390 and cos. The realistic case today is
arm64 QEMU virt with GPIO_PL061=y. The v1 ioctls also need
CONFIG_GPIO_CDEV_V1, which has no default and is on only in the
android, chromeos, stable arm64 and allyes configs.
Next
A follow-up could turn on GPIO_CDEV with GPIO_SIM or GPIO_MOCKUP in
the x86 configs, so the fuzzer reaches this code on the machines that
run most of syzbot.
Generated 2026-10-18 18:57 UTC by indexgen