Matthew Garrett: UEFI and bugs
I gave a presentation on UEFI at LCA 2012 - you can watch it here, with the bonus repeat (and different jokes) here. It's a gentle introduction to UEFI, followed by some discussion of the problems we've faced in dealing with implementation bugs.The fundamental problem is that UEFI is a lot of code. And I really do mean a lot of code. Ignoring drivers, the x86 Linux kernel is around 30MB of code. A comparable subset of the UEFI tree is around 35MB. UEFI is of a comparable degree of complexity to the Linux kernel. There's no reason to assume that the people who've actually written this code are significantly more or less competent than an average Linux developer, so all else being equal we'd probably expect somewhere around the same number of bugs per line. Of course, not all else is equal.
Even today, basically all hardware is shipping with BIOS by default. The only people to enable UEFI are enthusiasts. Various machines will pop up all kinds of dire warnings if you try to turn it on. UEFI has had very little real world testing. And it really does show. In the few months I've been working on UEFI I've discovered machines where SetVirtualAddressMap() calls code that has already been (per spec) discarded. I've seen cases where it was possible to create variables, but not to delete them. I've seen a machine that would irreparably corrupt its firmware when you tried to set a variable. I've tripped over code that fails to parse invalid boot variables, bricking the hardware. Many vendors independently fail to report the correct framebuffer stride. And those are just the ones that have ended up on hardware which crosses my desk, which means I haven't even tested the majority of consumer-grade hardware with UEFI.
The problems with UEFI have very little to do with its design or the ability of the people implementing it. After a few years of iterative improvements it stands a good chance of being more reliable and useful than BIOS. Increased commonality of code between vendors is a blessing and a curse - in the long term it means that these bugs can be shaken out, but in the short term it means that at least one hardware-destroying bug has ended up carried by multiple vendors. Right now we're still in the short term and it's likely that we'll find yet more UEFI bugs that cause all sorts of problems. The next few years will probably be a bumpy ride.
Adam sent a new
For my day job I build storage systems. A lot of what I do at present
involves caring a lot about how different OSes deal with things like new
LUNs being presented from a SCSI target, or errors along a subset of the
available paths to a device.
It will come as no surprise to you to discover that they all suck (for
values of all equal to Linux, Solaris, Windows and VMWare). New LUNs are
particularly annoying. I'm in the situation that creation and removal of
a LUN is exceptionally easy.
Hmmm. Maybe I need to back up here a bit first. SCSI has the concept of
a target (think, device, eg hard drive). Each target can present
multiple logical units. Each of these is assigned a number - a Logical
Unit Number. Most devices (a hard drive, or a CDROM drive) will present
a single LUN. A storage array will tend to present multiple LUNs; one
for each volume that is exported to the host. At the host level each LUN
really just looks like a separate device (for Linux /dev/sda and
/dev/sdb may well be separate LUNs on the same array, rather than 2
separate arrays/hard drives, for example. At the block device level you
don't care about the difference usually).
Anyway. For various reasons I end up adding and removing LUNs quite
often. And there are ways for the array to indicate that this has
happened to the host (the UNIT ATTENTION/REPORT LUNS DATA CHANGED check
condition seems to be favoured these days, as a complete Fibre Channel
LIP can be disruptive). What I'd like to happen in that case is the host
to pick up the check condition and drop and/or add the devices that have
changed. Instead everything wants a manual rescan.
Somebody bought The Crying Tree by Naseem Rakha for Sarah as a present
and she asked me to read it so we could talk about it, so I did.
It's a novel about a family tragedy, Southern-state U.S.A. and the death
penalty. A little boy is shot dead, a man is arrested for the crime and
faces the death penalty. The book chronicles what happens to the family
and to the killer during the 19 years or so that passes before the
execution takes place.
The book could be accused of having an anti-capital punishment agenda, but I
have no problem with that. At least until about half-way through the book, the
plot and happenings follow the synopsis with little in the way of surprise,
but then there's a twist.
I felt that the twist diminished the message of the book. Without trying to
spoil what happens, I felt that you didn't need the core details of the story
to be varied or expanded upon or U-turned to push that agenda. In my opinion,
it's perfectly possible for someone to construct a story about a killer who
faces death, who was unambiguously guilty of the crime they are charged with,
and still leave the reader feeling remorse for the killer, and questioning
the justice meted out. In fact I thought Rakha was doing a fine job of just
that.
However, a twist (or twists) occur, and the facts are called into question, and
so you ask even further questions about the practise of killing criminals, in
my view redundantly.
It's a good book and worth a read, regardless of what your position is on the
issue. It does a great job of describing the unbearable pain of losing a
child, but also of the power of forgiveness for the victims.
![[pic]](http://jmtd.net/log/./bugs/240x80-nautilus.png)
Today, six months have passed since the massacre I survived at Ut ya. It strangely feels simultaneously as if it happened ages ago, and as if it happened yesterday. I will write a longer post at some point, to try to sum up some thoughts, feelings and reflections I have made in the aftermath. But this post is actually intended to be somewhat, albeit weirdly, cheerful because today, of all dates, I was given a link to a web album by the Police where they post photographs of items they have recovered and cleared for re-release. And I got a kick out of this. Check it out!

Hard to believe I've consumed all of 1981's Usenet posts now on

Reading the TCP-IP digest, and Postel's plans for launching IPv4 soon,
while the
Still 9 years to go!
I really should write these a
So the site http://megaupload.com/ has been taken offline, amidst allegations of knowingly conducting in piracy.
There are probably a lot of legitimate users who have lost access to their uploaded files, even if they were offsite backups you can imagine a user owning a website which now has a million dead-links.
This reminds me of
There s been a lot of weather here in Seattle this week. It looks like the Tukwila DC s power blipped this morning. It gave me an excuse to update some configs on a few of the
Kim Jong-Il is gone. That said, he continues to
I'll be in Great Britain next week. I'll come to the 



As sort of new year's resolution I started picking up the habit to work on release critical bugreports for squeeze again. The number is way to high to be healthy, but at least it is (still) below the amount of release critical bugreports for unstable.
It will be an uneven fight because it seems that there are quite some people working on weeding out release critical bugreports in unstable, but those who are interested in weeding out releasing critical bugreports in stable seems to be limited, even though it is one of our supported releases and thus should receive quite some attention, at least by the corresponding package maintainers themself.
So here is the list that I managed so far:
Like
Once again, lawmakers are considering