Re: [External] : Re: [PATCH 5.15-rt] printk: ignore consoles without write() callback

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 





On 4/23/25 06:10, Krishanth Jagaduri wrote:
On Thu, Feb 16, 2023 at 11:45:58AM +0106, John Ogness wrote:
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.

---
  This is only a problem for the PREEMPT_RT tree. Mainline does not have
  this problem.
Sorry for resurrecting this old thread but we actually want this patch
in 5.15-rt.

I am not sure why this was not applied to 5.15-rt yet since it is already
applied to 5.10-rt.

Could you please consider to pick this for 5.15-rt?

Best regards,
Krishanth
Hi Krishanth,

Thanks for pointing this out.  I will investigate including this patch in the next v5.15 patch set, which should be released this week.

Thanks,

Joe




[Index of Archives]     [RT Stable]     [Kernel Newbies]     [IDE]     [Security]     [Git]     [Netfilter]     [Bugtraq]     [Yosemite]     [Yosemite News]     [MIPS Linux]     [ARM Linux]     [Linux Security]     [Linux RAID]     [Linux ATA RAID]     [Samba]     [Video 4 Linux]     [Device Mapper]

  Powered by Linux