Baike.dev
All toolsOnline toolsAI codingTrendingOpen sourceNewsSubmit
Log in
< Back to tools
T

tock

> 编程语言
Open source

A secure embedded operating system for microcontrollers

6.4K stars0 likes3 views
WebsiteGitHub

About

A secure embedded operating system for microcontrollers

# [][tock-ci] [][matrix] [][slack] [][tock-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-ci]: https://github.com/tock/tock/actions/workflows/ci.yml 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](CHANGELOG.md). Getting Started --------------- There are a variety of resources for learning about Tock, contributing to the project, and getting help. - About Tock - [The Tock Book][tock-book]: online tutorials and documentation - [Getting Started with Secure Embedded Systems][book-systems]: Tock textbook - Developing Tock - [Tock API Docs][tockapidoc] - [Contributing Guide](.github/CONTRIBUTING.md) - [Code Review Guidelines](doc/CodeReview.md) - Getting Help - [Matrix Channel][matrix] - [Slack Channel][slack] - [Email List](https://lists.tockos.org) - [Tock Blog](https://www.tockos.org/blog/) - [@talkingtock](https://twitter.com/talkingtock) [matrix]: https://matrix.to/#/#tock:tockos.org [slack]: https://join.slack.com/t/tockos/shared_invite/enQtNDE5ODQyNDU4NTE1LWVjNTgzMTMwYzA1NDI1MjExZjljMjFmOTMxMGIwOGJlMjk0ZTI4YzY0NTYzNWM0ZmJmZGFjYmY5MTJiMDBlOTk [tock-book]: https://book.tockos.org [book-systems]: https://link.springer.com/book/10.1007/978-1-4842-7789-8 [tockapidoc]: https://docs.tockos.org Code of Conduct --------------- The Tock project adheres to the Rust [Code of Conduct][coc]. 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. [coc]: https://www.rust-lang.org/conduct.html 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, 234–251. 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

In SOSP'25 we reflected on 10 years of Tock development.

[SOSP'25] Tock: From Research To Securing 10 Million Computers


@inproceedings{10.1145/3731569.3764828,
  author = {Schuermann, Leon and Campbell, Brad and Ghena, Branden and Levis, Philip and Levy, Amit and Pannuto, Pat},
  title = {Tock: From Research To Securing 10 Million Computers},
  year = {2025},
  isbn = {9798400718700},
  publisher = {Association for Computing Machinery},
  address = {New York, NY, USA},
  url = {https://doi.org/10.1145/3731569.3764828},
  doi = {10.1145/3731569.3764828},
  booktitle = {Proceedings of the ACM SIGOPS 31st Symposium on Operating Systems Principles},
  pages = {36–49},
  numpages = {14},
  location = {Lotte Hotel World, Seoul, Republic of Korea},
  series = {SOSP '25}
}

There is 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'22] 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 = {15–21},
	numpages = {7},
	keywords = {security, embedded systems, operating systems, IoT},
	location = {Rennes, France},
	series = {EuroSec '22}
}

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'17] 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'15] 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},
}
License ------- Licensed under either of - Apache License, Version 2.0 ([LICENSE-APACHE](LICENSE-APACHE) or http://www.apache.org/licenses/LICENSE-2.0) - MIT license ([LICENSE-MIT](LICENSE-MIT) or http://opensource.org/licenses/MIT) 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.

Issues· 217 open

View all issuesOpen on GitHub
  • #4584

    Release 2.3

    Updated Sep 23, 2026
  • #5183

    kernel: memop: Should informative syscalls return proper `CapabilityPtrs` or just addresses?

    Updated Sep 23, 2026
  • #5204

    [arch:arm] Reason about HFSR's `DEBUGEVT` more

    Updated Sep 23, 2026
  • #3109

    Curious Timing Causes Failed Syscall on Cortex-M4 MCU

    bugUpdated Sep 15, 2026
  • #5153

    The Raspberry PI Pico RP2040 USB CDC ACM serial port does not work with many machines

    Updated Sep 11, 2026
  • #5152

    rp2x PIO: a test plan

    Updated Sep 8, 2026
  • #4770

    When building app for RPi Pico I get the error: "ELF contains memory contents for uninitialized memory at 20000000"

    Updated Sep 8, 2026
  • #5122

    tock-registers 2.0 migration and stabilization plan

    tock-librariesUpdated Aug 27, 2026
  • #4464

    Tracking: Add tock as a supported OS for target triples

    trackingUpdated Aug 25, 2026
  • #1993

    IPC issues

    bugUpdated Aug 19, 2026

> Tags

Rustarmcortex-membeddediot

No comments yet. Be the first to share.

> Details

PublishedAug 1, 2026
UpdatedSep 24, 2026
Category编程语言
PricingOpen source

> Related tools

T
TypeScript
JavaScript 的超集,为前端与全栈提供静态类型
P
Python
通用编程语言,广泛用于 Web、数据与 AI
G
Go
Google 推出的简洁高效系统语言