unix.7: Add a description for ENFILE.
Subsystems (3)
PATCH 1/1 unix.7: Add a description for ENFILE.
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().").
---
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(+)
man7/unix.7 +3 -0
@@ -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 +.B ENFILE +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)
Signature · 1 line
2.30.2
Hello Kuniyuki,
Quoted 11 lines · Kuniyuki Iwashima
When creating UNIX domain sockets, the kernel used to return
-ENOMEMon error where it should return-ENFILE. The behaviour has been wrong since 2.2.4 and fixed in the recent commitf4bd73b5a950("af_unix: Return errno instead of NULL inunix_create1().").Signed-off-by Kuniyuki Iwashima <[email protected]>---
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
Quoted 19 lines
--- man7/unix.7 | 3 +++ 1 file changed, 3 insertions(+)man7/unix.7 +3
-0@@ -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 +.B ENFILE +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)
Signature · 3 lines
Alejandro Colomar Linux man-pages comaintainer; https://www.kernel.org/doc/man-pages/ http://www.alejandro-colomar.es/
From: "Alejandro Colomar (man-pages)" <[email protected]> Date: Sat, 2 Oct 2021 19:44:52 +0200
Quoted 13 lines
Hello Kuniyuki,
Quoted 10 lines · Kuniyuki Iwashima
When creating UNIX domain sockets, the kernel used to return
-ENOMEMon error where it should return-ENFILE. The behaviour has been wrong since 2.2.4 and fixed in the recent commitf4bd73b5a950("af_unix: Return errno instead of NULL inunix_create1().").Signed-off-by Kuniyuki Iwashima <[email protected]>---
Note to maintainers of man-pages, the commit is merged in the net tree [0] but not in the Linus' tree yet.
Quoted 6 lines
Quoted 1 line
[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?
Thanks, sure!
Is that -stable?
The pull-request from net-next hit the Linus' 5.14-rc4 tree few days ago.
https://lore.kernel.org/linux-kernel/[email protected]/
https://git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git/commit/?id=4de593fb965fc2bd11a0b767e0c65ff43540a6e4
Best regards,
Kuniyuki
Quoted 30 lines
Cheers,
Alex
Quoted 19 lines
--- man7/unix.7 | 3 +++ 1 file changed, 3 insertions(+)man7/unix.7 +3
-0@@ -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 +.B ENFILE +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)Signature · 3 lines
Alejandro Colomar Linux man-pages comaintainer; https://www.kernel.org/doc/man-pages/ http://www.alejandro-colomar.es/
Hi, Kuniyuki!
Quoted 19 lines · Kuniyuki Iwashima
From: "Alejandro Colomar (man-pages)" <[email protected]> Date: Sat, 2 Oct 2021 19:44:52 +0200Quoted 17 lines
Hello Kuniyuki,
Quoted 11 lines · Kuniyuki Iwashima
When creating UNIX domain sockets, the kernel used to return
-ENOMEMon error where it should return-ENFILE. The behaviour has been wrong since 2.2.4 and fixed in the recent commitf4bd73b5a950("af_unix: Return errno instead of NULL inunix_create1().").Signed-off-by Kuniyuki Iwashima <[email protected]>---
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!
Quoted 8 lines
Quoted 2 lines
The patch looks good to me, so could you ping back when this is merged in Linus's tree?
Thanks, sure!
Is that -stable?
The pull-request from net-next hit the Linus' 5.14-rc4 tree few days ago.
https://lore.kernel.org/linux-kernel/[email protected]/
https://git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git/commit/?id=4de593fb965fc2bd11a0b767e0c65ff43540a6e4
Ahh, if it already is in Linus's tree, I'll merge your patch.
Thanks,
Alex
Quoted 35 lines
Best regards,
KuniyukiQuoted 30 lines
Cheers,
Alex
Quoted 19 lines
--- man7/unix.7 | 3 +++ 1 file changed, 3 insertions(+)man7/unix.7 +3
-0@@ -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 +.B ENFILE +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)Signature · 3 lines
Alejandro Colomar Linux man-pages comaintainer; https://www.kernel.org/doc/man-pages/ http://www.alejandro-colomar.es/
Signature · 3 lines
Alejandro Colomar Linux man-pages comaintainer; https://www.kernel.org/doc/man-pages/ http://www.alejandro-colomar.es/
Quoted 11 lines · Kuniyuki Iwashima
When creating UNIX domain sockets, the kernel used to return
-ENOMEMon error where it should return-ENFILE. The behaviour has been wrong since 2.2.4 and fixed in the recent commitf4bd73b5a950("af_unix: Return errno instead of NULL inunix_create1().").Signed-off-by Kuniyuki Iwashima <[email protected]>---
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
Patch applied!
Thanks,
Alex
Quoted 19 lines
--- man7/unix.7 | 3 +++ 1 file changed, 3 insertions(+)man7/unix.7 +3
-0@@ -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 +.B ENFILE +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)
Signature · 3 lines
Alejandro Colomar Linux man-pages comaintainer; https://www.kernel.org/doc/man-pages/ http://www.alejandro-colomar.es/
From: "Alejandro Colomar (man-pages)" <[email protected]> Date: Sat, 2 Oct 2021 20:12:48 +0200
Quoted 6 lines · Kuniyuki Iwashima
Quoted 5 lines
When creating UNIX domain sockets, the kernel used to return
-ENOMEMon error where it should return-ENFILE. The behaviour has been wrong since 2.2.4 and fixed in the recent commitf4bd73b5a950("af_unix: Return errno instead of NULL inunix_create1().").
Quoted 8 lines
Quoted 6 lines
Signed-off-by Kuniyuki Iwashima <[email protected]>---
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
Patch applied!
Thank you!
Best regards,
Kuniyuki
Quoted 30 lines
Thanks,
Alex
Quoted 19 lines
--- man7/unix.7 | 3 +++ 1 file changed, 3 insertions(+)man7/unix.7 +3
-0@@ -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 +.B ENFILE +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)Signature · 3 lines
Alejandro Colomar Linux man-pages comaintainer; https://www.kernel.org/doc/man-pages/ http://www.alejandro-colomar.es/