commit | c172249096aab998a9770a8ef99ba03523c4a473 | [log] [tgz] |
---|---|---|
author | Travis Geiselbrecht <travisg@google.com> | Wed Sep 19 12:35:04 2018 -0700 |
committer | CQ bot account: commit-bot@chromium.org <commit-bot@chromium.org> | Wed Sep 19 21:49:41 2018 +0000 |
tree | c4c51d3a7394b26a4a57c473703ac3ac4c181f3d | |
parent | 774cf4561cf2a3b1bd5e6cce399eb76a80afb74d [diff] |
[kernel][dev][intel-rng] fix buffer overflow bug Noticed this while converting the file to cpp. The code to trim the amount of memory to memcpy into the outgoing buffer would overflow by up to 8 bytes per loop. Never showed up before because the calling code for this either always asks for a multiple of 8 or copies into a buffer that is at least a multiple of 8. Perhaps worth writing an in kernel unit test. Change-Id: I4363f63360f121d444e4a6df9c8ead5de96b2a1b Tested: build and verify that the copy does not overflow manually.
Zircon is the core platform that powers the Fuchsia OS. Zircon is composed of a microkernel (source in kernel/...) as well as a small set of userspace services, drivers, and libraries (source in system/...) necessary for the system to boot, talk to hardware, load userspace processes and run them, etc. Fuchsia builds a much larger OS on top of this foundation.
The canonical Zircon Git repository is located at: https://fuchsia.googlesource.com/zircon
A read-only mirror of the code is present at: https://github.com/fuchsia-mirror/zircon
The Zircon Kernel provides syscalls to manage processes, threads, virtual memory, inter-process communication, waiting on object state changes, and locking (via futexes).
Currently there are some temporary syscalls that have been used for early bringup work, which will be going away in the future as the long term syscall API/ABI surface is finalized. The expectation is that there will be about 100 syscalls.
Zircon syscalls are generally non-blocking. The wait_one, wait_many port_wait and thread sleep being the notable exceptions.
This page is a non-comprehensive index of the zircon documentation.