net/sched: sch_hfsc: Ensure inner classes have fsc curve
HFSC assumes that inner classes have an fsc curve, but it is currently possible for classes without an fsc curve to become parents. This leads to bugs including a use-after-free. Don't allow non-root classes without HFSC_FSC to become parents. Fixes: 1da177e4 ("Linux-2.6.12-rc2") Reported-by:Budimir Markovic <markovicbudimir@gmail.com> Signed-off-by:
Budimir Markovic <markovicbudimir@gmail.com> Acked-by:
Jamal Hadi Salim <jhs@mojatatu.com> Link: https://lore.kernel.org/r/20230824084905.422-1-markovicbudimir@gmail.com Signed-off-by:
Jakub Kicinski <kuba@kernel.org>
-
mentioned in commit 3844902e
-
mentioned in commit c3d6c235
-
mentioned in commit msm-4.19@c3d6c235
-
mentioned in commit common@c3d6c235
Please register or sign in to comment