News for hackers. Stuff that matters.
Re:OpenBSD disables Heartbeat in libssl, questions IETF by 0x0 on Thursday April 10, 2014 @04:39PM (#7569544)
That's almost too funny.

Edit: Does that last "ok" line mean that two other committers reviewed and OK'ed this patch as well? Three openbsd committers approved a one-line change that didn't fix a single thing? (And people wonder how the OpenSSL bug could live on for two years =) )

Re:OpenBSD disables Heartbeat in libssl, questions IETF by emaste on Thursday April 10, 2014 @04:45PM (#7569592)
Re:OpenBSD disables Heartbeat in libssl, questions IETF by opendais on Thursday April 10, 2014 @05:10PM (#7569742)
It is but we should have a dose of humility in mocking them since many, many people [including everyone on this site that is a dev] make stupid mistakes from time to time. Such is the nature of the profession. None of us commit perfect code the first time, every time.
Re:OpenBSD disables Heartbeat in libssl, questions IETF by 0x0 on Thursday April 10, 2014 @05:18PM (#7569794)
Re:OpenBSD disables Heartbeat in libssl, questions IETF by IgorPartola on Thursday April 10, 2014 @06:44PM (#7570184)
Wha-what? That's pretty crazy. At the very least, if OpenSSL goes through this trouble, why doesn't it just implement its own malloc and friends that are both fast and secure? In fact, shouldn't it include something like scurb_and_free() so that sensitive bits would actually be erased when not needed. That seems like a much better solution than the approach described in this link.
Re:OpenBSD disables Heartbeat in libssl, questions IETF by dgl on Thursday April 10, 2014 @08:46PM (#7570617)
It gets worse, see http://www.tedunangst.com/flak/post/analysis-of-openssl-free...

Essentially the code mistakenly relies on the freelist being LIFO and not being scrubbed.

Re:OpenBSD disables Heartbeat in libssl, questions IETF by TwoBit on Thursday April 10, 2014 @11:09PM (#7571053)
Whoever said that OpenSSL was written by monkeys continues to be proven right.
Re:OpenBSD disables Heartbeat in libssl, questions IETF by davidw on Friday April 11, 2014 @04:05AM (#7571712)
That's a fairly rude thing to say. Would you say that to their faces? This is a pretty large site, and a lot of people stop by here, possibly including some of the "monkeys" .

By all means, call the code what you want, but separate that from the people.

Re:OpenBSD disables Heartbeat in libssl, questions IETF by SimHacker on Friday April 11, 2014 @04:26PM (#7575390)
Well Ted Nugent (not to mention Ann Coulter) got away with calling Obama a "monkey," and he's the highly respected darling of the GOP, whose endorsement is sought after and appreciated by not only Republican senators and congressmen, but Mitt Romney himself.

(I'm not endorsing anyone's behavior here, just pointing out how low the right hand side of modern American politics has degenerated, to provide some perspective.)

Re:OpenBSD disables Heartbeat in libssl, questions IETF by pyvpx on Friday April 11, 2014 @10:20AM (#7572967)
something tells me a similar snafu made by a CS student would get "fairly rude" comments in reply by any competent instructor or advisor.
Re:OpenBSD disables Heartbeat in libssl, questions IETF by bowyakka on Friday April 11, 2014 @11:27AM (#7573426)
you say that and yet I have had to teach people coming from several fairly top institutions that "no your lecturer was wrong, it is inappropriate to directly memcpy() from the network into a struct"
Re:OpenBSD disables Heartbeat in libssl, questions IETF by lucian1900 on Friday April 11, 2014 @05:13AM (#7571914)
The really odd bit is that all the buffer management operations in OpenSSL memset to 0, even when it appears not entirely necessary.

However, the freelist code somehow fails to follow this convention.

Re:OpenBSD disables Heartbeat in libssl, questions IETF by Peaker on Friday April 11, 2014 @11:59AM (#7573667)
Many projects that care about performance and memory fragmentation use per-purpose free lists, and not malloc/free.

The performance is significantly better, and there is a much smaller danger of running out of space due to fragmentation issues.

Re:OpenBSD disables Heartbeat in libssl, questions IETF by annnnd on Friday April 11, 2014 @02:41AM (#7571515)
Yes and no. The major mistake is not a missing "S". The major mistake is not performing a test which would show that the change was made (or in this case that it wasn't made).
Re:OpenBSD disables Heartbeat in libssl, questions IETF by peterwwillis on Friday April 11, 2014 @10:01AM (#7572858)
Test our changes before we commit? What blasphemy is this?
Re:OpenBSD disables Heartbeat in libssl, questions IETF by pdabbadabba on Thursday April 10, 2014 @05:22PM (#7569819)
Good advice for for the author of that rage-filled patch as well.
Re:OpenBSD disables Heartbeat in libssl, questions IETF by CHY872 on Thursday April 10, 2014 @08:10PM (#7570490)
Well, he has good reason to be enraged. The bug is a horrendous one and on his operating system was due to the developers deliberately the operating system provided security protections. Meanwhile his slightly buggy one liner failed in such a way that it did nothing, before being fixed 3 hours later.
Re:OpenBSD disables Heartbeat in libssl, questions IETF by kzrdude on Thursday April 10, 2014 @08:14PM (#7570508)
Absolutely.

What matters is not to always be right, but how you correct errors.

Re:OpenBSD disables Heartbeat in libssl, questions IETF by jeffdavis on Thursday April 10, 2014 @10:42PM (#7570971)
"What matters is not to always be right, but how you correct errors."

In my opinion, heartbleed is a counterexample to your point. It's a case where making the mistake at all caused a lot of damage, no matter how quickly they patched it.

Re:OpenBSD disables Heartbeat in libssl, questions IETF by nileshtrivedi on Thursday April 10, 2014 @11:12PM (#7571060)
Well, it can be argued that this instance of mistake happened BECAUSE they didn't fix their review process the last time a silly bug managed to get in.
Re:OpenBSD disables Heartbeat in libssl, questions IETF by midas007 on Friday April 11, 2014 @01:08AM (#7571314)
So there's enough blame and rage to go around. Any leader with a spine has to first contemplate "how did I fuck up?"
Re:OpenBSD disables Heartbeat in libssl, questions IETF by pessimizer on Friday April 11, 2014 @11:28AM (#7573439)
What if your error was running someone over with your car?
Re:OpenBSD disables Heartbeat in libssl, questions IETF by Angostura on Friday April 11, 2014 @07:35AM (#7572287)
At the very least the organization should look at itself very carefully, find out how this this happened.
Re:OpenBSD disables Heartbeat in libssl, questions IETF by ChrisAntaki on Thursday April 10, 2014 @09:02PM (#7570674)
Hindsight is 20/20.