• David Ahern's avatar
    net: sched: Add policy validation for tc attributes · 8b4c3cdd
    David Ahern authored
    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: 5bc17018 ("net: sched: introduce multichain support for filters")
    Fixes: d47a6b0e ("net: sched: introduce ingress/egress block index attributes for qdisc")
    Signed-off-by: default avatarDavid Ahern <dsahern@gmail.com>
    Signed-off-by: default avatarDavid S. Miller <davem@davemloft.net>
    8b4c3cdd
sch_api.c 51.6 KB