Iyo yepfumbamwe vhezheni yeRust yeLinux inosvika uye inoti zvakanaka kutsigira shanduro pamberi peLinux 3.2.

Wow, basa re Rust mutyairi tsigiro yeLinux yave kuitika uye budiriro inoenderera mberi yatanga, sezvo isina zvakawanda zvekuita shanduro 8 yakaziviswa zvezvigamba uye ndizvozvo ikozvino tine version 9.

Uye ndezvekuti mune iyi yepfumbamwe vhezheni yakatsanangurwa, zvakakodzera kutaura kuti saizvozvo ishanduro yakapfava yechisere yakabudiswa mazuva mashoma apfuura. Iyo kit inosiyaniswa nekudzikiswa kwakakosha muhukuru uye nekusiya chete yakanyanya kudiwa zvishoma, yakakwana kuvaka kernel module yakanyorwa muRust.

Iyo shoma patch inofungidzirwa ichaita kuti zvive nyore kutora Rust rutsigiro mune main kernel. Mushure mekupa rutsigiro rushoma, zvakarongwa kuwedzera zvishoma nezvishoma mashandiro aripo, kutakura dzimwe shanduko kubva kubazi reRust-for-Linux.

Iyi ndiyo nhevedzano yezvigamba (v9) yekuwedzera rutsigiro rweRust semutauro wechipiri kuLinux kernel…

Semazuva ese, kutenda kwakakosha kune ISRG (Internet Security Research Group) uye Google nerutsigiro rwavo rwemari mukuedza uku.

Kuenzaniswa neshanduro 8, saizi yechigamba yakaderedzwa kubva ku40 kusvika ku000 mitsetse yekodhi. Semuenzaniso, vhezheni yechi3 inosanganisira chete 500% yekodhi (60 mitsara) kubva ku "kernel" bhokisi package uye 32% yealloc raibhurari, ichikubvumidza iwe kugadzira iyo yakapfava kernel modules uchishandisa Vec mhando. uye kuratidza ruzivo mune kernel log uchishandisa iyo "pr_info!" macro.

Ukuwo, Panyaya yeRust neLinux, zvakakodzera kutaura kuti nguva pfupi yadarika iyo Vagadziri vepurojekiti yengura vakayambira kune vashandisi nezve kuwedzera kuri kuuya kwezvinodiwa zvenzvimbo yeLinux mune compiler, iyo Cargo package maneja, uye libstd standard raibhurari.

Kubva kuRust 1.64, yakarongerwa Gunyana 22, 2022, izvo zvishoma zvinodikanwa zveGlibc zvichasimudzwa kubva muvhezheni 2.11 kusvika 2.17 uye Linux kernel kubva 2.6.32 kusvika 3.2. Izvo zvinorambidzwa zvinoshandawo kune Rust mabhinari akavakwa ne libstd.

RHEL 7, SLES 12-SP5, Debian 8, uye Ubuntu 14.04 kugovera kunosangana nezvinodiwa zvitsva. Tsigiro yeRHEL 6, SLES 11-SP4, Debian 7, uye Ubuntu 12.04 ichamiswa. Zvikonzero zvekudzikisira rutsigiro rwevakuru Linux masisitimu zvinosanganisira mashoma zviwanikwa kuti arambe achitsigira nharaunda dzechikuru.

Sei kuwedzera zvinodiwa?
Tinoda Rust uye mabhinari anogadzirwa neRust kuti ave anoshandiswa zvakanyanya sezvinobvira. Panguva imwecheteyo, iyo Rust purojekiti ine zviwanikwa zvishoma zvekuchengetedza kuenderana nenzvimbo dzekare.

Pane zvikamu zviviri kune izvo zvinodikanwa zvechishandiso: izvo zvishoma zvinodikanwa zvekumhanyisa Rust compiler pane ahost system, uye zvishoma zvinodikanwa zvekuyambuka-akaunganidzwa mabhinari.

Izvo zvishoma zvinodikanwa zveanotambira toolchains zvinokanganisa yedu kuvaka sisitimu. Rust CI inogadzira zvigadzirwa zvemabhinari kune akawanda ezvinangwa zvakasiyana. Kuvaka mabhinari anotsigira shanduro dzekare dze glibc zvinoda kuvaka sisitimu yekushandisa ine yekare glibc (yezvivakwa zvemuno) kana kushandisa mudzi wekuvaka une vhezheni yekare yeglibc (yekuchinjika-zvivakwa).

Kunyanya kuenderana neGlibcs ​​yekare inoda kushandiswa kwezvishandiso zvekare kana yakasimbiswa mune inoenderera mberi yekubatanidza system, maringe nekuwedzera kweshanduro zvinodiwa paLLVM uye muchinjika-kunyora zvishandiso. Kuwedzera kweiyo kernel vhezheni zvinodiwa imhaka yekugona kwe libstd kushandisa nharembozha nyowani pasina kukosha kwekuchengetedza maseru kuti ive nechokwadi chekuenderana nekare kernels.

Vashandisi vanoshandisa Rust-yakagadzirwa executable munzvimbo dzine Linux kernels dzekare vanorairwa kukwidziridza masisitimu avo, kugara pane ekare mavhezheni eiyo compiler, kana kuchengetedza yavo yakaturikidzana libstd fork kuchengetedza kuenderana.

Chekupedzisira, kana iwe uchifarira kugona kuziva zvakawanda nezvazvo, unogona kutarisa ruzivo mu chinotevera chinongedzo.


Izvo zviri muchinyorwa zvinoomerera pamisimboti yedu ye tsika dzekunyora. Kuti utaure chikanganiso tinya pano.

Iva wekutanga kutaura

Siya yako yekutaura

Your kero e havazobvumirwi ichibudiswa.

*

*

  1. Inotarisira data: AB Internet Networks 2008 SL
  2. Chinangwa cheiyo data: Kudzora SPAM, manejimendi manejimendi.
  3. Legitimation: Kubvuma kwako
  4. Kutaurirana kwedata
  5. Dhata yekuchengetedza: Dhatabhesi inobatwa neOccentus Networks (EU)
  6. Kodzero: Panguva ipi neipi iwe unogona kudzora, kupora uye kudzima ruzivo rwako