* [PATCH] net: ignore sock_from_file errors in __scm_install_fd
@ 2020-05-13 11:07 Christoph Hellwig
2020-05-13 11:52 ` Ido Schimmel
` (2 more replies)
0 siblings, 3 replies; 4+ messages in thread
From: Christoph Hellwig @ 2020-05-13 11:07 UTC (permalink / raw)
To: davem; +Cc: netdev, Ido Schimmel
The code had historically been ignoring these errors, and my recent
refactoring changed that, which broke ssh in some setups.
Fixes: 2618d530dd8b ("net/scm: cleanup scm_detach_fds")
Reported-by: Ido Schimmel <idosch@idosch.org>
Signed-off-by: Christoph Hellwig <hch@lst.de>
---
net/core/scm.c | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/net/core/scm.c b/net/core/scm.c
index a75cd637a71ff..875df1c2989db 100644
--- a/net/core/scm.c
+++ b/net/core/scm.c
@@ -307,7 +307,7 @@ static int __scm_install_fd(struct file *file, int __user *ufd, int o_flags)
sock_update_classid(&sock->sk->sk_cgrp_data);
}
fd_install(new_fd, get_file(file));
- return error;
+ return 0;
}
static int scm_max_fds(struct msghdr *msg)
--
2.26.2
^ permalink raw reply related [flat|nested] 4+ messages in thread
* Re: [PATCH] net: ignore sock_from_file errors in __scm_install_fd
2020-05-13 11:07 [PATCH] net: ignore sock_from_file errors in __scm_install_fd Christoph Hellwig
@ 2020-05-13 11:52 ` Ido Schimmel
2020-05-13 13:37 ` Ioana Ciornei
2020-05-13 19:31 ` David Miller
2 siblings, 0 replies; 4+ messages in thread
From: Ido Schimmel @ 2020-05-13 11:52 UTC (permalink / raw)
To: Christoph Hellwig; +Cc: davem, netdev
On Wed, May 13, 2020 at 01:07:59PM +0200, Christoph Hellwig wrote:
> The code had historically been ignoring these errors, and my recent
> refactoring changed that, which broke ssh in some setups.
>
> Fixes: 2618d530dd8b ("net/scm: cleanup scm_detach_fds")
> Reported-by: Ido Schimmel <idosch@idosch.org>
> Signed-off-by: Christoph Hellwig <hch@lst.de>
Tested-by: Ido Schimmel <idosch@mellanox.com>
Thanks, Christoph.
^ permalink raw reply [flat|nested] 4+ messages in thread
* RE: [PATCH] net: ignore sock_from_file errors in __scm_install_fd
2020-05-13 11:07 [PATCH] net: ignore sock_from_file errors in __scm_install_fd Christoph Hellwig
2020-05-13 11:52 ` Ido Schimmel
@ 2020-05-13 13:37 ` Ioana Ciornei
2020-05-13 19:31 ` David Miller
2 siblings, 0 replies; 4+ messages in thread
From: Ioana Ciornei @ 2020-05-13 13:37 UTC (permalink / raw)
To: Christoph Hellwig, davem; +Cc: netdev, Ido Schimmel
> Subject: [PATCH] net: ignore sock_from_file errors in __scm_install_fd
>
> The code had historically been ignoring these errors, and my recent refactoring
> changed that, which broke ssh in some setups.
>
> Fixes: 2618d530dd8b ("net/scm: cleanup scm_detach_fds")
> Reported-by: Ido Schimmel <idosch@idosch.org>
> Signed-off-by: Christoph Hellwig <hch@lst.de>
Tested-by: Ioana Ciornei <ioana.ciornei@nxp.com>
Thanks, I was wondering why my ssh was not working anymore.
^ permalink raw reply [flat|nested] 4+ messages in thread
* Re: [PATCH] net: ignore sock_from_file errors in __scm_install_fd
2020-05-13 11:07 [PATCH] net: ignore sock_from_file errors in __scm_install_fd Christoph Hellwig
2020-05-13 11:52 ` Ido Schimmel
2020-05-13 13:37 ` Ioana Ciornei
@ 2020-05-13 19:31 ` David Miller
2 siblings, 0 replies; 4+ messages in thread
From: David Miller @ 2020-05-13 19:31 UTC (permalink / raw)
To: hch; +Cc: netdev, idosch
From: Christoph Hellwig <hch@lst.de>
Date: Wed, 13 May 2020 13:07:59 +0200
> The code had historically been ignoring these errors, and my recent
> refactoring changed that, which broke ssh in some setups.
>
> Fixes: 2618d530dd8b ("net/scm: cleanup scm_detach_fds")
> Reported-by: Ido Schimmel <idosch@idosch.org>
> Signed-off-by: Christoph Hellwig <hch@lst.de>
Applied, please put something like "[PATCH net-next]" in the Subject
line next time.
Thank you.
^ permalink raw reply [flat|nested] 4+ messages in thread
end of thread, other threads:[~2020-05-13 19:31 UTC | newest]
Thread overview: 4+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2020-05-13 11:07 [PATCH] net: ignore sock_from_file errors in __scm_install_fd Christoph Hellwig
2020-05-13 11:52 ` Ido Schimmel
2020-05-13 13:37 ` Ioana Ciornei
2020-05-13 19:31 ` David Miller
This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.