This repository was archived by the owner on Nov 8, 2023. It is now read-only.
Commit f8a8b94
committed
Merge tag 'sysctl-6.11-rc1' of git://git.kernel.org/pub/scm/linux/kernel/git/sysctl/sysctl
Pull sysctl updates from Joel Granados:
- Remove "->procname == NULL" check when iterating through sysctl table
arrays
Removing sentinels in ctl_table arrays reduces the build time size
and runtime memory consumed by ~64 bytes per array. With all
ctl_table sentinels gone, the additional check for ->procname == NULL
that worked in tandem with the ARRAY_SIZE to calculate the size of
the ctl_table arrays is no longer needed and has been removed. The
sysctl register functions now returns an error if a sentinel is used.
- Preparation patches for sysctl constification
Constifying ctl_table structs prevents the modification of
proc_handler function pointers as they would reside in .rodata. The
ctl_table arguments in sysctl utility functions are const qualified
in preparation for a future treewide proc_handler argument
constification commit.
- Misc fixes
Increase robustness of set_ownership by providing sane default
ownership values in case the callee doesn't set them. Bound check
proc_dou8vec_minmax to avoid loading buggy modules and give sysctl
testing module a name to avoid compiler complaints.
* tag 'sysctl-6.11-rc1' of git://git.kernel.org/pub/scm/linux/kernel/git/sysctl/sysctl:
sysctl: Warn on an empty procname element
sysctl: Remove ctl_table sentinel code comments
sysctl: Remove "child" sysctl code comments
sysctl: Remove superfluous empty allocations from sysctl internals
sysctl: Replace nr_entries with ctl_table_size in new_links
sysctl: Remove check for sentinel element in ctl_table arrays
mm profiling: Remove superfluous sentinel element from ctl_table
locking: Remove superfluous sentinel element from kern_lockdep_table
sysctl: Add module description to sysctl-testing
sysctl: constify ctl_table arguments of utility function
utsname: constify ctl_table arguments of utility function
sysctl: move the extra1/2 boundary check of u8 to sysctl_check_table_array
sysctl: always initialize i_uid/i_gidFile tree
8 files changed
+105
-63
lines changed- fs/proc
- include/linux
- kernel
- locking
- lib
- net
8 files changed
+105
-63
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
21 | 21 | | |
22 | 22 | | |
23 | 23 | | |
24 | | - | |
| 24 | + | |
25 | 25 | | |
26 | 26 | | |
27 | 27 | | |
| |||
476 | 476 | | |
477 | 477 | | |
478 | 478 | | |
| 479 | + | |
| 480 | + | |
479 | 481 | | |
480 | 482 | | |
481 | | - | |
482 | | - | |
483 | | - | |
484 | | - | |
485 | 483 | | |
486 | 484 | | |
487 | 485 | | |
| |||
951 | 949 | | |
952 | 950 | | |
953 | 951 | | |
954 | | - | |
| 952 | + | |
955 | 953 | | |
956 | 954 | | |
957 | 955 | | |
958 | 956 | | |
959 | 957 | | |
960 | 958 | | |
961 | | - | |
| 959 | + | |
962 | 960 | | |
963 | 961 | | |
964 | 962 | | |
| |||
1093 | 1091 | | |
1094 | 1092 | | |
1095 | 1093 | | |
| 1094 | + | |
1096 | 1095 | | |
1097 | 1096 | | |
1098 | 1097 | | |
| |||
1104 | 1103 | | |
1105 | 1104 | | |
1106 | 1105 | | |
| 1106 | + | |
| 1107 | + | |
| 1108 | + | |
| 1109 | + | |
| 1110 | + | |
| 1111 | + | |
| 1112 | + | |
| 1113 | + | |
| 1114 | + | |
| 1115 | + | |
| 1116 | + | |
| 1117 | + | |
| 1118 | + | |
1107 | 1119 | | |
1108 | 1120 | | |
1109 | 1121 | | |
| |||
1119 | 1131 | | |
1120 | 1132 | | |
1121 | 1133 | | |
| 1134 | + | |
| 1135 | + | |
1122 | 1136 | | |
1123 | 1137 | | |
1124 | 1138 | | |
| |||
1154 | 1168 | | |
1155 | 1169 | | |
1156 | 1170 | | |
1157 | | - | |
| 1171 | + | |
1158 | 1172 | | |
1159 | 1173 | | |
1160 | | - | |
1161 | 1174 | | |
1162 | | - | |
1163 | 1175 | | |
1164 | 1176 | | |
1165 | 1177 | | |
1166 | 1178 | | |
1167 | | - | |
1168 | | - | |
| 1179 | + | |
| 1180 | + | |
1169 | 1181 | | |
1170 | 1182 | | |
1171 | 1183 | | |
1172 | 1184 | | |
1173 | 1185 | | |
1174 | 1186 | | |
1175 | 1187 | | |
1176 | | - | |
1177 | | - | |
| 1188 | + | |
| 1189 | + | |
1178 | 1190 | | |
1179 | 1191 | | |
1180 | 1192 | | |
| |||
1188 | 1200 | | |
1189 | 1201 | | |
1190 | 1202 | | |
1191 | | - | |
| 1203 | + | |
1192 | 1204 | | |
1193 | 1205 | | |
1194 | 1206 | | |
| |||
1300 | 1312 | | |
1301 | 1313 | | |
1302 | 1314 | | |
1303 | | - | |
1304 | | - | |
1305 | | - | |
1306 | | - | |
| 1315 | + | |
| 1316 | + | |
| 1317 | + | |
| 1318 | + | |
| 1319 | + | |
1307 | 1320 | | |
1308 | 1321 | | |
1309 | 1322 | | |
1310 | | - | |
| 1323 | + | |
1311 | 1324 | | |
1312 | 1325 | | |
1313 | | - | |
1314 | 1326 | | |
1315 | 1327 | | |
1316 | | - | |
1317 | | - | |
1318 | | - | |
1319 | | - | |
1320 | | - | |
1321 | | - | |
1322 | | - | |
1323 | | - | |
1324 | | - | |
| 1328 | + | |
| 1329 | + | |
| 1330 | + | |
| 1331 | + | |
1325 | 1332 | | |
1326 | 1333 | | |
1327 | 1334 | | |
1328 | 1335 | | |
1329 | 1336 | | |
1330 | 1337 | | |
1331 | 1338 | | |
1332 | | - | |
1333 | | - | |
| 1339 | + | |
1334 | 1340 | | |
1335 | 1341 | | |
1336 | 1342 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
237 | 237 | | |
238 | 238 | | |
239 | 239 | | |
240 | | - | |
| 240 | + | |
241 | 241 | | |
242 | 242 | | |
243 | 243 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
97 | 97 | | |
98 | 98 | | |
99 | 99 | | |
100 | | - | |
101 | 100 | | |
102 | 101 | | |
103 | 102 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
367 | 367 | | |
368 | 368 | | |
369 | 369 | | |
| 370 | + | |
| 371 | + | |
| 372 | + | |
| 373 | + | |
| 374 | + | |
| 375 | + | |
| 376 | + | |
| 377 | + | |
| 378 | + | |
| 379 | + | |
| 380 | + | |
| 381 | + | |
| 382 | + | |
| 383 | + | |
| 384 | + | |
| 385 | + | |
| 386 | + | |
| 387 | + | |
| 388 | + | |
| 389 | + | |
| 390 | + | |
| 391 | + | |
| 392 | + | |
| 393 | + | |
| 394 | + | |
| 395 | + | |
| 396 | + | |
| 397 | + | |
| 398 | + | |
| 399 | + | |
| 400 | + | |
| 401 | + | |
| 402 | + | |
| 403 | + | |
| 404 | + | |
| 405 | + | |
| 406 | + | |
| 407 | + | |
| 408 | + | |
| 409 | + | |
| 410 | + | |
| 411 | + | |
| 412 | + | |
| 413 | + | |
| 414 | + | |
| 415 | + | |
| 416 | + | |
| 417 | + | |
370 | 418 | | |
371 | 419 | | |
372 | 420 | | |
| |||
378 | 426 | | |
379 | 427 | | |
380 | 428 | | |
| 429 | + | |
381 | 430 | | |
382 | 431 | | |
383 | 432 | | |
| |||
388 | 437 | | |
389 | 438 | | |
390 | 439 | | |
| 440 | + | |
391 | 441 | | |
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
205 | 205 | | |
206 | 206 | | |
207 | 207 | | |
208 | | - | |
| 208 | + | |
209 | 209 | | |
210 | 210 | | |
211 | 211 | | |
| |||
223 | 223 | | |
224 | 224 | | |
225 | 225 | | |
226 | | - | |
| 226 | + | |
227 | 227 | | |
228 | 228 | | |
229 | 229 | | |
| |||
468 | 468 | | |
469 | 469 | | |
470 | 470 | | |
471 | | - | |
| 471 | + | |
472 | 472 | | |
473 | 473 | | |
474 | 474 | | |
| |||
541 | 541 | | |
542 | 542 | | |
543 | 543 | | |
544 | | - | |
| 544 | + | |
545 | 545 | | |
546 | 546 | | |
547 | 547 | | |
| |||
552 | 552 | | |
553 | 553 | | |
554 | 554 | | |
555 | | - | |
| 555 | + | |
556 | 556 | | |
557 | 557 | | |
558 | 558 | | |
| |||
639 | 639 | | |
640 | 640 | | |
641 | 641 | | |
642 | | - | |
| 642 | + | |
643 | 643 | | |
644 | 644 | | |
645 | 645 | | |
| |||
675 | 675 | | |
676 | 676 | | |
677 | 677 | | |
678 | | - | |
| 678 | + | |
679 | 679 | | |
680 | 680 | | |
681 | 681 | | |
| |||
977 | 977 | | |
978 | 978 | | |
979 | 979 | | |
980 | | - | |
| 980 | + | |
981 | 981 | | |
982 | | - | |
983 | | - | |
984 | | - | |
985 | | - | |
| 982 | + | |
986 | 983 | | |
987 | | - | |
988 | | - | |
989 | | - | |
990 | 984 | | |
991 | 985 | | |
992 | 986 | | |
| |||
1023 | 1017 | | |
1024 | 1018 | | |
1025 | 1019 | | |
1026 | | - | |
1027 | | - | |
| 1020 | + | |
| 1021 | + | |
| 1022 | + | |
1028 | 1023 | | |
1029 | 1024 | | |
1030 | 1025 | | |
| |||
1096 | 1091 | | |
1097 | 1092 | | |
1098 | 1093 | | |
1099 | | - | |
| 1094 | + | |
1100 | 1095 | | |
1101 | 1096 | | |
1102 | 1097 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
15 | 15 | | |
16 | 16 | | |
17 | 17 | | |
18 | | - | |
| 18 | + | |
19 | 19 | | |
20 | 20 | | |
21 | 21 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
239 | 239 | | |
240 | 240 | | |
241 | 241 | | |
242 | | - | |
243 | 242 | | |
244 | 243 | | |
245 | 244 | | |
| |||
0 commit comments