Matthew Garrett ([personal profile] mjg59) wrote2012-07-13 06:59 pm
Entry tags:

Microsoft's ill-chosen magic constants

Paolo Bonzini noticed something a little awkward in the Linux kernel support code for Microsoft's HyperV virtualisation environment - specifically, that the magic constant passed through to the hypervisor was "0xB16B00B5", or, in English, "BIG BOOBS". It turns out that this isn't an exception - when the code was originally submitted it also contained "0x0B00B135". That one got removed when the Xen support code was ripped out.

At the most basic level it's just straightforward childish humour, and the use of vaguely-English strings in magic hex constants is hardly uncommon. But it's also specifically male childish humour. Puerile sniggering at breasts contributes to the continuing impression that software development is a boys club where girls aren't welcome. It's especially irritating in this case because Azure may depend on this constant, so changing it will break things.

So, full marks, Microsoft. You've managed to make the kernel more offensive to half the population and you've made it awkward for us to rectify it.
zorkian: Icon full of binary ones and zeros in no pattern. (Default)

[personal profile] zorkian 2012-07-14 12:19 am (UTC)(link)
Sigh. This is frustrating.

Why

(Anonymous) 2012-07-25 10:09 am (UTC)(link)
Why is it frustrating? You look like the kind of flaccid loser who sticks up for feminism in order to ingratiate himself with the ladies and counteract his natural vagina repellent effect.

Real men are chauvinists. Get used to it.

Re: Why

[personal profile] zorkian - 2012-07-25 17:58 (UTC) - Expand

Now now, let's not be rash.

(Anonymous) 2012-07-14 12:22 am (UTC)(link)
How about instead of removing 0xB16B00B5, you add 0xADFCBABE? This should balance things out nicely.
fluffymormegil: @ (Default)

Re: Now now, let's not be rash.

[personal profile] fluffymormegil 2012-07-14 07:21 am (UTC)(link)
If we must have "funny" constants, I prefer 0xC0DEF00D. (And before anyone asks, I think the bikeshed should be purple.)

Re: Now now, let's not be rash.

(Anonymous) - 2012-07-18 14:11 (UTC) - Expand

Re: Now now, let's not be rash.

(Anonymous) - 2014-12-09 23:47 (UTC) - Expand
(deleted comment)

(Anonymous) 2012-07-20 05:36 pm (UTC)(link)
This is probably going to happen. I'm pretty sure code submissions are traceable.

There is the issue that, after 5 years, that person may no longer work there though.

Oh dear

(Anonymous) - 2012-07-25 10:11 (UTC) - Expand

(Anonymous) 2012-07-14 01:18 am (UTC)(link)
You could just replace it with:
$ echo $((0xB16B00B5))
2976579765
I've used this when searching for hex words:
$ grep "^[0-9a-flogs]*$" /usr/share/dict/words |
tr logs 1065 | awk '{print length, $0}' |
sort -n | cut -f2- -d' '
cheers, P@draigBrady.com

Not just for boys...

(Anonymous) 2012-07-14 02:18 am (UTC)(link)
I feel compelled to point out that men are not the only gender who appreciate breasts.

Re: Not just for boys...

(Anonymous) 2012-07-21 07:04 pm (UTC)(link)
#CoolStorBro/Sis

Is 0xDEADBEEF offensive to cows?

(Anonymous) 2012-07-14 02:36 am (UTC)(link)
I'd bet if you, a guy, hadn't publicized this, no girl would have EVER found out :-P

But seriously, /troll, does anybody have an estimate on how many women actually touch, or even see, kernel code? I've only ever seen a smattering of posts, but I don't ever recall seeing a female name on kernel-related mailing lists.

Re: Is 0xDEADBEEF offensive to cows?

(Anonymous) - 2012-07-19 10:13 (UTC) - Expand

Re: Is 0xDEADBEEF offensive to cows?

(Anonymous) - 2012-07-15 16:18 (UTC) - Expand

Re: Is 0xDEADBEEF offensive to cows?

(Anonymous) - 2012-07-25 10:13 (UTC) - Expand

Re: Is 0xDEADBEEF offensive to cows?

(Anonymous) - 2012-08-31 21:28 (UTC) - Expand

Re: Is 0xDEADBEEF offensive to cows?

(Anonymous) - 2012-07-16 17:31 (UTC) - Expand

Re: Is 0xDEADBEEF offensive to cows?

