Re: Stack trace when removing Thunderbolt devices while kernel shutting down

From: Lukas Wunner
Date: Tue Feb 18 2020 - 10:01:28 EST


On Tue, Feb 18, 2020 at 02:18:40PM +0000, Nicholas Johnson wrote:
> If I surprise remove Thunderbolt 3 devices just as the kernel is
> shutting down, I get stack dumps, when those devices would not normally
> cause stack dumps if the kernel were not shutting down.
>
> Because the kernel is shutting down, it makes it difficult to capture
> the logs without a serial console.

Hold a camera in front of the screen and try to capture the messages
as an MP4 movie which can be uploaded to YouTube or something.

If the output moves too fast to capture it, artificially slow it down
by adding a udelay() to call_console_drivers() in kernel/printk/printk.c.

Thanks,

Lukas