8 Commits

Author SHA1 Message Date
Matheus 5360edb9c7 pipe2: properly clean up vnode references on error
Currently, pipe2 both closes the fds and releases references to the pipe
vnode on failure. However, closing the fds already causes the vnode
references to be dropped.

Make pipe2 only release the vnode references when the respective file_t
were not closed.

Found by syzkaller fuzzing.
2026-10-09 02:11:50 -03:00
Matheus 57e4a39f53 syscalls: fix for os-test 2025-12-08 22:48:49 -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 42bda0bf92 vfs: redo locking 2024-08-26 21:47:23 -03:00
Matheus f02a63473f pipefs: prepare pipefs_open for named pipe support 2024-08-11 12:25:17 -03:00
Matheus f76046a56b syscalls: ioctl 2023-07-05 20:19:36 -03:00
Matheus c0fdd5700e syscalls: misc fixes 2023-07-05 00:03:13 -03:00
Matheus 032560bda0 file: redo locking 2023-07-03 22:51:53 -03:00