474 points · by nkurz · 11y ago · 227 comments
We're still arguing over "goto considered harmful", "the billion dollar mistake" and how toolchains influence code-safety-behavior.
And there exists a class of CASE tools from the '90s that, while being somewhat clunky, addressed some of the transparency issues. But those are hardly even relevant any more.
And to make it worse - the final configuration of the system matters just as much as whether the code bases for the individual nodes have passed an audit. This is especially true of CAN networks.
Most of the complexity is in the messages passed between systems. In a code audit it's fine to remove sending tag X by system A but then you find out when you hit prod system B used tag X and now it's not there which causes a problem in system C. And that would be a simplified example.
I'd be disturbed by any outsider claiming they understand the dynamics of multiple systems with millions of lines of code which often have feedback loops.
Source: I don't work for a bank, but have worked in electronic trading for the past 8 years and work directly with the (in)competent tech teams from other banks to clear and reconcile trading bits.
Automobiles are going along that curve too. Maybe this whole VW scandal is an indication of this change?
edit and the Toyota firmware scandal in 2013 has similar implications: http://www.latimes.com/business/autos/la-fi-hy-toyota-damage...
A 3rd party review can reveal horrid practices, but it's hard-pressed to make any sort of guarantee, no matter how soft.
We know how to do better than "process". Software verification techniques are approaching economical. If a piece of safety-critical software is going to put lives at stake on every road in America, it's reasonable to ask the creator of the software for a set of formal specs that is concise enough it can actually be reviewed by experts, together with a proof that their software meets that formal spec.
> We know how to do better than "process".
Are you saying that revealing source will lead to more bureaucracy that formal specs will somehow avoid? I don't see how that follows.
> Are you saying that revealing source will lead to more bureaucracy that formal specs will somehow avoid?
I'm arguing that process is insufficient (which, crucially, doesn't imply formal methods are by themselves sufficient, and also doesn't imply process or access to source code isn't necessary).
Merely revealing the source code isn't enough if you need to know how the car behaves and have to recover the meaning of a bunch of complicated equations in order to make any sense of the code. Really reading and trusting the code would require more effort than re-writing it.
> Current history is showing that if the source code isn't revealed, the formal specs will be rigged
Hm. That's very surprising to me. Can you give an example of a company providing a rigged formal spec?
Also, rigging formal specs is why the formal specs should be reivewed by a third party expert.
And if/when fraud does happen (e.g., by giving a bunk formal spec or cheating on the proof), formal methods still have two advantages over process:
* The debate over whether enough work went into QC becomes trivial, and skimping on QC becomes willful deceit (something that's incredibly hard to demonstrate in the status quo).
* Unlike process, there are technical solutions to the problem of rigging proofs. And, the specs themselves are much easier to review than the code. So the review process is pretty likely to catch cheating.
Michael Barr's review of Toyota's ECU code (http://www.safetyresearch.net/Library/BarrSlides_FINAL_SCRUB...) showed numerous compliance issues with established industry best practices (80,000 violations of MISRA-C) and failure to even follow Toyota's much laxer internal coding standards (32% rule violation). Toyota shipped uncertified versions of their code and the design and behavior of that code prevented defect detection.
Really I'd say that part of the problem here is that academia has been letting us down. CS programs are universally of fairly low quality, in my opinion, and proper software engineering programs are very rare. There has been insufficient pure research into software development practices, software design patterns and features, and so on in regards to what is required and what is beneficial when it comes to creating control software and firmware. Industry too has been letting us down with their lack of pure research in general, but that's been obvious for a while.
We're starting to reap what we've been sowing for the last several decades in software engineering. We got out of the first "software crisis" where many software projects didn't even deliver anything worthwhile or functional, but now we are in another perhaps even more severe software crisis. One where shipping software that "works" isn't a problem, but where making sure that it does the "right thing" and is sufficiently secure, robust, etc. for the intended use is becoming a huge issue. And not just a financial one, but one that can (and will, and has) result in injury, death, and destruction. We very much need to wake up to the seriousness of this problem, it's not going to get better without concerted efforts to fix it.
It also makes some things a lot more difficult. For example the compiler must be certified by a government authority. This means we're stuck with a compiler nobody ever heard of that contains known (and unknown) bugs that can't be fixed because that would mean losing the certification.
I assume the car industry has a similar set of rules and the problem is not a lack of rules, but a lack of enforcement.
The exact same thing happens in the car industry.
> I assume the car industry has a similar set of rules and the problem is not a lack of rules, but a lack of enforcement.
Bingo! Right now I'm staring at some ECU code(not safety relevant, thankfully) that looks like it's been written by a monkey, but I'm a new addition to the team, have no authority here yet and we have to ship it like yesterday.
Guess what will happen.
Truth be told, for safety relevant applications, I've seen the code and it's quite good. And the issue in this case is not that the software was badly built, it's that it was built with deceit on their mind.
[I was also told by my team leader "no, you can't fix that code, it belongs to X from the main office and he will get angry and not help us anymore".]
This is why regulators should embrace formal methods as an alternative to process-heavy regulation. They're actually measuring ground truth, and today are not that much more expensive after accounting for all the costs associated with certification processes.
Which gives another issues: people breaking the law by changing their ECU map, to exhaust more pollutants.
But I suppose this is no more of an issue then it was/is with WiFi access points, not a lot of people do it, and you don't want to brick your car :D
These standards have been around a long time too.
The "VW diesel-gate" aside, I do share your feelings about the quality of CS programs in general. There is nowhere near enough education about real-time systems, high-reliability systems, and formal verification methods. All of these topics are completely appropriate academic material, in addition to being fundamentally useful for business needs. I'm not sure any of these topics are covered in the usual undergraduate curriculum.
That is, if anyone finds a bug impacting safety in the ECU code, the manufacturer has to pay $1 million to them.
If any employee shows they release obfuscated source code, or the binary is not compiled from that source code, they get $100 million reward paid by the company and criminal charges are filed against those responsible.
Demanding that all code be open-source unfairly targets the software industry (companies that sell software products for money). Why not ask Google to make their search engine code public ? If all software code must be publicly available, why not demand that Coca Cola also make their formula and their entire manufacturing process public ? Why not insist that no product must have any proprietary/secret information about how the product was created ?
Ultimately, the proof is in the pudding. I think we need a better emission testing system for testing emissions, not a government review of software code.
IMO asking for free software code is an ideological demand that is better promoted through the free market. Free software ideologues should refuse to buy products that have proprietary components, but all of us should only ask that the government fix its emission testing process.
Open source means a license which grants others permission to modify and share the code in a non-discriminative way. This is not that.
> asking for free software code...
Free software also add patent grants and the right to run the software for any purpose. While anti-DRM has been called for in other articles, code inspection doesn't need to be done by volunteer researchers and can simply be done by government inspections. This leads me to...
> why not demand that Coca Cola also make their formula and their entire manufacturing process public
I am sure Coca Cola allow health inspections into their manufacturing process. They are also required by law to provide an ingredient list in order to be sold for human consumption, including a nutrient list which further details what Coca Cola is made from. If they had sneaked in some illegal substances, say rat poison, we would be here asking why current regulations were not enough.
> we need a better emission testing system
We can always claim that the testing systems need to be better, but it is not enough to just do black box testing when the product itself can identify and change behavior during testing. If society keeps the current system, we would need to at least add criminal liability for deceiving during testing.
Check your coke can. Look for the word "flavor". That's not an ingredient. That's their secret recipe stuff. They don't have to disclose it on the label. They can make a "generally recognized as safe" (GRAS) determination in-house and exempt themselves from disclosure of a trade secret. These are often submitted to the FDA for approval, but not always. If the substance can be determined as gras based on publicly-available information they need not submit to the FDA. It's all about allowing companies to keep their trade secrets ... which is very much similar to the situation with vehicle electronics.
The legal fallout if Coca Cola claimed rat poison as GRAS would be nothing less of major incident. The expert panel that they are required to hire would likely go to jail on fraud. The documents to the FDA would be proof of intentional deceit, basically guaranteeing that who ever submitted it will get the harshest punishment available to the court. All of it would be enough of a deterrent that companies only do this for the most critical company secrets which they are 100% sure is safe, and everything else can be inspected by the FDA. A pragmatical and reasonable method to make life critical products as safe as possible.
However the major part of Coca Cola (and its flavour) is in the recipe - the technical process that yields final product, not the chemical composition of the ingredients.
I don't have a reference handy, but I am going to present you with an analogy for french fries. I hope you can understand my point from that case (which is even more illustrative of the phenomena I am trying to highlight).
http://aht.seriouseats.com/archives/2010/05/the-burger-lab-h...
There are plenty of fields where the Car Companies can compete - and software quality should absolutely be one of them. Therefore killing DRM does everybody a favor.
As far as I know the discussion is against DMCA, which prevents even looking at the code on the car. DMCA makes no sense whatsoever.
https://www.eff.org/deeplinks/2015/09/researchers-could-have...
It makes the law is trying to avoid their being a distinction between code that lives on hardware you have in your possession and code that lives on a company server.
For instance you might be indignant that you can't look at the code on your proprietary device, but you aren't indignant that you can't look at the code that runs Google's search engine.
So without laws to "equal the playing field" in a sense - server side service companies get a distinct advantage as they're able to have trade secrets - while companies that distribute code are kinda screwed.
Even with the current legal environment companies STILL try to push processing into their own server controlled space (see Siri, Cortana, most cloud services)
The problem of everyone uploading code to the cloud to prevent this (which is not applicable to cars firmware anyway) is different, and a valid way to protect your IP. I don't particularly care this makes code move into the cloud. But the packets sent to your device, which may affect your device, your health, well-being directly, you should be able to read and modify -- same as the local code. By forcing black boxes upon us we don't have a minimal control, understanding, or prediction of what our own devices can do to ourselves. It's insane.
That's a great question - why not? For many consumers, Google essentially is the internet, and by meddling with search results (which they already do to try to personalise my results) they could make or break companies or politicians by presenting one-sided or even false material. That's a lot of power - why shouldn't we know how it works to make sure they're not abusing it?
The bigger question is: why do you think that there is some kind of pure, objective ranking of websites that Google is now tampering with? Do you think that someone whose IP is located in Utah should get the same result for "good hamburgers late night" as someone in New York? If someone from Vietnam searches for "Vietnam War"...should they be sent to the entry at vi.wikipedia.org because it's in Vietnamese and perhaps more relevant to the Vietnam user? Or to en.wikipedia.org's version, because besides having a shitton more inbound links, it's likely to have also many, many more eyes and editors on it? These are complicated things that we don't need a review of source code to debate. But your suspicions toward them seems to be based off of a worldview in which there is One True Web for everyone, which seems as problematic as the mindset that surely Google can do no evil.
Given that Google uses personal data to shape the web its users see...isn't it even more relevant to see the data they collect? AFAIK, Google still allows us to download virtually every bit of data we've explicitly generated on its services, including all the emails and search requests we've conducted.
There is One True Web, of course, which is the collection of all documents on the web at any given point in time. But the interface to that web is nearly always a search engine which are all obviously presenting a list of suggestions according to some criteria. Google used to use PageRank, which was a relatively "objective" criteria in that at least it applied equally to all pages. Google now uses tons of data to make decisions about what to show me when I search, but neither you nor I have any idea what they are. Maybe they do actually use some algorithm which applies equally to all pages. Maybe they use some deep neural net, and not even they know how it actually works. Maybe they have a list of heuristics that they're evilly using to manipulate all the world's information. We'll never know without seeing the source code.
Again, I'm not tabling it as a serious proposal, or claiming that Google are doing anything evil. But given that they have the potential to essentially manipulate the sum total of the world's knowledge as seen by 99.999% of the population it doesn't seem ridiculous to consider whether we might like more insight into what they're doing.
I don't find this one so complicated; they're better sent to en.wikipedia.org, because that page, like their query, is written in english.
The 'one true web' idea is a red herring. We absolutely need to know how google biases the results.
Yes, I absolutely do. What if they want to find out what "people in general, according to Google" think and write about that? That question isn't even possible anymore, if you will.
> If someone from Vietnam searches for "Vietnam War"...should they be sent to the entry at vi.wikipedia.org because it's in Vietnamese and perhaps more relevant to the Vietnam user?
No, because "Vietnam War" is an English phrase. I doubt it's spelled that way in Vietnamese.
> of a worldview in which there is One True Web for everyone, which seems as problematic
How so? When I watch a movie, I see what everybody sees. If it's full of advertisement or laced with propaganda, I know it's that way for everybody. I think that has value in itself. Not every query is about getting what I want, sometimes I want to see "how the world is", and for that purpose Google, Facebook and others aren't helping with their being overly helpful. Others may feel different, but FWIW, I never heard anyone say that typing "ordering pizza in X" is just too much work compared to just typing "ordering pizza". Thinking such things are neat were, as far as I can tell, unilateral decisions made by these corporations. Nobody asked for it, nobody would miss it, and I think it's harmful just for destroying the idea of a "consensus reality" on the web even being possible.
That's a double-edged sword here. The current problem with search, and one of the reasons the exact algorithms stay undisclosed, is not Google. It's your average Joe the small business owner, who sees no problem with poisoning the Internet with spam and fake websites, just to gain a competitive edge. There's even a whole industry (SEO/SEM) serving such Joes, that specializes in extreme "meddling with search results". As long as Google maintains some control over it, it can tweak and twist their algorithms to counteract the manipulation, or even explicitly penalize biggest offenders. Take that control away and the Internet will go to shit.
Search is a common resource, and it needs to be managed. I'm far more willing to trust Google than a mob of hundreds of millions "entrepreneurs" trying to one-up one another at the cost of everyone else.
Would Bing suddenly become a lot better? Certainly. Would people start using Bing over Google if it just became as good as Google search? Certainly not. The only candidates that might take market share are DuckDuckGo and StartPage, who preach privacy and thus a lot of users (including myself) prefer them despite their poorer search results. If they could get Googles algorithms, they would produce better results and probably steal market share.
How much market share? 1%? Do privacy savvy searchers even constitute 1% of search traffic now?
Yes, it is absolutely a bad business decision for them to publish their source. They are much more likely to lose money than to see third party contributions to their code make their search so much better they offset the cost of everyone having access to the same quality search. But I still postulate it would not be much revenue and market share, and that there are tremendous applications for extremely sophisticated search algorithms like Googles that could produce tremendous economic prosperity for other disciplines, and I imagine their work might be applied in completely unrelated industries for other search domain problems. Their algorithm is ultra-specific to web page indexing, but I'm sure in that Goliath beast of code there is some novel ingenuity that we are missing due to its closed nature.
That's their problem.
The problem is that the amount of devices out there with non-proprietary components is close to nil. So there's a clear lack of choice, it's almost impossible to get a computer without non-free blob inside as well. The balance is clearly skewed towards proprietary-everything.
But I also imagine it would be impossible to build due to how few of us even care.
You would need chips, which are pretty much not being manufactured anymore. Good luck buying fab time as TSMC, and having enough volume to justify it. You also need a design, thankfully the SPARC chips have open designs, but they are still really old for old fab tech. Good luck getting the engineers to update it.
You need mainboards, assembled somewhere (expensive) and fabbed (again, expensive). You could invent your own or reuse a published ancient print if any exist.
You would need open designed DRAM, and good luck trying to support modern iterations like ddr3 or 4 on old SPARC boards. I'm not aware of any DRAM being sold with open blueprints, but also have not looked much into it.
You would need open storage devices. No SSD or HDD qualifies today, since they all have proprietary microcode controllers. No open designs or firmware to be found there.
You would need a graphics accelerator. While there are some purely free software GPU drivers (Broadcom for the Raspi) none of the designs are open. Again, good luck.
All combined the cost of just getting these five core components in a firmware free / open design state is insane. It would be on the order of tens or hundreds or probably a billion or more USD just to get a few thousand units. And at those kinds of costs (lets say we are optimistic and sell 10,000 fully open computers) and say it cost only 100M to build them, they would be $10,000 each for what is probably as powerful as something proprietary you could pick up today for $50-100.
One day I'm absolutely certain there will be a sustainable market for such a computer, because with proprietary hardware and software you are guaranteed to eventually be screwed over. Its only a matter of how deep in the rabbit hole you want to get before you wake up and realize how bad an idea it is. Eventually, I am certain all hardware and software design will be open, its just a matter of how long we want to slow progress and risk our individual prosperity on proprietary tools until enough wake up to the problem.
This doesn't work when you are a small minority of the market. It just means you can't have anything. The economies of scale required to produce processors, etc do not enable niche markets to thrive.
That's a fundamental misunderstanding of the requirement for 3rd party review, and it seems to be a common oversimplification here on HN. There is some precedent for auditing important code without any intention of open-sourcing it:
http://uk.businessinsider.com/microsoft-opens-transparency-c...
http://uk.businessinsider.com/apple-china-security-audits-ns...
Code is not the problem - in this case code is just one possible loophole out of many possible loopholes.
The fix here is to make sure that corporate officers who break the law and cause significant harm are jailed and/or stripped of any profits they accumulate as a result of their actions.
This will not happen because we've set up a culture where the higher up the pyramid you are, the more you gain personally and the less you need to worry about being punished for being a bad actor. Convictions do happen occasionally, but they're exceptional, not inevitable.
You're not going to fix that political/economic problem - which is a direct outcome of free market ideology - with code review.
You can make it source available only. Although China would probably just use it as it was free, I give you that, but they use it anyway.
It would be no worse than letting contractors look at your code.
You could ask for the code to be open in applications where it can directly kill the public, eg. car and aircraft controls, and not elsewhere.
Which minivan can I buy that runs on free software?
But I doubt that anyone even remotely likely to connect those two dots will be allowed anywhere near the camera lenses of any company that broadcasts television.
The source code to one of Diebold Elections Systems (now dba Premier Elections Systems) voting machines was leaked in 2003, which summoned blackboxvoting.org into existence.
As far as I know, every voting machine system that has been examined since then has been found to have potential attack vectors large enough to fly an intercontinental airliner through. When the public records are examined, the audit trail is often nonexistent, destroyed, or falsified.
In the 12 years since then, the only meaningful result has been to end the practice of exit polling in the U.S. Yep, rather than explain the discrepancies between statistical sampling methods and the official results, we chose to stop sampling and trust the results.
So some academics apply statistical methods to the official results, to show convincing evidence that one major party or the other, or both, are blatantly cheating using specific voting machine systems.
You can hear those crickets chirping over the din of the absolute silence.
~But hey, let's all get worked up over homosexual marriage and Syrian refugees, mmkay? The 2016 national elections will be perfectly fair and honest, and not cracked and defrauded at the central tabulators at all. And since there's no cheating going on there, there certainly wouldn't be any at the primary level, with lower levels of scrutiny.~
Open source is democratic, but democracy certainly isn't open source.
I don't trust for-profit media to conduct them. This is something that we all need to chip in to accomplish, if we care about democracy. If we can't trust election results, we really can't trust anything connected to government, and as the state continues to grow, that's very little.
Firstly, they were diverging from official results. There are two possible reasons. Reason one would be that the exit polls were not accurately reflecting the will of the people. Reason two would be that the official results were not accurately reflecting the will of the people. It could be both.
Since reason two would have been too uncomfortable to consider, reason one was chosen. And the exit polls dried up.
It is not even widely known that prior to ending the polling completely, the pollsters were already applying statistically-calculated adjustment factors before reporting the poll results on air, in order to force the polling numbers to predict the official results more accurately.
I don't even need to put my foil hat on to say that I trust a statistical prediction made by blindly sampling from a random pool of volunteer respondents over a secret-source black box that pretends to be counting votes, where there is significant incentive to cheat.
The great thing about exit polling is that anyone could do them, and publish the results along with their margin of error. And some people still do. They just don't get reported on television during elections night coverage any more.
The second reason is that news programs are now reporting official results, as they are tallied and reported by those black box computer systems. The computers can count electronic ballots quickly enough to report initial results shortly after voting booths close. Exit polls lost the advantage of speed. The television news programs like to be able to project the likely winners as soon as possible, and preferably before any competitors. By the time the hand-counted paper ballot areas finish reporting, the winners have already been known for hours, if not days.
We have also contributed to open source, and have plans to contribute more. There are certain things that help everyone without jeopardizing our business, and other things that are too valuable to share.
We cannot force a company to open source code without an extraordinarily good reason. I believe in open source and support it, but at the application level it is a trickier issue.
The fact that human lives depend on the correct functioning of the code is an extraordinarily good reason. IMO, any code that can affect driving safety should be required to be released (note: this does not mean that the companies must relenquish any copyright claims, just that the code has to be publicly available for inspection).
Right now this is hard to do because all the auto manufacturers like to have everything connected, so the result of this would be that everything including the in-vehicle entertainment system would have to be open-sourced. But that's the point - such a requirement would overnight force the manufacturers to implement a proper seperation between critical software and non-critical, so that they could keep the non-critical stuff closed.
I used to work for a company that produced diesel engine. Trying to pass ever stringent emissions meant massive capital investment and millions of dollars in research and testing. The "secret sauce" ends up being a few thousand lines of code and lots of constants. It is literally the make-or-break factor in whether a manufacturer can sell a product or not. If all results had to be immediately shared, what happens to the competitive zeal?
My most optimistic perspective is that critical pieces of software just become common, with everyone latching onto the best option available. There is still plenty of room to differentiate, especially in something like a car, and that the sharing would be just generally beneficial.
But will the real breakthroughs still occur if there isn't the potential to be substantially better (and substantially rewarded) at some fundamental factor, like fuel efficiency?
As an example: I'm not sure, but I believe the Nevada Gaming Control Board inspects the source code of gambling machines in Las Vegas casinos. This doesn't mean the casinos can't have secrets in the source code, it just means that the authority sees all the secrets.
I do think however that "code inspection" for engine control units is a dead end. Writing underhanded code that appears to do X but instead does Y is so easy. (See e.g.http://www.underhanded-c.org/). Inspecting a 100k C-program for illegal behaviour won't be doable until the next years model is out, at which point it's time to start again.
The solution is to treat the code as a black box, and just test it as a black by casting a wide net. The problem is the reliance on simple lab tests that are easily fooled.
If whistleblowers were treated as the heroes they are instead of traitors, that might inspire other people to do the same...
[http://www.consumerreports.org/cro/cars/volkswagen-emissions...]
However there might be some good reason to have a test mode, for engineering tests, for example. The culprit would be the one who have decided to ship it and activate in production.
Bosch would have ultimately integrated it and built the final ECU software, but I very much doubt they ever saw any source code from VW.
All of which is to say that this is bigger news than it seems, mostly because the US EPA is actually following up on this.
Oh, the irony.
The DMCA was intended to protect creative works like movies or songs, where the whole value is in the encoded file.
Code that runs a car is the opposite: it is worthless by itself. Keeping it hidden from the public just enables bad behavior, like Toyota's terrible code or VW's deception.
The predictable retort that there is no need for a public review of source code, "because indecipherable/underhanded code can still be written" is nonsense. If the code is so poorly written and tested that it is possible to be underhanded without the risk of anyone noticing, that code should not be on the road!
We wouldn't be happy if the cars wiring and hydraulic systems were a fragile spaghetti mess that was impossible to inspect, why should we allow it for embedded software?
What about for self-driving/automation features? There is a strong argument that such code especially should be available for scrutiny, but it is far from worthless as a standalone.
That said, there's probably a strong argument for protecting the source behind things like integrated entertainment/navigation systems, provided they're sufficiently decoupled from the car's critical systems. A really slick UI is a competitive advantage.
DMCA in these cases seems to be a protection against third-party aftermarket for upgrades, and protection against remote hacking rather than protection of IP for competitive purposes.
I imagine it would also create a licensing nightmare since navigation and entertainment components often utilize licensed, closed source, third party software. Much more so than the core functions of a vehicle (e.g. engine, steering, braking).
If anything, affording manufacturers the right to keep non-critical vehicle systems closed source would further the goal of opening up the critical portions.
Also, DMCA as a means of protection against remote hacking is tantamount to security through obscurity—but worse. While public source code access isn't some magic solution to security, it seems likely that it would vastly improve automotive security via allowing security researchers to do their far job more efficiently.
Does the AI code in self driving car apply? Or the control software in a drone?
And in the future, ECU may not be a standalone device any more.
You could divide the cars systems up into safety critical and non-safety critical components, like there is no reason why the software running the car's media center needs to publicly available, but there should be a well defined interface between the media center and safety critical code (or no interface at all)
Manufactures will probably check each others code to make sure none of their own code has been stolen and file lawsuits if it has.
Also, do you want officials to have to review and test one hundred different implementations of a safety critical piece of code, or would you prefer an evolution to a single standard shared code base, shared between manufacturers, for which all testing efforts are directed at new patches?
The main thing preventing inspect-ability isn't lack of access to the code. It's the incredible complexity of the software. Even barring deliberate attempts at code obfuscation, it would be prohibitively time-consuming and expensive for the EPA to gain any sort of understanding of a codebase of this size.
Comparing a complex software system to an elevator is absurd.
No, I'm pretty sure you can't inspect code that you don't have access too.
I get what you are saying about complexity, but I don't think that's an argument for prohibiting inspection altogether. This story directly illustrates that there was at least for this particular car a group of people will and able to inspect at least a particular part of the code, if they had access to it.
How does it illustrate that?
They discovered the scam by doing better emissions testing not by reverse engineering the code.
Also, I have a hunch that they wouldn't have done it in the first place. If you know your code is going to be public that's an incentive not to do bad things, even if there's a chance nobody will ever read it.
No it's not, it's a metaphor, a simplification for the purpose of illustrating a point. It's true that many software systems are complex, but it's still important that they be inspectable.
http://www.softwarefreedom.org/podcast/2010/jul/20/episode-0...
Volkswagen wanted the best of both worlds, Low emissions and high MPG, so they changed their settings based on what was being tested.
This allowed them to sell their cars with much higher MPG ratings while still passing the emission standards test.
VW decided to go for all three.
I know that would probably require defining "clean" as distinct from "efficient", I simply know very little about cars and so the fast+clean idea feels a little off, and I'd like to know where I'm wrong.
All depends on what we're measuring. In the case of VW, it's the NOx limits that they were cheating on. In order to reduce NOx, you can run a richer air/fuel mixture, which consumes more fuel and is thus inefficient.
If you're instead talking about C02, then you're generally right. Efficiency and cleanliness are aligned.
And my original comment could probably be rephrased as, "fast, clean, efficient, reliable, cheap: pick any three". But that doesn't have zing to it :-)
Not at all. You can burn tons of fuel, while making no pollution at all. It might not be efficient, but it will be clean.
In a car, they use some of the energy to clean the waste product of burning the fuel, so that all that comes out is Water and CO2.
But it costs energy to do this cleaning, it's easier not to.
For an internal combustion engine higher temperature means more efficient, but higher temperature also makes more NoX (i.e. nitrogen that burned in air). So you can lower the temperature, or try to clean the exhaust.
Please remember that the engine control software is already there, doing exactly the same thing in normal operation: adjusting the engine settings to produce optimal results for the current driving situation. For example, the mix should certainly be different when the car is stationary (sitting at an intersection), than when accelerating or going full throttle.
There is nothing underhanded about this, quite the contrary, it is a Good Thing™.
Once you have knobs to turn, the temptation to turn them just a little too far is always great, especially if you have conflicting goals. On the one hand, you are supposed to reduce CO2 emissions, which having great mileage does, on the other hand you are supposed to reduce NOX emissions. So you fiddle.
And car companies have always fiddled with any knob they could to get performance and always pushed it as far as they could. For example, this particular problem has been known for some time and was tolerated, see http://www.welt.de/politik/deutschland/article146711288/Die-... or http://blog.fefe.de/?ts=ab029b73 (German). Furthermore, manipulating the catalytic converters has also been long-standing industry practice, I found a Toyota forum post complaining about the practice from 2003, also in German: http://www.toyota-forum.de/threads/kat-schaltet-unter-vollas... However, I remember those discussions from the late 80ies and early 90ies.
So if everyone is doing it (they are) and have been for a while (they have) why now and why Volkswagen? Your guess is as good as mine, but the EPA needed a win after some bad publicity, and going after a US manufacturer probably wouldn't have been quite as politic.
http://www.zerohedge.com/news/2015-09-22/dear-volkswagen-was...
Also remember that even one single Barbecue grill or wood-fired stove/fireplace (even the "green" pellet-based ones) emits more of the pollutants in question than a thousand of these cars. So maybe a little perspective may be in order...
UPDATE: https://news.ycombinator.com/item?id=10265534 has more links indicating how widespread this is (apparently all the french car manufacturers)
If we we're talking about the same study, the 1,000 cars thing is talking only about particle pollutants not C02 and NOX.
Also that study had to tweak the numbers a bit to get to 1,000 cars.
They said that wood burning stoves produce 150g of particle pollutants per 4 hours. While new cars only produce 0.15g per 30 kilometers driven. A car will normally drive much more than 30 kilometers in 4 hours.
>(even the "green" pellet-based ones)
A quick look here http://www2.epa.gov/residential-wood-heaters/fact-sheet-summ...
shows that as of this year all residential wood heaters have to emit no more than 4.5g of particle pollutants per hour. So either all new wood burning stoves are illegal or you can in fact buy "green" wood burning stoves that produce way less particle pollutants per hour than 1,000 cars.
Edit: This link http://www.burningissues.org/comp-emmis-part-sources.htm
Shows that the average pellet burning, (and even EPA certified) wood burning stoves release much, much less than 150g of particle pollutants per hour.
A car is usually stationary for those 4 hours.
Look at the history. There have always been concerted efforts to game the standards as much as possible. In Europe where the standards are laxer there have been lots of dirty tricks employed for a long time. For example, you use a special test car for the emissions testing. One that has an engine lubricated by extraordinarily expensive, specialized lubricants. One that uses over inflated, slick tires. And so on. Taking every inch possible. Transitioning from that sort of behavior of playing chicken with the standards to outright subverting them is not nearly as drastic a change in behavior as going from purely lawfully abiding by the strict letter of the standards to deciding to smash them to pieces the next day.
Not to mention that the fact that automakers have been gaming the system by inches for so long and getting away with it almost certainly led to a widespread belief that automakers could get away with much, much more, as well as perhaps taking the standards bodies less seriously.
Once they began down that road, they probably didn't realize how severely the actual emissions would differ from the "fooling the test" mode to normal driving mode. And as they tuned the performance of the vehicle the divergence would simply grow to the limit of the system, which turned out to be enormous (up to 40x). I highly doubt that anyone at any stage was fully aware, until perhaps very late in the process, that the divergence was so large. But by then they were committed. Many poor decisions often result from such incremental processes.
Arguably the "source" in this case is the dataset used to train the model, along with the learning algorithm. If the data are released, so that you can inspect them and replicate the network weights yourself with an off-the-shelf learner, that's a reasonably good sign that nothing nefarious is going on inside the system. (though not strictly a guarantee: you could imagine someone searching very hard to find an innocuous-looking training set that somehow encodes malicious behavior)
According to the article:
“Proprietary software is an unsafe building material,” Mr. Moglen had said. “You can’t inspect it.”
Except that in this specific case, it was the builder who designed and implemented something "faulty" precisely because they needed that. There is a difference between installing a third-party set of windows and finding out that it soon falls apart because the frame is defective, and installing windows after you have secretly bored small holes in the frame (because you have an interest in your tenants going overquota with their heating expenses).
Now maybe the people talking about this to the reporter don't know this; but I suspect people at the car manufactures know they could do this, they simply don't want to, so they cherry pick b.s. arguments why disaster will strike if code is published.
If you mix open source with closed firmwares you are half doing it. Half doing it means there are potential malware lurking around hidden in some corner where no one looks.
Richard Stallman has been right the whole time.
Also if the software is open there is possibility to maintain the code long after the manufacturer makes the next model and loses interest in the old device.
* the emission tests are extremely tight
* the car industry is very competitive
* loosening emission standards would be a politial issue
As far as I know things started badly with emission tests not being representative and car manufacturers doing cheap fixes to pass them. Now would be a good time to fix this mess.
I think it is tremendously difficult for the layman to understand that obscurity is not security. In fact it's counter-intuitive at first.
Transparency is not security. Also true.
The Magnussen-Moss Act aside, auto makers seem to have failed to notice that DMCA-ing their software has not stopped tweakers and modders.
It's so bad that John Deere doesn't want you to own your own tractor, just "license" it from them [1] (ostensibly so that they can refuse to let you look at the ECU). Would they take this step if they were confident in the DMCA's protections?
Hollywood was the bellweather and tip-of-the-iceberg with DVD-CSS many years ago.
https://www.ece.cmu.edu/~ganger/712.fall02/papers/p761-thomp...
OTA and continuous integration will only improve, and likely at a logarithmic pace typical to other technological advancements. What if you during your project you needed every line of code reviewed before it was deployed (you probably do), but then a thrid party has to review it before you can ship it? This would KILL turn around time.
Entire teams are devoted to writing and reviewing this software at every company, and each continuous update. These updates can be rolled out daily, weekly or monthly. It probably takes internal testing and internal reviewing to push code. This is non-trivial and scales with the complexity of the design. Further, as difficult as internal reviews and testing may be, it can still be incorrect; even when the reviewers have intimate knowledge of the entire codebase and the granular changes, source-code diffs, and commented commit messages.
How many people do you reckon it would take to independently review every line of code in production? At what level of inspection would you be able to achieve a confidence level >90% that the code did what the developers allege in a safe and sane manner? Open source works because people can contribute code, fork-code and use the code they write and fork. Without these incentives a decentralized community would be unlikely to contribute, review and maintain proprietary code as they would be disincentivised from doing so as the IP would be protected. The government or the auto-companies would do the reviews, which outside of the massive cost (passed on to consumers) I will leave you to work out the issues there.
Oh thanks for this grim view, it is fairly accurate, I disagree with X but on balance maybe it is more true than false, what is the solution?
We open source the testing and make that public, and we don't need the actual code to do this. Simple heuristics are developed for whatever we need to optimize for.
* Safety works this way and is done really well, we smash some cars up, run some stress tests and qualify them.
* Manufacturers are required to publicly announce when they have pushed an update and the specific systems changed like a longer commit message with details of the system and changes.
* Third party tests are continuously upgraded for whatever the battery demanded by the market is.
This will create a market opportunity for someone to create value. They will provide data and can sell it, distribute it or publish it. People will be incentivised to write tests because they use vehicles and companies will want to be auto-trends verified car of the year. If we accept that it will be almost impossible to convince automakers to give up their IP and that the code will regulalrly change making review prohibitivle expensive, this seems like the only option.
Create in depth testing for emissions, safety, cruise control, privacy, data transmission ETC and have that be governed as open source projects. Open up bug bounties (either auto-trader/magazines/interested companies sponsor this or automakers are incentivized to foot this bill). By bug bounty, I mean more of audting the car and requirements, or if the companies allowed specific features to have code reviewed like the Jeep hacking experiment.
This will happen anyway because people don't like their credit card data to be stolen, and they don't like getting caught cheating on ashley madison, but what they really don't like? Having their car remotely turned off, remotely piloted using self-driving technology to the criminals dark layer or have their car otherwise destroyed or used for crimes.
Review is coming, maybe even endorsed by automakers with some of their code provided, but we can't expect the government to do a great job reviewing the code, so let's just have an open-source testing model and develop better tests for things we care about.
...But my objection is that there seems to be many other ways that this problem could be solved...For example, perhaps the certification process should be slightly more rigorous than "self certification"? Obviously, testing is cumbersome if the EPA can only test "10 to 15 percent" of new cars...on the other hand, it sounds like WVU engineers were able to discover it accidentally without touching the software...which is how a lot of effective engineering testing manages to be done despite black box systems.
Yeah, making software transparent is almost always a good thing...but if the test has the kind of predictable characteristics such that programmers can seemingly hard code the parameters...Is it really easier to move an entire industry to the open source paradigm than to design a more robust test?
And not to throw too much pity on the regulators...but they were dealing with an exceptionally committed adversary. It's horrible how GM's culture allowed the ignition switch defect [1] to go unrecalled until a dozen people died in such senseless ways...but the ignition switch defect was a result of well-intended, if ultimately incorrect tradeoffs in the engineering process. And the deaths were far enough apart, and their cause not certain enough, for good-hearted engineers to have a "well, someone above my pay grade is dealing with this" mentality.
But VW's situation...it's hard to imagine how the bad code came about without active intent by everyone who touched and tested that code. It's one thing for a huge company to have the kind of bureaucratic stagnancy that leads to tragic inaction...it's something else for them to commit to breaking the law in such an obvious way.
[1] http://www.npr.org/2014/03/31/297312252/the-long-road-to-gms...
edit: It really just seems the OP is throwing a bunch of assertions together, with software being the most mysterious and therefore the most obvious scapegoat. The advocate/technologist most prominently featured doesn't make cogent arguments (though maybe he was misquoted?).
The following quote from Mr. Moglen is so nonsensical that it could only make sense to people whose understanding of computers seems very limited:
> “Software is in everything,” he said, citing airplanes, medical devices and cars, much of it proprietary and thus invisible. “We shouldn’t use it for purposes that could conceivably cause harm, like running personal computers, let alone should we use it for things like anti-lock brakes or throttle control in automobiles.”
Huh? If software shouldn't be allowed to run personal computers, because PCs can cause harm...then...huh?