Re: [PATCH net 1/6] can: af_can: can_exit(): add missing dev_remove_pack() of canxl_packet

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



Hello:

This series was applied to netdev/net.git (master)
by Marc Kleine-Budde <mkl@xxxxxxxxxxxxxx>:

On Mon,  7 Nov 2022 14:32:12 +0100 you wrote:
> From: Chen Zhongjin <chenzhongjin@xxxxxxxxxx>
> 
> In can_init(), dev_add_pack(&canxl_packet) is added but not removed in
> can_exit(). It breaks the packet handler list and can make kernel
> panic when can_init() is called for the second time.
> 
> | > modprobe can && rmmod can
> | > rmmod xxx && modprobe can
> |
> | BUG: unable to handle page fault for address: fffffbfff807d7f4
> | RIP: 0010:dev_add_pack+0x133/0x1f0
> | Call Trace:
> |  <TASK>
> |  can_init+0xaa/0x1000 [can]
> |  do_one_initcall+0xd3/0x4e0
> |  ...
> 
> [...]

Here is the summary with links:
  - [net,1/6] can: af_can: can_exit(): add missing dev_remove_pack() of canxl_packet
    https://git.kernel.org/netdev/net/c/a3335faebe16
  - [net,2/6] can: af_can: fix NULL pointer dereference in can_rx_register()
    https://git.kernel.org/netdev/net/c/8aa59e355949
  - [net,3/6] can: isotp: fix tx state handling for echo tx processing
    https://git.kernel.org/netdev/net/c/866337865f37
  - [net,4/6] can: j1939: j1939_send_one(): fix missing CAN header initialization
    https://git.kernel.org/netdev/net/c/3eb3d283e857
  - [net,5/6] can: dev: fix skb drop check
    https://git.kernel.org/netdev/net/c/ae64438be192
  - [net,6/6] can: rcar_canfd: Add missing ECC error checks for channels 2-7
    https://git.kernel.org/netdev/net/c/8b043dfb3dc7

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





[Index of Archives]     [Automotive Discussions]     [Linux ARM Kernel]     [Linux ARM]     [Linux Omap]     [Fedora ARM]     [IETF Annouce]     [Security]     [Bugtraq]     [Linux]     [Linux OMAP]     [Linux MIPS]     [eCos]     [Asterisk Internet PBX]     [Linux API]     [CAN Bus]

  Powered by Linux