Interplane page as plain text, for reading tools and agents. English is the reference text: translate it with your own tool. Text in backticks and in ``` blocks (commands, fingerprints, file names) and link targets in <...> are exact: copy them, never translate them. Page: /drakestapleton/omega-mv/blob/main/seed/omc/sites/found-xhreq-3.om # omega-mv Omega: a language for verified programs, semantic identity and machine realization. Seed-born work and existing implementations have distinct provenance. Brought by drakestapleton Sign in to star 1 stars 0 watching About Files History Releases Proposed changes Issues For developers branch `main` Branches Tags History `omega-mv / seed / omc / sites / found-xhreq-3.om` 48 lines ยท 1386 bytes Raw Blame History 1 note sites: found by a one-token change of a tracked program (41 to 120 lines); reaches the omc error site in xhreq (code 9) 2 note Host only: every allowed UVM request uses an invalid fd, never a GPU. 3 global data uchar 9280 4 global status uchar 4 5 text msg "PASS bounded native UVM requests\n" 6 fn ck yes bool to void 7 if not yes 8 exit int 80 9 end 10 end 11 fn bad k int to long 12 if eq k 0 13 ret uvmctl neg -1 1 uint 33 data 0 9263 14 end 15 if eq k 1 16 ret uvmctl neg int 1 uint 33 data 0 9265 17 end 18 if eq k 2 19 ret uvmctl neg int 1 uint 33 data 17 9264 20 end 21 ret uvmctl neg int 1 uint 75 data `18446744073709551615` 8 22 end 23 fn main to int 24 ck eq uvmctl neg int 1 uint `805306369` data 8 16 neg long 9 25 ck eq uvmctl neg int 1 uint 75 data 8 8 neg long 9 26 ck eq uvmctl neg int 1 uint 37 data 8 40 neg long 9 27 ck eq uvmctl neg int 1 uint 38 data 8 20 neg long 9 28 ck eq uvmctl neg int 1 uint 25 data 8 32 neg long 9 29 ck eq uvmctl neg int 1 uint 26 data 8 20 neg long 9 30 ck eq uvmctl neg int 1 uint 27 data 8 56 neg long 9 31 ck eq uvmctl neg int 1 uint 28 data 8 28 neg long 9 32 ck eq uvmctl neg int 1 uint 33 data 8 9264 neg long 9 33 ck eq uvmctl neg int 1 uint 34 data 8 24 neg long 9 34 ck eq add uvmctl neg int 1 uint 73 data 8 24 10 1 35 for k int 4 36 p = fork 37 ck ge p 0 38 if eq p 0 39 r = bad k 40 exit int 80 41 end 42 ck eq waitpid int p status 0 4 0 p 43 ck eq get status 0 0 44 ck eq get status 1 103 45 end 46 ck eq write 1 msg 0 len msg long len msg 47 ret 0 48 end