Feeds

How to survive a UEFI BOOT-OF-DEATH on Samsung laptops

Matthew Garrett reveals the software surgery needed

Mobile application security vulnerability report

Former Red Hatter Matthew Garrett, who cleared Linux's name when the open-source kernel appeared to cause shiny new Samsung laptops to destroy themselves, has offered a survival guide to avoid similar catastrophes.

Nebula programmer Garrett this week warned that Samsung laptops may brick themselves if the computer's UEFI firmware variable storage space is more than 50 per cent full.

The firmware is the first thing that executes when the computer is switched on; its job is to power up the hardware and start the operating system, be it a Linux distro, Windows, Mac OS X, BSD or alternatives. But if the Samsung UEFI firmware's variable storage is less than half empty, apparently the machine will end up refusing to start. The trigger? “Writing a crash dump to the NVRAM [non-volatile random access memory],” Garrett said.

Linux was initially solely blamed for causing the meltdown - simply booting Ubuntu Linux from a USB stick seemed to provoke the flaw - but Garrett was able to demonstrate that even an application running on Microsoft Windows could wreck a machine.

When the Linux kernel triggers an exception (such as a hardware driver poking the wrong bit of memory), it writes diagnostic data to the UEFI firmware's variable storage space. According to Garrett, if this area becomes more than 50 per cent full, the Samsung laptop may refuse to start-up. The UEFI specification states this sort of failure shouldn't happen.

Garrett’s advice is to make sure you’ve got plenty of space in the machine’s protected storage area to avoid being bitten by the boot bug on Linux. He also submitted a patch to the kernel source code to ensure Linux does not use more than 50 per cent of the UEFI firmware's flash memory. Users can either make sure they're using the most up-to-date kernel, boot the machine in plain-old BIOS mode, or try the following:

Next time you get a system crash that doesn't make it to system logs, mount pstore again and (with luck) there'll be a bunch of files there. For tedious reasons these need to be assembled in reverse order (part 12 comes before part 11, and so on) but you should have a crash log. Report that, delete the files again and marvel at the benefits that technology has brought to your life.

Rebooting is needed so the firmware can perform garbage collection, effectively cleaning up unused memory. Some firmware builds require two reboot cycles to work properly, Garrett noted. There have been noises that a software update is coming from Samsung.

Reports first surfaced in January that Sammy laptops were being permanently bricked by accident. The machines affected, we're told, are the 300E5C, NP700Z5C, NP700Z7C and 530U3C models. ®

The Essential Guide to IT Transformation

More from The Register

next story
NO MORE ALL CAPS and other pleasures of Visual Studio 14
Unpicking a packed preview that breaks down ASP.NET
Cheer up, Nokia fans. It can start making mobes again in 18 months
The real winner of the Nokia sale is *drumroll* ... Nokia
DARPA-derived secure microkernel goes open source tomorrow
Hacker-repelling, drone-protecting code will soon be yours to tweak as you see fit
Put down that Oracle database patch: It could cost $23,000 per CPU
On-by-default INMEMORY tech a boon for developers ... as long as they can afford it
Google shows off new Chrome OS look
Athena springs full-grown from Chromium project's head
Apple: We'll unleash OS X Yosemite beta on the MASSES on 24 July
Starting today, regular fanbois will be guinea pigs, it tells Reg
HIDDEN packet sniffer spy tech in MILLIONS of iPhones, iPads – expert
Don't panic though – Apple's backdoor is not wide open to all, guru tells us
prev story

Whitepapers

Designing a Defense for Mobile Applications
Learn about the various considerations for defending mobile applications - from the application architecture itself to the myriad testing technologies.
Implementing global e-invoicing with guaranteed legal certainty
Explaining the role local tax compliance plays in successful supply chain management and e-business and how leading global brands are addressing this.
Top 8 considerations to enable and simplify mobility
In this whitepaper learn how to successfully add mobile capabilities simply and cost effectively.
Seven Steps to Software Security
Seven practical steps you can begin to take today to secure your applications and prevent the damages a successful cyber-attack can cause.
Boost IT visibility and business value
How building a great service catalog relieves pressure points and demonstrates the value of IT service management.