diff options
author | Takashi Iwai <tiwai@suse.de> | 2019-08-20 17:17:09 +0200 |
---|---|---|
committer | Takashi Iwai <tiwai@suse.de> | 2019-08-22 10:35:59 +0200 |
commit | 57f8770620e9b51c61089751f0b5ad3dbe376ff2 (patch) | |
tree | 3302223d107681aa8b7558e68fdf1bf322cdc4b4 /sound/usb/Makefile | |
parent | f9f0e9ed350e15d51ad07364b4cf910de50c472a (diff) | |
download | lwn-57f8770620e9b51c61089751f0b5ad3dbe376ff2.tar.gz lwn-57f8770620e9b51c61089751f0b5ad3dbe376ff2.zip |
ALSA: usb-audio: More validations of descriptor units
Introduce a new helper to validate each audio descriptor unit before
and check the unit before actually accessing it. This should harden
against the OOB access cases with malformed descriptors that have been
recently frequently reported by fuzzers.
The existing descriptor checks are still kept although they become
superfluous after this patch. They'll be cleaned up eventually
later.
Signed-off-by: Takashi Iwai <tiwai@suse.de>
Diffstat (limited to 'sound/usb/Makefile')
-rw-r--r-- | sound/usb/Makefile | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/sound/usb/Makefile b/sound/usb/Makefile index e1ce257ab705..d27a21b0ff9c 100644 --- a/sound/usb/Makefile +++ b/sound/usb/Makefile @@ -16,7 +16,8 @@ snd-usb-audio-objs := card.o \ power.o \ proc.o \ quirks.o \ - stream.o + stream.o \ + validate.o snd-usb-audio-$(CONFIG_SND_USB_AUDIO_USE_MEDIA_CONTROLLER) += media.o |