Page MenuHomeFreeBSD

linux(4): Replace copyin() by fueword32() in handle_futex_death().
ClosedPublic

Authored by dchagin on Jul 20 2021, 2:16 PM.
Tags
None
Referenced Files
Unknown Object (File)
Sat, Apr 13, 10:10 PM
Unknown Object (File)
Fri, Mar 29, 2:15 AM
Unknown Object (File)
Mar 7 2024, 7:51 PM
Unknown Object (File)
Feb 9 2024, 1:36 PM
Unknown Object (File)
Jan 14 2024, 4:47 AM
Unknown Object (File)
Dec 29 2023, 12:22 PM
Unknown Object (File)
Dec 20 2023, 7:05 AM
Unknown Object (File)
Dec 12 2023, 2:26 AM
Subscribers

Details

Summary

According to fetch(9) fueword facility designed to fetch atomically
small amount of data from user space.

Diff Detail

Repository
rG FreeBSD src repository
Lint
Lint Not Applicable
Unit
Tests Not Applicable

Event Timeline

I think on ARM there exist the same problem we fixed for umtx in 30b3018d48e4441083b

sys/compat/linux/linux_futex.c
712

Should this casuword32 replaced by casueword32?

This revision is now accepted and ready to land.Jul 20 2021, 4:33 PM
sys/compat/linux/linux_futex.c
707–708

How do we know that uaddr is aligned? release_futexes does not validate futex_offset after copying it in...

sys/compat/linux/linux_futex.c
707–708

yes, you are right, I plan some handle_futex_death improvement: add a for special case for regular futexes and check unaligned access too