- Fix sched_rr_get_interval(2) for compat32, timespec requires translation.
PR: 230175
- Fix mprotect_err test to not assume specific address space layout.
Differential D16525
Some fixes for compat32. kib on Jul 31 2018, 10:15 AM. Authored by Tags None Referenced Files
Subscribers
Details
PR: 230175
Diff Detail
Event TimelineComment Actions Also, I notice three other syscalls in compat/freebsd32 that use plain timespec instead of timespec32. Do they need fixing too? I haven't tested them. They are freebsd32_sigtimedwait, freebsd32_futimens, and freebsd32_utimensat. Comment Actions The mprotect_err test is now failing on amd64. The assertion at line 167 fails. I haven't tried it in 32-bit mode yet; I need to rebuild my 32-bit world first. Comment Actions I see what is going on, finally. Can you explain to me how to rebuild mprotect_test without rebuilding the whole world, even with -DNO_CLEAN ? For normal components, I can make buildenv, then cd <dir> && make. Comment Actions They use struct timespec in the declaration, but correctly copy in timespec32 and convert to timespec as needed. I will fix the cosmetics in freebsd32/syscalls.master later. Comment Actions I don't even bother with "make buildenv". I just cd to the directory and "make && make install". Remember, you can't execute the test from the source directory. You must install it into /usr/tests/lib/libc/sys. Comment Actions LGTM. Don't forget to reference both PR 230175 and PR 230162 in your commit message. And don't forget to commit the autogenerated files too. Comment Actions Better fix for mprotect(2) wraparound check. It does not change the more delicate behavior for 64bits, Comment Actions Updating a Phabricator revision without including all of the files that have ever been part of that revision makes the history confusing, because Phabricator thinks you want to revert your changes to the files that you didn't include. You can't fix it now, but please try not to do it again. |