Page MenuHomeFreeBSD

linux(4): Quiesce warning about madvise(..., -1)
ClosedPublic

Authored by cem on Oct 30 2020, 12:04 AM.
Tags
None
Referenced Files
Unknown Object (File)
Fri, Mar 21, 5:38 PM
Unknown Object (File)
Sun, Mar 16, 2:02 PM
Unknown Object (File)
Feb 28 2025, 10:17 AM
Unknown Object (File)
Feb 28 2025, 8:58 AM
Unknown Object (File)
Feb 28 2025, 8:43 AM
Unknown Object (File)
Feb 28 2025, 5:02 AM
Unknown Object (File)
Feb 15 2025, 11:44 AM
Unknown Object (File)
Feb 13 2025, 8:16 AM
Subscribers

Details

Summary

This API misuse is intended to produce an error value to detect certain
bogus stub implementations of MADV_WIPEONFORK. We don't need to log a
warning about it.

Test Plan

Diff Detail

Repository
rS FreeBSD src repository - subversion
Lint
Lint Not Applicable
Unit
Tests Not Applicable

Event Timeline

cem requested review of this revision.Oct 30 2020, 12:04 AM
cem created this revision.
emaste added inline comments.
sys/compat/linux/linux_mmap.c
399 ↗(On Diff #78938)

Change is fine although this feels odd to me, seems clearer to just have the -1 special case with a return EINVAL leaving the default as it is.

404 ↗(On Diff #78938)
This revision is now accepted and ready to land.Oct 30 2020, 1:46 AM

Ah I didn't see the URL above :)

sys/compat/linux/linux_mmap.c
399 ↗(On Diff #78938)

Sure, if that seems clearer I have no objection to structuring it separately.

cem marked an inline comment as done.

Separate -1 and default cases.

This revision now requires review to proceed.Oct 30 2020, 5:31 PM
This revision is now accepted and ready to land.Oct 30 2020, 5:40 PM
This revision was automatically updated to reflect the committed changes.