Author Topic: FTDIgate 2.0?  (Read 388225 times)

0 Members and 6 Guests are viewing this topic.

Offline Karel

  • Super Contributor
  • ***
  • Posts: 2217
  • Country: 00
Re: FTDIgate 2.0?
« Reply #825 on: March 01, 2016, 05:13:10 pm »
You are a real engineer aren't you? If you are a real engineer then you should know it is very bad to send random data to a device. I have come across several devices which lock up when confronted with data the device didn't expect. One of those was actually performing a safety critical function so yes, it is very bad to send random data to a device. I also start to doubt you can read because this has been discusses at length in this same thread so you are trying to create a new infinite loop here so lets leave this subject alone right here. You can read all about it in the previous pages.

Yes, I am. Apparently you aren't otherwise you should know that a safety critical device that can cause seriouse injury because of a glitch on a serial port,
should be taken out of service immediately. There's simply no excuse for that.

In a perfect world :) But if there's no budget for that, the poorly designed device has to stay. Mr. Manager will tell you that.

So, aim your anger to Mr. Manager. Not to FTDI.
 

Online Bud

  • Super Contributor
  • ***
  • Posts: 6905
  • Country: ca
Re: FTDIgate 2.0?
« Reply #826 on: March 01, 2016, 05:14:08 pm »
Not that it is wrong but it is useless and will do no job in many use cases where devices use proprietary application level protocols. This message will simply be ignored as noise. FTDI what, thinks that every single use case involves someone stairing at the display and reading the bytestream?
Facebook-free life and Rigol-free shack.
 

Offline Karel

  • Super Contributor
  • ***
  • Posts: 2217
  • Country: 00
Re: FTDIgate 2.0?
« Reply #827 on: March 01, 2016, 05:15:13 pm »
So you're okay with causing harm as long as the people affected can blame someone else? WTF dude?

Show me a documented example where the behaviour of FTDI's driver caused serious injury.
 

Offline nctnico

  • Super Contributor
  • ***
  • Posts: 26896
  • Country: nl
    • NCT Developments
Re: FTDIgate 2.0?
« Reply #828 on: March 01, 2016, 05:20:59 pm »
So you're okay with causing harm as long as the people affected can blame someone else? WTF dude?
Show me a documented example where the behaviour of FTDI's driver caused serious injury.
So people should get hurt or killed before you are convinced?  :wtf:
There are small lies, big lies and then there is what is on the screen of your oscilloscope.
 

Offline c4757p

  • Super Contributor
  • ***
  • Posts: 7799
  • Country: us
  • adieu
Re: FTDIgate 2.0?
« Reply #829 on: March 01, 2016, 05:31:47 pm »
Probably a good idea to just stop now. We're clearly at the "I'll say anything that sounds like it proves my point" stage of the argument.
No longer active here - try the IRC channel if you just can't be without me :)
 

Offline Karel

  • Super Contributor
  • ***
  • Posts: 2217
  • Country: 00
Re: FTDIgate 2.0?
« Reply #830 on: March 01, 2016, 06:11:53 pm »
So you're okay with causing harm as long as the people affected can blame someone else? WTF dude?
Show me a documented example where the behaviour of FTDI's driver caused serious injury.
So people should get hurt or killed before you are convinced?  :wtf:

No, people shouldn't get hurt, those are your words.

If you really know about a safety critical device that can cause serious injury because of a glitch on the serial port,
than I assume you took the device out of service or at least reported it to the authorities and made sure that they
took it out of service. No risk anymore that something goes wrong.

If not, then you are a hypocrite that wines about FTDI but don't really care about safety.


 

Offline Karel

  • Super Contributor
  • ***
  • Posts: 2217
  • Country: 00
Re: FTDIgate 2.0?
« Reply #831 on: March 01, 2016, 06:14:19 pm »
FTDI what, thinks that every single use case involves someone stairing at the display and reading the bytestream?

The engineer that is investigating the defect device will.
 

