net_sched: sch_skbprio: add message validation to skbprio_change()
authorEric Dumazet <edumazet@google.com>
Sun, 3 May 2020 03:09:25 +0000 (20:09 -0700)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Thu, 14 May 2020 05:58:21 +0000 (07:58 +0200)
commitb51b394f4ab10af7feccdfb5dd85cb55f02ffc2a
tree70f33c917899465a18fc334788fbe085f8b74f8d
parentc78c166748e91c13d64092544b17360fc8a87f94
net_sched: sch_skbprio: add message validation to skbprio_change()

[ Upstream commit 2761121af87de45951989a0adada917837d8fa82 ]

Do not assume the attribute has the right size.

Fixes: aea5f654e6b7 ("net/sched: add skbprio scheduler")
Signed-off-by: Eric Dumazet <edumazet@google.com>
Reported-by: syzbot <syzkaller@googlegroups.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
net/sched/sch_skbprio.c