(Anonymous) - 2012-07-16 18:34 (UTC) - Expand

Re: Is 0xDEADBEEF offensive to cows?

(Anonymous) - 2012-07-20 07:56 (UTC) - Expand

get real

(Anonymous) 2012-07-14 03:13 am (UTC)(link)
"make the kernel more offensive to half the population"? Most people don't read source code of any kind. Please drop the faux-offended male feminist pretense, and get real. (BTW, my wife just read your post and thinks B00B5 are funny.)
marahmarie: (M In M Forever) (Default)

Re: get real

[personal profile] marahmarie 2012-07-14 05:50 am (UTC)(link)
I lol'd. And I'm a woman.

Re: get real

[personal profile] marahmarie - 2012-07-14 07:49 (UTC) - Expand

Re: get real

(Anonymous) - 2012-07-14 13:28 (UTC) - Expand

Re: get real

[personal profile] marahmarie - 2012-07-14 20:38 (UTC) - Expand

Re: get real

[personal profile] maco - 2012-07-17 20:28 (UTC) - Expand

Re: get real

[personal profile] marahmarie - 2012-07-18 15:28 (UTC) - Expand

Re: get real

(Anonymous) - 2012-07-22 16:40 (UTC) - Expand

Re: get real

[personal profile] marahmarie - 2012-07-23 01:08 (UTC) - Expand

Re: get real

(Anonymous) - 2012-08-31 21:34 (UTC) - Expand

Re: get real

[personal profile] marahmarie - 2012-09-01 05:29 (UTC) - Expand

Re: get real

(Anonymous) - 2012-07-19 23:26 (UTC) - Expand

Re: get real

[personal profile] techiebabe - 2012-07-21 11:00 (UTC) - Expand

Re: get real

(Anonymous) - 2012-07-21 18:57 (UTC) - Expand

Re: get real

(Anonymous) - 2012-07-22 07:33 (UTC) - Expand

Re: get real

[personal profile] techiebabe - 2012-07-22 15:18 (UTC) - Expand

Re: get real

(Anonymous) - 2012-07-22 16:43 (UTC) - Expand

Re: get real

(Anonymous) - 2012-07-27 11:38 (UTC) - Expand

Re: get real

(Anonymous) - 2012-07-25 10:18 (UTC) - Expand

Re: get real

(Anonymous) - 2012-08-31 21:37 (UTC) - Expand

Re: get real

(Anonymous) - 2012-07-14 16:22 (UTC) - Expand

Re: get real

(Anonymous) - 2012-07-14 19:15 (UTC) - Expand

Re: get real

[personal profile] marahmarie - 2012-07-14 19:44 (UTC) - Expand

Re: get real

[personal profile] maco - 2012-07-17 20:30 (UTC) - Expand

Re: get real

[personal profile] maco - 2012-07-19 18:36 (UTC) - Expand

Re: get real

(Anonymous) - 2012-07-21 18:58 (UTC) - Expand

Re: get real

(Anonymous) - 2012-07-20 13:48 (UTC) - Expand

Re: get real

(Anonymous) - 2012-07-14 06:53 (UTC) - Expand

Re: get real

(Anonymous) - 2012-07-14 11:37 (UTC) - Expand

Re: get real

(Anonymous) - 2012-07-14 18:26 (UTC) - Expand

Re: get real

(Anonymous) - 2012-07-17 06:50 (UTC) - Expand

A parable of the bears in the vale

(Anonymous) - 2012-07-14 20:42 (UTC) - Expand

Re: A parable of the bears in the vale

(Anonymous) - 2012-07-21 18:59 (UTC) - Expand

nice

(Anonymous) 2012-07-14 03:23 am (UTC)(link)
Girls don't go for nice guys, and there are a lot of good reasons for that. It was true back in Feynman's day, it's true today, and it'll be true a thousand years from now. Get over it!

Re: nice

(Anonymous) - 2012-07-25 10:22 (UTC) - Expand

Re: nice

[personal profile] marahmarie - 2012-07-26 05:32 (UTC) - Expand

Re: nice

(Anonymous) - 2012-07-16 22:45 (UTC) - Expand

Re: nice

[personal profile] fluffymormegil - 2012-07-14 07:25 (UTC) - Expand

Re: nice

(Anonymous) - 2012-07-21 19:00 (UTC) - Expand

Re: nice

