News for hackers. Stuff that matters.
Re:Fully Dockerized Linux kernel debugging environment by nyanpasu64 on Thursday August 11, 2022 @08:58AM (#32424948)
Can you run the kernel on real hardware and debug from another PC (automated, either container or not)? Most of the kernel nightmares I've seen and wanted to debug involve drivers (amdgpu sleep-wake GPU hangs, ALSA USB audio setup, touchpad resolution, display backlight PWM frequency), and containers are insulated from physical hardware by design.
Re:Fully Dockerized Linux kernel debugging environment by mikepurvis on Thursday August 11, 2022 @09:07AM (#32425034)
You probably want kgdboe for this kind of thing? http://sysprogs.com/VisualKernel/kgdboe/

On a embedded targets you'd have a JTAG port for full out of band debugging, but that's obviously not an option for your typical desktop scenario.

Re:Fully Dockerized Linux kernel debugging environment by nyanpasu64 on Saturday August 13, 2022 @12:01PM (#32451079)
Do I build the kernel on the debugging or victim machine, and do I need to use the same distro on both? Does my kernel configuration have to match the victim machine's distro's default settings? How would I get kernel symbols for binary kernels, or transfer symbols from the victim to debugger machine?
Re:Fully Dockerized Linux kernel debugging environment by phendrenad2 on Thursday August 11, 2022 @11:49AM (#32427553)
I never understood why there wasn't a cheap raspberry pi like x86 board with JTAG...
Re:Fully Dockerized Linux kernel debugging environment by cpgxiii on Thursday August 11, 2022 @12:46PM (#32428445)
There's an interface for debugging many (not all) Intel machines via USB that's been around for years. Needs to be enabled in firmware first, given the obvious security implications.
Re:Fully Dockerized Linux kernel debugging environment by bitwize on Thursday August 11, 2022 @09:56PM (#32433976)
Intel CPUs are higher-than-root exploitable remotely, by design. Closing the USB debugging root hole seems penny-wise and pound-foolish.
Re:Fully Dockerized Linux kernel debugging environment by 0xricksanchez on Thursday August 11, 2022 @03:16PM (#32430419)
In a future (very very very future) PR I'd be interesting exploring this idea of building and pushing stuff to a dev-board and debugging it remotely. However, right now, I don't have any specific use case for this scenario