diff options
author | John Ogness <john.ogness@linutronix.de> | 2023-02-17 09:53:44 +0106 |
---|---|---|
committer | Luis Claudio R. Goncalves <lgoncalv@redhat.com> | 2023-02-18 23:02:20 -0300 |
commit | b12d528914386bc364598c12b11ad1e0c1920b0d (patch) | |
tree | ce1adcb592579e7c6644ebb2c860a94b127d3525 /ipc/util.h | |
parent | 9fc1cf9eaeb180ca6974ec98b2ade6bd791e647e (diff) | |
download | linux-rt-b12d528914386bc364598c12b11ad1e0c1920b0d.tar.gz |
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>
Diffstat (limited to 'ipc/util.h')
0 files changed, 0 insertions, 0 deletions