News for hackers. Stuff that matters.
Re:Linus Torvalds: “Do No Harm” by lima on Wednesday November 22, 2017 @03:16AM (#15755184)
Background: the "kernel self protection project" (KSSP) recently upstreamed the Grsecurity/PAX reference counting implementation which prevents a certain class of security bugs from being exploited.

Grsecurity is a security hardening patchset for Linux that makes deliberate trade-offs in favor of security, sacrificing availability if necessary. This, aside from the political issue, is the main reasons why it's hard to upstream it. Linus has called some of their mitigations "insane" before precisely for that reason. Grsecurity will rather terminate userland programs or, in some rare cases, panic the kernel if it finds itself in an undefined state. This is exactly what you want if you care about security, but it's not a trade-off everyone is happy with (including Linus).

Unfortunately, Grsecurity/PAX is not (and probably won't ever be) involved in the KSSP project, and the KSSP developers do not understand the code nearly as well as the Grsecurity team does. This lead to a situation where the new code caused a crash that they weren't able to fix in time, so they disabled the feature in the last minute.

I've been using Grsecurity for years until they stopped making it publicly available, and I remember many bugs that were uncovered by PAX_REFCOUNT and yes, occasionally panicked the kernel where a vanilla kernel would run just fine. They usually found and fixed those within hours.

Grsecurity/PAX have invented many of the modern exploitation mitigations, probably second to none. Some have even been implemented in hardware. Their expertise in building modern defenses is astonishing (their latest invention, the control flow integrity mechanism RAP, is a work of art).

Linux could be the most secure kernel, instead, it's fallen way behind Windows - which has much better defenses than Linux nowadays thanks to Microsoft's ongoing battle with rootkit writers. Go figure.

If the large companies who use Linux really want to improve kernel security, they need to work with Grsecurity and not against them. It's beyond me how this isn't happening already.

Re:Linus Torvalds: “Do No Harm” by phkahler on Wednesday November 22, 2017 @08:23AM (#15756546)
>> This is exactly what you want if you care about security, but it's not a trade-off everyone is happy with (including Linus).

Let's rephrase that. This is exactly what you want if you care only about security, or care about security above everything else - including your system running at all. People run software for reasons, and they need it to keep running for those reasons. The security folks are not really qualified to evaluate the security risks against all the reasons for all the people running Linux.

Re:Linus Torvalds: “Do No Harm” by silly-silly on Wednesday November 22, 2017 @09:37AM (#15757042)
No, they really are. Don't confuse doing it poorly with the ability to do it.
Re:Linus Torvalds: “Do No Harm” by sandGorgon on Wednesday November 22, 2017 @03:51AM (#15755346)
> From a security standpoint, when you find an invalid access, and you mitigate it, you've done a great job, and your hardening was successful and you're done. "Look ma, it's not a security issue any more", and you can basically ignore it as "just another bug" that is now in a class that is no longer your problem. So to you, the big win is when the access is _stopped_. That's the end of the story from a security standpoint - at least if you are one of those bad security people who don't care about anything else. But from a developer standpoint, things _really_ are not done. Not even close. From a developer standpoint, the bad access was just a symptom, and it needs to be reported, and debugged, and fixed, so that the bug actually gets corrected.

As a developer, I do want the report. But if you killed the user program in the process, I'm actually _less_ likely to get the report, because the latent access was most likely in some really rare and nasty case, or we would have found it already.

I dont think Linus has an invalid point there. Taken from his previous thread - https://www.spinics.net/lists/kernel/msg2540934.html

> Don't bother with grsecurity. Their approach has always been "we don't care if we break anything, we'll just claim it's because we're extra secure".

He is worried that grsecurity does not play nice with the kernel in a way of "let's make security hardening obsolete by fixing bugs in the kernel".

Re:Linus Torvalds: “Do No Harm” by jbangert on Wednesday November 22, 2017 @03:56AM (#15755375)
Fixing all memory corruption bugs is infeasible without fundamentally changing the way Linux is developed. There is so much code (and it’s being added to, changed, etc.) written by humans that make mistakes.

There will always be some bugs that are in between being discovered (by someone, maybe malicious, maybe not), and being fixed. How else do you prevent against vulnerabilities in that stage?

Re:Linus Torvalds: “Do No Harm” by banachtarski on Wednesday November 22, 2017 @03:59AM (#15755389)
Linus' response is that calling it an infeasible problem is a cop-out. The right way to go about it is to fix them all, incrementally if need be, and not break userland in the process.
Re:Linus Torvalds: “Do No Harm” by unityByFreedom on Wednesday November 22, 2017 @08:30AM (#15756586)
These comments sound analogous to real world security and societal issues. Like, the desire to increase army size and addressing the underlying issues.

One is a short term solution, the other long term.

Re:Linus Torvalds: “Do No Harm” by fsloth on Wednesday November 22, 2017 @10:06AM (#15757257)
I think given the quantity of our planetary computation infrastructure Linux runs, it's very much a real world issue.
Re:Linus Torvalds: “Do No Harm” by Sir_Cmpwn on Wednesday November 22, 2017 @09:37AM (#15757040)
>If the large companies who use Linux really want to improve kernel security, they need to work with Grsecurity and not against them. It's beyond me how this isn't happening already.

It's more that Grsecurity is working against everyone else. They want to pretend the GPL works in a way that it doesn't so that they can sell their patches. Then they make threats to people who say "that's not how the GPL works" and distribute their patches in accordance with how the GPL actually works. That's not how kernel development is done. I'd rather have an insecure kernel than their bullshit.

Re:Linus Torvalds: “Do No Harm” by tptacek on Wednesday November 22, 2017 @08:55PM (#15762225)
It's their work. We're not entitled to it.
Re:Linus Torvalds: “Do No Harm” by pcwalton on Wednesday November 22, 2017 @09:33PM (#15762346)
Bruce Perens, however, is entitled to not be the victim of Spender's legal harassment for exercising his First Amendment rights to disagree [1].

I have no dog in this fight whatsoever; I don't know anybody involved. But in general I have little sympathy for people, however talented, who waste taxpayers' money with bogus legal action.

[1]: https://thenewstack.io/open-source-pioneer-bruce-perens-sued...

Re:Linus Torvalds: “Do No Harm” by Sir_Cmpwn on Wednesday November 22, 2017 @09:00PM (#15762248)
Actually, we are. That's how the GPL works.
Re:Linus Torvalds: “Do No Harm” by tptacek on Wednesday November 22, 2017 @11:25PM (#15762726)
No, it's not. The GPL on the Linux kernel means that grsec can't distribute a new Linux kernel with their patches while withholding code. That's not what they're doing. If I write a Linux kernel patch on a consulting project, I am absolutely not required to publish it.
Re:Linus Torvalds: “Do No Harm” by pcwalton on Wednesday November 22, 2017 @11:48PM (#15762829)
> If I write a Linux kernel patch on a consulting project, I am absolutely not required to publish it.

That would be a work for hire, and it is not the same thing as developing patches independently and distributing them with extra terms, because there is no distribution involved.

> The GPL on the Linux kernel means that grsec can't distribute a new Linux kernel with their patches while withholding code. That's not what they're doing.

That would be true if the patches were not derivative works of the Linux kernel in a legal sense. I'm no lawyer, but that seems contrary to the plain meaning of "derivative work".

Bruce Perens' argument is persuasive to me: https://perens.com/2017/06/28/warning-grsecurity-potential-c...

As is Linus Torvalds' ("kernel patches clearly _are_ derived works"): http://yarchive.net/comp/linux/gpl_modules.html

Re:Linus Torvalds: “Do No Harm” by dctoedt on Thursday November 23, 2017 @07:31AM (#15764593)
> That would be a work for hire ....

Not necessarily, in fact perhaps not even usually.

1. The consulting contract might or might not provide for the client to own any work product created. Many such contracts provide that the client will own only the specific end product, while the consultant retains ownership of any reusable "Toolkit Items."

But what if the contract is silent about ownership of consulting work product?

2. As to copyright: Under U.S. copyright law, the default mode is that IF: An original work of authorship is created outside an employer-employee relationship, THEN: The copyright is owned by the individual author (or jointly by multiple co-authors) UNLESS: A) the work of authorship falls into one of nine specific statutory categories, and B) the parties have expressly agreed in writing, before the work was created, that it would be a work made for hire. [0] [1]

3. Any patentable inventions would be owned by the inventor(s) unless they were employees who were "hired to invent" or "set to experimenting," in which case the inventions would be owned by the employer; so far as I recall, this doesn't apply in the case of outside-contractor consulting projects — the client would not own any resulting inventions unless the contract specifically said otherwise. [2]

[0] https://www.law.cornell.edu/uscode/text/17/201 (ownership of copyright)

[1] "A 'work made for hire' is—(1) a work prepared by an employee within the scope of his or her employment; or (2) a work specially ordered or commissioned [A] for use as a contribution to a collective work, [B] as a part of a motion picture or other audiovisual work, [C] as a translation, [D] as a supplementary work, [E] as a compilation, [F] as an instructional text, [G] as a test, [H] as answer material for a test, or [I] as an atlas, if the parties expressly agree in a written instrument signed by them that the work shall be considered a work made for hire. [¶] For the purpose of the foregoing sentence, a 'supplementary work' is a work prepared for publication as a secondary adjunct to a work by another author for the purpose of introducing, concluding, illustrating, explaining, revising, commenting upon, or assisting in the use of the other work, such as forewords, afterwords, pictorial illustrations, maps, charts, tables, editorial notes, musical arrangements, answer material for tests, bibliographies, appendixes, and indexes, and an 'instructional text' is a literary, pictorial, or graphic work prepared for publication and with the purpose of use in systematic instructional activities." From https://www.law.cornell.edu/uscode/text/17/101

[2] See the annotated flowchart at http://www.oncontracts.com/docs/Who-owns-an-employee-inventi... (self-cite).

Re:Linus Torvalds: “Do No Harm” by Sir_Cmpwn on Wednesday November 22, 2017 @11:31PM (#15762749)
Right, but they do distribute modified kernels, and we are therefore entitled to their work.
Re:Linus Torvalds: “Do No Harm” by eugeneionesco on Wednesday November 22, 2017 @12:03PM (#15758352)
You're spreading FUD.

I suggest you educate yourself on the reasons grsecurity patches are no longer public anymore.

Re:Linus Torvalds: “Do No Harm” by Sir_Cmpwn on Wednesday November 22, 2017 @12:06PM (#15758376)
You're welcome to present an argument for your case.
Re:Linus Torvalds: “Do No Harm” by amelius on Wednesday November 22, 2017 @03:34AM (#15755261)
> Grsecurity will rather terminate userland programs or, in some rare cases, panic the kernel if it finds itself in an undefined state. This is exactly what you want if you care about security, but it's not a trade-off everyone is happy with (including Linus).

I'd also like my kernel to halt whenever an assertion does not hold, for the sake of keeping my sanity; not just for security.

Why would you not want this?

Re:Linus Torvalds: “Do No Harm” by payne92 on Wednesday November 22, 2017 @03:39AM (#15755292)
For the same reason people drive with their “check engine” light on: It’s frequently better to have a working system (i.e. “I’m late for work”), than to chase an indicator that may not represent a real problem (an actual security intrusion).
Re:Linus Torvalds: “Do No Harm” by Slavius on Wednesday November 22, 2017 @03:56AM (#15755377)
I can't think of single useful piece of software nowdays that is exposed to public and can't run in active-active load balanced or clustered scenario. If your kernel/system/userland-app misbehaves it simply needs to be shut down, reported and examined. It might have been some random memory block the last time your app made an buffer overflow, but it could as well be the stack pointer next time...
Re:Linus Torvalds: “Do No Harm” by makomk on Wednesday November 22, 2017 @06:03AM (#15755915)
Remember, we're necessarily just talking about servers here; every single hospital has mission-critical client machines that cannot go down and obviously those aren't load balanced or clustered. (Though mostly they seem to be running Windows.)
Re:Linus Torvalds: “Do No Harm” by TickleSteve on Wednesday November 22, 2017 @07:39AM (#15756297)
For safety-critical systems, resetting on a fault is very much factored into the worst-case response time and expected behaviour.

PANIC on fault is exactly what you design into the systems.

Re:Linus Torvalds: “Do No Harm” by digi_owl on Wednesday November 22, 2017 @10:10AM (#15757289)
So why is not the world running on C64s?
Re:Linus Torvalds: “Do No Harm” by TickleSteve on Wednesday November 22, 2017 @11:28AM (#15758061)
The world does run on microcontrollers that have roughly the same processing capability as a c64...

The vast majority of processors sold are not i5 or i7 level but microcontrollers.

Re:Linus Torvalds: “Do No Harm” by mjw1007 on Wednesday November 22, 2017 @04:02AM (#15755404)
Web browsers are, for practical purposes, exposed to the public. Linux doesn't run only on servers.
Re:Linus Torvalds: “Do No Harm” by Slavius on Wednesday November 22, 2017 @04:11AM (#15755449)
So what happens when your browser crashes? I experience that on a regular basis. Id' rather have my browser crash/killed instead of slowly overwriting my filesystem buffers or corrupting my stack pointer... Other than that browser are multi-thread/process applications. Usually only a single tab or a plugin crashes unless core browser process is affected. Most users would accept the trade off between crashed browser and infected/corrupted system.
Re:Linus Torvalds: “Do No Harm” by mythz on Wednesday November 22, 2017 @05:01AM (#15755646)
> Most users would accept the trade off between crashed browser and infected/corrupted system.

Most users are using computing devices a means of getting stuff done. They don't want to spend any energy thinking about how their software works, they want their devices to be invisible, which they use to run their Apps uninterrupted. The trade-off is whether to let Apps continue running vs hard crashing and taking down all the work they've done and all the mental energy and focus invested up to that point. If their Apps frequently crash most users aren't thinking, well I'm super glad the hours I spent on this paper I'm working on is now lost, the phone calls to my loved ones or movie I'm watching are abruptly terminated because someone's policy on hard crashing when a bug is found has been triggered. Their preferences and purchasing power are going to go towards non user-hostile devices they perceive provide the best experience for using their preferred Apps without any need for pre-requisite knowledge of OS internals.

There's not a single computing device that frequently crashes as a result of security hardening that will be able to retain any meaningful marketshare. Users are never going tolerate anything that requires extraneous effort on their part into researching and manually applying what needs to be done to get their device running without crashing.

Re:Linus Torvalds: “Do No Harm” by Slavius on Wednesday November 22, 2017 @07:09AM (#15756165)
Apps are supposed to keep their state either by saving your work regularly to persistent media or keeping your data off-client. We're living in 21st century in a cloud era FFS.

Keep running your app although integrity corruption within the application happened is putting user data at risk. IMHO an application that corrupts 3 days long presentation file save is to every user more frustrating than the one that crashes due to error leaving you with 5 minutes of unsaved changes lost.

Microsoft have invented "Application Recovery and Restart" exactly for this purpose.

Re:Linus Torvalds: “Do No Harm” by mythz on Wednesday November 22, 2017 @07:46AM (#15756328)
> Keep running your app although integrity corruption within the application happened is putting user data at risk.

If user data is continually backed up to a remote site it's not going to be at risk from a local bug is it? Bugs exist in all software, Users are going to be be more visibly frustrated from their Apps frequently crashing then the extremely unlikely scenario where a detected bug corrupts their "3 days long presentation". They're going very unhappy if the cause of their frequent data loss was due to a user-hostile setting to hard crash on the first detectable bug.

> Microsoft have invented "Application Recovery and Restart" exactly for this purpose.

From Microsoft website:

> An application can use Application Recovery and Restart (ARR) to save data and state information before the application exits due to an unhandled exception or when the application stops responding.

- https://msdn.microsoft.com/en-us/library/windows/desktop/cc9...

i.e. restarting Apps due to "unhandled exception or when the application stops responding" in which case the App is in an unusable state and ARR kicks in to try auto recover it for minimal user disruption. The focus on providing a good UX, not a miserable crash-prone experience where users use their devices in fear that at anytime anything they're working on can be terminated abruptly without warning.

Re:Linus Torvalds: “Do No Harm” by Slavius on Wednesday November 22, 2017 @08:34AM (#15756619)
You clearly have limited view on application bugs. Let me elaborate a bit on bugs causing application dissatisfaction and UX frustration without crashing much, much worse than a simple error message along the lines: "OS has terminated application X because it has performed an illegal operation."

Data corruption - reading or writing corrupted data - files cannot be read, saved files get corrupted, API calls from/to external applications/systems fail or pass incorrect data Rendering problems - corrupted images, incorrect colors, improper content encoding, visual stuttering, audio deformation, audio skipping Input/output lags - unregistered kaystrokes, missed actions and responses to external events, mouse stuttering and misbehavior Improper operation - inconsistent results - repeated rendering yields different results (html), formulas/calculation results in data is inconsistent (excel, DWH) Access violation - access gained to invalid or protected areas - unprivileged access, license violations, access to areas protected by AAA, data theft (SQL injection, database dumps)

and others. If I figure out the application I'm using (web-browser) allowed a hacker to steal my data he would not have otherwise access to I would be more pissed off than if it crashed and I found an error about it in system log.

Re:Linus Torvalds: “Do No Harm” by kiriakasis on Wednesday November 22, 2017 @10:13AM (#15757313)
the standard windows user will not read the system log.

some people just use computer to do stuff to them there is little difference between "i lost my work because of a bug" and "i lost my work because of a security policy"; from a UX point of view both of them are the developer fault for releasing inadequate software.

Re:Linus Torvalds: “Do No Harm” by sctb on Wednesday November 22, 2017 @12:12PM (#15758430)
> You clearly have limited view on application bugs.

Please leave out the uncivil swipes.

https://news.ycombinator.com/newsguidelines.html

Re:Linus Torvalds: “Do No Harm” by klibertp on Wednesday November 22, 2017 @08:31AM (#15756604)
Meta: Who, and why, flagged this comment? What rule exactly Slavius breaks here?

On topic: I can't recall now the details, but I read a paper once about a system which had no shutdown procedure at all, the only way to exit it was to crash it somehow or just shutdown the computer. The system made sure to save everything often enough and made sure to store the data in ways which allowed for restoring possibly corrupted parts of it on the next startup. This design produced a very resilient architecture which worked well for that use case.

The paper was from '80s or '90s, so it's not like we need to be in 21st century to design that way. I'll try searching for the paper later.

Re:Linus Torvalds: “Do No Harm” by cesarb on Wednesday November 22, 2017 @09:29AM (#15756978)
You might be thinking of KeyKOS, and of the anecdote which can be found at https://lists.inf.ethz.ch/pipermail/oberon/2010/005734.html (it should also be at the EROS homepage, but it's down for me at the moment).

See also: "Crash-only software" https://lwn.net/Articles/191059/

Re:Linus Torvalds: “Do No Harm” by klibertp on Wednesday November 22, 2017 @09:44AM (#15757085)
Yes, exactly this! Thank you.
Re:Linus Torvalds: “Do No Harm” by jessaustin on Wednesday November 22, 2017 @08:56AM (#15756759)
The flagger probably was uncomfortable with "FFS". After all colorful expression is bad for HN. b^)

What you're talking about seems like crash-only with Erlang/OTP.

Re:Linus Torvalds: “Do No Harm” by klibertp on Wednesday November 22, 2017 @09:58AM (#15757189)
It's similar in effect, but Erlang's ultimate response to the errors is redundancy instead of trying to salvage whatever was left by the process that crashed. I think the transparent distribution of Erlang nodes over the network is what enables Erlang's "let it crash and forget it ever ran" approach. Joe Armstrong said that they want Erlang to handle all kinds of problems, up to and including "being hit by a lightning" - so I think hardware redundancy is the right path here.

The OS[1] I've been talking about was primarily concerned with a single-machine environment, which resulted in slightly different design.

[1] https://en.wikipedia.org/wiki/EROS_%28microkernel%29

Re:Linus Torvalds: “Do No Harm” by jhasse on Wednesday November 22, 2017 @04:39AM (#15755546)
> or corrupting my stack pointer...

in that case, it will crash with a SIGSEGV sooner or later anyway

Re:Linus Torvalds: “Do No Harm” by Slavius on Wednesday November 22, 2017 @04:56AM (#15755623)
...or is being remotely exploited and it silently succeeds. Who wants that?
Re:Linus Torvalds: “Do No Harm” by jhasse on Wednesday November 22, 2017 @05:03AM (#15755658)
That is very unlikely. Crashing would happen 100% of the time though. Most people want that trade-off (meaning: If their browser would crash, they would switch to another one, even it was less secure).
Re:Linus Torvalds: “Do No Harm” by TickleSteve on Wednesday November 22, 2017 @07:44AM (#15756319)
Stack pointer manipulation is the entry point for an extremely large subset of security issues.
Re:Linus Torvalds: “Do No Harm” by Slavius on Wednesday November 22, 2017 @06:56AM (#15756109)
Corrupting SP is part of almost every exploit and I can guarantee you that it is very likely (going to cause harm on your system). Try to pull Metasploit GIT repo to get some idea about thousands of payloads that do corrupt SP without crashing the host...
Re:Linus Torvalds: “Do No Harm” by jhasse on Wednesday November 22, 2017 @08:55AM (#15756755)
Yes, but how many of all cases of corrupted stack pointers are exploits?
Re:Linus Torvalds: “Do No Harm” by jessaustin on Wednesday November 22, 2017 @09:21AM (#15756936)
Why would that matter? We're not trying to be secure against random cosmic rays. We're trying to be secure against attackers.

http://wondermark.com/406/

Re:Linus Torvalds: “Do No Harm” by jhasse on Thursday November 23, 2017 @04:25AM (#15763919)
It matters because we're talking about letting the browser crash on all cases.

> We're trying to be secure against attackers.

We also want a browser that doesn't crash.

Re:Linus Torvalds: “Do No Harm” by mcguire on Wednesday November 22, 2017 @12:51PM (#15758803)
Never had a single problem take down all of your instances at once, eh?
Re:Linus Torvalds: “Do No Harm” by muppetman on Wednesday November 22, 2017 @03:43AM (#15755317)
Say there's a minor error in a network driver. Yes, it might be exploitable by a smart person. But the error only triggers once a day when a counter rolls over. Do you really want your box to lock up and panic when this error is encountered, or do you just want your box to keep working.

I'm firmly in the first camp (I'll take lock up and freeze thanks) but 99% of users don't care about a bug like that and just want the box to keep working.

Re:Linus Torvalds: “Do No Harm” by jbangert on Wednesday November 22, 2017 @03:57AM (#15755381)
But do you want your box to send silently corrupted data for the next two years? Or would you rather reboot every night, and maybe escalate to your red hat support contract, where someone will then fix the underlying bug (for which you now have crashdumps),
Re:Linus Torvalds: “Do No Harm” by AndrewDucker on Wednesday November 22, 2017 @04:06AM (#15755423)
I'd want it to log that it's going wrong, and report that so that it can be fixed.
Re:Linus Torvalds: “Do No Harm” by marcosdumay on Wednesday November 22, 2017 @08:51AM (#15756728)
What data exactly is being corrupted?

Fail fast is a great philosophy for end-user software. But it is not that strictly good for middleware, and is almost certainly wrong for a kernel.

Re:Linus Torvalds: “Do No Harm” by azernik on Wednesday November 22, 2017 @06:28AM (#15756002)
If you're a desktop user, or a sysadmin without said support contract, you want the former.
Re:Linus Torvalds: “Do No Harm” by jandrese on Wednesday November 22, 2017 @09:41AM (#15757065)
That Redhat support contract won't save you from a bug in a binary blob network driver.

Crashing the whole kernel at the drop of a hat seems like a pretty extreme stance to take as a general policy IMHO. Killing and restarting the driver will usually suffice, although some data may be lost and have to be retransmitted.

Re:Linus Torvalds: “Do No Harm” by holri on Wednesday November 22, 2017 @04:22AM (#15755485)
I want both. Panic in a test/development kernel, do not panic in a production environment.
Re:Linus Torvalds: “Do No Harm” by TickleSteve on Wednesday November 22, 2017 @07:34AM (#15756268)
It the opposite...

you should panic in a production environment and reset the state of the machine (which has become indeterminate).

The correctness and validity of the data >> uptime.

Re:Linus Torvalds: “Do No Harm” by pilif on Wednesday November 22, 2017 @08:57AM (#15756773)
As so often, it really depends. Let's say you've just detected that you're going to send incorrect data because you've ended up in an indeterminate state.

If the remote end is going to ignore that data anyways, would it really be such a bad idea to keep running? Do you really want to go down in order to ensure that a remote who's ignoring your data can get correct data to ignore?

Of course you never know what sort of effect the corrupt data is going to have, so it's always hard to make that decision.

Like that issue with libraries linking against objective-c frameworks that has crept up with High Sierra and broke most of the Ruby world: Yes. The usage was incorrect. Yes, forking after threads are launched leads to undefined behavior, yes, knowing about it is a good thing.

But: So far the crashes have been rare in the common use-cases (or they would have been fixed), so High Sierra's change to blow up loudly when it detects the misuse has actually caused a lot of trouble for people where things worked fine before.

To the point where many Ruby developers were complaining about High Sierra "breaking" their workflow and recommending against upgrading.

The new check is totally justified though. The existing forking behavior was wrong and it could have lead to crashes down the line. It didn't though. And now people are forced to fix something that was never an issue to begin with.

It's a fine line to walk and while I generally prefer things to blow up as they go wrong, sometimes I catch myself wishing for stuff to just continuing to work.

On some self-reflection, I come to the conclusion that I want my cake and eat it too.

Re:Linus Torvalds: “Do No Harm” by TickleSteve on Wednesday November 22, 2017 @11:31AM (#15758083)
There rule I work to when I design these type of systems is that if the source of the error is internal you should reset and avoid propagating the error. Conversely if you receive an error from an external source you should handle it gracefully and reject the bad message.
Re:Linus Torvalds: “Do No Harm” by __david__ on Wednesday November 22, 2017 @11:30AM (#15758079)
On the other hand, the mere act of panicking may corrupt data (by virtue of stopping processes). I learned this the hard way when my kernel panicked while I was shrinking a large ext4 volume (the panic was unrelated to the shrinking). It's not just a simple equation like you've claimed.
Re:Linus Torvalds: “Do No Harm” by TickleSteve on Wednesday November 22, 2017 @01:08PM (#15758967)
A panic should stop the processor dead, no data should be corrected as a result. Data in flight should not be used if you use transactional I/O and therefore will not be used if a write does not complete.
Re:Linus Torvalds: “Do No Harm” by __david__ on Wednesday November 22, 2017 @03:49PM (#15760491)
That's fine in theory, but it didn't stop my disk from being corrupted. If the computer hadn't panicked, my data would still be available.
Re:Linus Torvalds: “Do No Harm” by TickleSteve on Wednesday November 22, 2017 @07:01PM (#15761757)
its not theory... your system wasn't designed to be fault-tolerant in that manner.

Systems that matter, are.

Re:Linus Torvalds: “Do No Harm” by __david__ on Thursday November 23, 2017 @03:32AM (#15763719)
The linux kernel needs to work with both tolerant and non-tolerant systems. Saying it needs to work a specific way that completely breaks real world things is completely naive, and exactly what Linus was railing against.
Re:Linus Torvalds: “Do No Harm” by kiriakasis on Wednesday November 22, 2017 @10:02AM (#15757221)
i use linux mainly to write latex these days, i don't want my kernel to panic, I do want my machine to stay operative and not corrupt my work.

The kernel (for my intended usage) should intentionally panic only if there is a risk of corrupting my .tex files.

Re:Linus Torvalds: “Do No Harm” by snvzz on Wednesday November 22, 2017 @05:21AM (#15755736)
Absolutely panic in a production environment.

Potential data corruption is far worse, so is a potential security compromise.

Re:Linus Torvalds: “Do No Harm” by eeZah7Ux on Wednesday November 22, 2017 @09:42AM (#15757073)
It really depends on the use case!

E.g. performing industrial control automation or airplane rudder control in a completely segregated network.

You want control over these tradeoffs, not hardcoded behaviors.

Re:Linus Torvalds: “Do No Harm” by snvzz on Thursday November 23, 2017 @05:03AM (#15764072)
Linux is ill suited for that.

Look at seL4, minix3, eChronos instead.

Re:Linus Torvalds: “Do No Harm” by hutzlibu on Wednesday November 22, 2017 @05:03AM (#15755657)
Well, only that most devices never were tested over months in development kernel ... and it is not possible to do so, with all those million different devices around.
Re:Linus Torvalds: “Do No Harm” by huhtenberg on Wednesday November 22, 2017 @03:54AM (#15755367)
> Why would you not want this?

    I was writing paper, on a PC, that was like "pip pip pip pip pip" 
    and then... like half of my paper was gone.. and I was like... 

    It devoured my paper.

    It was really good paper. And then I had to write it again and 
    had to do it fast so it wasn’t as good. It’s kind of... a bummer.
https://www.youtube.com/watch?v=VMt2MK67-Qw
Re:Linus Torvalds: “Do No Harm” by drinchev on Wednesday November 22, 2017 @03:53AM (#15755362)
Linux is used in so many critical systems.

What happens when a security bug stops the ventilating machine of a person lying in hospital bed, or halts the screen of a surgeon.

Not to mention voting machines, ISP's, telecoms.

For me having all those stopped, when properly exploited, looks more like a very scary DoS attack vector.

Imagine a security f*ck up, like Heartbleed, but this time with an option to halt kernels / systems.

Re:Linus Torvalds: “Do No Harm” by teamhappy on Wednesday November 22, 2017 @04:56AM (#15755622)
First things first: Kernels panic and processes crash. If your medical equipment or telco/ISP system can't recover from that then you're in trouble anyway. Why they crash doesn't really matter in that context.

As far as voting machines go, kernel panic sounds waaay better than executing malicious code.

> Imagine a security f*ck up, like Heartbleed, but this time with an option to halt kernels / systems.

IIRC heartbleed didn't allow you to execute code (it allowed you to read more memory than you should have been able to). A better example is every flash player bug ever. Would you rather that thing crashes or executes malicious code? Keep in mind that the malicious code can also shut down your system.

Also keep in mind that we're talking about userspace programs right now. This thread is about kernel bugs. Userspace programs already have the option to ask the kernel to kill them if they misbehave. A lot of them do that (using features like seccomp filter) and many more should. (Chrome and Firefox both use seccomp filter I think.)

Re:Linus Torvalds: “Do No Harm” by AnIdiotOnTheNet on Wednesday November 22, 2017 @08:00AM (#15756398)
I see. It's ok because we'll just pass the buck and make it someone else's problem.
Re:Linus Torvalds: “Do No Harm” by teamhappy on Wednesday November 22, 2017 @08:18AM (#15756518)
Let's say somebody gives you an USB stick and you plug it into your laptop. Which of the following scenarios would you like to see?

1. 0-day in the kernel's USB code. You're part of stuxnet now.

2. 0-day in the kernel's USB code. You're part of stuxnet now. You also get a message that tells you how and where to report the bug that was exploited.

3. 0-day in the kernel's USB code. Your computer crashes. You're not part of stuxnet. You also get a message that tells you how and where to report the bug that was exploited.

Linus is wrong (it happens). Exploit mitigation techniques aren't debugging tools. They're exploit mitigation techniques. The fact that they also produce useful debugging information is secondary.

Re:Linus Torvalds: “Do No Harm” by AnIdiotOnTheNet on Wednesday November 22, 2017 @09:38AM (#15757046)
This is exactly the kind of thinking Linus is talking about. In 3, I lost my work. Possibly very important work. To most people, being a part of stuxnet, while undesirable, is preferable to losing their work.

And you neglected a scenario 4: nobody is attempting to compromise my machine, but a buggy bit of USB code just crashed my system and took all my work with it.

Re:Linus Torvalds: “Do No Harm” by dwild on Wednesday November 22, 2017 @10:55AM (#15757730)
You never learned at school to save what you are working on often? It's crazy, you are either too old to have required computer for school work or too young to have not lived through years of constant bluescreens.

Both 3 and 4 are mitigated by you saving your document often... it's not so bad, considering it can happen whatever you do.

Nowadays, Word is made to keep saving your change for that reason... They learned and designed it for the worst situation which is a whole system crash. If you can't handle that, well you aren't doing your work well.

Re:Linus Torvalds: “Do No Harm” by AnIdiotOnTheNet on Wednesday November 22, 2017 @12:06PM (#15758383)
Again, passing the buck. You know what I do instead of use your software that crashes all the goddamn time? I use someone else's software that doesn't.

Yes, of course we should save often, have decent backups, etc. But nobody is perfect and shit happens, and it'd be nice if the software you use didn't intentionally make it worse.

Re:Linus Torvalds: “Do No Harm” by CJefferson on Wednesday November 22, 2017 @09:06AM (#15756826)
The problem is, what actually happened (in a previous commit) was:

The IPv6 stack does a perfectly sensible and legal thing. The hardener code misunderstands the legal code, and causes a reboot.

That it was Linus is worried about -- often it is hard to tell the difference between "naughty" code which can never be a security hole, and genuine security holes.

They should all be fixed ASAP, but making code that previously worked make a user's computer reboot, when it is perfectly fine, is not a way to make friends.

Re:Linus Torvalds: “Do No Harm” by teamhappy on Wednesday November 22, 2017 @09:18AM (#15756916)
Bugs in the hardening code are obviously bad and annoying but that's besides the point. All bugs are bad and annoying, especially ones that cause a kernel panic. I don't think anybody is going to argue with that.

That's not what Linus said though. What he said is:

    > when adding hardening features, the first step should *ALWAYS* be
    > "just report it". Not killing things, not even stopping the access.
    > Report it. Nothing else.
and:

    > All I need is that the whole "let's kill processes" mentality goes
    > away, and that people acknowledge that the first step is always "just
    > report".
"Not killing things, not even stopping the access." Oh boy.
Re:Linus Torvalds: “Do No Harm” by cesarb on Wednesday November 22, 2017 @09:36AM (#15757034)
Step back a bit: when developing a new selinux policy, won't you develop first on permissive mode, and only after it's working without warnings, enable enforcing mode? It's the same thing here: the hardening should be developed first in a "permissive" mode which only warns, and then, after it's shown to be working without warnings, changed to be "enforcing" (in this case however, after some time the "permissive" mode can be removed, since new code should be written with that hardening in mind).
Re:Linus Torvalds: “Do No Harm” by teamhappy on Wednesday November 22, 2017 @10:28AM (#15757476)
I didn't mean that to sound like I'm in favor of turning the thing on right away.

(Also, the quotes I chose don't really help me make my case but I don't want to edit now since you've already commented on it. His first mail is way worse: https://lkml.org/lkml/2017/11/17/767)

Basically what I'm disagreeing with is that exploit mitigation's primary purpose is finding and fixing bugs. That's just not true. Its primary purpose is to protect users from exploitable bugs that we haven't found yet (but someone else might have).

Re:Linus Torvalds: “Do No Harm” by CJefferson on Wednesday November 22, 2017 @02:50PM (#15759936)
By first step, Linus just means "for a year or two". Yes it would be nice to put super high security on today, but instead we slowly turn up the setting, from opt in to opt out to forced on, to ensure we don't break anything.
Re:Linus Torvalds: “Do No Harm” by Uristqwerty on Thursday November 23, 2017 @03:44AM (#15763782)
4. 0-day in the kernel's USB code. Your computer crashes. You're not part of stuxnet. You also get a message that tells you how and where to report the bug that was exploited, but the part of your computer that was supposed to log the message died with the rest of the system, so you never see it and the bug never actually gets reported. Your computer continues to crash randomly for the next few days as an infected computer keeps trying to spread.
Re:Linus Torvalds: “Do No Harm” by pjmlp on Wednesday November 22, 2017 @05:22AM (#15755741)
> What happens when a security bug stops the ventilating machine of a person lying in hospital bed, or halts the screen of a surgeon.

Linux is not a kernel for this kind of uses. Whoever does it, is doing a disservice to the people.

Operating systems like INTEGRITY RTOS or similar, are the only ones able to match the security quality requirements for such deployments.

https://www.ghs.com/products/rtos/integrity.html

Re:Linus Torvalds: “Do No Harm” by hutzlibu on Wednesday November 22, 2017 @05:06AM (#15755681)
"Linux is used in so many critical systems"

It is? I learned that in those areas you use different, much simpler and therefore more stable operating systems.

Re:Linus Torvalds: “Do No Harm” by snvzz on Wednesday November 22, 2017 @05:23AM (#15755742)
> Linux is used in so many critical systems.

It shouldn't be. It's ill suited for that.

Look at seL4, minix3, echronos instead.

Re:Linus Torvalds: “Do No Harm” by eecc on Wednesday November 22, 2017 @08:53AM (#15756745)
Well apparently even minix3 is not free from critical vulterabilities ;)

https://security-center.intel.com/advisory.aspx?intelid=INTE...

Re:Linus Torvalds: “Do No Harm” by floatboth on Wednesday November 22, 2017 @02:58PM (#15760023)
Intel's shitty apps running on Minix != Minix itself
Re:Linus Torvalds: “Do No Harm” by mcguire on Wednesday November 22, 2017 @12:59PM (#15758881)
Minix 3?
Re:Linus Torvalds: “Do No Harm” by exikyut on Wednesday November 22, 2017 @05:03AM (#15755661)
Hooold it. Some of those things are not like the others.

--

I pity the engineers working on ventilation machines and the like. Medical devices are insanely hard to get right; that's neck and neck with aviation testing. I'm reminded of SQLite3's "aviation-grade" TH3 testsuite, which apparently has 100% code coverage. Let's be honest; Linux's monolithic design can't really attain that.

I would never use Linux for a medical device. I say this as someone who just happens to only be running Linux on every machine in the house right now (and I have for years, it's just how things have worked out, it's not at all novel or whatever, my point is that I'm totally comfortable with it). I'd use L4 or something instead. In a pinch I'd use a commercial kernel with tons of testing. Maybe I'd even use Minix; I'm quite sure a lot of people in industry are seriously looking at it now Intel have pretty much unofficially greenlit it as a good kernel (lmao).

--

Voting machines, on the other hand; I'd totally use Linux for that, because the security/usage model is worlds apart. Here, I WOULD ABSOLUTELY LIKE FOR THE TINIEST GLITCH TO CRASH THE MACHINE, because that glitch could be malware trying to get in.

The user experience of a voting machine is such that you walk up to it, identify yourself, and push a button. Worst case scenario in this situation is that you do some involved process to ID yourself and then the unit locks up, so you have to redo the ID effort on another unit. That is, for all use cases, not going to be a problem.

(I think that's the first time I've used all caps in years!)

--

Telecom systems... those are also a totally different world. See also: Erlang. In this situation you would likely want a vulnerability to literally sound a klaxon on a wall, but have the system still keep going.

I'm reminded here of an incident where a country's national 3G system was compromised (not the US, somewhere else) by hackers and the firmware of the backend systems was hot-patched (think replacing running binary code - the OS allowed it, it was REALLY hard to even notice this was happening) to exfiltrate SMS messages and cause calls to certain numbers to generate a shadow call (which ignored mic input) to an attacker-controlled number as well.

Telecoms is a classic case of massive scale; nowadays a single telecom switch might be routing thousands of calls through at a time. Yeah you don't want even a single machine to go down. But you DO want VERY thorough debugging, auditing and metrics.

(Which apparently don't exist.)

--

As for a Heartbleed-esque catastrophe, apparently one is going to be announced for Intel ME at the upcoming Blackhat(?) conference in December. I can't wait to hear about it myself.

Re:Linus Torvalds: “Do No Harm” by TickleSteve on Wednesday November 22, 2017 @07:56AM (#15756376)
Erlang's error-handling model is good (and interesting). Th e motto is: "Let it crash".

Each node does not handle errors at all, but PANICs on a fault. It is up to the supervisor (with global knowledge and state) to handle the fault appropriately.

Re:Linus Torvalds: “Do No Harm” by bjourne on Thursday November 23, 2017 @07:34AM (#15764607)
It's good for uptime, but not good for correctness. The main problem is that it is hard to differentiate expected from unexpected crashes. Something like a missing pattern match can lead to a crash and it is very hard to know if the programmer "intended" for a crash to occur in that case or if the missing pattern is a bug.

You can have processes that reboot once every few minutes running for years because people didn't realize they were bugged.

Re:Linus Torvalds: “Do No Harm” by ac29 on Wednesday November 22, 2017 @10:06AM (#15757253)
>As for a Heartbleed-esque catastrophe, apparently one is going to be announced for Intel ME at the upcoming Blackhat(?) conference in December. I can't wait to hear about it myself.

Light on details, but the vulnerabilities are disclosed and fixed [0]. ME updates are already available from many OEMs.

[0] https://security-center.intel.com/advisory.aspx?intelid=INTE...

Re:Linus Torvalds: “Do No Harm” by exikyut on Wednesday November 22, 2017 @07:48PM (#15761977)
Right. But "don't apply the patch!" is sort of circling as well, because (presuming the Blackhat disclosure is workable, it sounds like it will be but fingers crossed) we might be able to play with our MEs.
Re:Linus Torvalds: “Do No Harm” by hpaavola on Wednesday November 22, 2017 @05:34AM (#15755796)
Many medical devices run Linux. Most (AFAIK) patient monitors run Linux; GE and Philips (the biggest is business) both run on Linux. Those are the devices that keep you alive during surgery, make sure that those who are born too early (I don't know the English term here) are doing ok, monitor you state while you are in ambulance etc.
Re:Linus Torvalds: “Do No Harm” by TickleSteve on Wednesday November 22, 2017 @07:52AM (#15756360)
No...

Many medical devices run Linux as a User-Interface... (or Windows for that matter).

The actual safety-critical portion of these systems is rarely running Linux, but rather on a bare-metal micro.

Re:Linus Torvalds: “Do No Harm” by exikyut on Wednesday November 22, 2017 @07:50PM (#15761984)
That makes a lot of sense.

I'm reminded of a UAV doing the same thing. It ran L4 for low-level control, realtime scheduling, and security, and then virtualized Linux on top of that.

Sounds unbelievably clunky on the surface, then you realize it's a remarkably useful way to abstract everything cleanly.

Re:Linus Torvalds: “Do No Harm” by weavie on Wednesday November 22, 2017 @06:46AM (#15756073)
Born prematurely..
Re:Linus Torvalds: “Do No Harm” by TickleSteve on Wednesday November 22, 2017 @07:45AM (#15756326)
For safety-critical systems, resetting on a fault is very much factored into the worst-case response time and expected behaviour.

PANIC on fault is exactly what you design into the systems.

What you find is that the truly safety-critical portion of the system is running on a microcontroller and the UI (which is not safety-related) can run on Windows or Linux.

Re:Linus Torvalds: “Do No Harm” by dullgiulio on Wednesday November 22, 2017 @05:16AM (#15755719)
Thank you for that!

Seems like so many in security fail to see the DoS implication.

There is no solution to bugs other than fixing them. And that's what Torvalds and others have been saying: for a security researcher, finding the bug is the end of the job. For developers, that's just the start.

Re:Linus Torvalds: “Do No Harm” by zzzcpan on Wednesday November 22, 2017 @07:56AM (#15756377)
A better way of course is not to halt on assertion, but to limit the scope of any potential problem in a such way, that an assertion could only crash a tiny isolated thing and trigger its restart, possibly not impacting availability whatsoever. You still get your sanity, but also get users happy with a rock solid thing that just works even in a presence of errors.

The idea is known as supervision trees.

Re:Linus Torvalds: “Do No Harm” by _asummers on Wednesday November 22, 2017 @10:36AM (#15757550)
Erlang VM works this way, if someone's looking for a program that does this in practice. They have the mantra "let it crash". Something higher than you is in a better position to handle your error and restart you to a known good state.
Re:Linus Torvalds: “Do No Harm” by Fnoord on Wednesday November 22, 2017 @08:59AM (#15756789)
I think a good tradeoff could be that with containers, the individual containers are hardened, whereas the kernel's host OS is not. The host OS doesn't do much except keeping the containers running.
Re:Linus Torvalds: “Do No Harm” by Santosh83 on Wednesday November 22, 2017 @04:05AM (#15755421)
AFAICS, Linus also wants it, but he wants a panic to be preceded by a rather lengthy span with just a warning, allowing the concerned dev to actually fix the error. Essentially he's saying: "take it slow, and don't break user experience."
Re:Linus Torvalds: “Do No Harm” by makomk on Wednesday November 22, 2017 @06:01AM (#15755910)
Due to the aggressive nature of grsecurity, a lot of the assertions it trips on are bogus; either they didn't understand the code they were securing or they changed the rules without properly updating all the affected code. For example, there was a particularly obnoxious panic in the tty layer a few versions back that was entirely the result of this.
Re:Linus Torvalds: “Do No Harm” by iforgotpassword on Wednesday November 22, 2017 @03:46AM (#15755334)
Servers: yes, phone/home PC: no. Maybe my dev machine but my wife wouldn't be happy with a kernel panic while writing an email. Like Linus said, this would go unreported with the average user because they just reboot in annoyance.
Re:Linus Torvalds: “Do No Harm” by digi_owl on Wednesday November 22, 2017 @10:17AM (#15757350)
More and more it feels like the _sec world wants to go back to C64s dialing into big irons...
Re:Linus Torvalds: “Do No Harm” by jstanley on Wednesday November 22, 2017 @03:43AM (#15755316)
Because you'd rather just do your work and not have to deal with unnecessary kernel panics?

If the system can continue running, it should do.

Re:Linus Torvalds: “Do No Harm” by CGamesPlay on Wednesday November 22, 2017 @03:41AM (#15755310)
When the invalid write overwrites some piece of data your application doesn't care about (or more likely some feature in some driver you don't care about). Especially when the trade-off is the web site goes down.
Re:Linus Torvalds: “Do No Harm” by jhasse on Wednesday November 22, 2017 @03:35AM (#15755270)
For the cases where it was a false-positive.
Re:Linus Torvalds: “Do No Harm” by otabdeveloper1 on Wednesday November 22, 2017 @03:52AM (#15755356)
A.k.a. 99.9999% of the time.
Re:Linus Torvalds: “Do No Harm” by babarock on Wednesday November 22, 2017 @08:12AM (#15756467)
> Why would you not want this?

You don't want your machine to start crashing after installing the latest kernel. Or at least, that's the golden rule of Linux development.

If phones start crashing after installing the latest Android update, people won't see this as a security/stability improvement. They'll simply see the new version as buggy and of poor quality.

Re:Linus Torvalds: “Do No Harm” by lima on Wednesday November 22, 2017 @03:44AM (#15755323)
It's a deliberate trade off. Not panicking results in uncaught exploitation attempts, and panicking will result in crashes where a vanilla kernel would happen to survive.

It should have been made a sysctl toggle.

Re:Linus Torvalds: “Do No Harm” by rhinoceraptor on Wednesday November 22, 2017 @08:12AM (#15756468)
If an assertion does not hold, you have a real problem. The kernel has in-memory data corruption. Either from buggy code, bad memory, solar radiation, etc.

So if that assertion is in the file system, maybe your kernel should die before it corrupts your data permanently.

Re:Linus Torvalds: “Do No Harm” by mcguire on Wednesday November 22, 2017 @12:49PM (#15758785)
Depends. How attached are you to getting work done today?

I too would like to live in a world where sanity preserving assertions have rational consequences. But that world is not this world, and pretending it is won't help you get there.

Re:Linus Torvalds: “Do No Harm” by kazinator on Wednesday November 22, 2017 @01:33PM (#15759198)
> This is exactly what you want if you care about security,

A deliberate panic could be the basis of a denial-of-service exploit.

Re:Linus Torvalds: “Do No Harm” by mcguire on Wednesday November 22, 2017 @12:42PM (#15758721)
"Grsecurity will rather terminate userland programs or, in some rare cases, panic the kernel if it finds itself in an undefined state. This is exactly what you want if you care about security, but it's not a trade-off everyone is happy with (including Linus)."

If you really cared about security, you'd leave the box unplugged.

"I remember many bugs that were uncovered by PAX_REFCOUNT and yes, occasionally panicked the kernel where a vanilla kernel would run just fine. They usually found and fixed those within hours."

Speaking as someone who has done middling large scale production administration, that's not reassuring.

Re:Linus Torvalds: “Do No Harm” by nerdponx on Wednesday November 22, 2017 @08:29AM (#15756584)
Why isn't Grsecurity publicly available anymore?
Re:Linus Torvalds: “Do No Harm” by ac29 on Wednesday November 22, 2017 @10:10AM (#15757287)
https://grsecurity.net/announce.php

Reading between the lines, it seems to be a money thing.

Re:Linus Torvalds: “Do No Harm” by nerdponx on Wednesday November 22, 2017 @11:12AM (#15757890)
Sigh. Tragedy of the commons.
Re:Linus Torvalds: “Do No Harm” by mtgx on Wednesday November 22, 2017 @07:41AM (#15756303)
Because Linus hates them? Make Brad Spengler the primary maintainer of the Linux kernel and we may actually get self-driving cars that don't kill us when they get hacked in 5 years.
Re:Linus Torvalds: “Do No Harm” by pgeorgi on Wednesday November 22, 2017 @10:38AM (#15757582)
> Make Brad Spengler the primary maintainer of the Linux kernel and we may actually get self-driving cars that don't kill us when they get hacked in 5 years.

But only because every self-driving car project out there will avoid Linux like the plague.

Re:Linus Torvalds: “Do No Harm” by TimPC on Wednesday November 22, 2017 @01:18PM (#15759070)
Instead of self-driving cars maybe crashing from being hacked in some possible future we'll get kernel panics leading to crashes in all possible futures because we'll trigger car crashes on every false positive, because crashing in the face of the unknown is a seemingly acceptable solution to a security risk. Even if the software is running self-driving cars and crashing may mean crashing. In practice, false positives are way more common than exploits and in many user cases they'd rather have 1 computer exploit than 1000 or 10,000 crashes.
Re:Linus Torvalds: “Do No Harm” by torpcoms on Thursday November 23, 2017 @08:08AM (#15764759)
You would rather have a self driving car in an undefined state, rather than having it shut down? A random glitch could be just as bad as an exploit; if some chunk of memory gets overwritten and your car decides that the brick wall doesn't actually exist any more, I don't think whether it was an an exploit or not really matters. The occupants end up injured either way.
Re:Linus Torvalds: “Do No Harm” by pgeorgi on Thursday November 23, 2017 @11:37AM (#15766136)
The undefined state might be in the GPU driver handling the heads-up display, or maybe in the sound subsystem. No need to shut down the system at the kernel level for that. Report the issue to the userland, so that it can decide whether to initiate a safe halt at the sidewalk or emergency lane.

After telling the kernel to shut down immediately you don't have that option any longer.