知行编程网知行编程网  2022-06-23 09:00 知行编程网 隐藏边栏 |   抢沙发  8 
文章评分 0 次,平均分 0.0
晓查 发自 凹非寺 
量子位 报道 | QbitAI

在美国的大雪天气影响下,Linux之父Linus Torvalds的家经历了6天断电,但他还是2月底赶出了5.12-rc1内核。

Linux之父警告全球程序员:我刚发布的5.12内核有bug,你们千万别用

然而,事情不到一周却发生了转折。

Linus本周给Linux内核邮件组的发去了一封警告邮件:我刚发布的5.12-rc1内核你们千万别用!

你们中的某些人可能已经注意到,在我的公共git树中,“ v5.12-rc1”标记已经神奇地重命名为“ v5.12-rc1-dontuse”。

Linus之所以用“不要使用”(dontuse)来标记这些代码,是因为可能破坏交换文件(swapfile)的处理。具体来说,更新后的代码会丢失指向交换文件开头的适当偏移量,可能导致灾难性的后果。

Linux之父警告全球程序员:我刚发布的5.12内核有bug,你们千万别用

当发生此错误时,系统不仅会覆盖现有文件中的数据,还会覆盖大量的元数据,这些元数据的损坏可能会导致整个文件系统无法安装和使用。

如果你根本不使用交换文件,那么这个问题不会造成任何伤害。因为许多Linux发行版仍然默认交换分区,而不是交换文件。

但是,应用最广的发行版Ubuntu默认使用交换文件。如果你是Ubuntu或以Ubuntu为基础的发行版(如Mint)用户,那么这个错误可能会破坏你整个根文件系统。

昨天,Linus已经发布了5.12-rc2,修复了这个错误。

Linux之父警告全球程序员:我刚发布的5.12内核有bug,你们千万别用

不过,对Linux用户来说,还是不要轻易使用未经充分测试的rc版代码。这类早期发布的内核版本可能会带来非常严重的bug,并不适合部署到生产中。

参考链接:

https://arstechnica.com/gadgets/2021/03/psa-linux-folks-stay-away-from-the-5-12-rc1-kernel/



近期热门文章


  • 30 行代码实现蚂蚁森林自动收能量(附送源码)

  • Linux 最常用命令:简单易学,但能解决 95% 以上的问题

  • 2021了,最流行的密码依旧是123456

  • 真香!用VS Code直接浏览GitHub代码 !

  • 从万众期待到口碑扑街!唐探3令人失望,用Python来分析一下大家的评论

  • 用Python分析了某大学2000千条表白墙,甜到发腻,原来脱单的秘密是……

  • 值得收藏!20个Python奇技淫巧,让你受益匪浅!

  • 这款IDEA插件刷爆了朋友圈,网友:这用起来有点酸爽~

  • 央视最美记者王冰冰火爆B站,单个视频1800万播放,都说了啥?

