1
0
Fork 0
mirror of https://github.com/tock/tock.git synced 2025-12-04 04:24:08 -05:00
No description
Find a file
Leon Schuermann 77e60d44ee
Merge pull request #4671 from tock/dev/github-show-cargo-lock-diff
.gitattributes: don't hide Cargo.lock diff by default on GitHub
2025-12-01 16:27:44 +00:00
.github Merge pull request #4652 from tock/dev/ci-nightly-fix-ci-build-failures 2025-10-29 21:08:31 +00:00
.vscode rustc: update version 2025-11 2025-11-03 12:46:27 -05:00
arch Merge pull request #4663 from tock/rust/version/2025-11-03 2025-11-29 17:45:43 +00:00
boards Merge pull request #4663 from tock/rust/version/2025-11-03 2025-11-29 17:45:43 +00:00
capsules Merge pull request #4663 from tock/rust/version/2025-11-03 2025-11-29 17:45:43 +00:00
chips Merge pull request #4663 from tock/rust/version/2025-11-03 2025-11-29 17:45:43 +00:00
doc Merge pull request #4663 from tock/rust/version/2025-11-03 2025-11-29 17:45:43 +00:00
kernel Merge pull request #4663 from tock/rust/version/2025-11-03 2025-11-29 17:45:43 +00:00
libraries clippy: is_multiple_of 2025-11-24 11:56:39 -05:00
tools tools/ci/license-checker: fix hidden elided lifetime lint 2025-11-24 11:56:40 -05:00
vagrant Add license headers to every file the license checker supports. 2023-04-01 12:21:45 -07:00
.gitattributes Add license header 2025-11-30 16:53:56 -06:00
.gitignore Add back Cargo.lock for the main Tock kernel workspace 2025-10-01 17:25:54 -04:00
.lcignore add Cargo.lock to the license checker ignore list 2025-10-01 17:25:54 -04:00
AUTHORS.md added rosedu rsoc and wyliodrin to authors 2021-01-28 12:42:22 +02:00
Cargo.lock libraries/tock-register-interface: split out into separate repository 2025-10-29 11:43:54 -04:00
Cargo.toml libraries/tock-register-interface: split out into separate repository 2025-10-29 11:43:54 -04:00
CHANGELOG.md CHANGELOG: backport version 2.2 changelog from release tag 2025-01-06 11:50:10 -05:00
COPYRIGHT Remove redundant NOTICE file 2016-09-20 10:19:05 -04:00
LICENSE-APACHE Add MIT license option 2016-07-12 14:23:12 -04:00
LICENSE-MIT Add MIT license option 2016-07-12 14:23:12 -04:00
Makefile Makefile: remove tock-register-interface related checks 2025-10-29 11:44:03 -04:00
netlify.toml ci: specify netlify build command in repo instead of web UI 2025-07-24 12:54:50 -07:00
README.md readme: use tock-ci link variable 2025-11-30 10:12:36 -05:00
rust-toolchain.toml rustc: update version 2025-11 2025-11-03 12:46:27 -05:00
rustfmt.toml update rustfmt toml to show errors 2023-06-26 16:46:35 -04:00
SECURITY.md doc: formatting consistency for security docs 2025-05-28 10:53:20 -07:00
shell.nix shell.nix: bump Tockloader to v1.14.0 2025-04-09 12:21:28 -04:00

TockOS

tock-ci slack book

Tock is an embedded operating system designed for running multiple concurrent, mutually distrustful applications on Cortex-M and RISC-V based embedded platforms. Tock's design centers around protection, both from potentially malicious applications and from device drivers. Tock uses two mechanisms to protect different components of the operating system. First, the kernel and device drivers are written in Rust, a systems programming language that provides compile-time memory safety and type safety. Tock uses Rust to protect the kernel (e.g. the scheduler and hardware abstraction layer) from platform specific device drivers as well as isolate device drivers from each other. Second, Tock uses memory protection units to isolate applications from each other and the kernel.

Tock 2.x!

Tock is now on its second major release! For a summary of the latest new features and improvements, check out the changelog.

Getting Started

There are a variety of resources for learning about Tock, contributing to the project, and getting help.

Code of Conduct

The Tock project adheres to the Rust Code of Conduct.

All contributors, community members, and visitors are expected to familiarize themselves with the Code of Conduct and to follow these standards in all Tock-affiliated environments, which includes but is not limited to repositories, chats, and meetup events. For moderation issues, please contact members of the @tock/core-wg.

Cite this Project

Tock was presented at SOSP'17

