All of lore.kernel.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
  0 siblings, 0 replies; 10+ 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


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

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

Thread overview: 10+ 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 ` 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 13:38   ` Shang XiaoJing
2022-11-14 14:20   ` Horatiu Vultur
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-14 13:38   ` 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
2022-11-16  9:20   ` patchwork-bot+netdevbpf

This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.