netdev.vger.kernel.org archive mirror
 help / color / mirror / Atom feed
* [PATCH net,v2 0/3] fix null pointer access issue in qdisc
@ 2022-10-18  6:31 Zhengchao Shao
  2022-10-18  6:31 ` [PATCH net,v2 1/3] net: sched: cake: fix null pointer access issue when cake_init() fails Zhengchao Shao
                   ` (3 more replies)
  0 siblings, 4 replies; 6+ messages in thread
From: Zhengchao Shao @ 2022-10-18  6:31 UTC (permalink / raw)
  To: cake, netdev, toke, jhs, xiyou.wangcong, jiri, davem, edumazet,
	kuba, pabeni
  Cc: dave.taht, weiyongjun1, yuehaibing, shaozhengchao

These three patches fix the same type of problem. Set the default qdisc,
and then construct an init failure scenario when the dev qdisc is
configured on mqprio to trigger the reset process. NULL pointer access
may occur during the reset process.

---
v2: for fq_codel, revert the patch
---

Zhengchao Shao (3):
  net: sched: cake: fix null pointer access issue when cake_init() fails
  Revert "net: sched: fq_codel: remove redundant resource cleanup in
    fq_codel_init()"
  net: sched: sfb: fix null pointer access issue when sfb_init() fails

 net/sched/sch_cake.c     |  4 ++++
 net/sched/sch_fq_codel.c | 25 +++++++++++++++++--------
 net/sched/sch_sfb.c      |  3 ++-
 3 files changed, 23 insertions(+), 9 deletions(-)

-- 
2.17.1


^ permalink raw reply	[flat|nested] 6+ messages in thread

end of thread, other threads:[~2022-10-19 13:15 UTC | newest]

Thread overview: 6+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2022-10-18  6:31 [PATCH net,v2 0/3] fix null pointer access issue in qdisc Zhengchao Shao
2022-10-18  6:31 ` [PATCH net,v2 1/3] net: sched: cake: fix null pointer access issue when cake_init() fails Zhengchao Shao
2022-10-18 10:44   ` Toke Høiland-Jørgensen
2022-10-18  6:32 ` [PATCH net,v2 2/3] Revert "net: sched: fq_codel: remove redundant resource cleanup in fq_codel_init()" Zhengchao Shao
2022-10-18  6:32 ` [PATCH net,v2 3/3] net: sched: sfb: fix null pointer access issue when sfb_init() fails Zhengchao Shao
2022-10-19 13:00 ` [PATCH net,v2 0/3] fix null pointer access issue in qdisc patchwork-bot+netdevbpf

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).