[raspberry-vi] Linux kernel 4.18 delayed: Bug ate my rc7, says Linus Torvalds • The Register

  • From: Angus MacKinnon <thedogtoy@xxxxxxxxx>
  • To: raspberry-vi@xxxxxxxxxxxxx
  • Date: Wed, 1 Aug 2018 16:18:44 -0700


https://www.theregister.co.uk/2018/08/01/linux_kernel_418_delayed_bug_eats_rc7/
 
<https://www.theregister.co.uk/2018/08/01/linux_kernel_418_delayed_bug_eats_rc7/>

Linux kernel 4.18 delayed: Bug ate my rc7, says Linus Torvalds

Kernel broken, so Penguinista-in-Chief reverted 4.18-rc7

By Richard Chirgwin </Author/Richard-Chirgwin> 1 Aug 2018 at 07:04
Linux kernel supremo Linus Torvalds has taken the rare step of reverting a 
kernel release candidate â€“ after it went sour.

All looked sunny enough on Sunday evening, when he set Linux 4.18-rc7 free to 
roam <https://lkml.org/lkml/2018/7/29/268>: â€œUnless something odd happens, 
this should be the last rc for 4.18,” the chief penguinista wrote. 
Something odd did, indeed, happen, and after nearly two days of discussion on 
the Linux Kernel Mailing List, Torvalds made the decision to revert 
<https://lkml.org/lkml/2018/7/31/787>:

I think I'll do an rc8 with the revert, just so that we'll have some time to 
figure this out. It's only Tuesday, but I already have 90 commits since rc7, 
so this isn't the only issue we're having.

I _prefer_ just the regular cadence of releases, but when I have a reason to 
delay, I'll delay.

El Reg took a backwards walk through the mailing list to work out what went 
wrong â€“ or rather, what primarily went wrong, since there are so many 
commits since the previous release candidate.

One large headache involves ashmem, an application-level virtual memory area 
type introduced to the Linux kernel to solve a problem arising from Android's 
security paranoia.

Android lacks a writable tmpfs temporarily file system, to prevent malicious 
applications doing naughty or messy stuff in /tmp, so ashmem was created to 
let apps <https://lwn.net/Articles/473080/> â€œobtain memory that can be 
shared with peer processes without creating resource leaks.” In other 
words, ashmem can be used by programs to share information without having to 
go through a temporary file system, and only when there is no big pressure 
for free memory.

Then it emerged <https://lkml.org/lkml/2018/7/30/68> that the open-source 
<https://source.android.com/> flavor of Android would suffer a â€œuserspace 
crash with v4.18-rc7”, and not on rc6, due to changes to the memory 
management code involving vma_is_anonymous(). Removing vma->vm_ops = 
&dummy_vm_ops from vma_init() stopped the crashes.

That confirmation led to this longish post 
<https://lkml.org/lkml/2018/7/30/715> from Torvalds, in which he considered 
pulling rc7. Here's the key part of Torvalds' thinking:

Honestly, by now we just need to revert that commit.

It's not even clear that it was a good idea to begin with. The rest of the 
commits were cleanups, this one was driven by a incorrect VM_BUG_ON() that 
triggered, and that checked "vma_is_anonymous(vma)" without any explanations 
of wht it should matter.

I think the biggest problem with vma_is_anonymous() may be its name, not what 
it does.

What the code historically *did* (and what vma_is_anonymous() checks) is not 
"is this anonymous", but rather "does this have any special operations 
associated with it".

In the end, it wasn't just this vma_is_anonymous() issue giving Linus cause 
to pause, and so now there's going to be another release candidate before 
Linux 4.18 lands. Â®

=========================================================== 
The raspberry-vi mailing list 
Archives: //www.freelists.org/archives/raspberry-vi
Administrative contact: <mike.ray@xxxxxxxxxxxxxx>
-----------------------------------------------------------
Raspberry Pi and the Raspberry Pi logo are trademarks of the Raspberry Pi 
Foundation.

This list is not affiliated to the Raspberry Pi Foundation and the views and 
attitudes expressed by the subscribers to this list do not reflect those of the 
Foundation.

Mike Ray, list creator, January 2013

Other related posts:

  • » [raspberry-vi] Linux kernel 4.18 delayed: Bug ate my rc7, says Linus Torvalds • The Register - Angus MacKinnon