aboutsummaryrefslogtreecommitdiffstats
path: root/lib/jedec_ddr_data.c
diff options
context:
space:
mode:
authorDavid Ahern <dsahern@gmail.com>2017-12-06 20:09:12 -0800
committerDavid S. Miller <davem@davemloft.net>2017-12-07 14:00:57 -0500
commit6e237d099fac1f73a7b6d7287bb9191f29585a4e (patch)
tree5f9004968bce1a001bf348fa0a56b97fea94bd82 /lib/jedec_ddr_data.c
parentadding missing rcu_read_unlock in ipxip6_rcv (diff)
downloadlinux-dev-6e237d099fac1f73a7b6d7287bb9191f29585a4e.tar.xz
linux-dev-6e237d099fac1f73a7b6d7287bb9191f29585a4e.zip
netlink: Relax attr validation for fixed length types
Commit 28033ae4e0f5 ("net: netlink: Update attr validation to require exact length for some types") requires attributes using types NLA_U* and NLA_S* to have an exact length. This change is exposing bugs in various userspace commands that are sending attributes with an invalid length (e.g., attribute has type NLA_U8 and userspace sends NLA_U32). While the commands are clearly broken and need to be fixed, users are arguing that the sudden change in enforcement is breaking older commands on newer kernels for use cases that otherwise "worked". Relax the validation to print a warning mesage similar to what is done for messages containing extra bytes after parsing. Fixes: 28033ae4e0f5 ("net: netlink: Update attr validation to require exact length for some types") Signed-off-by: David Ahern <dsahern@gmail.com> Reviewed-by: Johannes Berg <johannes@sipsolutions.net> Signed-off-by: David S. Miller <davem@davemloft.net>
Diffstat (limited to 'lib/jedec_ddr_data.c')
0 files changed, 0 insertions, 0 deletions