RE: [PATCH 1/1] tty: n_gsm: Avoid sleeping during .write() whilst atomic
From: Starke, Daniel
Date: Wed Oct 04 2023 - 04:58:39 EST
> So without actually looking into the code, can we just somehow disallow
> attaching this line discipline to a console (ban such a TIOCSETD) and be
> done with this issue? IOW disallow root to shoot their foot.
Probably possible by patching gsmld_open() if there is a function which can
check this based on a struct tty_struct * handle. That may, however,
introduce some cross references that are hard to maintain.
Best regards,
Daniel Starke