Thread (2 messages) flat view 2 messages, 2 authors, 2021-09-28

Re: [PATCH net] af_unix: Return errno instead of NULL in unix_create1().

From: patchwork-bot+netdevbpf@kernel.org
Date: 2021-09-28 12:30:10

Hello:

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

On Tue, 28 Sep 2021 09:42:27 +0900 you wrote:
unix_create1() returns NULL on error, and the callers assume that it never
fails for reasons other than out of memory.  So, the callers always return
-ENOMEM when unix_create1() fails.

However, it also returns NULL when the number of af_unix sockets exceeds
twice the limit controlled by sysctl: fs.file-max.  In this case, the
callers should return -ENFILE like alloc_empty_file().

[...]
Here is the summary with links:
  - [net] af_unix: Return errno instead of NULL in unix_create1().
    https://git.kernel.org/netdev/net/c/f4bd73b5a950

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