diff options
| author | Xiaochen Shen <[email protected]> | 2018-09-15 21:58:19 +0000 |
|---|---|---|
| committer | Thomas Gleixner <[email protected]> | 2018-09-18 21:38:05 +0000 |
| commit | 753694a8df318f204a0ac1303de136def16f2e9c (patch) | |
| tree | 97ad6969ff38d68cbb26ad8496cc5f46cba7efc1 /tools/perf/scripts/python/failed-syscalls-by-pid.py | |
| parent | x86/kvm: Use __bss_decrypted attribute in shared variables (diff) | |
| download | kernel-753694a8df318f204a0ac1303de136def16f2e9c.tar.gz kernel-753694a8df318f204a0ac1303de136def16f2e9c.zip | |
x86/intel_rdt: Fix data type in parsing callbacks
Each resource is associated with a parsing callback to parse the data
provided from user space when writing schemata file.
The 'data' parameter in the callbacks is defined as a void pointer which
is error prone due to lack of type check.
parse_bw() processes the 'data' parameter as a string while its caller
actually passes the parameter as a pointer to struct rdt_cbm_parse_data.
Thus, parse_bw() takes wrong data and causes failure of parsing MBA
throttle value.
To fix the issue, the 'data' parameter in all parsing callbacks is defined
and handled as a pointer to struct rdt_parse_data (renamed from struct
rdt_cbm_parse_data).
Fixes: 7604df6e16ae ("x86/intel_rdt: Support flexible data to parsing callbacks")
Fixes: 9ab9aa15c309 ("x86/intel_rdt: Ensure requested schemata respects mode")
Signed-off-by: Xiaochen Shen <[email protected]>
Signed-off-by: Reinette Chatre <[email protected]>
Signed-off-by: Fenghua Yu <[email protected]>
Signed-off-by: Thomas Gleixner <[email protected]>
Cc: "H Peter Anvin" <[email protected]>
Cc: "Tony Luck" <[email protected]>
Cc: "Chen Yu" <[email protected]>
Link: https://lkml.kernel.org/r/[email protected]
Diffstat (limited to 'tools/perf/scripts/python/failed-syscalls-by-pid.py')
0 files changed, 0 insertions, 0 deletions
