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

2017-08-08 Thread Dmitry V. Levin
On Tue, Aug 08, 2017 at 09:51:17PM +0800, JingPiao Chen wrote: > On Tue, Aug 08, 2017 at 03:22:31PM +0300, Dmitry V. Levin wrote: > > On Tue, Aug 08, 2017 at 03:07:40PM +0300, Dmitry V. Levin wrote: > > > On Sun, Aug 06, 2017 at 07:52:17AM +0800, JingPiao Chen wrote: > > > > On Sun, Aug 06, 2017

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

2017-08-08 Thread JingPiao Chen
On Tue, Aug 08, 2017 at 03:22:31PM +0300, Dmitry V. Levin wrote: > On Tue, Aug 08, 2017 at 03:07:40PM +0300, Dmitry V. Levin wrote: > > On Sun, Aug 06, 2017 at 07:52:17AM +0800, JingPiao Chen wrote: > > > On Sun, Aug 06, 2017 at 02:10:16AM +0300, Dmitry V. Levin wrote: > > > > On Tue, Aug 01, 2017

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

2017-08-08 Thread Dmitry V. Levin
On Tue, Aug 08, 2017 at 03:07:40PM +0300, Dmitry V. Levin wrote: > On Sun, Aug 06, 2017 at 07:52:17AM +0800, JingPiao Chen wrote: > > 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

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

2017-08-08 Thread Dmitry V. Levin
On Sun, Aug 06, 2017 at 07:52:17AM +0800, JingPiao Chen wrote: > 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

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

2017-08-06 Thread Dmitry V. Levin
On Sun, Aug 06, 2017 at 07:52:17AM +0800, JingPiao Chen wrote: > 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

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

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

2017-08-04 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. A netlink message without a netlink message header? Ouch. Could you give a link to the exact place in kernel sources or