(Anonymous) - 2012-07-20 13:50 (UTC) - Expand
0jack: Closeup of Boba Fett's helmet, angular orange stripe surrounding a narrow window on a greenish metallic field. (Default)

[personal profile] 0jack 2012-07-14 03:30 am (UTC)(link)
Just as offensive as the original pretence are the charming comments you're getting. You really should produce a bingo card.

(Anonymous) 2012-07-21 07:01 pm (UTC)(link)
So what if you're offended? It doesn't matter. You being offended is the problem, not us.

(no subject)

[personal profile] 0jack - 2012-07-21 19:07 (UTC) - Expand

(no subject)

(Anonymous) - 2012-07-22 07:37 (UTC) - Expand

(Anonymous) 2012-07-14 03:55 am (UTC)(link)
Well, if you're worried about offending people with the hex constant, you could always represent it in decimal or octal... :)

(Anonymous) 2012-07-14 04:22 am (UTC)(link)
oh chill out

Developer Douchebaggery

(Anonymous) 2012-07-14 04:37 am (UTC)(link)
'Nice' guys; http://www.torontostandard.com/technology/toronto-tweeter-causes-twitter-uproar-over-violent-beat-up-anita-sarkeesian-game was like 5 minutes ago, and super high profile, and we're still going with "lighten up", and making excuses? This is relatively a much lower level of misogyny to be sure, but the lopsided treatment of women in IT in general ain't gonna get better until we actually discourage this crap instead of making apologies for it.

Re: Developer Douchebaggery

(Anonymous) 2012-07-14 05:16 am (UTC)(link)
I quote the comment above yours: "Oh chill out."

Re: Developer Douchebaggery

(Anonymous) - 2012-07-15 10:59 (UTC) - Expand

Re: Developer Douchebaggery

[personal profile] maco - 2012-07-17 20:36 (UTC) - Expand

Re: Developer Douchebaggery

(Anonymous) - 2012-07-21 19:03 (UTC) - Expand

Re: Developer Douchebaggery

(Anonymous) - 2012-07-22 07:39 (UTC) - Expand

Men can also have boobs

(Anonymous) 2012-07-14 07:34 am (UTC)(link)
Just wondering what made you think boobs refers specifically to females. I mean their are men with big boobs, especially overweight guys that eat too much steak and hamburgers. That's still politically incorrect, of course.

Re: Men can also have boobs

[identity profile] http://apebox.org/wordpress/ 2012-07-14 07:41 am (UTC)(link)
That's a big pile of bullshit and you know it.

Why are people too dishonest to admit to reality?

Seriously?

(Anonymous) 2012-07-14 07:46 am (UTC)(link)
Seriously?

If this offends you, please, please, just do us a favour and get over it.

The real, technical problem here is that the magic number was not drawn at random. The pool of constants that "look like" English words/phrases is much much smaller than the pool of all 32-bit constants. So you're much more likely to get a collision with somebody else. Entropy's a bitch...

Re: Seriously?

(Anonymous) 2012-07-15 11:17 pm (UTC)(link)
Yeah, that was my reaction too. Sure, it's inappropriate, but of all the problems in the world, is this really worth making a fuss over?

Re: Seriously?

(Anonymous) - 2012-07-16 23:26 (UTC) - Expand

Re: Seriously?

(Anonymous) - 2012-07-20 15:53 (UTC) - Expand

Standard Interpretations

[identity profile] ao2.it 2012-07-14 08:21 am (UTC)(link)
Add a comment stating "BI SEX BOOBS" and work around the issue by throwing documentation at it...

Uhh

(Anonymous) 2012-07-14 12:57 pm (UTC)(link)
How do you know it was written by a male? Females often also have a sense of humor and are perfectly capable of writing funny error codes too.

(Anonymous) 2012-07-14 01:58 pm (UTC)(link)
So define

#define MAGIC_FOO 2976579765u

and get on with life.

Your openID is broken by the way

(Anonymous) 2012-07-14 04:29 pm (UTC)(link)
Come on. Go name some variable 'small_dick' and calm down. How on Earth can a hexadecimal be offensive? What's next, an illegal prime?

I think whoever gets insulted that easy should see a doctor. Not sure if it would help though.

Empathy

(Anonymous) 2012-07-14 05:11 pm (UTC)(link)
Thank you.

.....that's the tip of the iceberg!

