<?xml version="1.0" encoding="utf-8"?>
<rss version="2.0" xmlns:atom="http://www.w3.org/2005/Atom">
    <channel>
        <title>Friend or Foe Inside? Exploring In-Process Isolation to Maintain Memory Safety for Unsafe Rust</title>
        <link>https://peertube.watch/videos/watch/ae4b37d3-6296-466a-9baa-50da3aeee4b1</link>
        <description>Rust provides unsafe language features to interact with hardware or call into non-Rust libraries. However, this shifts responsibility for ensuring memory safety to the developer. Failing to do so may lead to memory-safety violations in unsafe code, which can violate the safety of the entire application. In this talk, we explore in-process isolation with Memory Protection Keys as a mechanism to shield safe program sections from safety violations that may happen in unsafe sections. Our approach is easy to use and comprehensive, as it prevents heap and stack-based violations. We further compare process-based and in-process isolation mechanisms and the necessary requirements for data serialization, communication, and context switching. We specifically explored various Rust serialization crates such as Abomonation and bincode. Our results show that in-process isolation can be effective and efficient, permits for a high degree of automation, and also enables a notion of application rewinding where the safe program section may detect and safely handle violations in unsafe code. However, even for modestly sized arguments, the context switch cost starts to get dominated by the cost of data transfer between domains. Here, the Rust data serialization method used can significantly impact performance and thus, it is crucial to optimize it for the use case at hand. We open-source our prototype and experimental evaluation data under a BSD license on GitHub: https://secure-rewind-and-discard.github.io/ Speaker: Merve Gülmez, Track: Rust devroom, Room: H.1308 (Rolin), When: Saturday 3 February 2024, 13:40–14:00 (Brussels time), Schedule: FOSDEM 2024 event page, Slides &amp; links Gulmez_Friend_and Foe (slides), Licence: Creative Commons Attribution 2.0 Belgium (CC BY 2.0 BE) (as stated in the FOSDEM video archive). Attribution: “Friend or Foe Inside? Exploring In-Process Isolation to Maintain Memory Safety for Unsafe Rust” by Merve Gülmez, FOSDEM 2024. Original recording: 2024/h1308/fosdem-2024-2632-friend-or-foe-inside-exploring-in-process-isolation-to-maintain-memory-safety-for-unsafe-rust.av1.webm from the FOSDEM video archive. This channel is an unofficial mirror; FOSDEM is a free and non-commercial event organised by the community for the community.</description>
        <lastBuildDate>Tue, 20 Oct 2026 22:16:34 GMT</lastBuildDate>
        <docs>https://validator.w3.org/feed/docs/rss2.html</docs>
        <generator>PeerTube - https://peertube.watch</generator>
        <image>
            <title>Friend or Foe Inside? Exploring In-Process Isolation to Maintain Memory Safety for Unsafe Rust</title>
            <url>https://peertube.watch/lazy-static/avatars/3b284627-b75f-409e-ac2e-10f4c2946f43.png</url>
            <link>https://peertube.watch/videos/watch/ae4b37d3-6296-466a-9baa-50da3aeee4b1</link>
        </image>
        <copyright>All rights reserved, unless otherwise specified in the terms specified at https://peertube.watch/about and potential licenses granted by each content's rightholder.</copyright>
        <atom:link href="https://peertube.watch/feeds/video-comments.xml?videoId=ae4b37d3-6296-466a-9baa-50da3aeee4b1" rel="self" type="application/rss+xml"/>
    </channel>
</rss>