<?xml version="1.0" encoding="UTF-8"?>
<rss version="2.0" xmlns:atom="http://www.w3.org/2005/Atom"><channel><title>Memory Tagging and how it improves C/C++ memory safety · HackerPapers discussions</title><link>https://hackerpaper.kaipfister.de/p/1802.09517/</link><description>Collected HN comments and submissions linking this paper.</description><language>en</language><lastBuildDate>Mon, 02 Nov 2026 11:16:22 GMT</lastBuildDate><atom:link href="https://hackerpaper.kaipfister.de/p/1802.09517/feed.xml" rel="self" type="application/rss+xml" /><item><title>Memory Tagging and how it improves C/C++ memory safety — mentioned by wyldfire</title><link>https://news.ycombinator.com/item?id=19939847</link><guid isPermaLink="false">urn:hackerpapers:mention:1802.09517:19939847</guid><pubDate>Fri, 17 May 2019 14:21:51 GMT</pubDate><description>&lt;p&gt;&amp;gt; Sanitizers are a game changer, they bring C++ closer to languages like Java and Rust. This is a stretch, IMO. I suppose it is ever-so-slightly-closer. &amp;gt; They do not bring the safety to production, since you probably do not want to use sanitizers in production or release You&amp;#x27;re right, they&amp;#x27;re not intended for use in production -- until now! ARM dedicated some virtual address bits to tagging memory [1][2][3] for ARMv8 so that we can have sanitizers in hardware. Imagine: chrome on your smartphone being protected! [1] https://developer.arm.com/docs/ddi0487/latest/arm-architectu... [2]…&lt;/p&gt;&lt;p&gt;&lt;a href="https://hackerpaper.kaipfister.de/p/1802.09517/"&gt;Paper and discussion history&lt;/a&gt;. A mention is not an endorsement.&lt;/p&gt;</description><category>cs.CR</category></item><item><title>Memory Tagging and how it improves C/C++ memory safety — mentioned by wyldfire</title><link>https://news.ycombinator.com/item?id=18680923</link><guid isPermaLink="false">urn:hackerpapers:mention:1802.09517:18680923</guid><pubDate>Fri, 14 Dec 2018 14:16:39 GMT</pubDate><description>&lt;p&gt;IIRC the ARM tagging would protect ~8 (maybe 16?) byte regions. More info on this is at [1] [2] -- note that some of this discusses a software-only approach (with likely higher performance impact). I think the majority of performance cost for HW Asan will come from the additional bits stored to memory, but it was &amp;quot;modest&amp;quot; (&amp;lt; 5%?). A couple of additional CPU instructions during memory allocate and free, these are probably of negligible impact. [1] https://arxiv.org/abs/1802.09517 [2] https://clang.llvm.org/docs/HardwareAssistedAddressSanitizer...&lt;/p&gt;&lt;p&gt;&lt;a href="https://hackerpaper.kaipfister.de/p/1802.09517/"&gt;Paper and discussion history&lt;/a&gt;. A mention is not an endorsement.&lt;/p&gt;</description><category>cs.CR</category></item><item><title>Memory Tagging and how it improves C/C++ memory safety — HN submission</title><link>https://news.ycombinator.com/item?id=16472979</link><guid isPermaLink="false">urn:hackerpapers:submission:1802.09517:16472979</guid><pubDate>Tue, 27 Feb 2018 13:01:20 GMT</pubDate><description>&lt;p&gt;Memory Tagging and how it improves C/C++ memory safety&lt;/p&gt;&lt;p&gt;&lt;/p&gt;&lt;p&gt;119 points; 36 discussion replies on HN. &lt;a href="https://hackerpaper.kaipfister.de/p/1802.09517/"&gt;Paper and source history&lt;/a&gt;. A submission is not an endorsement.&lt;/p&gt;</description><category>cs.CR</category></item></channel></rss>
