summaryrefslogtreecommitdiffstats
path: root/tools/perf/scripts/python/export-to-postgresql.py
diff options
context:
space:
mode:
authorPhillip Lougher <phillip@squashfs.org.uk>2024-10-21 00:22:00 +0100
committerAndrew Morton <akpm@linux-foundation.org>2024-10-30 20:14:12 -0700
commitd31638ff6c5437ca2968d6c22fb16524fd485013 (patch)
tree64948463ca950201cb89248b4b22514bf8ffb735 /tools/perf/scripts/python/export-to-postgresql.py
parent330d8df81f3673d6fb74550bbc9bb159d81b35f7 (diff)
downloadlinux-d31638ff6c5437ca2968d6c22fb16524fd485013.tar.gz
linux-d31638ff6c5437ca2968d6c22fb16524fd485013.tar.bz2
linux-d31638ff6c5437ca2968d6c22fb16524fd485013.zip
Squashfs: fix variable overflow in squashfs_readpage_block
Syzbot reports a slab out of bounds access in squashfs_readpage_block(). This is caused by an attempt to read page index 0x2000000000. This value (start_index) is stored in an integer loop variable which overflows producing a value of 0. This causes a loop which iterates over pages start_index -> end_index to iterate over 0 -> end_index, which ultimately causes an out of bounds page array access. Fix by changing variable to a loff_t, and rename to index to make it clearer it is a page index, and not a loop count. Link: https://lkml.kernel.org/r/20241020232200.837231-1-phillip@squashfs.org.uk Signed-off-by: Phillip Lougher <phillip@squashfs.org.uk> Reported-by: "Lai, Yi" <yi1.lai@linux.intel.com> Closes: https://lore.kernel.org/all/ZwzcnCAosIPqQ9Ie@ly-workstation/ Signed-off-by: Andrew Morton <akpm@linux-foundation.org>
Diffstat (limited to 'tools/perf/scripts/python/export-to-postgresql.py')
0 files changed, 0 insertions, 0 deletions