|
|
Subscribe / Log in / New account

Revisiting the MAP_SHARED_VALIDATE hack

Revisiting the MAP_SHARED_VALIDATE hack

[Kernel] Posted Jun 29, 2018 16:00 UTC (Fri) by corbet

One of the the most commonly repeated mistakes in system-call design is a failure to check for unknown flags wherever flags are accepted. If there is ever a point where callers can get away with setting unknown flags, then adding new flags becomes a hazardous act. In the case of mmap(), though, developers found a clever way around this problem. A recent discussion has briefly called that approach into question, though, and raised the issue of what constitutes a kernel regression. No changes are forthcoming as a result, but the discussion does provide an opportunity to look at both the specific hack and how the kernel community decides whether a change is a regression or not.

Full Story (comments: 13)


Copyright © 2018, Eklektix, Inc.
Comments and public postings are copyrighted by their creators.
Linux is a registered trademark of Linus Torvalds