This repository has been archived on 2026-11-24. You can view files and clone it. You cannot open issues or pull requests or push a commit.
Files
radiance-sycl/core
fl0l0u e5862f3d26 place: the profile's tmp name is created, never overwritten
The stats file is written as "<path>.tmp.<pid>" and renamed, so a
reader never sees half a file. But the name is built from the PID --
public -- and fopen("w") happily follows a symlink planted at that name
and truncates whatever it points at. A local user who guessed the next
PID had the serving process overwrite any file that user could name,
as the serving user.

The tmp file is now opened O_CREAT|O_EXCL|O_NOFOLLOW: no symlink, no
reuse of an existing name. A stale tmp of a crashed run -- whose PID a
reboot can reuse -- is unlinked and the create retried once, exclusive
again; whoever else planted the name wins exactly a refusal.
2026-11-15 20:38:10 +00:00
..
2026-11-15 16:00:05 +01:00
2026-11-15 16:00:05 +01:00
2026-11-15 16:00:05 +01:00
2026-11-15 16:00:05 +01:00
2026-11-15 16:00:05 +01:00
2026-11-15 16:00:05 +01:00
2026-11-14 22:32:28 +01:00
2026-11-14 22:32:28 +01:00
2026-11-14 22:32:28 +01:00
2026-11-15 16:00:05 +01:00
2026-11-14 22:32:28 +01:00
2026-10-23 11:57:52 +02:00
2026-11-15 16:00:05 +01:00
2026-10-30 22:01:01 +01:00
2026-11-15 16:00:05 +01:00
2026-11-15 16:00:05 +01:00
2026-11-14 22:32:28 +01:00
2026-11-14 22:32:28 +01:00
2026-11-14 22:32:28 +01:00
2026-10-30 22:01:01 +01:00
2026-11-14 22:32:28 +01:00
2026-10-23 11:57:52 +02:00
2026-11-15 16:00:05 +01:00
2026-10-19 21:58:07 +02:00
2026-11-15 16:00:05 +01:00
2026-11-15 16:00:05 +01:00
2026-11-04 07:21:07 +01:00
2026-11-14 22:32:28 +01:00
2026-11-14 22:32:28 +01:00
2026-10-30 22:01:01 +01:00
2026-11-15 16:00:05 +01:00
2026-11-15 16:00:05 +01:00