diff options
| author | seteiro <[email protected]> | 2026-11-11 16:53:16 +0000 |
|---|---|---|
| committer | Rbb666 <[email protected]> | 2026-11-13 09:38:40 +0800 |
| commit | ee06598db9677f45ce6b3a74c654eb4ffe6dd610 (patch) | |
| tree | cbd48d1f10e6ccb1bc23569443435b8b570be0cd /components/external/SQLite-3.8.1 | |
| parent | 4014174e525b200e8c64b48deb2af83b955233a2 (diff) | |
[smart][tty] guard NULL lwp in tty_wait_background
Fix #11717
On RT-Smart a kernel thread (lwp == NULL) that reads a tty reaches
tty_wait_background() and dereferences td->lwp as a process. The shell
thread is a kernel thread while finsh reads /dev/ttyS0, so the first key
press faults on p->pgrp.
Return 0 for a NULL lwp: a kernel thread has no process group, so no
background-job decision applies. Apply the same guard to the sibling
paths that also dereference td->lwp: tty_is_ctty() returns false,
tty_drop_ctty() returns -ENOTTY, and lwp_tty_set_ctrl_proc() returns
-EPERM.
No ttydisc refactor and no change to the ioctl argument marshalling.
Diffstat (limited to 'components/external/SQLite-3.8.1')
0 files changed, 0 insertions, 0 deletions
