ZenHammer - mokhoa oa ho hlasela oa ho senya litaba tsa memori ho li-platform tsa AMD Zen

Bafuputsi ba ETH Zurich ba thehile tlhaselo ea ZenHammer, mofuta o fapaneng oa sehlopha sa litlhaselo sa RowHammer ho fetola litaba tsa likarolo tsa memori ea phihlello e sa reroang (DRAM), e lokiselitsoeng ho sebelisoa sethaleng se nang le li-processor tsa AMD. Litlhaselo tsa nakong e fetileng tsa RowHammer li ne li lekanyelitsoe ho litsamaiso tse thehiloeng ho li-processor tsa Intel, empa lipatlisiso li bontšitse hore bobolu ba mohopolo bo ka boela ba finyelloa ka li-platform tse nang le balaoli ba memori ea AMD.

Mokhoa ona o ile oa bontšoa ho litsamaiso tsa AMD Zen 2 le Zen 3 tse nang le memori ea DDR4 ho tsoa ho baetsi ba bararo ba etelletseng pele (Samsung, Micron le SK Hynix). Tlhaselo e atlehile ho feta mochini oa TRR (Target Row Refresh) o kentsoeng ts'ebetsong ea memori, e reretsoeng ho sireletsa khahlanong le bobolu ba lisele tsa memori meleng e haufi. Ho ea ka bafuputsi, litsamaiso tse thehiloeng ho AMD Zen 3 CPU li kotsing ho feta litsamaiso tse nang le li-processor tsa Intel Coffee Lake, 'me li bonolo ebile li sebetsa hantle ho hlasela. Litsamaisong tsa AMD Zen 2, ho sotha lisele ho ile ha finyelloa bakeng sa li-chips tsa DDR7 tse 10 ho tse 4 tse lekiloeng, le ho lisebelisoa tsa Zen 3 bakeng sa 6 ho tsoa ho 10. Bafuputsi ba ile ba boela ba hlahloba monyetla oa tlhaselo ea litsamaiso tsa AMD Zen 4 tse nang le mohopolo oa DDR5, empa tlhaselo eo. Mokhoa o ntlafalitsoeng bakeng sa DDR4 o atlehile ho hlahisoa hape ho 1 feela ho tse 10 tse lekiloeng tsa memori ea DDR5, athe monyetla oa tlhaselo ka boeona o sa qheleloa ka thoko, empa o hloka nts'etsopele ea mekhoa e metle ea ho bala e loketseng lisebelisoa tsa DDR5.

Ho sebetsa le li-chips tsa AMD, ba khonne ho ikamahanya le lits'ebetso tse tsoetseng pele tse fetolang litaba tse ka har'a leqephe la memori (PTE, ho kena tafoleng ea leqephe) ho fumana litokelo tsa kernel, licheke tsa password / matla ka ho fetola mohopolo oa ts'ebetso ea sudo. , le ho senya senotlolo sa sechaba sa RSA-2048 se bolokiloeng mohopolong ho OpenSSH ho etsa senotlolo sa lekunutu. Tlhaselo ea leqephe la memori e ile ea hlahisoa hape ho 7 ho tsoa ho 10 DDR4 chips e lekiloeng, tlhaselo ea senotlolo sa RSA ho li-chips tse 6, le tlhaselo ea sudo ho li-chips tse 4, ka linako tsa tlhaselo tsa 164, 267, le 209 metsotsoana ka ho latellana.

ZenHammer - mokhoa oa tlhaselo oa ho senya litaba tsa memori ho li-platform tsa AMD Zen

