RE: [PATCH 1/1] tty: n_gsm: Avoid sleeping during .write() whilst atomic

Starke, Daniel
2023-10-04T08:58:37Z

> 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