Thread (3 messages) 3 messages, 2 authors, 2026-03-27

Re: [PATCH net-next] net: airoha: Grab flow_offload_mutex running airoha_register_gdm_devices()

From: Jakub Kicinski <kuba@kernel.org>
Date: 2026-03-27 03:06:15
Also in: linux-arm-kernel, linux-mediatek

On Tue, 24 Mar 2026 17:54:45 +0100 Lorenzo Bianconi wrote:
Netfilter flowtable can theoretically try offload flower rules as soon
as a net-device is registered while not all the other ones are
registered/initialized, triggering a possible NULL pointer dereferencing
of qdma pointer in airoha_ppe_set_cpu_port routine. In order to avoid any
possible race, grab the flow_offload_mutex running
airoha_register_gdm_devices().
Sashiko says this causes a lock ordering issue:
https://sashiko.dev/#/patchset/20260324-airoha-regiser-race-fix-v1-1-6014df55886b@kernel.org
Keyboard shortcuts
hback out one level
jnext message in thread
kprevious message in thread
ldrill in
Escclose help / fold thread tree
?toggle this help