summaryrefslogtreecommitdiff
path: root/tools/perf/scripts/python/export-to-sqlite.py
diff options
context:
space:
mode:
authorSamasth Norway Ananda <samasth.norway.ananda@oracle.com>2025-09-09 15:51:11 -0700
committerMark Brown <broonie@kernel.org>2025-09-18 22:26:31 +0100
commitce2335cd14b6585d57dc05a4375a506079adba81 (patch)
tree9970815d2790b9ef9c959804b5d540b31758b069 /tools/perf/scripts/python/export-to-sqlite.py
parent32bd60d5eca048fb91eed723799c0b4a847c18e4 (diff)
downloadkernel-ce2335cd14b6585d57dc05a4375a506079adba81.tar.gz
ASoC: SOF: ipc3-dtrace: fix potential integer overflow in allocation
Fix a potential integer overflow vulnerability in trace_filter_parse() where the allocation size calculation could overflow. The issue occurs when: 1. capacity is calculated by adding TRACE_FILTER_ELEMENTS_PER_ENTRY in a loop for each entry found in the input string. 2. capacity * sizeof(**out) multiplication could overflow if many entries are present in the input. 3. This results in a smaller allocation than expected, leading to potential buffer overflow. Replace kmalloc() with kmalloc_array() which provides built-in overflow checking and will safely fail the allocation if overflow would occur, preventing memory corruption. Signed-off-by: Samasth Norway Ananda <samasth.norway.ananda@oracle.com> Link: https://patch.msgid.link/20250909225111.3740029-1-samasth.norway.ananda@oracle.com Signed-off-by: Mark Brown <broonie@kernel.org>
Diffstat (limited to 'tools/perf/scripts/python/export-to-sqlite.py')
0 files changed, 0 insertions, 0 deletions
idation for block size in config space"Michael S. Tsirkin 2021-09-11Merge tag 'for_linus' of git://git.kernel.org/pub/scm/linux/kernel/git/mst/vhostLinus Torvalds 2021-09-06virtio-blk: remove unneeded "likely" statementsMax Gurtovoy 2021-08-30Merge tag 'for-5.15/block-2021-08-30' of git://git.kernel.dk/linux-blockLinus Torvalds 2021-08-23virtio_blk: add error handling support for add_disk()Luis Chamberlain 2021-08-16virtio_blk: use bvec_virtChristoph Hellwig 2021-08-11virtio-blk: Add validation for block size in config spaceXie Yongji 2021-07-03virtio-blk: limit seg_max to a safe valueStefan Hajnoczi 2021-07-03virtio-blk: Fix memory leak among suspend/resume procedureXie Yongji 2021-07-03virtio_blk: cleanups: remove check obsoleted by CONFIG_LBDAF removalSohaib 2021-06-11virtio-blk: use blk_mq_alloc_diskChristoph Hellwig 2021-02-25Merge tag 'for_linus' of git://git.kernel.org/pub/scm/linux/kernel/git/mst/vhostLinus Torvalds 2021-02-23virtio-blk: support per-device queue depthJoseph Qi 2021-01-24block: remove unnecessary argument from blk_execute_rqGuoqing Jiang 2020-11-16virtio-blk: remove a spurious call to revalidate_disk_sizeChristoph Hellwig 2020-11-16block: remove the update_bdev parameter to set_capacity_revalidate_and_notifyChristoph Hellwig 2020-09-02block: add a new revalidate_disk_size helperChristoph Hellwig 2020-09-01virtio-blk: Use kobj_to_dev() instead of container_of()Tian Tao 2020-08-17block: virtio_blk: fix handling single range discard requestMing Lei 2020-08-03Merge tag 'for-5.9/block-20200802' of git://git.kernel.dk/linux-blockLinus Torvalds 2020-06-30virtio-blk: free vblk-vqs in error path of virtblk_probe()Hou Tao 2020-06-24blk-mq: move failure injection out of blk_mq_complete_requestChristoph Hellwig 2020-05-02virtio-blk: handle block_device_operations callbacks after hot unplugStefan Hajnoczi 2020-04-17virtio_blk: add a missing includeMichael S. Tsirkin 2020-03-30Merge tag 'for-5.7/block-2020-03-29' of git://git.kernel.dk/linux-blockLinus Torvalds 2020-03-18virtio_blk.c: Convert to use set_capacity_revalidate_and_notifyBalbir Singh 2020-03-08virtio-blk: improve virtqueue error to BLK_STSHalil Pasic 2020-03-08virtio-blk: fix hw_queue stopped on arbitrary errorHalil Pasic 2020-02-06virtio-blk: remove VIRTIO_BLK_F_SCSI supportChristoph Hellwig