Offline Karel

  • Super Contributor
  • ***
  • Posts: 2217
  • Country: 00
Re: FTDIgate 2.0?
« Reply #832 on: March 01, 2016, 06:18:24 pm »
Yes, I am. Apparently you aren't otherwise you should know that a safety critical device that can cause seriouse injury because of a glitch on a serial port,
should be taken out of service immediately. There's simply no excuse for that.

Yes, it should. That is a dangerous machine. But how does that mean that it's okay to screw around with it?

How many dangerous machines have stopped working because of FTDI's driver?

 

Offline timb

  • Super Contributor
  • ***
  • Posts: 2536
  • Country: us
  • Pretentiously Posting Polysyllabic Prose
    • timb.us
Re: FTDIgate 2.0?
« Reply #833 on: March 01, 2016, 08:03:27 pm »

Yes, I am. Apparently you aren't otherwise you should know that a safety critical device that can cause seriouse injury because of a glitch on a serial port,
should be taken out of service immediately. There's simply no excuse for that.

Yes, it should. That is a dangerous machine. But how does that mean that it's okay to screw around with it?

How many dangerous machines have stopped working because of FTDI's driver?

Wow. Just wow.

Stop the train. This is where I get off.
Any sufficiently advanced technology is indistinguishable from magic; e.g., Cheez Whiz, Hot Dogs and RF.
 

Offline Koen

  • Frequent Contributor
  • **
  • Posts: 502
Re: FTDIgate 2.0?
« Reply #834 on: March 01, 2016, 11:54:19 pm »
So far over 35 pages we've had "what ifs", unsubstantiated claims about counterfeit FTDI chips in regular distribution, unsubstantiated claims about major corporations discontinuing their use of FTDI chips and unsubstantiated claims about safety-critical systems compromised by random serial strings. Should people take your word for it ? Is linking to the related press releases impossible ? Or is it so obscure you can't name the distributor/company/product impacted without being found out ?

How can you try to prove your point without providing any evidence for your claims. This is debating 101.
 

Offline nctnico

  • Super Contributor
  • ***
  • Posts: 26896
  • Country: nl
    • NCT Developments
Re: FTDIgate 2.0?
« Reply #835 on: March 02, 2016, 12:50:05 am »
So far over 35 pages we've had "what ifs", unsubstantiated claims about counterfeit FTDI chips in regular distribution, unsubstantiated claims about major corporations discontinuing their use of FTDI chips and unsubstantiated claims about safety-critical systems compromised by random serial strings. Should people take your word for it ? Is linking to the related press releases impossible ? Or is it so obscure you can't name the distributor/company/product impacted without being found out ?

How can you try to prove your point without providing any evidence for your claims. This is debating 101.
There are documented cases that counterfeit components found their way into military devices. Google that. Also a simple data conversion problem can cause a rocket intended for launching satellites into space to fail ( http://sunnyday.mit.edu/accidents/Ariane5accidentreport.html ) due to feeding random data into a system which doesn't suspect it. It shouldn't need much thinking to understand that it is a bad idea in general to feed random data into any system.

Quote from the report:
Part of these data at that time did not contain proper flight data, but showed a diagnostic bit pattern of the computer of the SRI 2, which was interpreted as flight data.

IOW: The 'what ifs' aren't about pinpointing existing cases but doing solid engineering and the steps to take / processes to follow in order to minimize the risk on designing a (potential) problem into a product which can cause a customer problems at some point. I have been dealing with customers for over 25 years already and I have learned that a simple problem from an engineering perspective can be perceived as a huge problem by a customer. So by all means: get rid of any potential source of problems!
« Last Edit: March 02, 2016, 12:58:37 am by nctnico »
There are small lies, big lies and then there is what is on the screen of your oscilloscope.
 

Offline Karel

  • Super Contributor
  • ***
  • Posts: 2217
  • Country: 00
Re: FTDIgate 2.0?
« Reply #836 on: March 02, 2016, 07:33:10 am »
There are documented cases that counterfeit components found their way into military devices.

Lets say, it's better that a (militairy) device doesn't want to start because of a driver update,
than starting fine and during it's service it malfunctions unexpectedly because the counterfeit chip is a bit out of spec.

 

Offline f4eru

  • Super Contributor
  • ***
  • Posts: 1093
  • Country: 00
    • Chargehanger
Re: FTDIgate 2.0?
« Reply #837 on: March 02, 2016, 09:32:25 pm »
So far, in this whole thread, nobody has made a valid point why it's wrong to send a string that contains "not a genuine chip".
Bullshit. It's injecting corrupt data in a data stream you know nothing about.

Tampering for any reason a random data stream is  simply dangerous. it's not acceptable from every point of view.
it's Malware.
« Last Edit: March 02, 2016, 09:38:43 pm by f4eru »
 

Offline Koen

  • Frequent Contributor
  • **
  • Posts: 502
Re: FTDIgate 2.0?
« Reply #838 on: March 02, 2016, 10:30:05 pm »
I'll take your point about Ariane 5 first launch but for future readers, I'll add this quote from the report :

Quote
f) Approx. 0.05 seconds later the active inertial reference system, identical to the back-up system in hardware and software, failed for the same reason. Since the back-up inertial system was already inoperative, correct guidance and attitude information could no longer be obtained and loss of the mission was inevitable.

