Re: [PATCH RESEND 1/8] netlink: call get_fd_nl_family before decode nlmsghdr

2017-08-05 Thread JingPiao Chen
On Sun, Aug 06, 2017 at 02:10:16AM +0300, Dmitry V. Levin wrote: > On Tue, Aug 01, 2017 at 07:48:41AM +0800, JingPiao Chen wrote: > > Prepare for NETLINK_KOBJECT_UEVENT decode. The messages > > of NETLINK_KOBJECT_UEVENT do not contain nlmsghdr. > [...] > > (decode_nlmsghdr_with_payload): Skip

Re: [PATCH RESEND 1/8] netlink: call get_fd_nl_family before decode nlmsghdr

2017-08-05 Thread Dmitry V. Levin
On Tue, Aug 01, 2017 at 07:48:41AM +0800, JingPiao Chen wrote: > Prepare for NETLINK_KOBJECT_UEVENT decode. The messages > of NETLINK_KOBJECT_UEVENT do not contain nlmsghdr. [...] > (decode_nlmsghdr_with_payload): Skip family specific decoders > for type < NLMSG_MIN_TYPE && type != NLMSG_DONE.

Re: [PATCH RESEND 1/8] netlink: call get_fd_nl_family before decode nlmsghdr

2017-08-05 Thread JingPiao Chen
On Tue, Aug 04, 2017 Dmitry V. Levin wrote: > On Tue, Aug 01, 2017 at 07:48:41AM +0800, JingPiao Chen wrote: > > Prepare for NETLINK_KOBJECT_UEVENT decode. The messages > > of NETLINK_KOBJECT_UEVENT do not contain nlmsghdr. > > A netlink message without a netlink message header? Ouch. > Could