Thread (2 messages) flat view 2 messages, 2 authors, 2021-04-07

Re: [PATCH v2] net: hso: fix null-ptr-deref during tty device unregistration

From: patchwork-bot+netdevbpf@kernel.org
Date: 2021-04-07 22:20:33
Also in: linux-usb, lkml

Hello:

This patch was applied to netdev/net.git (refs/heads/master):

On Wed,  7 Apr 2021 22:57:22 +0530 you wrote:
Multiple ttys try to claim the same the minor number causing a double
unregistration of the same device. The first unregistration succeeds
but the next one results in a null-ptr-deref.

The get_free_serial_index() function returns an available minor number
but doesn't assign it immediately. The assignment is done by the caller
later. But before this assignment, calls to get_free_serial_index()
would return the same minor number.

[...]
Here is the summary with links:
  - [v2] net: hso: fix null-ptr-deref during tty device unregistration
    https://git.kernel.org/netdev/net/c/8a12f8836145

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