diff options
| author | Konstantin Shelekhin <[email protected]> | 2023-07-22 18:26:37 +0300 |
|---|---|---|
| committer | Martin K. Petersen <[email protected]> | 2023-07-31 12:09:58 -0400 |
| commit | 801f287c93ff95582b0a2d2163f12870a2f076d4 (patch) | |
| tree | 508818520bfae5566a43e336d70d97143ab72339 /tools/perf/scripts/python | |
| parent | 06c2afb862f9da8dc5efa4b6076a0e48c3fbaaa5 (diff) | |
scsi: target: iscsi: Fix buffer overflow in lio_target_nacl_info_show()
The function lio_target_nacl_info_show() uses sprintf() in a loop to print
details for every iSCSI connection in a session without checking for the
buffer length. With enough iSCSI connections it's possible to overflow the
buffer provided by configfs and corrupt the memory.
This patch replaces sprintf() with sysfs_emit_at() that checks for buffer
boundries.
Signed-off-by: Konstantin Shelekhin <[email protected]>
Link: https://lore.kernel.org/r/[email protected]
Signed-off-by: Martin K. Petersen <[email protected]>
Diffstat (limited to 'tools/perf/scripts/python')
0 files changed, 0 insertions, 0 deletions