News for hackers. Stuff that matters.
Re:Ubuntu 17.10 corrupting BIOS of many Lenovo laptop models by julienfr112 on Wednesday December 20, 2017 @11:37AM (#15971085)
How could an OS corrupt a BIOS ? BIOS is in a <strike>higher</strike> lower (see alex_duf comment) level than OS, and then, should no be modified by any program, except maybe by an update program, and only with a firmware signed by lenovo.
Re:Ubuntu 17.10 corrupting BIOS of many Lenovo laptop models by cjhanks on Wednesday December 20, 2017 @01:06PM (#15972087)
This kernel model was written for the explicit purpose of modifying the BIOS[1]. The module writer makes the recommendation of not enabling in KConfig[2]. The question is did Ubuntu enable it by default and if so, why?

[1] https://github.com/torvalds/linux/blob/master/Documentation/...

[2] https://github.com/torvalds/linux/blob/8afda8b26d01ee26a60ef...

Re:Ubuntu 17.10 corrupting BIOS of many Lenovo laptop models by rbanffy on Wednesday December 20, 2017 @11:40AM (#15971121)
I was really going to ask that - it shouldn't even be possible.

I would look at the wonders of UEFI.

Re:Ubuntu 17.10 corrupting BIOS of many Lenovo laptop models by mcny on Wednesday December 20, 2017 @11:52AM (#15971242)
Re:Ubuntu 17.10 corrupting BIOS of many Lenovo laptop models by alex_duf on Wednesday December 20, 2017 @11:55AM (#15971267)
We usually refer to the BIOS as a lower level than the OS.

It's also possible to bridge from a higher level to a lower level, typically when flashing your BIOS, chances are you're doing it from the OS (it's usually possible to do it at a lower level though).

In this case it looks like a kernel module that does exactly that has been enabled before being ready from prime time. Woups.

Re:Ubuntu 17.10 corrupting BIOS of many Lenovo laptop models by 1_2__4 on Wednesday December 20, 2017 @12:02PM (#15971367)
Okay, fine: "Why is a kernel module writing to my BIOS"?
Re:Ubuntu 17.10 corrupting BIOS of many Lenovo laptop models by tambre on Wednesday December 20, 2017 @01:21PM (#15972258)
To update your BIOS. In this case the kernel module doing that was buggy and not ready. The real question is why the module was enabled by Canonical.
Re:Ubuntu 17.10 corrupting BIOS of many Lenovo laptop models by user5994461 on Wednesday December 20, 2017 @06:21PM (#15974820)
Again. Why is a kernel module writing to the BIOS?

The BIOS is not to be messed with by user software or the OS. It should be signed and only changed by the manufacturer tool to update it.

Re:Ubuntu 17.10 corrupting BIOS of many Lenovo laptop models by tambre on Thursday December 21, 2017 @02:02AM (#15976981)
To update the BIOS. That was its express purpose. Note that the kernel module was contributed by the BIOS manufacturer itself.
Re:Ubuntu 17.10 corrupting BIOS of many Lenovo laptop models by Anticapitalist on Thursday December 21, 2017 @10:28PM (#15985058)
Why are you so enamored with giving up control of your hardware to the laptop manufacturer?

From never-fixed bugs in manufacturer's firmware to setting up things to happen on the next boot, there are innumerable reasons to write to the BIOS from a higher level.

Re:Ubuntu 17.10 corrupting BIOS of many Lenovo laptop models by pjc50 on Wednesday December 20, 2017 @03:20PM (#15973410)
The BIOS update process is usually an afterthought held together by string, and appears to the OS as mysterious peripheral. Every now and again some manufacturer releases hardware where Linux simply trying to probe the hardware bricks the machine.
Re:Ubuntu 17.10 corrupting BIOS of many Lenovo laptop models by nikbackm on Wednesday December 20, 2017 @11:46AM (#15971180)
Well, you could at one time brick your computer by by executing an ill-advised "rm -rf" from Linux.

Made the news some years back I think.

Re:Ubuntu 17.10 corrupting BIOS of many Lenovo laptop models by jacquesm on Wednesday December 20, 2017 @02:00PM (#15972616)
Re:Ubuntu 17.10 corrupting BIOS of many Lenovo laptop models by HankB99 on Wednesday December 20, 2017 @06:06PM (#15974709)
I guess this explains why I was not able to boot by USB the other day. I tried out Ubuntu 17.10 on my Y50-70 recently. :(
Re:Ubuntu 17.10 corrupting BIOS of many Lenovo laptop models by gerdesj on Wednesday December 20, 2017 @11:55AM (#15971284)
You can do a similar thing in any OS - delete the vast majority of your file system by running a command as root/administrator and ignoring warnings. FYI rm -rf no longer recurses upwards (. and ..) and hasn't done so for a very, very long time.

This problem is about breaking the BIOS in some way, something that you should not be able to do.

Re:Ubuntu 17.10 corrupting BIOS of many Lenovo laptop models by helper on Wednesday December 20, 2017 @12:06PM (#15971415)
This is in reference to the issue a few years ago where it was easy to wipe EFI vars via /sys, which would happen if you rm -rf / .[1] Wiping the EFI vars would brick your system.

[1]: https://www.phoronix.com/scan.php?page=news_item&px=UEFI-rm-...

Re:Ubuntu 17.10 corrupting BIOS of many Lenovo laptop models by msl on Wednesday December 20, 2017 @12:04PM (#15971395)
You used to be able (maybe still are?) to "rm" the files on a mounted efivarfs. See the relevant systemd issue ([1]).

[1] https://github.com/systemd/systemd/issues/2402

Re:Ubuntu 17.10 corrupting BIOS of many Lenovo laptop models by merb on Wednesday December 20, 2017 @02:48PM (#15973060)
well windows can get write access to these aswell. (just not by using rm or any other tool to remove files by default). I think this is a big difference and should probably be addressed. make /sys read-only and allow to write them differently with a interface where I need to call THIS_METHOD_CAN_BREAK_A_SYSTEM_IF_USED_INCORRECT_WRITE_SYS() command. but well, systemd guys will/won't do that.
Re:Ubuntu 17.10 corrupting BIOS of many Lenovo laptop models by JdeBP on Wednesday December 20, 2017 @03:38PM (#15973577)
It wasn't a systemd thing. The people who relate the tale as if it were a systemd thing or something that the systemd people did are ill-informed. Much as in the case of the headlined bug at hand, it was entirely a kernel thing. This was even stated outright at the time by the creator of that particular kernel mechanism.

To learn the real story, go and read https://news.ycombinator.com/item?id=11152880 where you will find Matthew Garrett xyrself participating in the discussion.

Re:Ubuntu 17.10 corrupting BIOS of many Lenovo laptop models by mjg59 on Wednesday December 20, 2017 @03:30PM (#15973508)
Not any more. Non-spec variables are initially immutable, so can't be removed until you toggle that.
Re:Ubuntu 17.10 corrupting BIOS of many Lenovo laptop models by detaro on Wednesday December 20, 2017 @12:07PM (#15971430)
And which you could do a few years back by rm-ing files from a virtual device that mapped to BIOS configuration.
Re:Ubuntu 17.10 corrupting BIOS of many Lenovo laptop models by darkhorn on Wednesday December 20, 2017 @12:12PM (#15971485)
10 years ago was updating BIOS of my Asus motherboard from my Windows OS, with a .exe program.
Re:Ubuntu 17.10 corrupting BIOS of many Lenovo laptop models by drharby on Wednesday December 20, 2017 @12:17PM (#15971552)
10 years ago was 2007

:(