<p data-darkmode-bgcolor-16072664870629="rgb(25, 25, 25)" data-darkmode-original-bgcolor-16072664870629="rgb(255, 255, 255)" data-darkmode-color-16072664870629="rgba(163, 163, 163, 0.9)" data-darkmode-original-color-16072664870629="rgba(230, 230, 230, 0.9)" data-darkmode-bgcolor-16073544711184="rgb(25, 25, 25)" data-darkmode-original-bgcolor-16073544711184="rgb(255, 255, 255)" data-darkmode-color-16073544711184="rgba(163, 163, 163, 0.9)" data-darkmode-original-color-16073544711184="rgba(230, 230, 230, 0.9)" data-darkmode-bgcolor-16114842087086="rgb(25, 25, 25)" data-darkmode-original-bgcolor-16114842087086="#fff|rgb(255, 255, 255)" data-darkmode-color-16114842087086="rgba(163, 163, 163, 0.9)" data-darkmode-original-color-16114842087086="#fff|rgba(230, 230, 230, 0.9)" style="max-width: 100%;min-height: 1em;box-sizing: border-box !important;overflow-wrap: break-word !important;"><br style="max-width: 100%;box-sizing: border-box !important;overflow-wrap: break-word !important;"  /></p><ul class="list-paddingleft-2" data-darkmode-bgcolor-16072664870629="rgb(25, 25, 25)" data-darkmode-original-bgcolor-16072664870629="rgb(255, 255, 255)" data-darkmode-color-16072664870629="rgba(163, 163, 163, 0.9)" data-darkmode-original-color-16072664870629="rgba(230, 230, 230, 0.9)" data-darkmode-bgcolor-16073544711184="rgb(25, 25, 25)" data-darkmode-original-bgcolor-16073544711184="rgb(255, 255, 255)" data-darkmode-color-16073544711184="rgba(163, 163, 163, 0.9)" data-darkmode-original-color-16073544711184="rgba(230, 230, 230, 0.9)" data-darkmode-bgcolor-16114842087086="rgb(25, 25, 25)" data-darkmode-original-bgcolor-16114842087086="#fff|rgb(255, 255, 255)" data-darkmode-color-16114842087086="rgba(163, 163, 163, 0.9)" data-darkmode-original-color-16114842087086="#fff|rgba(230, 230, 230, 0.9)" style="max-width: 100%;overflow-wrap: break-word !important;"><section data-tools="135编辑器" data-id="94250" data-darkmode-bgcolor-16072664870629="rgb(25, 25, 25)" data-darkmode-original-bgcolor-16072664870629="rgb(255, 255, 255)" data-darkmode-color-16072664870629="rgba(163, 163, 163, 0.9)" data-darkmode-original-color-16072664870629="rgba(230, 230, 230, 0.9)" data-darkmode-bgcolor-16073544711184="rgb(25, 25, 25)" data-darkmode-original-bgcolor-16073544711184="rgb(255, 255, 255)" data-darkmode-color-16073544711184="rgba(163, 163, 163, 0.9)" data-darkmode-original-color-16073544711184="rgba(230, 230, 230, 0.9)" data-darkmode-bgcolor-16114842087086="rgb(25, 25, 25)" data-darkmode-original-bgcolor-16114842087086="#fff|rgb(255, 255, 255)" data-darkmode-color-16114842087086="rgba(163, 163, 163, 0.9)" data-darkmode-original-color-16114842087086="#fff|rgba(230, 230, 230, 0.9)" style="max-width: 100%;font-variant-numeric: normal;font-variant-east-asian: normal;letter-spacing: 0.544px;line-height: 27.2px;border-width: 0px;border-style: none;border-color: initial;box-sizing: border-box !important;overflow-wrap: break-word !important;"><section data-tools="135编辑器" data-id="94250" data-darkmode-bgcolor-16072664870629="rgb(25, 25, 25)" data-darkmode-original-bgcolor-16072664870629="rgb(255, 255, 255)" data-darkmode-color-16072664870629="rgba(163, 163, 163, 0.9)" data-darkmode-original-color-16072664870629="rgba(230, 230, 230, 0.9)" data-darkmode-bgcolor-16073544711184="rgb(25, 25, 25)" data-darkmode-original-bgcolor-16073544711184="rgb(255, 255, 255)" data-darkmode-color-16073544711184="rgba(163, 163, 163, 0.9)" data-darkmode-original-color-16073544711184="rgba(230, 230, 230, 0.9)" data-darkmode-bgcolor-16114842087086="rgb(25, 25, 25)" data-darkmode-original-bgcolor-16114842087086="#fff|rgb(255, 255, 255)" data-darkmode-color-16114842087086="rgba(163, 163, 163, 0.9)" data-darkmode-original-color-16114842087086="#fff|rgba(230, 230, 230, 0.9)" style="max-width: 100%;letter-spacing: 0.544px;border-width: 0px;border-style: none;border-color: initial;box-sizing: border-box !important;overflow-wrap: break-word !important;"><section data-tools="135编辑器" data-id="94250" data-darkmode-bgcolor-16072664870629="rgb(25, 25, 25)" data-darkmode-original-bgcolor-16072664870629="rgb(255, 255, 255)" data-darkmode-color-16072664870629="rgba(163, 163, 163, 0.9)" data-darkmode-original-color-16072664870629="rgba(230, 230, 230, 0.9)" data-darkmode-bgcolor-16073544711184="rgb(25, 25, 25)" data-darkmode-original-bgcolor-16073544711184="rgb(255, 255, 255)" data-darkmode-color-16073544711184="rgba(163, 163, 163, 0.9)" data-darkmode-original-color-16073544711184="rgba(230, 230, 230, 0.9)" data-darkmode-bgcolor-16114842087086="rgb(25, 25, 25)" data-darkmode-original-bgcolor-16114842087086="#fff|rgb(255, 255, 255)" data-darkmode-color-16114842087086="rgba(163, 163, 163, 0.9)" data-darkmode-original-color-16114842087086="#fff|rgba(230, 230, 230, 0.9)" style="max-width: 100%;letter-spacing: 0.544px;border-width: 0px;border-style: none;border-color: initial;box-sizing: border-box !important;overflow-wrap: break-word !important;"><section data-darkmode-bgcolor-16072664870629="rgb(25, 25, 25)" data-darkmode-original-bgcolor-16072664870629="rgb(255, 255, 255)" data-darkmode-color-16072664870629="rgba(163, 163, 163, 0.9)" data-darkmode-original-color-16072664870629="rgba(230, 230, 230, 0.9)" data-darkmode-bgcolor-16073544711184="rgb(25, 25, 25)" data-darkmode-original-bgcolor-16073544711184="rgb(255, 255, 255)" data-darkmode-color-16073544711184="rgba(163, 163, 163, 0.9)" data-darkmode-original-color-16073544711184="rgba(230, 230, 230, 0.9)" data-darkmode-bgcolor-16114842087086="rgb(25, 25, 25)" data-darkmode-original-bgcolor-16114842087086="#fff|rgb(255, 255, 255)" data-darkmode-color-16114842087086="rgba(163, 163, 163, 0.9)" data-darkmode-original-color-16114842087086="#fff|rgba(230, 230, 230, 0.9)" style="max-width: 100%;border-width: 0px;border-style: none;border-color: initial;text-align: right;line-height: 1.75em;box-sizing: border-box !important;overflow-wrap: break-word !important;"><section data-darkmode-bgcolor-16072664870629="rgb(25, 25, 25)" data-darkmode-original-bgcolor-16072664870629="rgb(255, 255, 255)" data-darkmode-color-16072664870629="rgba(163, 163, 163, 0.9)" data-darkmode-original-color-16072664870629="rgba(230, 230, 230, 0.9)" data-darkmode-bgcolor-16073544711184="rgb(25, 25, 25)" data-darkmode-original-bgcolor-16073544711184="rgb(255, 255, 255)" data-darkmode-color-16073544711184="rgba(163, 163, 163, 0.9)" data-darkmode-original-color-16073544711184="rgba(230, 230, 230, 0.9)" data-darkmode-bgcolor-16114842087086="rgb(25, 25, 25)" data-darkmode-original-bgcolor-16114842087086="#fff|rgb(255, 255, 255)" data-darkmode-color-16114842087086="rgba(163, 163, 163, 0.9)" data-darkmode-original-color-16114842087086="#fff|rgba(230, 230, 230, 0.9)" style="max-width: 100%;display: inline-block;clear: both;box-sizing: border-box !important;overflow-wrap: break-word !important;"><section data-brushtype="text" data-darkmode-bgimage="1" data-style="padding: 18px 15px 20px 10px; background-size: 100% 100%; background-image: url('https://www.zkxjob.com/wp-content/uploads/2022/06/wxsync-2022-06-a2a8a5e1e58f30392066a170034ee027.png'); color: rgb(86, 146, 214); text-align: center; letter-spacing: 1.5px; background-repeat: no-repeat;" data-darkmode-bgcolor-16072664870629="rgb(25, 25, 25)" data-darkmode-original-bgcolor-16072664870629="rgb(255, 255, 255)" data-darkmode-color-16072664870629="rgba(163, 163, 163, 0.9)" data-darkmode-original-color-16072664870629="rgba(230, 230, 230, 0.9)" data-darkmode-bgimage-16072664870629="1" data-darkmode-bgcolor-16073544711184="rgb(25, 25, 25)" data-darkmode-original-bgcolor-16073544711184="rgb(255, 255, 255)" data-darkmode-color-16073544711184="rgba(163, 163, 163, 0.9)" data-darkmode-original-color-16073544711184="rgba(230, 230, 230, 0.9)" data-darkmode-bgimage-16073544711184="1" data-darkmode-bgcolor-16114842087086="rgb(25, 25, 25)" data-darkmode-original-bgcolor-16114842087086="#fff|rgb(255, 255, 255)" data-darkmode-color-16114842087086="rgb(86, 146, 214)" data-darkmode-original-color-16114842087086="#fff|rgba(230, 230, 230, 0.9)|rgb(86, 146, 214)" data-darkmode-bgimage-16114842087086="1" style="padding: 18px 15px 20px 10px;max-width: 100%;background-size: 100% 100%;background-image: url('https://www.zkxjob.com/wp-content/uploads/2022/06/wxsync-2022-06-a2a8a5e1e58f30392066a170034ee027.png');color: rgb(86, 146, 214);text-align: center;letter-spacing: 1.5px;background-repeat: no-repeat;box-sizing: border-box !important;overflow-wrap: break-word !important;"><section data-darkmode-bgimage="1" data-darkmode-bgcolor-16072664870629="rgb(25, 25, 25)" data-darkmode-original-bgcolor-16072664870629="rgb(255, 255, 255)" data-darkmode-color-16072664870629="rgba(163, 163, 163, 0.9)" data-darkmode-original-color-16072664870629="rgba(230, 230, 230, 0.9)" data-darkmode-bgimage-16072664870629="1" data-darkmode-bgcolor-16073544711184="rgb(25, 25, 25)" data-darkmode-original-bgcolor-16073544711184="rgb(255, 255, 255)" data-darkmode-color-16073544711184="rgba(163, 163, 163, 0.9)" data-darkmode-original-color-16073544711184="rgba(230, 230, 230, 0.9)" data-darkmode-bgimage-16073544711184="1" data-darkmode-bgcolor-16114842087086="rgb(25, 25, 25)" data-darkmode-original-bgcolor-16114842087086="#fff|rgb(255, 255, 255)" data-darkmode-color-16114842087086="rgb(86, 146, 214)" data-darkmode-original-color-16114842087086="#fff|rgba(230, 230, 230, 0.9)|rgb(86, 146, 214)" data-darkmode-bgimage-16114842087086="1" style="max-width: 100%;display: flex;justify-content: center;align-items: center;box-sizing: border-box !important;overflow-wrap: break-word !important;"><section data-darkmode-bgimage="1" data-darkmode-bgcolor-16072664870629="rgb(25, 25, 25)" data-darkmode-original-bgcolor-16072664870629="rgb(255, 255, 255)" data-darkmode-color-16072664870629="rgba(163, 163, 163, 0.9)" data-darkmode-original-color-16072664870629="rgba(230, 230, 230, 0.9)" data-darkmode-bgimage-16072664870629="1" data-darkmode-bgcolor-16073544711184="rgb(25, 25, 25)" data-darkmode-original-bgcolor-16073544711184="rgb(255, 255, 255)" data-darkmode-color-16073544711184="rgba(163, 163, 163, 0.9)" data-darkmode-original-color-16073544711184="rgba(230, 230, 230, 0.9)" data-darkmode-bgimage-16073544711184="1" data-darkmode-bgcolor-16114842087086="rgb(25, 25, 25)" data-darkmode-original-bgcolor-16114842087086="#fff|rgb(255, 255, 255)" data-darkmode-color-16114842087086="rgb(86, 146, 214)" data-darkmode-original-color-16114842087086="#fff|rgba(230, 230, 230, 0.9)|rgb(86, 146, 214)" data-darkmode-bgimage-16114842087086="1" style="margin-left: 2px;max-width: 100%;width: 20px;box-sizing: border-box !important;overflow-wrap: break-word !important;"></section><p data-darkmode-bgimage="1" data-darkmode-bgcolor-16072664870629="rgb(25, 25, 25)" data-darkmode-original-bgcolor-16072664870629="rgb(255, 255, 255)" data-darkmode-color-16072664870629="rgb(51, 51, 51)" data-darkmode-original-color-16072664870629="rgb(51, 51, 51)" data-darkmode-bgimage-16072664870629="1" data-darkmode-bgcolor-16073544711184="rgb(25, 25, 25)" data-darkmode-original-bgcolor-16073544711184="rgb(255, 255, 255)" data-darkmode-color-16073544711184="rgb(51, 51, 51)" data-darkmode-original-color-16073544711184="rgb(51, 51, 51)" data-darkmode-bgimage-16073544711184="1" data-darkmode-bgcolor-16114842087086="rgb(25, 25, 25)" data-darkmode-original-bgcolor-16114842087086="#fff|rgb(255, 255, 255)" data-darkmode-color-16114842087086="rgb(51, 51, 51)" data-darkmode-original-color-16114842087086="#fff|rgba(230, 230, 230, 0.9)|rgb(86, 146, 214)|rgb(51, 51, 51)" data-darkmode-bgimage-16114842087086="1" style="max-width: 100%;min-height: 1em;font-size: 14px;color: rgb(51, 51, 51);text-align: right;line-height: 1.5em;box-sizing: border-box !important;overflow-wrap: break-word !important;"><span data-darkmode-bgimage="1" data-darkmode-bgcolor-16072664870629="rgb(25, 25, 25)" data-darkmode-original-bgcolor-16072664870629="rgb(255, 255, 255)" data-darkmode-color-16072664870629="rgb(51, 51, 51)" data-darkmode-original-color-16072664870629="rgb(51, 51, 51)" data-darkmode-bgimage-16072664870629="1" data-darkmode-bgcolor-16073544711184="rgb(25, 25, 25)" data-darkmode-original-bgcolor-16073544711184="rgb(255, 255, 255)" data-darkmode-color-16073544711184="rgb(51, 51, 51)" data-darkmode-original-color-16073544711184="rgb(51, 51, 51)" data-darkmode-bgimage-16073544711184="1" data-darkmode-bgcolor-16114842087086="rgb(25, 25, 25)" data-darkmode-original-bgcolor-16114842087086="#fff|rgb(255, 255, 255)" data-darkmode-color-16114842087086="rgb(51, 51, 51)" data-darkmode-original-color-16114842087086="#fff|rgba(230, 230, 230, 0.9)|rgb(86, 146, 214)|rgb(51, 51, 51)" data-darkmode-bgimage-16114842087086="1" style="max-width: 100%;font-family: 楷体, 楷体_GB2312, SimKai;letter-spacing: 0.5px;box-sizing: border-box !important;overflow-wrap: break-word !important;">你点的每个“在看”,我都认真当成了AI</span></p></section></section></section></section></section></section></section></ul>

本篇文章来源于: 菜鸟学Python

本文为原创文章,版权归所有,欢迎分享本文,转载请保留出处!

知行编程网
知行编程网 关注:1    粉丝:1
这个人很懒,什么都没写

发表评论

表情 格式 链接 私密 签到
扫一扫二维码分享