summaryrefslogtreecommitdiff
path: root/scripts/objdiff
diff options
context:
space:
mode:
authorTakashi Iwai <tiwai@suse.de>2020-03-09 09:21:48 +0100
committerTakashi Iwai <tiwai@suse.de>2020-03-09 09:22:22 +0100
commitf2ecf903ef06eb1bbbfa969db9889643d487e73a (patch)
tree6da14e501b136c80f46c2ffbd5135708a528cf71 /scripts/objdiff
parent5a56996b0f13b9a5db0ca60528d13c661d37377a (diff)
downloadkernel-f2ecf903ef06eb1bbbfa969db9889643d487e73a.tar.gz
ALSA: pcm: oss: Avoid plugin buffer overflow
Each OSS PCM plugins allocate its internal buffer per pre-calculation of the max buffer size through the chain of plugins (calling src_frames and dst_frames callbacks). This works for most plugins, but the rate plugin might behave incorrectly. The calculation in the rate plugin involves with the fractional position, i.e. it may vary depending on the input position. Since the buffer size pre-calculation is always done with the offset zero, it may return a shorter size than it might be; this may result in the out-of-bound access as spotted by fuzzer. This patch addresses those possible buffer overflow accesses by simply setting the upper limit per the given buffer size for each plugin before src_frames() and after dst_frames() calls. Reported-by: syzbot+e1fe9f44fb8ecf4fb5dd@syzkaller.appspotmail.com Cc: <stable@vger.kernel.org> Link: https://lore.kernel.org/r/000000000000b25ea005a02bcf21@google.com Link: https://lore.kernel.org/r/20200309082148.19855-1-tiwai@suse.de Signed-off-by: Takashi Iwai <tiwai@suse.de>
Diffstat (limited to 'scripts/objdiff')
0 files changed, 0 insertions, 0 deletions
rnel.org/pub/scm/linux/kernel/git/arm/ar...Linus Torvalds 2016-02-11ARM: dts: mediatek: add MT7623 basic supportJohn Crispin 2016-01-25ARM: mediatek: add mt2701 smp bringup codeLouis Yu 2016-01-25ARM: mediatek: add MT7623 smp bringup codeJohn Crispin 2016-01-20Merge tag 'armsoc-dt' of git://git.kernel.org/pub/scm/linux/kernel/git/arm/ar...Linus Torvalds 2015-12-01ARM: use "depends on" for SoC configs instead of "if" after promptMasahiro Yamada 2015-12-01ARM: use const and __initconst for smp_operationsMasahiro Yamada 2015-11-20ARM: dts: mediatek: add MT2701 basic supportErin Lo 2015-11-10Merge tag 'armsoc-soc' of git://git.kernel.org/pub/scm/linux/kernel/git/arm/a...Linus Torvalds 2015-10-14ARM: mediatek: add smp bringup codeYingjoe Chen 2015-10-14ARM: mediatek: enable gpt6 on boot up to make arch timer workingMatthias Brugger 2015-07-23ARM: mediatek: Add regmap to mediatek KconfigMatthias Brugger 2015-03-10ARM: mediatek: enable the pin controllerMatthias Brugger 2015-01-20ARM: mediatek: Add config options for mediatek SoCs.Yingjoe Chen 2014-12-09Merge tag 'dt-for-linus' of git://git.kernel.org/pub/scm/linux/kernel/git/arm...Linus Torvalds 2014-11-14ARM: mediatek: Add basic support for mt6592Howard Chen 2014-11-14ARM: mediatek: Fix description for mediatek SoCsJoe.C 2014-11-12ARM: mediatek: Add basic support for mt8135Joe.C 2014-11-12ARM: mediatek: Add basic support for mt8127Joe.C 2014-07-22arm: add basic support for Mediatek MT6589 boardsMatthias Brugger