diff options
| author | Dag-Erling Smørgrav <des@FreeBSD.org> | 2025-12-16 16:11:24 +0000 |
|---|---|---|
| committer | Dag-Erling Smørgrav <des@FreeBSD.org> | 2025-12-16 16:12:36 +0000 |
| commit | a34c50fbd2a52bb63acde82e5aec4cb57880e39b (patch) | |
| tree | a735865ce2bbb759608fdfb1516f3ada2d2f1323 /sys/contrib/device-tree/Bindings/nvme/(public-mirror) | |
| parent | 2619d439fa860db734dbbf4b153c5ac9b15c7e49 (diff) | |
When copying ipfs data from user space, don't just check that the payload
length is nonzero, but also that it does not exceed the size of the stack
buffer we're copying it into.
While we're at it, use a union to create a buffer of the exact size we
need instead of guessing that 2048 will be enough (and not too much).
Finally, check the size of the payload once it gets to where it's used.
MFC after: 3 days
Reported by: Ilja Van Sprundel <ivansprundel@ioactive.com>
Reviewed by: cy
Differential Revision: https://reviews.freebsd.org/D54194
Diffstat (limited to 'sys/contrib/device-tree/Bindings/nvme/(public-mirror)')
0 files changed, 0 insertions, 0 deletions
