mirror of
https://github.com/Mathewnd/Astral.git
synced 2026-10-27 12:48:22 +00:00
d1765b22b5
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.