31 ms·
The original less-than check was deemed incorrect, and was replaced entirely. For good or for ill, it seems the author deems it valid to pass in a value smaller
by tom_ 3y ago
The original less-than check was deemed incorrect, and was replaced entirely. For good or for ill, it seems the author deems it valid to pass in a value smaller than sizeof *hwrpb, and that many bytes will be dutifully copied. This might form part of some barebones API versioning mechanism.
- 1udfx9cf8azi0 3y ago> The original less-than check was deemed incorrect It was only deemed incorrect because of an information leak. Not because it's a valid use-case for user space to copy smaller portions of *hwrpb into user space. https://github.com/torvalds/linux/commit/21c5977a836e399fc710ff2c5367845ed5c2527f https://github.com/torvalds/linux/commit/21c5977a836e399fc71...