]> git.ipfire.org Git - thirdparty/glibc.git/commit
TODO(morello): cheri: fix posix timers
authorSzabolcs Nagy <szabolcs.nagy@arm.com>
Tue, 19 Apr 2022 14:18:56 +0000 (15:18 +0100)
committerSzabolcs Nagy <szabolcs.nagy@arm.com>
Fri, 5 Aug 2022 18:45:19 +0000 (19:45 +0100)
commitbb648757f04e595b029be6ceaa6e2db66876c8cb
treeb500128545284cf7d2c107af8388fde259a22baf
parent989eb509545acde831502f16a8a86a95ecf5a84e
TODO(morello): cheri: fix posix timers

We need to distinguish timerids that are small integers returned by
the kernel and timerids that are pointers to struct timer. The existing
pointer tagging does not work for CHERI because of the pointer shift.

Simply use the top bit without shift to tag pointers. This still relies
on the top byte ignore of aarch64 (the top byte does not affect the
capability representation) and that pointers are not tagged for other
reasons (like HWASAN).

TODO: this is morello specific and does not work for generic cheri.
sysdeps/unix/sysv/linux/kernel-posix-timers.h