| #
c56a85d0 |
| 21-Jul-2025 |
Harrison Mutai <harrison.mutai@arm.com> |
fix(debugfs): guard against negative ch offsets
The `chan` struct’s `offset` field was previously a signed long, allowing negative values. When used in comparisons in `buf_to_channel`, a negative of
fix(debugfs): guard against negative ch offsets
The `chan` struct’s `offset` field was previously a signed long, allowing negative values. When used in comparisons in `buf_to_channel`, a negative offset would be cast to a large unsigned integer, causing the bounds check to silently fail. This could allow a negative offset to bypass validation and lead to an out-of-bounds access during operations like `memcpy`.
This patch changes the `offset` field to `unsigned long` and updates affected functions to use the correct types, ensuring all offset comparisons are safe and negative values are disallowed at the type level.
Change-Id: I5d37bbd2fe6d7d3a19628c1a0376c3bf83947f27 Signed-off-by: Harrison Mutai <harrison.mutai@arm.com> Reported-by: Bartek Piekarski <bartek.piekarski@arm.com>
show more ...
|
| #
0ca3913d |
| 19-Sep-2019 |
Olivier Deprez <olivier.deprez@arm.com> |
debugfs: add 9p device interface
The 9p interface provides abstraction layers allowing the software that uses devices to be independent from the hardware.
This patch provides a file system abstract
debugfs: add 9p device interface
The 9p interface provides abstraction layers allowing the software that uses devices to be independent from the hardware.
This patch provides a file system abstraction to link drivers to their devices and propose a common interface to expose driver operations to higher layers. This file system can be used to access and configure a device by doing read/write operations.
Signed-off-by: Ambroise Vincent <ambroise.vincent@arm.com> Signed-off-by: Olivier Deprez <olivier.deprez@arm.com> Change-Id: Ia9662393baf489855dc0c8f389fe4a0afbc9c255
show more ...
|