Mokhoa ona o ka boela oa sebelisoa ho hlasela sistimi ka li-browser, ho etsa liphetoho ho tsoa mecheng ea sebele, kapa ho qala tlhaselo holim'a marang-rang. Khoutu ea mohloli bakeng sa sesebelisoa sa DARE bakeng sa boenjineri ba morao-rao sebopeho sa aterese mohopolong oa DRAM e behiloe ho GitHub tlasa laesense ea MIT, hammoho le lisebelisoa tse peli bakeng sa tlhahlobo e makatsang ea bobolu mohopolong - ddr4_zen2_zen3_pub bakeng sa DDR4 chips (Zen 2 le Zen 3) le ddr5_zen4_pub bakeng sa li-chips tsa DDR5 (Zen 4), tse ka sebelisoang ho lekola litsamaiso tsa tsona hore li ka hlaseloa habonolo.

ZenHammer - mokhoa oa tlhaselo oa ho senya litaba tsa memori ho li-platform tsa AMD Zen

Mokhoa oa RowHammer o sebelisoa ho sotha likotoana, tse ipapisitseng le taba ea hore mohopolong oa DRAM, e leng likarolo tse peli tsa lisele tse nang le capacitor le transistor, ho bala ho tsoelang pele sebakeng se le seng sa memori ho lebisa ho feto-fetoha ha motlakase le litlolo tse bakang tahlehelo e nyane ea tefello ea lisele tsa boahelani. Haeba matla a ho bala a phahame, joale sele ea boahelani e ka lahleheloa ke tefiso e lekaneng e lekaneng 'me potoloho e latelang ea tsosoloso e ke ke ea e-ba le nako ea ho tsosolosa boemo ba eona ba pele, e leng se tla lebisa phetohong ea boleng ba data e bolokiloeng ka seleng. . Mofuputsi o khethile likarolo tsa 'mapa oa mohopolo oa' mele le ho hokahanya le mekhoa ea ntlafatso ea memori e sebelisoang ho li-processor tsa AMD, e entseng hore ho khonehe ho etsa aterese ea boemo bo tlase ba DRAM, ho tseba liaterese tsa lisele tsa boahelani, ho nts'etsapele mekhoa ea ho feta caching, le ho bala lipaterone le khafetsa. ya diketso tse lebisang tahlehelong ya tefello.

Ho sireletsa khahlanong le RowHammer, baetsi ba li-chip ba sebelisa mochine oa TRR (Target Row Refresh), o thibelang bobolu ba lisele maemong a khethehileng, empa ha o sireletse khahlanong le likhetho tsohle tse ka khonehang tsa tlhaselo. Mokhoa o sebetsang ka ho fetesisa oa ts'ireletso e ntse e le ts'ebeliso ea mohopolo ka likhoutu tsa ho lokisa liphoso (ECC), e thatafatsang haholo, empa e sa felise ka botlalo, litlhaselo tsa RowHammer. Ho eketsa makhetlo a ho tsosolosa mohopolo ho ka boela ha fokotsa monyetla oa tlhaselo e atlehileng.

AMD e phatlalalitse tlaleho mabapi le taba e bolelang hore li-processor tsa AMD li sebelisa li-memory controller tse lumellanang le litlhaloso tsa DDR, 'me kaha katleho ea tlhaselo e itšetlehile haholo ka litlhophiso tsa tsamaiso le mohopolo oa DRAM, lipotso tse mabapi le ho rarolla bothata li lokela ho lebisoa ho baetsi ba memori. le litsamaiso Mekhoa e teng ea ho etsa hore litlhaselo tsa sehlopha sa Rowhammer li be thata le ho feta li kenyelletsa ho sebelisa memori ea ECC, ho eketsa makhetlo a ho nchafatsa mohopolo, ho tima mokhoa oa ho nchafatsa o chechisitsoeng, le ho sebelisa li-processor tse nang le balaoli ba tšehetsang mokhoa oa MAC (Maximum Activate Count) bakeng sa DDR4 (1st, 2nd le 3rd. moloko oa AMD EPYC "Naple", "Roma" le "Milan") le RFM (Refresh Management) bakeng sa DDR5 (moloko oa 4 oa AMD EPYC).

Source: opennet.ru

Eketsa ka tlhaloso