Commit 8b4c3cd
net: sched: Add policy validation for tc attributes
A number of TC attributes are processed without proper validation
(e.g., length checks). Add a tca policy for all input attributes and use
when invoking nlmsg_parse.
The 2 Fixes tags below cover the latest additions. The other attributes
are a string (KIND), nested attribute (OPTIONS which does seem to have
validation in most cases), for dumps only or a flag.
Fixes: 5bc1701 ("net: sched: introduce multichain support for filters")
Fixes: d47a6b0 ("net: sched: introduce ingress/egress block index attributes for qdisc")
Signed-off-by: David Ahern <dsahern@gmail.com>
Signed-off-by: David S. Miller <davem@davemloft.net>1 parent bd961c9 commit 8b4c3cd
1 file changed
+20
-4
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
1311 | 1311 | | |
1312 | 1312 | | |
1313 | 1313 | | |
| 1314 | + | |
| 1315 | + | |
| 1316 | + | |
| 1317 | + | |
| 1318 | + | |
| 1319 | + | |
| 1320 | + | |
| 1321 | + | |
| 1322 | + | |
| 1323 | + | |
| 1324 | + | |
| 1325 | + | |
1314 | 1326 | | |
1315 | 1327 | | |
1316 | 1328 | | |
| |||
1327 | 1339 | | |
1328 | 1340 | | |
1329 | 1341 | | |
1330 | | - | |
| 1342 | + | |
| 1343 | + | |
1331 | 1344 | | |
1332 | 1345 | | |
1333 | 1346 | | |
| |||
1411 | 1424 | | |
1412 | 1425 | | |
1413 | 1426 | | |
1414 | | - | |
| 1427 | + | |
| 1428 | + | |
1415 | 1429 | | |
1416 | 1430 | | |
1417 | 1431 | | |
| |||
1645 | 1659 | | |
1646 | 1660 | | |
1647 | 1661 | | |
1648 | | - | |
| 1662 | + | |
| 1663 | + | |
1649 | 1664 | | |
1650 | 1665 | | |
1651 | 1666 | | |
| |||
1864 | 1879 | | |
1865 | 1880 | | |
1866 | 1881 | | |
1867 | | - | |
| 1882 | + | |
| 1883 | + | |
1868 | 1884 | | |
1869 | 1885 | | |
1870 | 1886 | | |
| |||
0 commit comments