ku1ik / stderred

stderr in red
MIT License
996 stars 115 forks source link

FYI: libstderred.so breaks update-initramfs, yielding unbootable kernel images #63

Open jefft opened 6 years ago

jefft commented 6 years ago

Not sure if this is libstderred.so's fault, but just FYI: use of libstderred.so can result in an unbootable computer:

https://bugs.launchpad.net/ubuntu/+source/initramfs-tools/+bug/1729836

Specifically, if you:

..then the update-initramfs script will run as a postinst hook. update-initramfs really does not like libstderred.so. Output goes red halfway, and the generated initrd file will contain binary files with ANSI color codes embedded. After a reboot the kernel sees all this and panics.

There's probably something I could add to STDERRED_BLACKLIST but I can't figure out what (I tried update-initramfs, mkinitramfs and bash without success).

LD_PRELOAD is such a glorious footgun :)

milkey-mouse commented 5 years ago

Using this globally seems like a really bad idea...