Patch "um: port_user: Improve error handling when port-helper is not found" has been added to the 5.17-stable tree
A message that is not in the archive (sent off-list or not yet received): [email protected]
Resending this because [email protected] using wrong header field. Apologize for duplicates.
Quoted 7 lines · On Thu, 19 May 2022 09:52:07 -0400 Sasha Levin <[email protected]> wrote:
This is a note to let you know that I've just added the patch titled
um:
port_user: Improve error handling when port-helper is not foundto the 5.17-stable tree which can be found at:
http://www.kernel.org/git/?p=linux/kernel/git/stable/stable-queue.git;a=summary
Quoted 6 lines
The filename of the patch is:
um-port_user-improve-error-handling-when-port-helper.patch
and it can be found in the queue-5.17 subdirectory.If you, or anyone else, feels it should not be added to the stable tree, please let <[email protected]> know about it.
First, I should say that I'm not familiar with the process so I'm likely to be wrong on any number of things. Second I'm the author of this patch and I would like to see this included in the stable trees. However, it appears to me that there is a problem in including just this patch, as it depends on a previous patch which does not appear to be applied[1].
Quoted 31 lines
commit
efc324ad7e7e1c92a8862bd71b2f5f8f15513304Author: Glenn Washburn <[email protected]> Date: Thu Mar 3 01:53:32 2022 -0600um:
port_user: Improve error handling when port-helper is not found[ Upstream commit
3cb5a7f167c620a8b0e38b0446df2e024d2243dc]Check if port-helper exists and is executable. If not, write an error message to the kernel log with information to help the user diagnose the issue and exit with an error. If
UML_PORT_HELPERwas not set, write a message suggesting that the user set it. This makes it easier to understand why telneting to the UML instance is failing and what can be done to fix it.Signed-off-by Glenn Washburn <[email protected]>Signed-off-by Richard Weinberger <[email protected]>Signed-off-by Sasha Levin <[email protected]>arch/um/drivers/port_user.c +1
-0@@ -5,6 +5,7 @@#include <stdio.h> #include <stdlib.h> +#include <string.h> #include <errno.h> #include <termios.h> #include <unistd.h>
arch/um/drivers/port_user.c int port_connection(int fd, int *socket, int *pid_out) · line 183
Quoted 8 lines
arch/um/drivers/port_user.c +5
-0@@ -175,6 +176,17 @@ int port_connection(int fd, int *socket, int *pid_out)if (new <0 )return -errno; + err =os_access (argv[2 ],X_OK ); +if (err <0 ) { +printk (UM_KERN_ERR "port_connection : error accessing port-helper " +"executable at %s: %s\n" , argv[2 ],strerror (-err)); +if (env ==NULL )
The the afore mentioned patch that this patch depends on "env" is declared and set. Without it, I'd expect this to fail to compile. As such, I may be wrong in that the dependent patch was not already included because I'd expect there to have been a compile test prior to this patch getting to this phase.
My suspicion is that the stable trees try to not include new functionality, which the missing patch may have been considered to have done, and thus was not included. If its deemed undesirable to include the missing patch, this "if" block can be removed. Although, I think the missing patch is valuable enough to include.
The above goes for all the stable branches that this patch is set to be included in.
Glenn
Quoted 9 lines
arch/um/drivers/port_user.c +6
-0+printk (UM_KERN_ERR "Set UML_PORT_HELPER environment " +"variable to path to uml-utilities port-helper " +"binary\n" ); + goto out_close; + } + err =os_pipe (socket,0 ,0 );if (err <0 ) goto out_close;
Sasha Levin
maintainerQuoted 20 lines · Glenn Washburn
Resending this because [email protected] using wrong header field. Apologize for duplicates.
Quoted 7 lines · On Thu, 19 May 2022 09:52:07 -0400 Sasha Levin <[email protected]> wrote:
This is a note to let you know that I've just added the patch titled
um:
port_user: Improve error handling when port-helper is not foundto the 5.17-stable tree which can be found at:
http://www.kernel.org/git/?p=linux/kernel/git/stable/stable-queue.git;a=summaryQuoted 6 lines
The filename of the patch is:
um-port_user-improve-error-handling-when-port-helper.patch
and it can be found in the queue-5.17 subdirectory.If you, or anyone else, feels it should not be added to the stable tree, please let <[email protected]> know about it.
Quoted 6 lines
First, I should say that I'm not familiar with the process so I'm likely to be wrong on any number of things. Second I'm the author of this patch and I would like to see this included in the stable trees. However, it appears to me that there is a problem in including just this patch, as it depends on a previous patch which does not appear to be applied[1].
Right, I've dropped it.
Quoted 6 lines
The the afore mentioned patch that this patch depends on "env" is declared and set. Without it, I'd expect this to fail to compile. As such, I may be wrong in that the dependent patch was not already included because I'd expect there to have been a compile test prior to this patch getting to this phase.
Quoted 8 lines
My suspicion is that the stable trees try to not include new functionality, which the missing patch may have been considered to have done, and thus was not included. If its deemed undesirable to include the missing patch, this "if" block can be removed. Although, I think the missing patch is valuable enough to include.
The above goes for all the stable branches that this patch is set to be included in.
Could you provide a list of patches that are needed here?
Signature · 2 lines
Thanks, Sasha
Quoted 42 lines · On Sun, 22 May 2022 12:34:06 -0400 Sasha Levin <[email protected]> wrote:
Quoted 20 lines · Glenn Washburn
Resending this because [email protected] using wrong header field. Apologize for duplicates.
Quoted 7 lines · On Thu, 19 May 2022 09:52:07 -0400 Sasha Levin <[email protected]> wrote:
This is a note to let you know that I've just added the patch titled
um:
port_user: Improve error handling when port-helper is not foundto the 5.17-stable tree which can be found at:
http://www.kernel.org/git/?p=linux/kernel/git/stable/stable-queue.git;a=summaryQuoted 6 lines
The filename of the patch is:
um-port_user-improve-error-handling-when-port-helper.patch
and it can be found in the queue-5.17 subdirectory.If you, or anyone else, feels it should not be added to the stable tree, please let <[email protected]> know about it.
Quoted 6 lines
First, I should say that I'm not familiar with the process so I'm likely to be wrong on any number of things. Second I'm the author of this patch and I would like to see this included in the stable trees. However, it appears to me that there is a problem in including just this patch, as it depends on a previous patch which does not appear to be applied[1].
Right, I've dropped it.
Quoted 12 lines
The the afore mentioned patch that this patch depends on "env" is declared and set. Without it, I'd expect this to fail to compile. As such, I may be wrong in that the dependent patch was not already included because I'd expect there to have been a compile test prior to this patch getting to this phase.
My suspicion is that the stable trees try to not include new functionality, which the missing patch may have been considered to have done, and thus was not included. If its deemed undesirable to include the missing patch, this "if" block can be removed. Although, I think the missing patch is valuable enough to include.
Quoted 4 lines
Quoted 2 lines
The above goes for all the stable branches that this patch is set to be included in.
Could you provide a list of patches that are needed here?
Sore. Strictly speaking, the only dependency is the patch mentioned[1]. Although, I'd suggest picking up this patch[2] that's related to improving messaging on error conditions. I'm also unsure if the provided links are what you're looking for in terms of how to specify patches for you. Let me know more specifically if this doesn't suffice.
Glenn
[1]
https://git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git/commit/?h=v5.18-rc7&id=db8109a8bb4a4b31e7f630d7667749d62ee4a087
[2]
https://git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git/commit/?h=v5.18-rc7&id=82017457957a550d7d00dde419435dd74a890887