On Wed, Sep 20, 2023 at 05:51:45PM +0000, Shaoying Xu wrote: > From: Budimir Markovic <markovicbudimir@xxxxxxxxx> > > [ Upstream commit b3d26c5702c7d6c45456326e56d2ccf3f103e60f ] > > 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: 1da177e4c3f4 ("Linux-2.6.12-rc2") > Reported-by: Budimir Markovic <markovicbudimir@xxxxxxxxx> > Signed-off-by: Budimir Markovic <markovicbudimir@xxxxxxxxx> > Acked-by: Jamal Hadi Salim <jhs@xxxxxxxxxxxx> > Link: https://lore.kernel.org/r/20230824084905.422-1-markovicbudimir@xxxxxxxxx > Signed-off-by: Jakub Kicinski <kuba@xxxxxxxxxx> > [ v4.14: Delete NL_SET_ERR_MSG because extack is not added to hfsc_change_class ] > Cc: <stable@xxxxxxxxxxxxxxx> # 4.14 Trailing whitespace, please fix your editor :( Anyway, now queued up, thanks. greg k-h