[identity profile] https://www.google.com/accounts/o8/id?id=AItOawn5NzO3VSYQkvHPMbC57xti-uxN2krA1-A 2012-07-14 05:25 pm (UTC)(link)
I'm sure Marilyn Manson fans (aka. emos) are somewhat offended by TAINTED_CRAP too!

So what if the humour in this "magic constant" is male-orientated? The only people to take offense to this are people who are equally as braindead as those who take offense to the very existence of
[Error: Irreparable invalid markup ('<ubuntu|debian>') in entry. Owner must fix manually. Raw contents below.]

<badattemptathumour> I'm sure Marilyn Manson fans (aka. emos) are somewhat offended by TAINTED_CRAP too! </badattemptathumour>

So what if the humour in this "magic constant" is male-orientated? The only people to take offense to this are people who are equally as braindead as those who take offense to the very existence of <Ubuntu|Debian> Women and the like (and there's more of an argument for that being inherently exclusionary in title than this joke!).

It's freely contributed code, if I had any say i'd vote for 0xB16B00B5 to remain. It's no worse than potentially offending vegans with 0xDEADBEEF or calling a Linux distribution a Beefy Miracle.

(Anonymous) 2012-07-14 06:16 pm (UTC)(link)
Everybody see what they want to see. Some see "BIG BOOBS" written in 1337-style, but I see just bunch of letters and numbers.

Also, enough of this feminist crap. I'm getting tired of ill-minded women who seek for chance to sue somebody who looked at them slightly differently or smiled to them. They call this "harassment". I call this "good manners" and true way how a MEN should act with women.
maco: white brunette woman with a white headcovering and a blue dress (Default)

[personal profile] maco 2012-07-17 08:41 pm (UTC)(link)
Please show me one court case for a sexual harassment lawsuit where it was for a smile.

Can't do it? Maybe you should stop being such a liar.

An example of sexual harassment would be "nice tits!" And that sure as HELL isn't good manners.

(no subject)

[personal profile] maco - 2012-07-19 18:39 (UTC) - Expand

The inverse

[identity profile] duffy.id.fedoraproject.org 2012-07-14 07:48 pm (UTC)(link)
So what could a female write in hex that would be analogously inappropriate?

Re: The inverse

(Anonymous) 2012-07-14 09:48 pm (UTC)(link)
Since it's not inappropriate in any kind of way, a female can write anything.

Re: The inverse

(Anonymous) - 2012-07-15 10:18 (UTC) - Expand

Re: The inverse

(Anonymous) - 2012-07-20 14:30 (UTC) - Expand

Re: The inverse

(Anonymous) - 2012-07-20 20:10 (UTC) - Expand

Re: The inverse

(Anonymous) - 2012-07-21 11:58 (UTC) - Expand

Derailing by the book

(Anonymous) 2012-07-14 08:46 pm (UTC)(link)
I love how some (most) of the responses reflect how well they can follow the guidelines of the D4D book (http://www.derailingfordummies.com/retaliation.html) ...

Re: Derailing by the book

(Anonymous) 2012-07-14 09:51 pm (UTC)(link)
Dude, the publisher of 'for dummies' serious is sick and he really is anal about his copyright. Please don't mention that miserable series anymore, thank you.

Re: Derailing by the book

(Anonymous) - 2012-07-15 13:44 (UTC) - Expand

Techeye

(Anonymous) - 2012-07-20 14:21 (UTC) - Expand

Re: Derailing by the book

(Anonymous) - 2012-07-20 14:11 (UTC) - Expand

Re: Derailing by the book

(Anonymous) - 2012-07-21 19:05 (UTC) - Expand

(Anonymous) 2012-07-14 08:55 pm (UTC)(link)
OMG! Now i know why Linux has so many problems, you didn't catch bugs, you search and analyze code for non-tolerant shit. Hell yeah! Continue and we will win!

P.S. Conspiracy mode on.

M$ did it specially for disturb and destroy linux!!!!

Conspiracy mode off.

[identity profile] 13-49-ru.blogspot.com 2012-07-15 01:32 am (UTC)(link)
How do you feel about potentially offensive hex constants in languages you do not speak? What if your sense-free english hex constant is in fact offensive in other language?

(Anonymous) 2012-07-15 03:55 am (UTC)(link)
I guess its okay as long it was not contributed by microsoft.

That is completely irrelevant...

(Anonymous) - 2012-07-16 14:23 (UTC) - Expand

Re: That is completely irrelevant...

(Anonymous) - 2016-06-30 16:34 (UTC) - Expand

Page 1 of 4