Davide Caratti 44d4775ca5 net/sched: sch_taprio: reset child qdiscs before freeing them
syzkaller shows that packets can still be dequeued while taprio_destroy()
is running. Let sch_taprio use the reset() function to cancel the advance
timer and drop all skbs from the child qdiscs.

Fixes: 5a781ccbd19e ("tc: Add support for configuring the taprio scheduler")
Link: https://syzkaller.appspot.com/bug?id=f362872379bf8f0017fb667c1ab158f2d1e764ae
Reported-by: syzbot+8971da381fb5a31f542d@syzkaller.appspotmail.com
Signed-off-by: Davide Caratti <dcaratti@redhat.com>
Acked-by: Vinicius Costa Gomes <vinicius.gomes@intel.com>
Link: https://lore.kernel.org/r/63b6d79b0e830ebb0283e020db4df3cdfdfb2b94.1608142843.git.dcaratti@redhat.com
Signed-off-by: Jakub Kicinski <kuba@kernel.org>
2020-12-17 10:57:57 -08:00
..
2020-10-30 11:59:54 -07:00
2020-12-15 13:22:29 -08:00
2020-12-15 13:22:29 -08:00
2020-10-30 11:43:42 -07:00
2020-10-30 11:34:09 -07:00
2020-12-12 10:07:56 -08:00
2020-12-17 10:24:47 -08:00
2020-11-12 17:00:13 -08:00
2020-10-28 09:14:49 -03:00
2020-11-23 17:44:11 -08:00
2020-12-12 10:07:56 -08:00
2020-10-29 19:27:45 +01:00
2020-10-29 19:27:45 +01:00