Linux USB
 help / color / mirror / Atom feed
From: "Ko, Kang Jun" <kang-jun.ko@hpe.com>
To: Greg KH <gregkh@linuxfoundation.org>,
	"linux-usb@vger.kernel.org" <linux-usb@vger.kernel.org>
Subject: Re: USB: urb error log during reboot on devices with multiple serial consoles (Linux Kernel version 5.15.71)
Date: Thu, 25 Sep 2025 01:29:57 +0000	[thread overview]
Message-ID: <MW5PR84MB2083421899199020C49FB35ABD1FA@MW5PR84MB2083.NAMPRD84.PROD.OUTLOOK.COM> (raw)
In-Reply-To: <2025091842-parkway-implode-0c85@gregkh>

Hello,

Thank you for the kind response. I've tried updating the kernel version to 6.12.3
and the same error message still exists during shutdown.

I understand this is not a bug or a functional issue and the kernel is correctly noting that the hardware is no longer reachable.
 
However, I would like to know if canceling the USB messages when the hardware has gone away so that the error message doesn't happen is something that is considered for future kernel versions.

Thank you,
Jun Ko


________________________________________
From: Greg KH <gregkh@linuxfoundation.org>
Sent: Thursday, September 18, 2025 5:09 PM
To: Ko, Kang Jun <kang-jun.ko@hpe.com>
Cc: linux-usb@vger.kernel.org <linux-usb@vger.kernel.org>
Subject: Re: USB: urb error log during reboot on devices with multiple serial consoles (Linux Kernel version 5.15.71)


On Thu, Sep 18, 2025 at 08:39:11AM +0000, Ko, Kang Jun wrote:
> Hello,
> 
> I am reporting an USB related issue on the Linux Kernel version 5.15.71

Please note that that kernel is _VERY_ old and out of date and not
supported by anyone as it was released over 3 years ago.  There have
been over 19000 changes made to the 5.15.y branch since then.

Please try updating and see if the issue persists with the latest 5.15.y
release.

But, as you write:

> Below is an error message that is seen in my dmesg log when my network switch goes into reboot. 
> 
> /****** Reboot log ******/
> ...
> Reboot reason: Reboot requested by user
> reboot: Restarting system
> ftdi_sio ttyUSB0: usb_serial_generic_write_start - error submitting urb: -19
> ...
> /****** Reboot log ******/
> 
> Summary:
> Our network switch has two serial consoles attached to the system (one connected to the processor, one connected to FTDI chip).
> When the switch goes into reboot, I can see (from the console connected to the processor) the above error message.
> There is no functional problem in rebooting the switch but I would like to know if the error message is something intended by the Linux Kernel.
> 
> Reproduction steps:
> Attach two serial consoles to the system and reboot.
> 
> Additional notes:
> The serial drivers do not have a designated "shutdown" method so the driver is still present when the kernel goes through the device_shutdown method within the kernel_restart_prepare() function. The ftdi_sio serial driver continues to submit URB messages to the console when the console is already removed from the system, which results in the error message.
> 
> Conclusion:
> Although this is not a functional issue and is not observed on systems with one serial console attached, this error message can be seen 100% on reboot on devices with multiple consoles. I would like to know if this error log is intended by design or if it is something that was not considered because there is no functional issue.

This really isn't a bug, and you should be able to just ignore it, the
kernel is correctly noting that it could not submit the USB message
because the hardware has gone away and you did not close the console
before that happened.

But again, PLEASE update your kernel, it is very old and full of known
security issues that have been resolved already.

thanks,

greg k-h



  reply	other threads:[~2025-09-25  1:30 UTC|newest]

Thread overview: 4+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2025-09-18  8:39 USB: urb error log during reboot on devices with multiple serial consoles (Linux Kernel version 5.15.71) Ko, Kang Jun
2025-09-18  9:09 ` Greg KH
2025-09-25  1:29   ` Ko, Kang Jun [this message]
2025-09-25  8:20     ` Greg KH

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=MW5PR84MB2083421899199020C49FB35ABD1FA@MW5PR84MB2083.NAMPRD84.PROD.OUTLOOK.COM \
    --to=kang-jun.ko@hpe.com \
    --cc=gregkh@linuxfoundation.org \
    --cc=linux-usb@vger.kernel.org \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox