Thread (3 messages) 3 messages, 2 authors, 2025-07-23

Re: [PATCH net] can: netlink: can_changelink(): fix NULL pointer deref of struct can_priv::do_set_mode

From: patchwork-bot+netdevbpf@kernel.org
Date: 2025-07-23 01:49:48
Also in: linux-can

Hello:

This patch was applied to netdev/net.git (main)
by Marc Kleine-Budde [off-list ref]:

On Tue, 22 Jul 2025 12:58:32 +0200 you wrote:
Andrei Lalaev reported a NULL pointer deref when a CAN device is
restarted from Bus Off and the driver does not implement the struct
can_priv::do_set_mode callback.

There are 2 code path that call struct can_priv::do_set_mode:
- directly by a manual restart from the user space, via
  can_changelink()
- delayed automatic restart after bus off (deactivated by default)

[...]
Here is the summary with links:
  - [net] can: netlink: can_changelink(): fix NULL pointer deref of struct can_priv::do_set_mode
    https://git.kernel.org/netdev/net/c/c1f3f9797c1f

You are awesome, thank you!
-- 
Deet-doot-dot, I am a bot.
https://korg.docs.kernel.org/patchwork/pwbot.html

Keyboard shortcuts
hback out one level
jnext message in thread
kprevious message in thread
ldrill in
Escclose help / fold thread tree
?toggle this help