diff options
| author | Viacheslav Dubeyko <[email protected]> | 2025-07-03 21:49:12 +0000 |
|---|---|---|
| committer | Viacheslav Dubeyko <[email protected]> | 2025-07-25 22:37:19 +0000 |
| commit | a431930c9bac518bf99d6b1da526a7f37ddee8d8 (patch) | |
| tree | d86d3435232a2c8cc1578f0503cd630ac22360ff /drivers/fpga/microchip-spi.c | |
| parent | hfsplus: fix slab-out-of-bounds in hfsplus_bnode_read() (diff) | |
| download | kernel-a431930c9bac518bf99d6b1da526a7f37ddee8d8.tar.gz kernel-a431930c9bac518bf99d6b1da526a7f37ddee8d8.zip | |
hfs: fix slab-out-of-bounds in hfs_bnode_read()
This patch introduces is_bnode_offset_valid() method that checks
the requested offset value. Also, it introduces
check_and_correct_requested_length() method that checks and
correct the requested length (if it is necessary). These methods
are used in hfs_bnode_read(), hfs_bnode_write(), hfs_bnode_clear(),
hfs_bnode_copy(), and hfs_bnode_move() with the goal to prevent
the access out of allocated memory and triggering the crash.
Signed-off-by: Viacheslav Dubeyko <[email protected]>
Link: https://lore.kernel.org/r/[email protected]
Signed-off-by: Viacheslav Dubeyko <[email protected]>
Diffstat (limited to 'drivers/fpga/microchip-spi.c')
0 files changed, 0 insertions, 0 deletions
