-
- Downloads
printk: ignore consoles without write() callback
The ttynull driver does not provide an implementation for the write() callback. This leads to a NULL pointer dereference in the related printing kthread, which assumes it can call that callback. Do not create kthreads for consoles that do not implement the write() callback. Also, for pr_flush(), ignore consoles that do not implement write() or write_atomic(), since there is no way those consoles can flush their output. Link: https://lore.kernel.org/lkml/1831554214.546921.1676479103702.JavaMail.zimbra@hale.at Reported-by:Michael Thalmeier <michael.thalmeier@hale.at> Signed-off-by:
John Ogness <john.ogness@linutronix.de> Signed-off-by:
Luis Claudio R. Goncalves <lgoncalv@redhat.com>
Loading
Please register or sign in to comment