Qing Ming
8817005efb
cgroup/rstat: validate cpu before css_rstat_cpu() access
...
css_rstat_updated() is exposed as a BPF kfunc and accepts a
caller-provided cpu argument. The function uses cpu for per-cpu rstat
lookups without checking whether it refers to a valid possible CPU.
A BPF iter/cgroup program with CAP_BPF and CAP_PERFMON can pass an
invalid cpu value. On an unfixed UBSCAN_BOUNDS test kernel, cpu ==
0x7fffffff triggers:
UBSAN: array-index-out-of-bounds in kernel/cgroup/rstat.c:31:9
index 2147483647 is out of range for type 'long unsigned int [64]'
Call Trace:
css_rstat_updated
bpf_iter_run_prog
cgroup_iter_seq_show
bpf_seq_read
Add cpu validation to the BPF-facing css_rstat_updated() kfunc and
move the common implementation to __css_rstat_updated() for in-kernel
callers.
Fixes: a319185be9 ("cgroup: bpf: enable bpf programs to integrate with rstat")
Signed-off-by: Qing Ming <a0yami@mailbox.org >
Signed-off-by: Tejun Heo <tj@kernel.org >
2026-05-18 09:31:52 -10:00
..
2026-02-11 13:44:47 +01:00
2026-03-27 09:12:36 -03:00
2026-03-25 17:40:22 +01:00
2026-02-05 11:58:40 +01:00
2026-02-09 12:29:22 +01:00
2026-04-13 19:03:11 -07:00
2026-04-08 19:38:52 -07:00
2026-04-16 20:34:34 -07:00
2026-03-20 14:18:56 +01:00
2026-04-04 20:41:25 +02:00
2026-03-17 13:57:40 +01:00
2026-04-13 20:10:58 -07:00
2026-03-02 20:52:21 +00:00
2026-02-19 07:26:26 -07:00
2026-03-19 18:21:28 +00:00
2026-04-05 13:53:04 -07:00
2026-04-15 09:20:49 -07:00
2026-04-16 08:01:16 -07:00
2026-04-15 14:15:25 -07:00
2026-03-09 13:44:45 +01:00
2026-04-08 07:51:26 +02:00
2026-03-26 15:22:41 +01:00
2026-03-24 13:50:30 +01:00
2026-04-16 20:45:14 -07:00
2026-04-02 23:36:21 -07:00
2026-02-05 00:07:58 +00:00
2026-05-11 10:27:14 -10:00
2026-04-16 20:34:34 -07:00
2026-04-11 11:53:54 +01:00
2026-04-05 13:53:07 -07:00
2026-04-15 08:32:10 -07:00
2026-04-09 21:40:22 +02:00
2026-03-27 15:32:04 +00:00
2026-03-02 18:55:21 -08:00
2026-04-13 14:56:54 -07:00
2026-03-13 16:46:38 +01:00
2026-02-23 16:09:00 -08:00
2026-03-17 15:18:54 +01:00
2026-02-17 13:25:13 +01:00
2026-04-03 16:53:50 -04:00
2026-03-09 07:47:02 -06:00
2026-04-07 08:22:24 -06:00
2026-04-01 20:03:07 -04:00
2026-04-09 13:28:05 -04:00
2026-02-16 10:21:01 -07:00
2026-03-14 07:44:30 -06:00
2026-04-13 15:51:31 -07:00
2026-04-10 21:22:32 -07:00
2026-02-27 15:39:00 -08:00
2026-04-12 12:37:04 -07:00
2026-04-06 18:37:52 -07:00
2026-04-08 18:09:56 -07:00
2026-04-12 11:33:23 -07:00
2026-03-19 11:38:24 -06:00
2026-03-29 09:56:06 -07:00
2026-03-26 15:03:32 +01:00
2026-03-10 16:01:48 -07:00
2026-02-05 14:10:00 -08:00
2026-04-04 08:10:37 -06:00
2026-05-04 08:52:26 -10:00
2026-05-18 09:31:52 -10:00
2026-03-16 13:16:49 +01:00
2026-02-15 08:18:57 -08:00
2026-04-11 07:58:33 +02:00
2026-04-14 10:53:44 -07:00
2026-02-12 11:32:37 -08:00
2026-03-31 14:41:56 -07:00
2026-03-08 11:06:52 +01:00
2026-03-24 15:08:05 +01:00
2026-04-15 08:37:45 -07:00
2026-02-14 11:09:47 +01:00
2026-02-20 14:38:25 +01:00
2026-03-23 13:33:51 -04:00
2026-04-04 18:40:58 -06:00
2026-04-04 20:55:56 +02:00
2026-03-22 11:17:59 +09:00
2026-04-07 15:32:20 +02:00
2026-02-18 20:50:32 -08:00
2026-04-02 23:36:24 -07:00
2026-02-21 17:09:51 -08:00
2026-03-02 17:08:05 -05:00
2026-04-05 13:53:28 -07:00
2026-04-05 13:53:19 -07:00
2026-04-14 12:01:12 -05:00
2026-03-27 22:19:17 +01:00
2026-03-22 23:13:33 +01:00
2026-02-23 19:51:40 +01:00
2026-02-23 16:14:20 +01:00
2026-02-23 16:14:21 +01:00
2026-04-08 15:27:47 +02:00
2026-02-13 14:51:39 -08:00
2026-03-25 08:01:21 +01:00
2026-04-01 20:54:16 +02:00
2026-04-03 16:48:01 -07:00
2026-04-06 20:21:37 -06:00
2026-03-31 19:15:21 +02:00
2026-03-11 19:52:27 +01:00
2026-03-18 09:06:49 +01:00
2026-04-14 16:48:56 -07:00
2026-03-16 19:29:45 -07:00
2026-03-23 17:59:54 -07:00
2026-03-07 15:03:14 -08:00
2026-03-31 23:42:52 +00:00
2026-03-09 15:47:20 +01:00
2026-02-09 15:13:05 -08:00
2026-04-14 18:36:10 -07:00
2026-03-23 13:33:51 -04:00
2026-04-05 13:53:07 -07:00
2026-04-05 13:53:07 -07:00
2026-04-07 17:38:07 +02:00
2026-02-19 14:34:26 +01:00
2026-04-15 12:59:16 -07:00
2026-03-09 13:34:21 -07:00
2026-02-19 09:12:05 +01:00
2026-02-17 23:11:40 -08:00
2026-02-19 15:21:22 -05:00
2026-03-26 22:00:59 +01:00
2026-02-21 17:09:51 -08:00
2026-04-06 20:21:37 -06:00
2026-04-06 20:21:37 -06:00
2026-02-26 17:30:32 +01:00
2026-02-26 15:27:41 -08:00
2026-03-09 12:36:10 +05:30
2026-04-08 14:23:29 -07:00
2026-03-11 15:26:47 +01:00
2026-04-12 16:46:29 +08:00
2026-03-19 08:18:36 +01:00
2026-03-12 12:15:55 +01:00
2026-02-27 16:40:14 +01:00
2026-02-27 16:40:16 +01:00
2026-03-12 12:15:54 +01:00
2026-04-05 13:53:45 -07:00
2026-04-05 13:53:25 -07:00
2026-04-15 12:59:16 -07:00
2026-03-22 11:17:59 +09:00
2026-04-05 13:53:44 -07:00
2026-03-29 11:21:23 -07:00
2026-03-13 14:48:15 +01:00
2026-03-06 10:52:11 +01:00
2026-04-07 15:36:02 +02:00
2026-03-06 10:46:26 +01:00
2026-04-08 08:55:15 +02:00
2026-03-16 19:29:45 -07:00
2026-04-12 15:20:46 -07:00
2026-04-13 15:09:49 +02:00
2026-02-05 16:33:52 +01:00
2026-03-29 11:21:23 -07:00
2026-04-01 16:03:05 +02:00
2026-02-10 13:39:37 -08:00
2026-04-13 16:22:30 -07:00
2026-02-06 07:29:14 -07:00
2026-02-21 17:09:51 -08:00
2026-03-17 13:58:45 +01:00
2026-04-15 12:59:16 -07:00
2026-04-09 13:18:27 +01:00
2026-03-09 19:35:40 +02:00
2026-03-27 10:18:39 -05:00
2026-03-11 17:53:37 -07:00
2026-04-14 23:03:02 -07:00
2026-03-10 18:37:21 +01:00
2026-03-21 08:02:36 +01:00
2026-03-16 13:16:49 +01:00
2026-04-05 13:53:28 -07:00
2026-04-13 10:10:28 -07:00
2026-04-05 13:53:04 -07:00
2026-04-09 14:36:52 +02:00
2026-04-09 14:36:52 +02:00
2026-04-05 13:53:40 -07:00
2026-04-03 19:39:52 +02:00
2026-02-26 10:45:49 +01:00
2026-04-13 19:00:43 +02:00
2026-04-05 13:53:46 -07:00
2026-02-25 07:20:18 +01:00
2026-02-14 11:09:46 +01:00
2026-04-01 10:19:41 +02:00
2026-02-08 00:13:32 -08:00
2026-02-05 08:00:44 -08:00
2026-02-24 11:13:26 -08:00
2026-03-12 11:29:11 +01:00
2026-04-03 16:53:50 -04:00
2026-04-13 15:42:19 -07:00
2026-04-03 16:53:50 -04:00
2026-04-05 13:52:55 -07:00
2026-03-18 09:59:57 +00:00
2026-03-14 12:23:02 -07:00
2026-04-09 17:14:36 +02:00
2026-04-05 13:53:04 -07:00
2026-04-05 13:53:00 -07:00
2026-04-05 13:53:32 -07:00
2026-04-05 13:53:33 -07:00
2026-04-05 13:53:01 -07:00
2026-03-26 16:13:48 +01:00
2026-02-27 17:23:37 -08:00
2026-04-02 18:03:03 -07:00
2026-03-02 11:51:51 -05:00
2026-04-05 13:53:36 -07:00
2026-04-05 13:53:45 -07:00
2026-04-05 13:53:45 -07:00
2026-04-05 13:53:41 -07:00
2026-04-08 13:18:57 -07:00
2026-04-15 12:59:16 -07:00
2026-04-15 12:59:16 -07:00
2026-03-05 12:25:38 -08:00
2026-03-24 21:42:37 +00:00
2026-03-31 23:42:18 +00:00
2026-03-31 23:42:52 +00:00
2026-03-18 21:43:19 +00:00
2026-03-27 17:01:36 +01:00
2026-03-02 18:49:41 -08:00
2026-02-10 16:30:29 -08:00
2026-03-08 11:06:53 +01:00
2026-03-08 11:06:53 +01:00
2026-03-09 09:43:04 +01:00
2026-04-13 14:56:28 -07:00
2026-04-14 18:36:10 -07:00
2026-03-29 11:21:24 -07:00
2026-03-26 15:18:45 +01:00
2026-03-27 21:19:47 -07:00
2026-02-27 22:00:08 +01:00
2026-03-27 10:56:05 -05:00
2026-04-13 15:51:31 -07:00
2026-03-27 07:35:05 -07:00
2026-03-12 16:18:49 +01:00
2026-02-24 15:46:31 -08:00
2026-03-22 11:17:59 +09:00
2026-04-05 13:53:12 -07:00
2026-04-05 13:53:17 -07:00
2026-04-05 13:53:19 -07:00
2026-03-20 14:18:56 +01:00
2026-04-05 13:53:10 -07:00
2026-04-10 17:27:39 -05:00
2026-04-04 16:14:37 +05:30
2026-04-06 16:55:16 +02:00
2026-04-15 14:41:21 -07:00
2026-02-11 12:45:40 -05:00
2026-04-05 13:53:35 -07:00
2026-04-12 11:33:23 -07:00
2026-02-10 11:39:30 +01:00
2026-02-10 11:39:31 +01:00
2026-02-10 11:39:30 +01:00
2026-03-22 23:13:33 +01:00
2026-04-01 13:33:35 +02:00
2026-02-23 14:08:17 +01:00
2026-03-30 13:57:49 +02:00
2026-03-17 16:18:48 -07:00
2026-03-27 18:52:43 +09:00
2026-03-30 12:02:12 +02:00
2026-03-27 17:14:31 -07:00
2026-03-25 13:15:36 +01:00
2026-03-24 21:12:03 -07:00
2026-02-27 16:40:16 +01:00
2026-02-27 16:40:16 +01:00
2026-03-04 11:45:45 +01:00
2026-04-07 12:24:49 -07:00
2026-03-31 14:41:56 -07:00
2026-04-10 11:46:15 +01:00
2026-03-09 10:20:04 +01:00
2026-03-09 10:20:04 +01:00
2026-03-07 14:12:20 +09:00
2026-03-09 12:33:55 -04:00
2026-03-09 12:33:53 -04:00
2026-03-21 08:02:36 +01:00
2026-03-11 12:01:07 +01:00
2026-02-23 11:19:19 +01:00
2026-03-08 11:06:53 +01:00
2026-03-31 16:47:17 +02:00
2026-02-27 16:40:19 +01:00
2026-03-16 13:16:50 +01:00
2026-03-08 11:06:53 +01:00
2026-04-14 13:33:36 -07:00
2026-04-13 15:42:19 -07:00
2026-03-31 07:04:00 -06:00
2026-03-08 11:06:52 +01:00
2026-02-06 10:07:22 +01:00
2026-03-31 09:48:42 +02:00
2026-03-12 15:34:15 +01:00
2026-02-23 13:06:38 +01:00
2026-03-09 12:33:55 -04:00
2026-04-12 10:54:31 -07:00
2026-02-21 01:02:52 -08:00
2026-02-26 17:30:32 +01:00
2026-03-25 20:11:29 +01:00
2026-03-04 17:53:34 -08:00
2026-03-16 13:16:50 +01:00
2026-02-27 16:40:19 +01:00
2026-03-30 15:48:13 -04:00
2026-03-25 09:00:05 -07:00
2026-03-30 15:48:13 -04:00
2026-03-27 20:57:38 -07:00
2026-02-11 10:14:35 +01:00
2026-04-05 13:53:06 -07:00
2026-03-12 16:18:49 +01:00
2026-03-23 12:41:58 +01:00
2026-04-13 19:03:11 -07:00
2026-03-14 08:01:49 -07:00
2026-03-13 08:22:54 +01:00
2026-03-19 08:18:36 +01:00
2026-04-08 12:30:31 +02:00
2026-03-02 10:04:19 +01:00
2026-04-01 17:13:35 +02:00
2026-02-27 16:40:08 +01:00
2026-02-27 16:40:16 +01:00
2026-02-27 16:40:16 +01:00
2026-02-27 16:11:50 -08:00
2026-03-12 12:15:53 +01:00
2026-03-09 12:33:54 -04:00
2026-03-09 12:33:54 -04:00
2026-03-31 16:01:13 -07:00
2026-02-12 15:43:02 -08:00
2026-02-15 10:20:37 -08:00
2026-04-05 13:53:08 -07:00
2026-02-06 13:34:55 +01:00
2026-04-13 08:39:51 -07:00
2026-03-13 18:57:45 -07:00
2026-04-05 13:53:44 -07:00
2026-03-05 15:52:39 +01:00
2026-04-02 09:43:26 +02:00
2026-04-05 13:53:41 -07:00
2026-04-04 00:47:50 +02:00
2026-03-11 10:18:30 +01:00
2026-03-30 16:43:24 -06:00
2026-03-24 11:12:08 +01:00
2026-04-05 13:52:58 -07:00
2026-04-05 13:53:04 -07:00
2026-02-12 11:32:37 -08:00
2026-03-12 07:47:36 +01:00
2026-04-04 00:45:14 +02:00
2026-04-01 10:24:18 -10:00
2026-04-05 13:53:07 -07:00
2026-02-27 16:40:20 +01:00
2026-03-02 11:06:42 +01:00