News for hackers. Stuff that matters.
Re:Google Proposes New Mseal() Memory Sealing Syscall for Linux by foooorsyth on Tuesday October 17, 2023 @10:09AM (#37915306)
It’s a bad review. The snarky prose is annoying. He could be much more concise as well. “Won’t merge. Commit messages need far more detail. Don’t do bitmask translations. All of these operations should use the same mask instead of creating redundant ones. Rethink the logic here, not sure if it makes sense. This needs a rewrite, not small tweaks”

…was really all it needed. The wall of text is more offensive than the insulting tone.

Re:Google Proposes New Mseal() Memory Sealing Syscall for Linux by dbsmith83 on Tuesday October 17, 2023 @10:40AM (#37915861)
Your review doesn't take the time to explain why something is a bad idea though. I didn't think his tone was that bad. I think it depends on how you imagine the conversation in real life.
Re:Google Proposes New Mseal() Memory Sealing Syscall for Linux by eviks on Tuesday October 17, 2023 @11:31AM (#37916717)
Where is "why" in this repetitive review? Also, what is the values of bluntly repeating in a more aggressive style vs bluntly saying the same thing once in a more professional manner while also explaining the reason (lack of details)

> First off, the simple stuff: the commit messages are worthless. Having

   check seal for mmap(2)
as the commit message is not even remotely acceptable, to pick one random example from the series (7/8).
Re:Google Proposes New Mseal() Memory Sealing Syscall for Linux by dbsmith83 on Tuesday October 17, 2023 @05:26PM (#37921803)
Try reading the rest of the review and you will see multiple explanations for why things are not a good idea. I don't even think your cherry picked example is that repetitive. It sounds like a normal conversation to me.
Re:Google Proposes New Mseal() Memory Sealing Syscall for Linux by eviks on Wednesday October 18, 2023 @01:20AM (#37925073)
I've read the rest of the review, but "cherry picking" another example wouldn't help when you ignore the issues of the first one and have to add qualifiers (yeah, it's not "that repetitive", it's just repetitive)
Re:Google Proposes New Mseal() Memory Sealing Syscall for Linux by cmrdporcupine on Tuesday October 17, 2023 @10:11AM (#37915348)
Ordinarily I'd agree, e.g. within a company or team, I would not accept this kind of tone, it's not how peers communicate

But it's also not Torvald's job to tutor here or be a mentor. He has limited time in the day. And the company doing the proposal here is Google. They probably should have come in with a more-better-finished product.

The consequences to design errors in kernel syscalls are rather intense.

Re:Google Proposes New Mseal() Memory Sealing Syscall for Linux by foooorsyth on Tuesday October 17, 2023 @10:14AM (#37915399)
>He has limited time in the day

So he spends it dunking on a proposal with snarky prose instead of a concise review without bashing the person trying to contribute. How efficient.

Re:Google Proposes New Mseal() Memory Sealing Syscall for Linux by djbusby on Tuesday October 17, 2023 @10:26AM (#37915628)
Mark Twain said "I didn't have time to write a short letter, so I wrote a long one". Seems like what's happening here.
Re:Google Proposes New Mseal() Memory Sealing Syscall for Linux by fanf2 on Tuesday October 17, 2023 @01:51PM (#37918859)
Re:Google Proposes New Mseal() Memory Sealing Syscall for Linux by djbusby on Tuesday October 17, 2023 @02:20PM (#37919311)
TIL, thanks! But also,Mark is credited, and where I heard it first.
Re:Google Proposes New Mseal() Memory Sealing Syscall for Linux by fanf2 on Wednesday October 18, 2023 @04:27AM (#37926160)
Quote Investigator says:

> Mark Twain who is often connected to this saying did not use it according to the best available research, but one of his tangentially related quotations is given later for your entertainment.

> In 1871 Mark Twain wrote a letter to a friend that included a remark about the length of his note. Twain’s comment did not really match the quotation under investigation but it is related to the general theme:[ref] 1871 June 15, Letter from Mark Twain to James Redpath, Elmira, New York, UCCL 00617 (Union Catalog of Clemens Letters), Mark Twain Project Online. (Accessed marktwainproject.org on 2012 April 24) link[/ref]

quoting Twain:

>> You’ll have to excuse my lengthiness—the reason I dread writing letters is because I am so apt to get to slinging wisdom & forget to let up. Thus much precious time is lost.

Re:Google Proposes New Mseal() Memory Sealing Syscall for Linux by cmrdporcupine on Tuesday October 17, 2023 @10:25AM (#37915615)
Yeah I mean that's maybe fair, and I thought Torvalds had been making attempts to avoid this kind of tone. I still think even if he had been concise and terse he would have been perceived as slightly-rude though.
Re:Google Proposes New Mseal() Memory Sealing Syscall for Linux by hedora on Tuesday October 17, 2023 @10:34AM (#37915748)
The proposed summary of the review is too terse and doesn't make any sense. I don't see any redundant prose in the original one. His concerns are clear, and he gives actionable suggestions for improvement. The tone + his opinion of the patch set is also clear.

Would you rather get a code review that is full of vague euphemisms and tries not to hurt your feelings, and then spend months wasting time on a dead end approach because you thought minor tweaks would work?

I'd much rather get one message that says where the bar for merging is so I could fix my code and get it merged. I absolutely wouldn't care if the latter was a bit sweary. I've worked at a place where all communication must be in professional tone and polite, and you cannot give valid technical feedback that might hurt someone's feelings.

The verbal communications standards were weaponized by sycophants, who dominated middle management. It was the most passive-aggressive and hostile work environment (as in legal liability) I've ever encountered.

Re:Google Proposes New Mseal() Memory Sealing Syscall for Linux by w0z_ on Tuesday October 17, 2023 @10:53AM (#37916075)
Your reply is pretty much spot on.
Re:Google Proposes New Mseal() Memory Sealing Syscall for Linux by dmvdoug on Tuesday October 17, 2023 @10:34AM (#37915754)
My impression was he was avoiding outright abusing people. Abusing their ideas as stupid was always going to be on the table for him. (Not justifying it but I think people are fooling themselves if they’re imagining a purely softer, gentler version of him all around.)
Re:Google Proposes New Mseal() Memory Sealing Syscall for Linux by heresie-dabord on Tuesday October 17, 2023 @10:42AM (#37915885)
> the company doing the proposal here is Google. They [...] should have come in with a more-better-finished product.

rm "probably"

The PR submitter represents a software giant, love 'em or hate 'em.

It is an understatement to say that the Linux kernel is an important, global-scale software project. A small number of busy people maintain the kernel's design. This is one project where crap should not be submitted.

Whether or not we like the company, a software giant like Google should a) understand the scale of the project and the importance of software design, and b) manifestly understand the rudiments of code quality.

Re:Google Proposes New Mseal() Memory Sealing Syscall for Linux by taeric on Tuesday October 17, 2023 @10:48AM (#37915992)
The part that I think many people have a hard time internalizing, is that this is almost certainly following Google internal "best practices" for how the code is organized and delivered. They famously have "code reviewers" that are there to make sure the code reads well.

You can see it in the translations of having 3 flags for the same data. Somewhere, the distinction was made between what the user is asking for, and what the system works with. It is considered a good thing to have that level of abstraction in many large companies. Heck, many small companies go for that.

Re:Google Proposes New Mseal() Memory Sealing Syscall for Linux by eviks on Tuesday October 17, 2023 @11:33AM (#37916755)
The review above takes less time to write, how does your argument work again? Also, tone isn't about mentoring
Re:Google Proposes New Mseal() Memory Sealing Syscall for Linux by josefx on Tuesday October 17, 2023 @11:28AM (#37916660)
> Rethink the logic here, not sure if it makes sense.

That invites pointless discussion when most of the points in Linus review are a clear "hell no". Quite sure the last thing someone in Linus position wants is never ending discussions of already rejected ideas, it only wastes time on both sides.