Re: [tipc-discussion] [net-next] tipc: do sanity check payload of a netlink message

2020-12-14 Thread Jon Maloy
On 12/11/20 6:32 AM, Hoang Huu Le wrote: From: Hoang Le We initialize nlmsghdr without any payload in tipc_nl_compat_dumpit(), then, result of calling parse attributes always fails and return with '-EINVAL' error. When we initialize nlmsghdr with no payload inside tipc_nl_compat_dumpit()

[tipc-discussion] [net-next] tipc: do sanity check payload of a netlink message

2020-12-11 Thread Hoang Huu Le
From: Hoang Le We initialize nlmsghdr without any payload in tipc_nl_compat_dumpit(), then, result of calling parse attributes always fails and return with '-EINVAL' error. To fix error returning when parsing attributes of a netlink message, we do a sanity check the length of message payload.