mirror of
https://github.com/edk2-porting/linux-next.git
synced 2024-12-18 18:23:53 +08:00
tc: Fix unitialized kernel memory leak
Three bytes of uninitialized kernel memory are currently leaked to user Signed-off-by: Eric Dumazet <eric.dumazet@gmail.com> Reviewed-by: Jiri Pirko <jpirko@redhat.com> Signed-off-by: David S. Miller <davem@davemloft.net>
This commit is contained in:
parent
2fbd3da387
commit
16ebb5e0b3
@ -1456,6 +1456,8 @@ static int tc_fill_tclass(struct sk_buff *skb, struct Qdisc *q,
|
|||||||
nlh = NLMSG_NEW(skb, pid, seq, event, sizeof(*tcm), flags);
|
nlh = NLMSG_NEW(skb, pid, seq, event, sizeof(*tcm), flags);
|
||||||
tcm = NLMSG_DATA(nlh);
|
tcm = NLMSG_DATA(nlh);
|
||||||
tcm->tcm_family = AF_UNSPEC;
|
tcm->tcm_family = AF_UNSPEC;
|
||||||
|
tcm->tcm__pad1 = 0;
|
||||||
|
tcm->tcm__pad2 = 0;
|
||||||
tcm->tcm_ifindex = qdisc_dev(q)->ifindex;
|
tcm->tcm_ifindex = qdisc_dev(q)->ifindex;
|
||||||
tcm->tcm_parent = q->handle;
|
tcm->tcm_parent = q->handle;
|
||||||
tcm->tcm_handle = q->handle;
|
tcm->tcm_handle = q->handle;
|
||||||
|
Loading…
Reference in New Issue
Block a user