Novel Simulation to Avoid Bias in Measurement of Hyperpolarized Pyruvate: Demonstrated in Phantom and in Vivo

Total Page:16

File Type:pdf, Size:1020Kb

Novel Simulation to Avoid Bias in Measurement of Hyperpolarized Pyruvate: Demonstrated in Phantom and in Vivo The Texas Medical Center Library DigitalCommons@TMC The University of Texas MD Anderson Cancer Center UTHealth Graduate School of The University of Texas MD Anderson Cancer Biomedical Sciences Dissertations and Theses Center UTHealth Graduate School of (Open Access) Biomedical Sciences 12-2016 Novel Simulation to Avoid Bias in Measurement of Hyperpolarized Pyruvate: Demonstrated in Phantom and In Vivo Christopher M. Walker Follow this and additional works at: https://digitalcommons.library.tmc.edu/utgsbs_dissertations Part of the Analytical, Diagnostic and Therapeutic Techniques and Equipment Commons, and the Other Physics Commons Recommended Citation Walker, Christopher M., "Novel Simulation to Avoid Bias in Measurement of Hyperpolarized Pyruvate: Demonstrated in Phantom and In Vivo" (2016). The University of Texas MD Anderson Cancer Center UTHealth Graduate School of Biomedical Sciences Dissertations and Theses (Open Access). 712. https://digitalcommons.library.tmc.edu/utgsbs_dissertations/712 This Dissertation (PhD) is brought to you for free and open access by the The University of Texas MD Anderson Cancer Center UTHealth Graduate School of Biomedical Sciences at DigitalCommons@TMC. It has been accepted for inclusion in The University of Texas MD Anderson Cancer Center UTHealth Graduate School of Biomedical Sciences Dissertations and Theses (Open Access) by an authorized administrator of DigitalCommons@TMC. For more information, please contact [email protected]. Novel Simulation to Avoid Bias in Measurement of Hyperpolarized Pyruvate: Demonstrated in Phantom and In Vivo by Christopher Michael Walker APPROVED: ________________________________________________________ James A. Bankson, Ph.D. (Advisory Professor) ________________________________________________________ John Hazle Ph.D. ________________________________________________________ Dawid Schellingerhout M.D. ________________________________________________________ Richard Wendt Ph.D. ________________________________________________________ Steven Millward Ph.D. ________________________________________________________ Arvind Rao Ph. D. APPROVED: ________________________________________________________ Dean, The University of Texas Graduate School of Biomedical Sciences at Houston NOVEL SIMULATION TO AVOID BIAS IN MEASUREMENT OF HYPERPOLARIZED PYRUVATE: DEMONSTRATED IN PHANTOM AND IN VIVO A DISSERTATION Presented to the Faculty of The University of Texas Health Science Center at Houston And The University of Texas M.D. Anderson Cancer Center Graduate School of Biomedical Sciences in Partial Fulfillment of the Requirements for the Degree of DOCTOR OF PHILOSOPHY by Christopher M. Walker B.Sc. Trinity University, 2010 Houston, Texas December 2016 iii Copyright iv Dedication To my mother and father, Cheryl and Mike Walker, and my sister, Ashley Walker, for their ceaseless support and encouragement. v Acknowledgment I would like to thank my adviser, Dr. James A. Bankson, for his patience and dedication to my development as an academician. Under his tutelage I have grown tremendously in the way I think about problems and how I present my thoughts, especially using the written word. No one would have predicted that the dyslexic 4th grader would one day write a dissertation, and my thanks to Dr. Bankson is paramount in the achievement of that goal. I would also like to thank my committee members for their time and dedication to my project and my development throughout all stages of my post-graduate education. Dr. Hazle, who first encouraged me to continue to explore magnetic resonance imaging as a summer student who could barely wrap his head around frequency encoding gradients. I would not be here today if not for his initial support which, much to my benefit, has followed me throughout my graduate training. Dr. Wendt, to whom I owe the bulk of my understanding of the phenomenon of magnetic resonance, thanks to his unflagging didactic efforts. If Haacke is the magnetic resonance bible, then Dr. Wendt’s tie lecture is the MRI sermon on the mount. Statistical analysis is fraught with pitfalls and I have my many meetings with Dr. Rao to thank that this project never found itself hopelessly lost in a statistical quagmire. The extent to which I understand biochemical processes an enzyme kinetics is owed to the instruction of Dr. Milward. Finally, Dr. Schellingerhout, if I am able to achieve any semblance of the enthusiasm you possess for investigative pursuits, while maintaining your grasp of the difficulty inherent in them, I will be truly blessed as an academician. I have been fortunate to be involved in the Julia Jones Matthews and M.D. Anderson CPRIT scholar program for four years. Not only has this program supported my work and allowed me to present said work at multiple meetings, it has also given me exposure to aspects of cancer biology I simply would not have seen outside of the program. Dr. Watowich, thank you for all your help and effort with the CPRIT program. I hope I am far from the last student to glean such tremendous benefit from it. vi I would also like to thank all of those who stewarded me into post-graduate academic pursuits. The faculty at Trinity University began the extensive molding necessary for me to succeed after graduation. I especially thank Dr. Hough and Dr. Ugolini who opened my research career and taught me the foundational understanding of physics I needed to be able to approach the phenomenon of magnetic resonance. To Dr. Lewis, I am ever indebted. To whatever extent I possess the ability to write good software I owe it to him, and it has paid dividends in this project and my life as a whole. vii NOVEL SIMULATION TO AVOID BIAS IN MEASUREMENT OF HYPERPOLARIZED PYRUVATE: DEMONSTRATED IN PHANTOM AND IN VIVO Christopher M. Walker B.Sc Advisory Professor: James A. Bankson, Ph.D Abstract Dynamic nuclear polarization creates a transient hyperpolarized nuclear state that can dramatically increase the signal detected by magnetic resonance imaging. This signal increase allows real-time spectroscopic imaging of specific metabolites in vivo by magnetic resonance. Real-time imaging of both the spatial and chemical fate of hyperpolarized metabolites is showing great promise to meaningfully benefit clinical care of cancer patients. Imaging of hyperpolarized agents will have a larger clinical impact if it can function as a quantitative modality upon which clinical decisions can be made. However, quantitative measurement of hyperpolarized agents is currently difficult due to the restrictions imposed by the transient hyperpolarized state and the complexity inherent in biological systems. As more advanced imaging and measurement techniques are developed for imaging hyperpolarized substrates, it is critical to characterize their effect on any relevant quantitative measure. To assist in accurate quantitative measurement of hyperpolarized agents, an infrastructure where acquisition strategies can be developed, compared, optimized and validated was critically need. A novel simulation architecture was developed that combines classical chemical kinetics with the basic physics of nuclear magnetic resonance and couples them to multiple perfusion models. Simulation results showed that changes in the acquisition strategy used will affect the resulting quantification of chemical exchange rates and suggested that any bias that is imposed by the acquisition strategy can be avoided by using optimized pulse sequences. To validate these predictions, a phantom system was developed that allows controllable chemical conversion of hyperpolarized pyruvate into lactate with a variability less than 20%. Using this phantom system, studies showed that poorly optimized pulse sequences viii significantly reduced the measured value of the chemical exchange rates, whereas optimized pulse sequences showed no significant difference in chemical exchange measurements. In order to test simulation predictions for a perfused system, an animal cohort with orthotropic anaplastic thyroid cancer was scanned with multiple sequences. Again, optimized sequences showed no significant difference in measured exchange rates while poorly designed sequences significantly underestimated the exchange rates, which is consistent with the simulation results. These validation studies suggest that this simulation architecture will be a powerful tool for developing and optimizing acquisition and quantization methods for hyperpolarized magnetic resonance imaging. ix Table of Contents Acknowledgment .......................................................................................................................................... v Abstract ....................................................................................................................................................... vii Table of Contents ......................................................................................................................................... ix List of Figures .............................................................................................................................................. xiv List of Tables .............................................................................................................................................. xvii List of Abbreviations ................................................................................................................................. xviii Chapter 1. Introduction and Motivation ......................................................................................................
Recommended publications
  • Water Quality Monitoring System Operating Manual February 2002
    Water Quality Monitoring System Operating Manual February 2002 (Revision A) Hydrolab Corporation 8700 Cameron Road, Suite 100 Austin, Texas 78754 USA (800)949-3766 or (512)832-8832 fax: (512)832-8839 www.hydrolab.com Quanta•G Display Operations Tree Calib Salin SpC TDS DO DO% ORP pH BP Depth 00:002 mg/L 100% YMDHM [Standard, Scale Factor, or BP] Calib Review Screen Store [Index#] Screen 1⇔2⇔32 [Index#] Clear ClearAll Screen Screen Review Screen Setup Circ Temp Salin/TDS Depth On Off °C °F PSS g/L m ft Setup Notes: 1. Pressing the Esc ∞ key always exits to the previous operation level except at the top level where it toggles the circulator on or off. 2. RTC calibration (Calib ! 00:00) and Screen 3 are only available if the RTC/PC-Dump option is installed. 3. If the RTC/PC-Dump option is installed, pressing and holding the Esc ∞ key down during power-up causes the Quanta Display to enter PC-Dump mode. Table of Contents 1 Introduction ...........................................................................................................................1 1.1 Foreword.........................................................................................................................1 1.2 Specifications..................................................................................................................1 1.3 Components ....................................................................................................................2 1.4 Assembly.........................................................................................................................3
    [Show full text]
  • Wookey: USB Devices Strike Back
    WooKey: USB Devices Strike Back Ryad Benadjila, Mathieu Renard, Philippe Trebuchet, Philippe Thierry, Arnauld Michelizza, Jérémy Lefaure [email protected] ANSSI Abstract. The USB bus has been a growing subject of research in recent years. In particular, securing the USB stack (and hence the USB hosts and devices) started to draw interest from the academic community since major exploitable flaws have been revealed by the BadUSB threat [41]. The work presented in this paper takes place in the design initiatives that have emerged to thwart such attacks. While some proposals have focused on the host side by enhancing the Operating System’s USB sub-module robustness [53, 54], or by adding a proxy between the host and the device [12, 37], we have chosen to focus our efforts on the de- vice side. More specifically, our work presents the WooKey platform: a custom STM32-based USB thumb drive with mass storage capabilities designed for user data encryption and protection, with a full-fledged set of in-depth security defenses. The device embeds a firmware with a secure DFU (Device Firmware Update) implementation featuring up-to-date cryptography, and uses an extractable authentication token. The runtime software security is built upon EwoK: a custom microkernel implementa- tion designed with advanced security paradigms in mind, such as memory confinement using the MPU (Memory Protection Unit) and the integra- tion of safe languages and formal methods for very sensitive modules. This microkernel comes along with MosEslie: a versatile and modular SDK that has been developed to easily integrate user applications in C, Ada and Rust.
    [Show full text]
  • Rust and IPC on L4re”
    Rust and Inter-Process Communication (IPC) on L4Re Implementing a Safe and Efficient IPC Abstraction Name Sebastian Humenda Supervisor Dr. Carsten Weinhold Supervising Professor Prof. Dr. rer. nat. Hermann Härtig Published at Technische Universität Dresden, Germany Date 11th of May 2019 Contents 1 Introduction 5 2 Fundamentals 8 2.1 L4Re . 8 2.2 Rust....................................... 11 2.2.1 Language Basics . 11 2.2.2 Ecosystem and Build Tools . 14 2.2.3 Macros . 15 3 Related Work 17 3.1 Rust RPC Libraries . 17 3.2 Rust on Other Microkernels . 18 3.3 L4Re IPC in Other Languages . 20 3.4 Discussion . 21 3.4.1 Remote Procedure Call Libraries . 21 3.4.2 IDL-based interface definition . 22 3.4.3 L4Re IPC Interfaces In Other Programming Languages . 23 4 L4Re and Rust Infrastructure Adaptation 24 4.1 Build System Adaptation . 25 4.1.1 Libraries . 26 4.1.2 Applications . 27 4.2 L4rust Libraries . 29 4.2.1 L4 Library Split . 29 4.2.2 Inlining vs. Reimplementing . 30 4.3 Rust Abstractions . 31 4.3.1 Error Handling . 31 4.3.2 Capabilities . 32 5 IPC Framework Implementation 35 5.1 A Brief Overview of the C++ Framework . 36 5.2 Rust Interface Definition . 37 5.2.1 Channel-based Communication . 37 5.2.2 Macro-based Interface Definition . 39 5.3 Data Serialisation . 43 2 5.4 Server Loop . 46 5.4.1 Vector-based Service Registration . 46 5.4.2 Pointer-based Service Registration . 48 5.5 Interface Export . 52 5.6 Implementation Tests .
    [Show full text]
  • A Microkernel Written in Rust
    Objectives Introduction Rust Redox A microkernel written in Rust Porting the UNIX-like Redox OS to Arm v8.0 Robin Randhawa Arm February 2019 Robin Randhawa (arm) FOSDEM 2019 A microkernel written in Rust Objectives Introduction Rust Redox I want to talk about on Robin Randhawa (arm) FOSDEM 2019 A microkernel written in Rust Objectives Introduction Rust Redox Redox is written in Rust - a fairly new programming language Robin Randhawa (arm) FOSDEM 2019 A microkernel written in Rust Objectives Introduction Rust Redox So it is important to discuss Rust too Robin Randhawa (arm) FOSDEM 2019 A microkernel written in Rust Objectives Introduction Rust Redox My goals with this presentation are ● Lightweight intro to the Rust language ● Unique features that make it shine To primarily ● Explain why Rust is interesting for arm talk about ● Rust’s support for arm designs these ● Introduce Redox’s history, design, community ● Status, plans … and some relevant anecdotes from the industry Robin Randhawa (arm) FOSDEM 2019 A microkernel written in Rust Objectives Introduction Rust Redox Open Source Software Division System Software Architecture Team Safety Track Track Charter Firmware Kernel Middleware Platform “Promote the uptake of Arm IP in safety critical domains using open source software as a medium” Robin Randhawa (arm) FOSDEM 2019 A microkernel written in Rust Objectives Introduction Rust Redox My areas of Interest Systems programming languages Operating Arm system architecture design extensions Arm based Open source system communities design Software
    [Show full text]
  • Graduate Division
    Offshore Application of Self-Potential Prospecting Robert Frederic Corwin ,'/ B.S. (university of Missouri at ~olla)1964 M.S. (university of ~alifornia)1969 DISSERTATION Submitted in partial satisfaction of the requirements for the degree of DOCTOR OF PHILOSOPHY iR Engineering in the GRADUATE DIVISION . "-I 1 . of the UNIVERSITY OF CALIFORMIA, BERKELEY Committee in Charge OFFSHORE APPLICATION OF SELF-POTENTIAL PROSPECTING ABSTRACT Robert Frederic Corwin Degree: Ph .D. Eng inear i rlg Geosc ience Ocean Eng i neering An offshore self-potential prospecting system, consisting of a portable chart recorder and a pair of towed electrodes, is shown to be capable of locating both onshore and submerged offshore deposits of conductive minerals. The silver - silver chloride electrodes, specially designed for this work, are shown to have a small and predictable response to changes in environmental parameters. The background noise level is generally less than a few tenths of a millivolt, allowing visual recognition of offshore self- potential anomalies with a gradient in excess of one miiiivolt over the electrode sepa ration. However, somc man-made str-uctures, or areas of geothermal activity, may generate fields large enough to interfere with self-potential profiling. 1 :! 4:"'4 extending from a reducing sea floor into oxidizing sea water, generates a potential field consistent in magnitude and polarity with those seen over sulfide ore bodies on land. As an oxidation - reduction mechanism appears to offer the best explanation for the self- potential
    [Show full text]
  • Effect of Textural Properties and Presence of Co-Cation on NH3-SCR Activity of Cu-Exchanged ZSM-5
    catalysts Article Effect of Textural Properties and Presence of Co-Cation on NH3-SCR Activity of Cu-Exchanged ZSM-5 Magdalena Jabło ´nska 1,* , Kinga Góra-Marek 2 , Miha Grilc 3 , Paolo Cleto Bruzzese 4 , David Poppitz 1, Kamila Pyra 2 , Michael Liebau 1, Andreas Pöppl 4, Blaž Likozar 3 and Roger Gläser 1 1 Institute of Chemical Technology, Universität Leipzig, Linnéstr. 3, 04103 Leipzig, Germany; [email protected] (D.P.); [email protected] (M.L.); [email protected] (R.G.) 2 Faculty of Chemistry, Jagiellonian University in Kraków, Gronostajowa 2, 30-387 Kraków, Poland; [email protected] (K.G.-M.); [email protected] (K.P.) 3 Department of Catalysis and Chemical Reaction Engineering, National Institute of Chemistry, Hajdrihova 19, 1001 Ljubljana, Slovenia; [email protected] (M.G.); [email protected] (B.L.) 4 Felix Bloch Institute for Solid State Physics, Universität Leipzig, Linnéstr. 5, 04103 Leipzig, Germany; [email protected] (P.C.B.); [email protected] (A.P.) * Correspondence: [email protected] Abstract: Comparative studies over micro-/mesoporous Cu-containing zeolites ZSM-5 prepared by top-down treatment involving NaOH, TPAOH or mixture of NaOH/TPAOH (tetrapropylammonium hydroxide) were conducted. The results of the catalytic data revealed the highest activity of the Cu-ZSM-5 catalyst both in the absence and presence of water vapor. The physico-chemical charac- terization (diffuse reflectance UV-Vis (DR UV-Vis), Fourier transform infrared (FT-IR) spectroscopy, electron paramagnetic resonance (EPR) spectroscopy, temperature-programmed desorption of NOx Citation: Jabło´nska,M.; Góra-Marek, (TPD-NO ), and microkinetic modeling) results indicated that the microporous structure of ZSM-5 K.; Grilc, M.; Bruzzese, P.C.; Poppitz, x D.; Pyra, K.; Liebau, M.; Pöppl, A.; effectively stabilized isolated Cu ion monomers.
    [Show full text]
  • The Kinetic and Radiolytic Aspects of Control of the Redox Speciation of Neptunium in Solutions of Nitric Acid
    AN ABSTRACT OF THE DISSERTATION OF Martin Precek for the degree of Doctor of Philosophy in Chemistry presented on August 29, 2012. Title: The Kinetic and Radiolytic Aspects of Control of the Redox Speciation of Neptunium in Solutions of Nitric Acid Abstract approved: ________________________________________________ Alena Paulenova Neptunium, with its rich redox chemistry, has a special position in the chemistry of actinides. With a decades-long history of development of aqueous separation methods for used nuclear fuel (UNF), management of neptunium remains an unresolved issue because of its not clearly defined redox speciation. Neptunium is present in two, pentavalent (V) and hexavalent (VI) oxidation states, both in their dioxocation O=Np=O neptunyl form, which differ greatly in their solvent extraction behavior. While the neptunium(VI) dioxocation is being very well extracted, the dioxocation of pentavalent neptunium is practically non-extractable by an organic solvent. As a result, neptunium is not well separated and remains distributed in both organic and aqueous extraction phases. The aim of this study was to develop or enhance the understanding of several key topics governing the redox behavior of neptunium in nitric acid medium, which are of vital importance for the engineering design of industrial-scale liquid-liquid separation systems. In this work, reactions of neptunium(V) and (VI) with vanadium(V) and acetohydroxamic acid - two redox agents envisioned for adjusting the neptunium oxidation state in aqueous separations – were studied in order to determine their kinetic characteristics, rate laws and rate constants, as a function of temperature and nitric acid concentration. Further were analyzed the interactions of neptunium(V) and (VI) with nitrous acid, which is formed as a product of radiolytic degradation of nitric acid caused by high levels of radioactivity present in such systems.
    [Show full text]
  • A Secure Computing Platform for Building Automation Using Microkernel-Based Operating Systems Xiaolong Wang University of South Florida, [email protected]
    University of South Florida Scholar Commons Graduate Theses and Dissertations Graduate School November 2018 A Secure Computing Platform for Building Automation Using Microkernel-based Operating Systems Xiaolong Wang University of South Florida, [email protected] Follow this and additional works at: https://scholarcommons.usf.edu/etd Part of the Computer Sciences Commons Scholar Commons Citation Wang, Xiaolong, "A Secure Computing Platform for Building Automation Using Microkernel-based Operating Systems" (2018). Graduate Theses and Dissertations. https://scholarcommons.usf.edu/etd/7589 This Dissertation is brought to you for free and open access by the Graduate School at Scholar Commons. It has been accepted for inclusion in Graduate Theses and Dissertations by an authorized administrator of Scholar Commons. For more information, please contact [email protected]. A Secure Computing Platform for Building Automation Using Microkernel-based Operating Systems by Xiaolong Wang A dissertation submitted in partial fulfillment of the requirements for the degree of Doctor of Philosophy in Computer Science and Engineering Department of Computer Science and Engineering College of Engineering University of South Florida Major Professor: Xinming Ou, Ph.D. Jarred Ligatti, Ph.D. Srinivas Katkoori, Ph.D. Nasir Ghani, Ph.D. Siva Raj Rajagopalan, Ph.D. Date of Approval: October 26, 2018 Keywords: System Security, Embedded System, Internet of Things, Cyber-Physical Systems Copyright © 2018, Xiaolong Wang DEDICATION In loving memory of my father, to my beloved, Blanka, and my family. Thank you for your love and support. ACKNOWLEDGMENTS First and foremost, I would like to thank my advisor, Dr. Xinming Ou for his guidance, encouragement, and unreserved support throughout my PhD journey.
    [Show full text]
  • Safe Kernel Programming with Rust
    DEGREE PROJECT IN COMPUTER SCIENCE AND ENGINEERING, SECOND CYCLE, 30 CREDITS STOCKHOLM, SWEDEN 2018 Safe Kernel Programming with Rust JOHANNES LUNDBERG KTH ROYAL INSTITUTE OF TECHNOLOGY SCHOOL OF ELECTRICAL ENGINEERING AND COMPUTER SCIENCE Safe Kernel Programming with Rust JOHANNES LUNDBERG Master in Computer Science Date: August 14, 2018 Supervisor: Johan Montelius Examiner: Mads Dam Swedish title: Säker programmering i kärnan med Rust School of Computer Science and Communication iii Abstract Writing bug free computer code is a challenging task in a low-level language like C. While C compilers are getting better and better at de- tecting possible bugs, they still have a long way to go. For application programming we have higher level languages that abstract away de- tails in memory handling and concurrent programming. However, a lot of an operating system’s source code is still written in C and the kernel is exclusively written in C. How can we make writing kernel code safer? What are the performance penalties we have to pay for writing safe code? In this thesis, we will answer these questions using the Rust programming language. A Rust Kernel Programming Inter- face is designed and implemented, and a network device driver is then ported to Rust. The Rust code is analyzed to determine the safeness and the two implementations are benchmarked for performance and compared to each other. It is shown that a kernel device driver can be written entirely in safe Rust code, but the interface layer require some unsafe code. Measurements show unexpected minor improvements to performance with Rust. iv Sammanfattning Att skriva buggfri kod i ett lågnivåspråk som C är väldigt svårt.
    [Show full text]
  • Theseus: a State Spill-Free Operating System
    Theseus: A State Spill-free Operating System Kevin Boos Lin Zhong Rice Efficient Computing Group Rice University PLOS 2017 October 28 Problems with Today’s OSes • Modern single-node OSes are vast and very complex • Results in entangled web of components • Nigh impossible to decouple • Difficult to maintain, evolve, update safely, and run reliably 2 Easy Evolution is Crucial • Computer hardware must endure longer upgrade cycles[1] • Exacerbated by the (economic) decline of Moore’s Law • Evolutionary advancements occur mostly in software • Extreme example: DARPA’s challenge for systems to “remain robust and functional in excess of 100 years”[2] [2] DARPA seeks to create software systems that could last 100 years. https://www.darpa.mil/news-events/2015-04-08. [1] The PC upgrade cycle slows to every ve to six years, Intel’s CEO says. PCWorld article. 3 What do we need? Easier evolution by reducing complexity without reducing size (and features). We need a disentangled OS that: • allows every component to evolve independently at runtime • prevents failures in one component from jeopardizing others 4 “But surely existing systems have solved this already?” – the astute audience member 5 Existing attempts to decouple systems 1. Traditional modularization 2. Encapsulation-based 3. Privilege-level separation 4. Hardware-driven 6 Existing attempts to decouple systems 1. Traditional modularization • Decompose large monolithic system into smaller entities of related functionality (separation of concerns) 2. Encapsulation-based Achieves some goals: code reuse • Often causes tight coupling, which inhibits other goals 3. Privilege-level separation • Evidence: Linux is highly modular, but requires substantial effort to realize live update [3, 4, 5, 6] 4.
    [Show full text]
  • Disk Encryption in Redox OS
    Masaryk University Faculty of Informatics Disk Encryption in Redox OS Master’s Thesis Tomáš Ritter Brno, Fall 2019 Masaryk University Faculty of Informatics Disk Encryption in Redox OS Master’s Thesis Tomáš Ritter Brno, Fall 2019 This is where a copy of the official signed thesis assignment and a copy ofthe Statement of an Author is located in the printed version of the document. Declaration Hereby I declare that this paper is my original authorial work, which I have worked out on my own. All sources, references, and literature used or excerpted during elaboration of this work are properly cited and listed in complete reference to the due source. Tomáš Ritter Advisor: RNDr. Petr Ročkai, Ph.D. i Acknowledgements I would like to thank Petr for his guidance during the process of writing of this thesis. I would also like to thank my parents for supporting me throughout my studies and not giving up on me, even though it took 6 and a half years. ii Abstract Rust is a fairly new programming language that is focused on mem- ory safety while still achieving high performance. Many open-source projects are using it, among those an operating system called Redox. The goal of this thesis is to study the architecture of the Redox operat- ing system, with the focus being on the filesystem, and implement a block-layer encryption that will work alongside it. This should result in a contribution to the Redox operating system and possibly other libraries. iii Keywords rust, redox, disk encryption ... iv Contents 1 Introduction 1 1.1 Rust Programming Language ................2 1.2 Organization of the thesis ...................5 2 Redox OS 6 2.1 Why write an operating system in Rust ...........6 2.2 URLs, Schemes and Resources ................6 2.3 Microkernel ..........................8 2.4 Filesystem ...........................9 3 Disk Encryption 11 3.1 Keys in encryption .....................
    [Show full text]
  • Refactoring the Freebsd Kernel with Checked C
    Refactoring the FreeBSD Kernel with Checked C Junhan Duan,∗ Yudi Yang,∗ Jie Zhou, and John Criswell Department of Computer Science University of Rochester Abstract—Most modern operating system kernels are written pointer is safe at compile time or inserts run-time checks to in C, making them vulnerable to buffer overflow and buffer ensure safety at run-time. Checked C has low performance over-read attacks. Microsoft has developed an extension to the overhead (only 8.6% on selected benchmarks [25]), and its C language named Checked C which provides new source language constructs that allow the compiler to prevent NULL spatial safety checks mitigate both control-data [43], [48] and pointer dereferences and spatial memory safety errors through non-control data [17] attacks. static analysis and run-time check insertion. We evaluate the use In this paper, we investigate the use of Checked C in of Checked C on operating system kernel code by refactoring refactoring parts of an OS kernel to be spatially memory parts of the FreeBSD kernel to use Checked C extensions. We safe. Specifically, we quantify the performance and code size describe our experience refactoring the code that implements system calls and UDP and IP networking. We then evaluate the overheads of using Checked C on OS kernel code and identify refactoring effort and the performance of the refactored kernel. challenges and solutions to using Checked C on OS kernel It took two undergraduate students approximately three months code. We chose FreeBSD 12 stable to harden with Checked C to refactor the system calls, the network packet (mbuf) utility as FreeBSD uses Clang and LLVM [35] as its default compiler; routines, and parts of the IP and UDP processing code.
    [Show full text]