When creating UNIX domain sockets, the kernel used to return -ENOMEM on
error where it should return -ENFILE. The behaviour has been wrong since
2.2.4 and fixed in the recent commit f4bd73b5a950 ("af_unix: Return errno
instead of NULL in unix_create1().").
Signed-off-by: Kuniyuki Iwashima <redacted>
---
Note to maintainers of man-pages, the commit is merged in the net tree [0]
but not in the Linus' tree yet.
[0]: https://git.kernel.org/pub/scm/linux/kernel/git/netdev/net.git/commit/?id=f4bd73b5a950
---
man7/unix.7 | 3 +++
1 file changed, 3 insertions(+)
@@ -721,6 +721,9 @@ invalid state for the applied operation. called on an already connected socket or a target address was specified on a connected socket. .TP+.BENFILE+The system-wide limit on the total number of open files has been reached.+.TP .BENOENT The pathname in the remote address specified to .BRconnect(2)
Hello Kuniyuki,
On 9/29/21 3:38 AM, Kuniyuki Iwashima wrote:
When creating UNIX domain sockets, the kernel used to return -ENOMEM on
error where it should return -ENFILE. The behaviour has been wrong since
2.2.4 and fixed in the recent commit f4bd73b5a950 ("af_unix: Return errno
instead of NULL in unix_create1().").
Signed-off-by: Kuniyuki Iwashima <redacted>
---
Note to maintainers of man-pages, the commit is merged in the net tree [0]
but not in the Linus' tree yet.
[0]: https://git.kernel.org/pub/scm/linux/kernel/git/netdev/net.git/commit/?id=f4bd73b5a950
Thanks!
The patch looks good to me, so could you ping back when this is merged
in Linus's tree?
Cheers,
Alex
@@ -721,6 +721,9 @@ invalid state for the applied operation. called on an already connected socket or a target address was specified on a connected socket. .TP+.BENFILE+The system-wide limit on the total number of open files has been reached.+.TP .B ENOENT The pathname in the remote address specified to .BR connect (2)
Hello Kuniyuki,
On 9/29/21 3:38 AM, Kuniyuki Iwashima wrote:
quoted
When creating UNIX domain sockets, the kernel used to return -ENOMEM on
error where it should return -ENFILE. The behaviour has been wrong since
2.2.4 and fixed in the recent commit f4bd73b5a950 ("af_unix: Return errno
instead of NULL in unix_create1().").
Signed-off-by: Kuniyuki Iwashima <redacted>
---
Note to maintainers of man-pages, the commit is merged in the net tree [0]
but not in the Linus' tree yet.
[0]: https://git.kernel.org/pub/scm/linux/kernel/git/netdev/net.git/commit/?id=f4bd73b5a950
Thanks!
The patch looks good to me, so could you ping back when this is merged
in Linus's tree?
@@ -721,6 +721,9 @@ invalid state for the applied operation. called on an already connected socket or a target address was specified on a connected socket. .TP+.BENFILE+The system-wide limit on the total number of open files has been reached.+.TP .B ENOENT The pathname in the remote address specified to .BR connect (2)
Hello Kuniyuki,
On 9/29/21 3:38 AM, Kuniyuki Iwashima wrote:
quoted
When creating UNIX domain sockets, the kernel used to return -ENOMEM on
error where it should return -ENFILE. The behaviour has been wrong since
2.2.4 and fixed in the recent commit f4bd73b5a950 ("af_unix: Return errno
instead of NULL in unix_create1().").
Signed-off-by: Kuniyuki Iwashima <redacted>
---
Note to maintainers of man-pages, the commit is merged in the net tree [0]
but not in the Linus' tree yet.
[0]: https://git.kernel.org/pub/scm/linux/kernel/git/netdev/net.git/commit/?id=f4bd73b5a950
Thanks!
The patch looks good to me, so could you ping back when this is merged
in Linus's tree?
@@ -721,6 +721,9 @@ invalid state for the applied operation. called on an already connected socket or a target address was specified on a connected socket. .TP+.BENFILE+The system-wide limit on the total number of open files has been reached.+.TP .B ENOENT The pathname in the remote address specified to .BR connect (2)
When creating UNIX domain sockets, the kernel used to return -ENOMEM on
error where it should return -ENFILE. The behaviour has been wrong since
2.2.4 and fixed in the recent commit f4bd73b5a950 ("af_unix: Return errno
instead of NULL in unix_create1().").
Signed-off-by: Kuniyuki Iwashima <redacted>
---
Note to maintainers of man-pages, the commit is merged in the net tree [0]
but not in the Linus' tree yet.
[0]: https://git.kernel.org/pub/scm/linux/kernel/git/netdev/net.git/commit/?id=f4bd73b5a950
@@ -721,6 +721,9 @@ invalid state for the applied operation. called on an already connected socket or a target address was specified on a connected socket. .TP+.BENFILE+The system-wide limit on the total number of open files has been reached.+.TP .B ENOENT The pathname in the remote address specified to .BR connect (2)
When creating UNIX domain sockets, the kernel used to return -ENOMEM on
error where it should return -ENFILE. The behaviour has been wrong since
2.2.4 and fixed in the recent commit f4bd73b5a950 ("af_unix: Return errno
instead of NULL in unix_create1().").
Signed-off-by: Kuniyuki Iwashima <redacted>
---
Note to maintainers of man-pages, the commit is merged in the net tree [0]
but not in the Linus' tree yet.
[0]: https://git.kernel.org/pub/scm/linux/kernel/git/netdev/net.git/commit/?id=f4bd73b5a950
@@ -721,6 +721,9 @@ invalid state for the applied operation. called on an already connected socket or a target address was specified on a connected socket. .TP+.BENFILE+The system-wide limit on the total number of open files has been reached.+.TP .B ENOENT The pathname in the remote address specified to .BR connect (2)