Matheus
d1765b22b5
tty: fix lifetime issue in tty_unregister()
...
The tty_unregister code removes the tty's vnode from the devfs mappings.
This causes a reference to be dropped, which can then cause the tty to
be freed and the remaining code in tty_unregister does a UAF.
Fix this by holding a reference across the unregister operation.
2026-10-06 11:50:59 -03:00
Matheus
659b29ef4e
syscalls: implement sysctl and add process listing
2026-06-09 17:47:27 -03:00
Matheus
e2506c0bab
pty: support POLLHUP
2026-05-28 14:18:59 -03:00
Matheus
a9dee251c9
tty: extra hang up checks
2025-12-25 20:20:34 -03:00
monkuous
de3f907f25
kernel: implement FIONREAD for ttys
2025-11-15 23:18:10 +01:00
Matheus
3b6b5363ad
poll: rework timeout
2025-11-02 21:32:04 -03:00
Matheus
0c6a00bc6b
tty: add termios_callback
2025-08-15 22:52:46 -03:00
Matheus
607566531d
kernel: rework init
2025-08-14 20:25:43 -03:00
Matheus
a6c169e5e6
kernel: finish work of removing interruptible mutexes
2024-12-24 21:30:25 -03:00
Matheus
ff6635487e
tty: fix
2024-09-22 18:37:56 -03:00
Matheus
cc6477d46d
proc: separate from sched
2024-09-21 22:43:16 -03:00
Matheus
49dbac8e55
acpi: fix use of unitialized mutex
2024-09-21 18:34:36 -03:00
Matheus
e8c2f1fbf3
devfs: use iovec_iterator internally
2024-09-21 13:53:39 -03:00
Matheus
611f13b562
kernel: do preparation work for copyless read/write
2024-09-18 21:17:37 -03:00
Matheus
e058d62261
cpu: change _cpu()->thread calls to current_thread() to fix smp race
2024-09-15 17:47:26 -03:00
Matheus
c2e50547cc
signal: do auth check
2024-09-05 16:24:18 -03:00
Matheus
6193310f21
tty: misc changes
2024-09-01 23:38:34 -03:00
Matheus
ca42167fe1
vfs: pass cred to ioctl
2024-08-30 22:53:57 -03:00
Matheus
fc09d39895
jobctl: allow tty stealing
2024-08-28 20:26:43 -03:00
Matheus
806fa3a333
devfs: take cred struct in devfs_register
2024-08-24 21:51:55 -03:00
Matheus
ffacb68c92
tty: fix timeout
2024-06-10 17:50:45 -03:00
Matheus
50b4b45d00
kernel: usercopy functions
2024-06-09 19:31:26 -03:00
Matheus
35eca115f5
tty: add ttyname ioctl
2024-05-28 18:12:05 -03:00
Matheus
a8970c4b27
tty: fix ECHOCTL
2024-05-22 14:08:13 -03:00
Matheus
aa6799676b
tty: general improvements to line discipline and new ioctls
2024-05-22 09:47:55 -03:00
Matheus
3587dfa28e
jobctl/tty: foreground/background and send sighup on unregister
2024-05-21 17:48:41 -03:00
Matheus
ae47efa87d
pty: handle tty ioctl
2024-05-08 15:59:40 -03:00
Matheus
91be53dec8
tty: don't echo tab
2024-05-07 21:21:31 -03:00
Matheus
3ada71ec1d
tty: more termios stuff
2024-05-07 18:51:31 -03:00
Matheus
33c8a4d107
pty: initial implementation
2024-05-03 14:03:41 -03:00
Matheus
05049a091f
job control: sessions and process groups
2024-05-01 21:42:38 -03:00
Matheus
1fc3791bc9
tty: tty abstraction initial implementation
2024-04-27 13:42:57 -03:00