aboutsummaryrefslogtreecommitdiffstats
path: root/sound/core/timer.c
diff options
context:
space:
mode:
authorDragos Tarcatu <[email protected]>2019-11-06 14:58:16 +0000
committerMark Brown <[email protected]>2019-11-06 18:17:54 +0000
commit2acdcabb8a4089476208a822050dd47a6557290d (patch)
tree862d81c6895128207e81abf2edbb986aed985d7c /sound/core/timer.c
parentMerge branch 'for-5.4' of https://git.kernel.org/pub/scm/linux/kernel/git/bro... (diff)
downloadkernel-2acdcabb8a4089476208a822050dd47a6557290d.tar.gz
kernel-2acdcabb8a4089476208a822050dd47a6557290d.zip
ASoC: SOF: topology: Fix bytes control size checks
When using the example SOF amp widget topology, KASAN dumps this when the AMP bytes kcontrol gets loaded: [ 9.579548] BUG: KASAN: slab-out-of-bounds in sof_control_load+0x8cc/0xac0 [snd_sof] [ 9.588194] Write of size 40 at addr ffff8882314559dc by task systemd-udevd/2411 Fix that by rejecting the topology if the bytes data size > max_size Fixes: 311ce4fe7637d ("ASoC: SOF: Add support for loading topologies") Reviewed-by: Jaska Uimonen <[email protected]> Reviewed-by: Ranjani Sridharan <[email protected]> Signed-off-by: Dragos Tarcatu <[email protected]> Signed-off-by: Pierre-Louis Bossart <[email protected]> Link: https://lore.kernel.org/r/[email protected] Signed-off-by: Mark Brown <[email protected]>
Diffstat (limited to 'sound/core/timer.c')
0 files changed, 0 insertions, 0 deletions