未加星标

New Linux Kernel 4.8 -- Plus a Kernel-Killing Bug

字体大小 | |
[系统(linux) 所属分类 系统(linux) | 发布者 店小二04 | 时间 2016 | 作者 红领巾 ] 0人收藏点击收藏

After nearly exactly two months, Linus Torvalds released kernel 4.8 into the wild on Sunday, October 2nd. Torvalds dubbed 4.8 Psychotic Stoned Sheep, probably inspired by the news that a flock of woolly ruminants ate some abandoned cannabis and, high as kites, run amok in rural Wales, striking terror into the hearts of the locals.

This has been one of the larger releases, with many patches being sent in before the first release candidate was published. However, Torvalds attributes many of the changes to the switch to a new documentation format -- instead of using the DocBook, documentation must now be submitted in the Sphinx doc format.

But, apart from the shift in documentation formats, there are, of course, a slew of changes to look forward to in this release. And, although Torvalds repeatedly insisted that there was "nothing very scary" in most of his release candidate updates, some of the changes were pretty big.

Take, for example, the new improvements to open source video card drivers: AMD GPUs can now be overclocked using the free AMDGPU driver, and the kernel now supports mode-setting for the new Nvidia Pascal cards via the free Nouveau driver.

Another big change in kernel 4.8 is support for Raspberry Pi 3's BCM2835 SoC . Up until now, linux kernels had to be patched to work on the latest version of the Raspberry Pi. Debian did the patching themselves, hence Raspbian. Now, with support integrated natively into the Linux kernel, any distribution can be made to run on the Pi with rather easily, heavy graphic interfaces notwithstanding.

Maybe a less noticeable change, but that has real-world implications for end users, is the integration of FQ/codel with the mac80211 internal software queues. This may sound very esoteric, but it is the first step to solving a serious WiFi shortcoming that has dogged Linux wireless networks for years.

Known as the ath9k crypto fq bug , the issue is a side effect of the design of the 802.11 protocol and affects most Atheros-based network cards. What happens is this: If a transmitting "station" on the wireless network is slow, say running at 1 Mbps, while the rest transmit at 10 Mbps, the speed on all the network will gradually degrade and slow down to the speed (or lack thereof) of the slowest station. The integration of the FQ/codel with the mac80211 internal software queues is the way forward to finally resolving this problem .

Kernel Killing Bug

... At least that is what should have happened. But on the October 4, Torvalds sent a message to the kernel mailing list warning of a "kernel killing" bug in code submitted by Andrew Morton. Morton was trying to squash a minor bug, but his solution was apparently worse than the issue it was trying to solve. What made the problem catastrophic is that Morton submitted the patch including the dreaded BUG_ON() debugging function. The BUG_ON() function is triggered when something really bad happens in your code and it shuts down the process. Unfortunately, in this case, it also kills the kernel, forcing the machine to reboot.

Torvalds was annoyed with Morton,telling him to " please stop taking those kinds of patches! "However,he was also annoyed with the way the debugging mechanism itself, making him wonderif it was not worth removing " the idiotic BUG_ON() concept once and for all. "

The distros that decide to run with the 4.8 kernel should only do so once the defective code is patched. And, atthe moment of writing, Johannes Weiner is already working on the solution.

Also new in 4.8:

Linux distros decked out with the 4.8 kernel will now play well with Microsoft's Surface 3 touch-screen , as well as with the Pegasus Notetaker tablet .

The popular ext4 filesystem now uses the generic fs/crypto code for encrypting files and directories instead of its own custom code.

XFS, the high-performance file system created by Silicon Graphics, Inc., gets an iomap-based block mapping infrastructure, buffer error handling fixes, Direct IO and DAX code changes, buffer cache fixes, error injection cleanups, full support for sparse inode chunks , and a variety of other enhancements.

Michael Larabel at Phoronix has an extensive breakdown of all that's new in 4.8 .

本文系统(linux)相关术语:linux系统 鸟哥的linux私房菜 linux命令大全 linux操作系统

主题: LinuxRaspberry PiAMDDebianSphinxInc.SoCWiFi
分页:12
转载请注明
本文标题:New Linux Kernel 4.8 -- Plus a Kernel-Killing Bug
本站链接:http://www.codesec.net/view/479876.html
分享请点击:


1.凡CodeSecTeam转载的文章,均出自其它媒体或其他官网介绍,目的在于传递更多的信息,并不代表本站赞同其观点和其真实性负责;
2.转载的文章仅代表原创作者观点,与本站无关。其原创性以及文中陈述文字和内容未经本站证实,本站对该文以及其中全部或者部分内容、文字的真实性、完整性、及时性,不作出任何保证或承若;
3.如本站转载稿涉及版权等问题,请作者及时联系本站,我们会及时处理。
登录后可拥有收藏文章、关注作者等权限...
技术大类 技术大类 | 系统(linux) | 评论(0) | 阅读(56)