Glibc 2.36 ya zo tare da sabbin abubuwa don Linux, haɓakawa da ƙari

Bayan watanni shida na ci gaba, an sanar da sakin sabon sigar glibc 2.36, wanda ya cika cikakkiyar buƙatun ka'idodin ISO C11 da POSIX.1-2017 kuma wanda sabon sigar ya haɗa da gyara daga masu haɓaka 59. .

Ga waɗanda ba su san Glibc ba, yakamata su san menene ɗakin karatu na GNU C, wanda aka fi sani da glibc shine daidaitaccen ɗakin karatu na GNU C. A kan tsarin da ake amfani da shi, wannan ɗakin karatu na C cewa yana bayarwa da ayyana kiran tsarin da sauran ayyuka na asali, kusan dukkan shirye -shirye suna amfani da shi. 

Babban sabbin fasalulluka na Glibc 2.36

A cikin wannan sabon sigar da aka gabatar, an yi nuni da cewa ƙarin tallafi don sabon tsarin adireshin ƙaura na dangi DT_RELR, wanda ke ba ku damar rage girman ƙaurawar dangi a cikin abubuwan da aka raba da kuma abubuwan da aka haɗa a cikin yanayin PIE (Matsayin Masu Independent Executables). Amfani da filin DT_RELR a cikin fayilolin ELF yana buƙatar goyan baya ga zaɓin "-z pack-relok-relocs" a cikin mahaɗin, wanda aka gabatar a binutils 2.38.

Wani canji da yayi fice a cikin sabon sigar shine don Linux ayyuka pidfd_open, pidfd_getfd, da pidfd_send_signal an aiwatar da su don samar da dama ga ayyukan pidfd wanda ke taimakawa wajen kula da yanayin sake amfani da PID don ƙarin daidaitattun hanyoyin gano hanyoyin shiga fayilolin da aka sa ido (pidfd yana da alaƙa da takamaiman tsari kuma baya canzawa, yayin da PID za a iya haɗa shi zuwa wani tsari bayan ƙarshen tsari). PID).

Bayan haka, Hakanan a cikin Linux yana zuwa tsari_madvise(), cewa yana ba da damar tsari don aiwatar da kiran tsarin madvise() a madadin wani tsari, gano tsarin manufa ta amfani da pidfd. Ta hanyar madvise (), zaku iya sanar da kernel game da halayen aiki tare da ƙwaƙwalwar ajiya don haɓaka sarrafa ƙwaƙwalwar ajiya na tsari, alal misali, dangane da bayanan da aka wuce, kernel na iya fara sakin ƙarin ƙwaƙwalwar ajiya kyauta.

An kuma lura cewa an ƙara aikin process_mrelease(), wanda ke ba ka damar hanzarta sakin ƙwaƙwalwar ajiya don tsarin da ya ƙare aiwatar da shi. A ƙarƙashin yanayi na al'ada, sakin albarkatu da ƙarewar tsari ba nan take ba kuma ana iya jinkirta shi saboda dalilai daban-daban, tsoma baki tare da tsarin faɗakarwa na wuri mai amfani kamar oomd (wanda aka samar ta systemd). Ta hanyar kiran process_mrelease, waɗannan tsarin zasu iya fara tsinkaya fara dawo da ƙwaƙwalwar ajiya don matakan da aka dakatar da tilas.

A gefe guda kuma, an lura cewa an ƙara shi goyon baya ga zaɓin "no-aaaa". zuwa hadedde aiwatarwa Ƙaddamar da DNS, wanda ke ba ku damar musaki aika buƙatun DNS don bayanan AAAA (ƙayyade adireshin IPv6 ta sunan mai masauki), koda lokacin gudanar da ayyukan NSS kamar getaddrinfo(), don sauƙaƙe matsala. Wannan zaɓin baya shafar sarrafa adiresoshin IPv6 da aka ayyana a /etc/hosts da kira zuwa getaddrinfo() tare da tutar AI_PASSIVE.

Don Linux, an ƙara ayyukan fsopen, fsmount, move_mount, fsconfig, fspick, open_tree, da mount_setatr para ba da dama ga sabon kwaya API don sarrafa yadda ake hawa tsarin fayil bisa ɗorawa sunaye. Ayyukan da aka tsara suna ba da damar sarrafa daban-daban na matakan hawa daban-daban (aiwatar da babban katange, samun bayanai game da tsarin fayil, hawa, haɗe zuwa wurin dutse), waɗanda aka yi amfani da su a baya ta amfani da aikin gama gari ().

An kara ayyukan arc4random, arc4random_buf da arc4random_uniform don samar da ɗauri akan tsarin kiran tsarin rashin lafiya da kuma neman karamin aiki /dev/urrandom, maido da lambobi masu inganci masu inganci.

Lokacin aiki akan Linux, ana ba da tallafi ga gine-gine. daga umarnin da aka saita LoongArch da aka yi amfani da shi a cikin na'urori na Loongson 3 5000 kuma ana aiwatar da sabon RISC ISA mai kama da MIPS da RISC-V. A cikin sigar sa na yanzu, dacewa kawai yana samuwa tare da bambancin 64-bit daga LoongArch (LA64). Yana buƙatar aƙalla binutils 2.38, GCC 12, da Linux kernel 5.19 don gudana.

Daga sauran canje-canjen da suka yi fice:

  • Tsarin hanyar haɗin kai, da kuma masu alaƙa LD_TRACE_PRELINKING da LD_USE_LOAD_BIAS masu canjin yanayi da abubuwan haɗin kai, sun ƙare kuma za a cire su a cikin sakin gaba.
  • Lambar da aka cire don bincika sigar kernel ta Linux kuma a sarrafa LD_ASSUME_KERNEL mai canjin yanayi. Mafi ƙarancin sigar kernel da ake goyan bayan lokacin tattara Glibc ana ƙaddara ta filin ELF NT_GNU_ABI_TAG.
  • An soke canjin yanayin LD_LIBRARY_VERSION akan dandalin Linux.

A ƙarshe, idan kuna sha'awar ƙarin sani game da shi, zaku iya tuntuɓar cikakkun bayanai A cikin mahaɗin mai zuwa.


Abubuwan da ke cikin labarin suna bin ka'idodinmu na ka'idojin edita. Don yin rahoton kuskure danna a nan.

Kasance na farko don yin sharhi

Bar tsokaci

Your email address ba za a buga. Bukata filayen suna alama da *

*

*

  1. Mai alhakin bayanan: Miguel Ángel Gatón
  2. Dalilin bayanan: Gudanar da SPAM, gudanar da sharhi.
  3. Halacci: Yarda da yarda
  4. Sadarwar bayanan: Ba za a sanar da wasu bayanan ga wasu kamfanoni ba sai ta hanyar wajibcin doka.
  5. Ajiye bayanai: Bayanin yanar gizo wanda Occentus Networks (EU) suka dauki nauyi
  6. Hakkoki: A kowane lokaci zaka iyakance, dawo da share bayanan ka.