aboutsummaryrefslogtreecommitdiffstats
path: root/pkg/aflow/flow/patching/patching.go
diff options
context:
space:
mode:
authorBerk Cem Goksel <berkcgoksel@gmail.com>2026-01-20 21:48:18 +0300
committerAleksandr Nogikh <nogikh@google.com>2026-02-27 16:03:24 +0000
commit7b5907abe5c0995c821a7999f04c108560897271 (patch)
tree4774f35f342c1d4d5095b8cbb1115c4da8bb87c7 /pkg/aflow/flow/patching/patching.go
parent2cf092b8cfccda3ad7fc30eeaf025f97bd331bb8 (diff)
sys/linux: add UAC2, UAC3, and MIDI USB audio class descriptions
This patch extends the USB audio fuzzing support by adding syzlang descriptions for: - UAC2 (USB Audio Class 2.0) devices with clock management units, interface association descriptors, and extended format types. - UAC3 (USB Audio Class 3.0) devices including power domain descriptors and cluster information segments. - USB MIDI devices with jack descriptors and streaming endpoints. A new generateAudioDeviceDescriptor function patches in both auto-extracted USB IDs from the kernel driver matching rules and hardcoded quirk IDs from the USB audio driver sources (sound/usb/). This approach follows the pattern established for the HID and printer classes, allowing exercising driver quirks that cannot be automatically extracted. The config descriptor template now includes an EXTRA field to support Interface Association Descriptors required by UAC2/UAC3. This also requires adjusting the interface field index in patchUsbDeviceID.
Diffstat (limited to 'pkg/aflow/flow/patching/patching.go')
0 files changed, 0 insertions, 0 deletions