diff options
author | Fabio M. De Francesco <[email protected]> | 2022-04-09 03:26:55 +0200 |
---|---|---|
committer | Takashi Iwai <[email protected]> | 2022-04-11 09:27:56 +0200 |
commit | 2f7a26abb8241a0208c68d22815aa247c5ddacab (patch) | |
tree | c5396d410bc28aa30ff6f35a6660f79ec313dca9 /tools/perf/scripts/python | |
parent | fee2ec8cceb33b8886bc5894fb07e0b2e34148af (diff) |
ALSA: pcm: Test for "silence" field in struct "pcm_format_data"
Syzbot reports "KASAN: null-ptr-deref Write in
snd_pcm_format_set_silence".[1]
It is due to missing validation of the "silence" field of struct
"pcm_format_data" in "pcm_formats" array.
Add a test for valid "pat" and, if it is not so, return -EINVAL.
[1] https://lore.kernel.org/lkml/[email protected]/
Reported-and-tested-by: [email protected]
Signed-off-by: Fabio M. De Francesco <[email protected]>
Cc: <[email protected]>
Link: https://lore.kernel.org/r/[email protected]
Signed-off-by: Takashi Iwai <[email protected]>
Diffstat (limited to 'tools/perf/scripts/python')
0 files changed, 0 insertions, 0 deletions