public inbox for linux-arm-kernel@lists.infradead.org
 help / color / mirror / Atom feed
* [PATCH 0/2] net: microchip: Fix potential null-ptr-deref due to create_singlethread_workqueue()
@ 2022-11-14 13:38 Shang XiaoJing
  2022-11-14 13:38 ` [PATCH 1/2] net: lan966x: Fix potential null-ptr-deref in lan966x_stats_init() Shang XiaoJing
                   ` (2 more replies)
  0 siblings, 3 replies; 5+ messages in thread
From: Shang XiaoJing @ 2022-11-14 13:38 UTC (permalink / raw)
  To: horatiu.vultur, UNGLinuxDriver, davem, edumazet, kuba, pabeni,
	lars.povlsen, Steen.Hegelund, daniel.machon, rmk+kernel,
	casper.casan, bjarni.jonasson, netdev, linux-arm-kernel
  Cc: shangxiaojing

There are some functions call create_singlethread_workqueue() without
checking ret value, and the NULL workqueue_struct pointer may causes
null-ptr-deref. Will be fixed by this patch.

Shang XiaoJing (2):
  net: lan966x: Fix potential null-ptr-deref in lan966x_stats_init()
  net: microchip: sparx5: Fix potential null-ptr-deref in
    sparx_stats_init() and sparx5_start()

 drivers/net/ethernet/microchip/lan966x/lan966x_ethtool.c | 3 +++
 drivers/net/ethernet/microchip/sparx5/sparx5_ethtool.c   | 3 +++
 drivers/net/ethernet/microchip/sparx5/sparx5_main.c      | 3 +++
 3 files changed, 9 insertions(+)

-- 
2.17.1


_______________________________________________
linux-arm-kernel mailing list
linux-arm-kernel@lists.infradead.org
http://lists.infradead.org/mailman/listinfo/linux-arm-kernel

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

end of thread, other threads:[~2022-11-16  9:22 UTC | newest]

Thread overview: 5+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2022-11-14 13:38 [PATCH 0/2] net: microchip: Fix potential null-ptr-deref due to create_singlethread_workqueue() Shang XiaoJing
2022-11-14 13:38 ` [PATCH 1/2] net: lan966x: Fix potential null-ptr-deref in lan966x_stats_init() Shang XiaoJing
2022-11-14 14:20   ` Horatiu Vultur
2022-11-14 13:38 ` [PATCH 2/2] net: microchip: sparx5: Fix potential null-ptr-deref in sparx_stats_init() and sparx5_start() Shang XiaoJing
2022-11-16  9:20 ` [PATCH 0/2] net: microchip: Fix potential null-ptr-deref due to create_singlethread_workqueue() 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