Skip to content
Tcl Source Code Artifact [4316977d28]
Login

Artifact [4316977d28]

Artifact 4316977d28a8428fab70abe90d1f222f4ab765e54a0540cda794722f3d85817e:

Ticket change [4316977d28] - Add attachment [/artifact/973b763342c6343c|0006-tclExecute-Fix-for-CHERI-by-not-violating-object-all.patch] to ticket [37108037b980ea6e|37108037b9] by jrtc27 on 2022-08-12 23:21:33.
A 0006-tclExecute-Fix-for-CHERI-by-not-violating-object-all.patch 37108037b980ea6e705f56a9d983e05ee218dd0c 973b763342c6343c3c376da1ba32c0ec1f9ad847911c22b81058a729eee22198
C [PATCH\s6/8]\stclExecute:\sFix\sfor\sCHERI\sby\snot\sviolating\sobject\sallocation\sbounds\r\n\r\nThis\sis\sneeded\sto\ssupport\sCHERI,\sand\sthus\sArm's\sexperimental\sMorello\r\nprototype,\swhere\spointers\sare\simplemented\susing\sunforgeable\scapabilities\r\nthat\sinclude\sbounds\sand\spermissions\smetadata\sto\sprovide\sfine-grained\r\nspatial\sand\sreferential\smemory\ssafety,\sas\swell\sas\srevocation\sby\ssweeping\r\nmemory\sto\sprovide\sheap\stemporal\smemory\ssafety.\r\n\r\nIn\sthe\scase\sthat\sGrowEvaluationStack\sallocates\sa\snew\sstack,\ssubtracting\r\nTD\sis\sstrictly\sUB,\ssince\spointer\ssubtraction\sis\sonly\sdefined\swithin\san\r\nobject,\snot\sbetween\sobjects.\sHowever,\sthe\sbigger\sissue\sis\sthat\sthis\sis\r\nthen\sadded\sto\sTD-derived\spointers\sto\sget\sequivalent\spointers\sinto\sthe\r\nnew\sstack,\sas\swell\sas\sreconstruct\sthe\snew\sTD,\sbut\sthis\sis\sUB\sas\spointer\r\naddition\sis\sonly\sdefined\swhen\sthe\sresult\sis\swithin\sthe\ssame\sobject\s(or\r\none-past-the-end).\sCHERI\sdetects\sthis\sand\sfaults\strying\sto\supdate\r\ncatchTop\ssince\sthe\s(hidden)\sdereference\sof\sTD\sis\soutside\sthe\sbounds\sof\r\nthe\soriginal\sTD's\sallocation.\r\n\r\nFix\sthis\sby\sderiving\spointers\sfrom\sthe\snew\sallocation,\snot\sthe\sold\sone.
D 2022-08-12T23:21:33.446
U jrtc27
Z b873c33c1883bd8b43a21f7d7a5ea476