diff options
author | Peter Zijlstra <peterz@infradead.org> | 2023-11-29 15:24:52 +0100 |
---|---|---|
committer | Peter Zijlstra <peterz@infradead.org> | 2023-11-29 15:43:50 +0100 |
commit | 382c27f4ed28f803b1f1473ac2d8db0afc795a1b (patch) | |
tree | 35ab267cf3d1e5f5d548b169fc9a49965f903a6a /virt | |
parent | Linux 6.7-rc3 (diff) | |
download | linux-382c27f4ed28f803b1f1473ac2d8db0afc795a1b.tar.xz linux-382c27f4ed28f803b1f1473ac2d8db0afc795a1b.zip |
perf: Fix perf_event_validate_size()
Budimir noted that perf_event_validate_size() only checks the size of
the newly added event, even though the sizes of all existing events
can also change due to not all events having the same read_format.
When we attach the new event, perf_group_attach(), we do re-compute
the size for all events.
Fixes: a723968c0ed3 ("perf: Fix u16 overflows")
Reported-by: Budimir Markovic <markovicbudimir@gmail.com>
Signed-off-by: Peter Zijlstra (Intel) <peterz@infradead.org>
Diffstat (limited to 'virt')
0 files changed, 0 insertions, 0 deletions