Amit Levy, Bradford Campbell, Branden Ghena, Daniel B. Giffin, Pat Pannuto, Prabal Dutta, and Philip Levis. 2017. Multiprogramming a 64kB Computer Safely and Efficiently. In Proceedings of the 26th Symposium on Operating Systems Principles (SOSP 17). Association for Computing Machinery, New York, NY, USA, 234251. DOI: https://doi.org/10.1145/3132747.3132786

Bibtex
@inproceedings{levy17multiprogramming,
      title = {Multiprogramming a 64kB Computer Safely and Efficiently},
      booktitle = {Proceedings of the 26th Symposium on Operating Systems Principles},
      series = {SOSP'17},
      year = {2017},
      month = {10},
      isbn = {978-1-4503-5085-3},
      location = {Shanghai, China},
      pages = {234--251},
      numpages = {18},
      url = {http://doi.acm.org/10.1145/3132747.3132786},
      doi = {10.1145/3132747.3132786},
      acmid = {3132786},
      publisher = {ACM},
      address = {New York, NY, USA},
      conference-url = {https://www.sigops.org/sosp/sosp17/},
      author = {Levy, Amit and Campbell, Bradford and Ghena, Branden and Giffin, Daniel B. and Pannuto, Pat and Dutta, Prabal and Levis, Philip},
}

This is the primary paper that describes the design considerations of Tock.

Other Tock-related papers

There are two shorter papers that look at potential limitations of the Rust language for embedded software development. The earlier PLOS paper lays out challenges and the later APSys paper lays out potential solutions. Some persons describing work on programming languages and type theory may benefit from these references, but generally, most work should cite the SOSP paper above.

APSys: The Case for Writing a Kernel in Rust

@inproceedings{levy17rustkernel,
	title = {The Case for Writing a Kernel in Rust},
	booktitle = {Proceedings of the 8th Asia-Pacific Workshop on Systems},
	series = {APSys '17},
	year = {2017},
	month = {9},
	isbn = {978-1-4503-5197-3},
	location = {Mumbai, India},
	pages = {1:1--1:7},
	articleno = {1},
	numpages = {7},
	url = {http://doi.acm.org/10.1145/3124680.3124717},
	doi = {10.1145/3124680.3124717},
	acmid = {3124717},
	publisher = {ACM},
	address = {New York, NY, USA},
	conference-url = {https://www.cse.iitb.ac.in/~apsys2017/},
	author = {Levy, Amit and Campbell, Bradford and Ghena, Branden and Pannuto, Pat and Dutta, Prabal and Levis, Philip},
}

PLOS: Ownership is Theft: Experiences Building an Embedded OS in Rust

@inproceedings{levy15ownership,
	title = {Ownership is Theft: Experiences Building an Embedded {OS} in {R}ust},
	booktitle = {Proceedings of the 8th Workshop on Programming Languages and Operating Systems},
	series = {PLOS 2015},
	year = {2015},
	month = {10},
	isbn = {978-1-4503-3942-1},
	doi = {10.1145/2818302.2818306},
	url = {http://dx.doi.org/10.1145/2818302.2818306},
	location = {Monterey, CA},
	publisher = {ACM},
	address = {New York, NY, USA},
	conference-url = {http://plosworkshop.org/2015/},
	author = {Levy, Amit and Andersen, Michael P and Campbell, Bradford and Culler, David and Dutta, Prabal and Ghena, Branden and Levis, Philip and Pannuto, Pat},
}

There is also a paper on the Tock security model. The threat model documentation in the docs/ folder is the source of truth for the current Tock threat model, but this paper represents a snapshot of the reasoning behind the Tock threat model and details how it compares to those in similar embedded OSes.

EuroSec: Tiered Trust for useful embedded systems security

@inproceedings{10.1145/3517208.3523752,
	author = {Ayers, Hudson and Dutta, Prabal and Levis, Philip and Levy, Amit and Pannuto, Pat and Van Why, Johnathan and Watson, Jean-Luc},
	title = {Tiered Trust for Useful Embedded Systems Security},
	year = {2022},
	isbn = {9781450392556},
	publisher = {Association for Computing Machinery},
	address = {New York, NY, USA},
	url = {https://doi.org/10.1145/3517208.3523752},
	doi = {10.1145/3517208.3523752},
	booktitle = {Proceedings of the 15th European Workshop on Systems Security},
	pages = {1521},
	numpages = {7},
	keywords = {security, embedded systems, operating systems, IoT},
	location = {Rennes, France},
	series = {EuroSec '22}
}

License

Licensed under either of

at your option.

Unless you explicitly state otherwise, any contribution intentionally submitted for inclusion in the work by you, as defined in the Apache-2.0 license, shall be dual licensed as above, without any additional terms or conditions.