Linux kernel mirror (for testing) git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git
kernel os linux

netlink: add minlen validation for the new signed types

Signed-off-by: Julian Anastasov <ja@ssi.bg>
Signed-off-by: David S. Miller <davem@davemloft.net>

authored by

Julian Anastasov and committed by
David S. Miller
9eca2eb9 e8c75e2c

+4
+4
lib/nlattr.c
··· 22 22 [NLA_U64] = sizeof(u64), 23 23 [NLA_MSECS] = sizeof(u64), 24 24 [NLA_NESTED] = NLA_HDRLEN, 25 + [NLA_S8] = sizeof(s8), 26 + [NLA_S16] = sizeof(s16), 27 + [NLA_S32] = sizeof(s32), 28 + [NLA_S64] = sizeof(s64), 25 29 }; 26 30 27 31 static int validate_nla(const struct nlattr *nla, int maxtype,