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)
Thu, Feb 13, 8:16 AM
Unknown Object (File)
Thu, Feb 13, 3:00 AM
Unknown Object (File)
Tue, Feb 11, 8:42 PM
Unknown Object (File)
Fri, Jan 31, 4:46 AM
Unknown Object (File)
Jan 14 2025, 5:21 AM
Unknown Object (File)
Dec 14 2024, 4:36 PM
Unknown Object (File)
Dec 10 2024, 4:15 AM
Unknown Object (File)
Oct 8 2024, 5:53 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.