diff options
author | Rahul Rameshbabu <[email protected]> | 2023-07-04 23:04:14 -0700 |
---|---|---|
committer | Benjamin Tissoires <[email protected]> | 2023-07-09 12:47:58 +0200 |
commit | 8bcf314b92ed923019206e0dbf198980f15a70e0 (patch) | |
tree | 603526eac3f7bea0ce2e344976c646602560e41d /tools/perf/util/trace-event-scripting.c | |
parent | 5f151364b1da6bd217632fd4ee8cc24eaf66a497 (diff) |
HID: nvidia-shield: Pack inner/related declarations in HOSTCMD reports
Match alignment information in composite type declarations used by packed
HOSTCMD report structures. Compiler packing attribute is not recursive for
inner declarations. Mismatched alignment information can cause undefined
behavior in code generated for accessing composite type members. struct
pointers passed to thunderstrike_parse_board_info_payload and
thunderstrike_parse_haptics_payload are an example of this being
potentially problematic since alignment information from the packed HOSTCMD
report is lost.
Reported-by: kernel test robot <[email protected]>
Closes: https://lore.kernel.org/oe-kbuild-all/[email protected]/
Link: https://github.com/llvm/llvm-project/issues/55520#issuecomment-1128617570
Link: https://gcc.gnu.org/onlinedocs/gcc-13.1.0/gcc/Common-Type-Attributes.html#index-packed-type-attribute
Signed-off-by: Rahul Rameshbabu <[email protected]>
Link: https://lore.kernel.org/r/[email protected]
Signed-off-by: Benjamin Tissoires <[email protected]>
Diffstat (limited to 'tools/perf/util/trace-event-scripting.c')
0 files changed, 0 insertions, 0 deletions