aboutsummaryrefslogtreecommitdiff
path: root/tools/perf/scripts/python
diff options
context:
space:
mode:
authorYousef Alhouseen <alhouseenyousef@gmail.com>2026-06-28 02:03:29 +0200
committerMark Brown <broonie@kernel.org>2026-07-01 13:11:59 +0100
commit95edf2dbb492f3ea2420111e9c0044c7dec9113c (patch)
treeb72f32faeacfe591136ca6e7f53e20e10b49059a /tools/perf/scripts/python
parente782d687d2f5bf8b8113dc48ba22cca4b472c252 (diff)
ASoC: SOF: validate probe info element counts
Probe information replies contain a firmware-provided element count. IPC3 uses that count to copy an array, then returns the unchecked count to its caller. A short reply can therefore make the caller walk beyond the copied array. IPC4 similarly uses the count both to allocate the destination array and to walk the reply. On 32-bit systems the allocation size can wrap, while on all systems an excessive count reads beyond the reply payload. Validate each count against the actual reply size before copying or allocating the array, and use kcalloc() for the IPC4 allocation. Signed-off-by: Yousef Alhouseen <alhouseenyousef@gmail.com> Link: https://patch.msgid.link/20260628000329.18606-1-alhouseenyousef@gmail.com Signed-off-by: Mark Brown <broonie@kernel.org>
Diffstat (limited to 'tools/perf/scripts/python')
0 files changed, 0 insertions, 0 deletions
td>1-2/+6 2021-11-06Merge tag 'pci-v5.16-changes' of git://git.kernel.org/pub/scm/linux/kernel/gi...Linus Torvalds1-25/+13 2021-10-25cxgb3: Remove seeprom_write and use VPD APIHeiner Kallweit1-8/+3 2021-10-25cxgb3: Remove t3_seeprom_read and use VPD APIHeiner Kallweit1-17/+10 2021-10-05ethernet: use eth_hw_addr_set() for dev->addr_len casesJakub Kicinski1-1/+1 2021-08-24ethtool: extend coalesce setting uAPI with CQE modeYufeng Mo1-2/+6 2021-08-23net: chelsio: switch from 'pci_' to 'dma_' APIChristophe JAILLET1-8/+2 2021-07-27dev_ioctl: split out ndo_eth_ioctlArnd Bergmann1-1/+1 2021-07-27cxgb3: use ndo_siocdevprivateArnd Bergmann1-4/+8 2021-06-03net:cxgb3: fix code style issuesÍñigo Huguet1-9/+10 2020-09-29net: cxgb3: Cleanup in_interrupt() usageThomas Gleixner1-1/+1 2020-09-25drivers/net/ethernet: clean up mis-targeted commentsJesse Brandeburg1-4/+4 2020-08-23treewide: Use fallthrough pseudo-keywordGustavo A. R. Silva1-1/+1 2020-03-10net: cxgb3: reject unsupported coalescing paramsJakub Kicinski1-0/+1 2020-03-03net/chelsio: Delete drive and module versionsLeon Romanovsky1-4/+0 2020-01-27Merge tag 'ioremap-5.6' of git://git.infradead.org/users/hch/ioremapLinus Torvalds1-1/+1 2020-01-25net: cxgb3_main: Add CAP_NET_ADMIN check to CHELSIO_GET_MEMMichael Ellerman1-0/+2 2020-01-06remove ioremap_nocache and devm_ioremap_nocacheChristoph Hellwig1-1/+1 2019-08-06net: cxgb3_main: Fix a resource leak in a error path in 'init_one()'Christophe JAILLET1-1/+4 2018-10-06Merge git://git.kernel.org/pub/scm/linux/kernel/git/davem/netDavid S. Miller1-0/+17 2018-10-05net: cxgb3_main: fix a missing-check bugWenwen Wang1-0/+17 2018-09-21net: cxgb3_main: remove redundant null pointer check before kfree_skbzhong jiang1-2/+1 2018-09-18net: ethernet: remove redundant includezhong jiang1-1/+0 2018-07-18net: cxgb3_main: fix potential Spectre v1Gustavo A. R. Silva1-0/+2 2018-06-15net: cxgb3: add error handling for sysfs_create_groupZhouyang Jia1-0/+7 2018-03-26ethernet: Use octal not symbolic permissionsJoe Perches1-3/+3 2018-01-22cxgb3: assign port id to net_device->dev_portArjun Vynipadath1-0/+1 2017-07-18net: chelsio: cxgb3: constify attribute_group structures.Arvind Yadav1-2/+6 2017-06-20net: introduce __skb_put_[zero, data, u8]yuan linyu1-8/+4 2017-06-16networking: make skb_put & friends return void pointersJohannes Berg1-6/+6 2017-04-07net: cxgb3: Use net_device_stats from struct net_deviceTobias Klauser1-1/+1 2016-12-24Replace <asm/uaccess.h> with <linux/uaccess.h> globallyLinus Torvalds1-1/+1 2016-12-17net: chelsio: cxgb3: use new api ethtool_{get|set}_link_ksettingsPhilippe Reynes1-28/+37