summaryrefslogtreecommitdiff
path: root/tools/perf/scripts/python/export-to-postgresql.py
diff options
context:
space:
mode:
authorOmer Shpigelman <oshpigelman@habana.ai>2019-08-06 07:37:59 +0000
committerOded Gabbay <oded.gabbay@gmail.com>2019-09-05 14:55:27 +0300
commit8d1759329d042ecad31754c5f37b3ca5cbf106f5 (patch)
treed252a90891deafebac6f9f9f14bfa33d0d39b890 /tools/perf/scripts/python/export-to-postgresql.py
parent10d7de2cdb873096a823bc56eb8321f9ad7f7c3a (diff)
habanalabs: use default structure for user input in Debug IOCTL
This patch fixes a possible kernel crash when a user provides a too small input structure to the Debug IOCTL. The fix sets a default input structure and copies to it the user data. In case the user provided as input a too small structure, the code will use the default values taken from the default structure. Note that in contrary to the input structure, the user can provide an output structure with changing size or no size at all. Therefore the user output structure validation is already done in the Debug logic later on. Signed-off-by: Omer Shpigelman <oshpigelman@habana.ai> Reviewed-by: Oded Gabbay <oded.gabbay@gmail.com> Signed-off-by: Oded Gabbay <oded.gabbay@gmail.com>
Diffstat (limited to 'tools/perf/scripts/python/export-to-postgresql.py')
0 files changed, 0 insertions, 0 deletions