summaryrefslogtreecommitdiff
path: root/tools/perf/scripts/python/bin
diff options
context:
space:
mode:
authorVivek Kasireddy <vivek.kasireddy@intel.com>2024-12-11 21:54:21 -0800
committerDmitry Osipenko <dmitry.osipenko@collabora.com>2025-01-19 15:12:28 +0300
commitdb8b2c0e2abc90d1025fd7f6d4461b21b1d3248e (patch)
treec2c1f0a4795865479105b482919ac62eb8bfc807 /tools/perf/scripts/python/bin
parentbea6afc1bfad1d44f87ee73cfb631533b82aa3e2 (diff)
downloadkernel-db8b2c0e2abc90d1025fd7f6d4461b21b1d3248e.tar.gz
drm/virtio: Fix UAF in virtgpu_dma_buf_free_obj()
Fix the following issues identified by Smatch static checker: - The call to dma_buf_put(attach->dmabuf) after dma_buf_detach() leads to a UAF bug as dma_buf_detach() frees the attach object. Fix this by extracting the dmabuf object from attach and using that in the call to dma_buf_put(). - The resv object is extracted from attach before checking to see if attach is valid (that is !NULL) or not. Although, attach would very likely be valid, fix this by making sure that the resv object is used only after ensuring that attach is valid. Fixes: 2885e575abc7 ("drm/virtio: Add helpers to initialize and free the imported object") Fixes: ca77f27a2665 ("drm/virtio: Import prime buffers from other devices as guest blobs") Cc: Gerd Hoffmann <kraxel@redhat.com> Cc: Dmitry Osipenko <dmitry.osipenko@collabora.com> Cc: Gurchetan Singh <gurchetansingh@chromium.org> Cc: Chia-I Wu <olvaffe@gmail.com> Reported-by: Dan Carpenter <dan.carpenter@linaro.org> Signed-off-by: Vivek Kasireddy <vivek.kasireddy@intel.com> Link: https://patchwork.freedesktop.org/patch/msgid/20241212055421.775759-1-vivek.kasireddy@intel.com Reviewed-by: Dmitry Osipenko <dmitry.osipenko@collabora.com> Tested-by: Dmitry Osipenko <dmitry.osipenko@collabora.com> Signed-off-by: Dmitry Osipenko <dmitry.osipenko@collabora.com> [dmitry.osipenko@collabora.com: Edited commit title]
Diffstat (limited to 'tools/perf/scripts/python/bin')
0 files changed, 0 insertions, 0 deletions
ound/soc/cirrus?h=linux-6.6.y&id=d7711dc5930ced241c4f6e9b14df2a92814f9f12'>ASoC: ep93xx: Open code dma channel requestMark Brown 2013-10-19ASoC: cirrus: Enable compile test buildsMark Brown 2013-08-30Merge remote-tracking branch 'asoc/topic/ep93xx' into tmpMark Brown 2013-08-29ASoC: ep93xx-i2s: Remove unnecessary dev_set_drvdata()Fabio Estevam 2013-08-22Merge remote-tracking branch 'asoc/topic/ep93xx' into asoc-nextMark Brown 2013-07-24ASoC: ep93xx: don't check resource with devm_ioremap_resourceWolfram Sang 2013-07-19ASoC: ep93xx: fix build of ep93xx-ac97.cH Hartley Sweeten 2013-06-28Merge tag 'asoc-v3.11-2' of git://git.kernel.org/pub/scm/linux/kernel/git/bro...Takashi Iwai 2013-06-27ASoC: ac97: Support multi-platform AC'97Mark Brown 2013-06-27ASoC: ep93xx: Remove redundant dev_set_drvdata() callsMark Brown 2013-05-15ASoC: ep93xx-i2s: Staticize non exported structLars-Peter Clausen 2013-05-13ASoC: ep93xx: Use generic dmaengine PCMLars-Peter Clausen 2013-05-13ASoC: ep93xx: Setup dma data in DAI probeLars-Peter Clausen 2013-05-12ASoC: ep93xx: Remove redundant platform_set_drvdata()Sachin Kamat 2013-04-18Merge tag 'asoc-v3.10-2' of git://git.kernel.org/pub/scm/linux/kernel/git/bro...Takashi Iwai 2013-04-17ASoC: dmaengine-pcm: Make requesting the DMA channel at PCM open optionalLars-Peter Clausen 2013-04-12Merge remote-tracking branch 'asoc/topic/dma' into asoc-nextMark Brown 2013-04-05ASoC: ep93xx_pcm: Fix compile errorLars-Peter Clausen 2013-03-26ASoC: switch over to use snd_soc_register_component() on ep93xx i2sKuninori Morimoto 2013-03-26ASoC: switch over to use snd_soc_register_component() on ep93xx ac97Kuninori Morimoto 2013-03-26ASoC: ep93xx: Use ep93xx_dma_params instead of ep93xx_pcm_dma_paramsLars-Peter Clausen 2013-01-22ASoC: Convert to devm_ioremap_resource()Thierry Reding 2012-12-10ASoC: cirrus: remove __dev* attributesBill Pemberton 2012-10-09Merge tag 'sound-3.7' of git://git.kernel.org/pub/scm/linux/kernel/git/tiwai/...Linus Torvalds 2012-08-28ASoC: Rename ep93xx soc directory to cirrusAlexander Shiyan