It isn't solely unexpected data but irrecoverable instruments.
 

Offline dadler

  • Supporter
  • ****
  • Posts: 851
  • Country: us
Re: FTDIgate 2.0?
« Reply #839 on: March 02, 2016, 11:43:57 pm »
My favorite (uh, wrong word here) story like this is the Therac-25:

https://en.m.wikipedia.org/wiki/Therac-25
 

Offline Karel

  • Super Contributor
  • ***
  • Posts: 2217
  • Country: 00
Re: FTDIgate 2.0?
« Reply #840 on: March 03, 2016, 07:36:37 am »
It's injecting corrupt data in a data stream you know nothing about.

As far as I know, it isn't. The original data never arrives. The host will only receive the string "not a genuine chip".
 

Offline cdev

  • Super Contributor
  • ***
  • !
  • Posts: 7350
  • Country: 00
Re: FTDIgate 2.0?
« Reply #841 on: March 18, 2016, 02:52:44 pm »
there should be a generic fallback mode where all usb-uart or usb-serial converters maintain basic functionality, using some generic fallback code thats community developed.
"What the large print giveth, the small print taketh away."
 

Offline bingo600

  • Super Contributor
  • ***
  • Posts: 1987
  • Country: dk
Re: FTDIgate 2.0?
« Reply #842 on: March 18, 2016, 03:03:21 pm »
Just use Linux  :-+
FTDI got the finger  :-- when trying to implement their "changes" to the linux ftdi driver.

And ear/eye plugs against Mr. K
We should be able to select a "hide posts" from  , in our settings.

/Bingo
 

Offline edavid

  • Super Contributor
  • ***
  • Posts: 3381
  • Country: us
Re: FTDIgate 2.0?
« Reply #843 on: March 18, 2016, 03:28:19 pm »
And ear/eye plugs against Mr. K
We should be able to select a "hide posts" from  , in our settings.

The forum does have an ignore list feature:

https://www.eevblog.com/forum/profile/?area=lists;sa=ignore;
 

Offline CJay

  • Super Contributor
  • ***
  • Posts: 4136
  • Country: gb
Re: FTDIgate 2.0?
« Reply #844 on: March 18, 2016, 04:33:34 pm »
Out of all the unsubstantiated what if scenarios and other such in this thread, I take the following:

1. Good system design should preclude malfunction from 'random' or corrupted (intentionally or not) data.

I agree wholeheartedly, a no brainer, but we all know there's that one in a million, billion, whatever, combination of input that can cause an issue. Sadly software is rarely 100% verifiably bug free.

2. No system can be entirely fault free unless it's so simple it's possible to prove operation for every single possible instance of presented data along with every possible environmental influence.

