Peter Zijlstra
06dec254c5
perf: Fix perf_event_validate_size()
...
[ Upstream commit 382c27f4ed28f803b1f1473ac2d8db0afc795a1b ]
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: a723968c0e ("perf: Fix u16 overflows")
Reported-by: Budimir Markovic <markovicbudimir@gmail.com >
Signed-off-by: Peter Zijlstra (Intel) <peterz@infradead.org >
Signed-off-by: Sasha Levin <sashal@kernel.org >
2023-12-13 18:39:24 +01:00
..
2023-11-28 17:07:07 +00:00
2023-12-13 18:39:19 +01:00
2022-09-28 09:02:20 +02:00
2023-11-28 17:07:02 +00:00
2023-10-06 14:56:50 +02:00
2023-03-30 12:49:13 +02:00
2023-12-13 18:39:24 +01:00
2023-11-20 11:51:50 +01:00
2022-12-31 13:33:11 +01:00
2023-12-08 08:51:20 +01:00
2023-07-19 16:21:37 +02:00
2023-11-20 11:52:10 +01:00
2023-12-03 07:32:09 +01:00
2023-11-20 11:52:03 +01:00
2023-11-28 17:07:11 +00:00
2023-09-23 11:11:07 +02:00
2023-11-28 17:07:12 +00:00
2023-11-20 11:51:50 +01:00
2023-12-13 18:39:03 +01:00
2023-12-13 18:39:23 +01:00
2022-12-31 13:32:58 +01:00
2022-08-22 18:50:06 -04:00
2023-11-28 17:07:08 +00:00
2022-08-29 19:47:03 -04:00
2022-09-07 11:30:15 -04:00
2023-10-25 12:03:04 +02:00
2022-09-26 19:46:09 -07:00
2022-09-26 10:13:13 -07:00
2023-04-06 12:10:40 +02:00
2023-03-10 09:33:45 +01:00
2023-12-13 18:39:03 +01:00
2022-08-28 14:02:44 -07:00
2022-09-26 19:46:07 -07:00
2023-03-10 09:33:45 +01:00
2023-03-11 13:55:39 +01:00
2023-09-23 11:11:00 +02:00
2022-09-07 21:53:50 +02:00
2022-09-29 04:40:15 +09:00
2022-09-30 16:50:39 +02:00
2023-10-25 12:03:16 +02:00
2023-10-25 12:03:16 +02:00
2022-10-03 14:03:23 -07:00
2023-07-19 16:21:08 +02:00
2023-06-21 16:00:55 +02:00
2022-09-11 21:55:06 -07:00
2023-11-28 17:06:57 +00:00
2023-05-11 23:03:02 +09:00
2023-12-13 18:39:17 +01:00
2022-09-11 21:55:06 -07:00
2022-10-09 16:01:59 -07:00
2022-09-11 21:55:12 -07:00
2022-12-31 13:33:08 +01:00
2022-09-13 10:38:43 -07:00
2023-11-28 17:06:58 +00:00
2023-09-23 11:11:09 +02:00
2023-03-10 09:32:52 +01:00
2022-09-11 21:55:12 -07:00
2022-09-07 21:53:50 +02:00
2023-11-28 17:07:13 +00:00
2023-05-11 23:03:03 +09:00
2023-09-13 09:42:46 +02:00
2022-11-14 09:58:32 +01:00
2023-09-23 11:11:00 +02:00
2023-08-03 10:24:01 +02:00
2023-11-28 17:06:55 +00:00
2022-09-11 21:55:10 -07:00
2022-08-20 15:17:45 -07:00
2023-04-26 14:28:39 +02:00
2022-09-08 16:56:45 -07:00
2022-12-05 12:09:06 -08:00
2022-09-11 21:55:10 -07:00
2022-08-29 12:47:15 +01:00
2023-03-10 09:34:07 +01:00
2022-09-26 13:01:18 -04:00
2023-02-22 12:59:50 +01:00
2022-10-09 16:24:05 -07:00
2022-10-23 12:01:01 -07:00
2023-11-28 17:06:57 +00:00
2023-07-19 16:21:08 +02:00
2023-11-28 17:07:09 +00:00
2023-11-28 17:06:55 +00:00