My take on this:

The nature of my job means that I can be many miles from home at stupid times of day and night, thus I have been in situations many times where I've needed to buy random pieces of computer hardware from vendors I would not normally use to perform job function, on at least a couple of occasions I've had to buy USB-Serial adapters (things go faulty, get mechanically damaged, lost, etc.).

When I'm two hundred miles from home at three AM in the morning with people in positions of genuine, government mandated, authority asking me how long something is going to take to repair, I do not want to explain that my serial dongle doesn't work because of someone acting like a 2 year old and having a hissy fit which may or may not render the USB dongle bought from their local 24 hour supermarket unusable.

So, I avoid FTDI unless it's absolutely unavoidable (I.E. built in to a larger product).

Not a huge loss for FTDI, not even the price of a sandwich at lunch time but the tiny drip drip of water erodes much larger mountains than FTDI.

Shortsighted and childish of them.
 

Offline Gyro

  • Super Contributor
  • ***
  • Posts: 9486
  • Country: gb
Re: FTDIgate 2.0?
« Reply #845 on: March 18, 2016, 06:29:53 pm »
Noooh!  :palm:  After two weeks of peace too!  |O

EDIT: I suggest reading through all 36 pages of this thread to check that anything you're planning to say hasn't been said several times already!
« Last Edit: March 18, 2016, 06:36:18 pm by Gyro »
Best Regards, Chris
 

Offline janoc

  • Super Contributor
  • ***
  • Posts: 3785
  • Country: de
Re: FTDIgate 2.0?
« Reply #846 on: March 18, 2016, 08:34:47 pm »
Perhaps I am blind but I really do miss the possibility to hide/ignore certain thread from the unread posts ...

 :palm:
 

Offline edavid

  • Super Contributor
  • ***
  • Posts: 3381
  • Country: us
Re: FTDIgate 2.0?
« Reply #847 on: March 18, 2016, 11:44:07 pm »
Perhaps I am blind but I really do miss the possibility to hide/ignore certain thread from the unread posts ...

You have to enable the feature:

https://www.eevblog.com/forum/chat/forum-update-new-ignore-topics-feature/msg651768/#msg651768
 

Offline rsjsouza

  • Super Contributor
  • ***
  • Posts: 5985
  • Country: us
  • Eternally curious
    • Vbe - vídeo blog eletrônico
Re: FTDIgate 2.0?
« Reply #848 on: March 19, 2016, 02:34:50 am »
Perhaps I am blind but I really do miss the possibility to hide/ignore certain thread from the unread posts ...

You have to enable the feature:

https://www.eevblog.com/forum/chat/forum-update-new-ignore-topics-feature/msg651768/#msg651768
Thanks a bunch for this! I have been meaning to ignore several threads for a while.
Vbe - vídeo blog eletrônico http://videos.vbeletronico.com

Oh, the "whys" of the datasheets... The information is there not to be an axiomatic truth, but instead each speck of data must be slowly inhaled while carefully performing a deep search inside oneself to find the true metaphysical sense...
 

Offline miguelvp

  • Super Contributor
  • ***
  • Posts: 5550
  • Country: us
Re: FTDIgate 2.0?
« Reply #849 on: March 19, 2016, 03:46:52 am »
At least they didn't include control characters in the infamous string. You know the 0-31 values that include things like AKC.

If a serial protocol is not robust enough then any cross talk on the wire will be more dangerous than the canned string FTDI decided to use.

I don't even think they use carriage return or line feed for that matter.

As for using an USB-UART cable when you are on a bind, how do you know it even has the FTDI chip? I guess you can research it, but if it's the only one available on the store, will you forgo and just delay the diagnosis?

"What if" someone open a putty terminal and pasted some random things to the serial port? You'll think whoever designed the protocol would not just talk to a plain port without verifying the system talking to the device is using  the right format and protocol.
 


Share me

Digg  Facebook  SlashDot  Delicious  Technorati  Twitter  Google  Yahoo
Smf