Jump to content

Linux 5.1 kernel hit by SSD TRIM bug which causes massive data loss

Chunchunmaru_

Why only samsung ssds and not others, or they are just saying it because most people use a samsung ssd, so they jumped into the conclusion samsund ssd are affected.

Intel Xeon E5 1650 v3 @ 3.5GHz 6C:12T / CM212 Evo / Asus X99 Deluxe / 16GB (4x4GB) DDR4 3000 Trident-Z / Samsung 850 Pro 256GB / Intel 335 240GB / WD Red 2 & 3TB / Antec 850w / RTX 2070 / Win10 Pro x64

HP Envy X360 15: Intel Core i5 8250U @ 1.6GHz 4C:8T / 8GB DDR4 / Intel UHD620 + Nvidia GeForce MX150 4GB / Intel 120GB SSD / Win10 Pro x64

 

HP Envy x360 BP series Intel 8th gen

AMD ThreadRipper 2!

5820K & 6800K 3-way SLI mobo support list

 

Link to comment
Share on other sites

Link to post
Share on other sites

1 hour ago, NumLock21 said:

Why only samsung ssds and not others, or they are just saying it because most people use a samsung ssd, so they jumped into the conclusion samsund ssd are affected.

Samsung uses a queue TRIM implementation in most of their firmware that behaves badly with Linux, and has previously been blacklisted. I can't find the current list at the moment but this was a commit in 2015 about Samsung TRIM issues https://git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git/commit/drivers/ata/libata-core.c?id=9a9324d3969678d44b330e1230ad2c8ae67acf81

[Out-of-date] Want to learn how to make your own custom Windows 10 image?

 

Desktop: AMD R9 3900X | ASUS ROG Strix X570-F | Radeon RX 5700 XT | EVGA GTX 1080 SC | 32GB Trident Z Neo 3600MHz | 1TB 970 EVO | 256GB 840 EVO | 960GB Corsair Force LE | EVGA G2 850W | Phanteks P400S

Laptop: Intel M-5Y10c | Intel HD Graphics | 8GB RAM | 250GB Micron SSD | Asus UX305FA

Server 01: Intel Xeon D 1541 | ASRock Rack D1541D4I-2L2T | 32GB Hynix ECC DDR4 | 4x8TB Western Digital HDDs | 32TB Raw 16TB Usable

Server 02: Intel i7 7700K | Gigabye Z170N Gaming5 | 16GB Trident Z 3200MHz

Link to comment
Share on other sites

Link to post
Share on other sites

Was it samsung that was reponsible for the bad commit?

Specs: Motherboard: Asus X470-PLUS TUF gaming (Yes I know it's poor but I wasn't informed) RAM: Corsair VENGEANCE® LPX DDR4 3200Mhz CL16-18-18-36 2x8GB

            CPU: Ryzen 9 5900X          Case: Antec P8     PSU: Corsair RM850x                        Cooler: Antec K240 with two Noctura Industrial PPC 3000 PWM

            Drives: Samsung 970 EVO plus 250GB, Micron 1100 2TB, Seagate ST4000DM000/1F2168 GPU: EVGA RTX 2080 ti Black edition

Link to comment
Share on other sites

Link to post
Share on other sites

29 minutes ago, 2FA said:

Samsung uses a queue TRIM implementation in most of their firmware that behaves badly with Linux, and has previously been blacklisted. I can't find the current list at the moment but this was a commit in 2015 about Samsung TRIM issues https://git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git/commit/drivers/ata/libata-core.c?id=9a9324d3969678d44b330e1230ad2c8ae67acf81

So anyone running linus don't get a samsung drive. Got it!

Intel Xeon E5 1650 v3 @ 3.5GHz 6C:12T / CM212 Evo / Asus X99 Deluxe / 16GB (4x4GB) DDR4 3000 Trident-Z / Samsung 850 Pro 256GB / Intel 335 240GB / WD Red 2 & 3TB / Antec 850w / RTX 2070 / Win10 Pro x64

HP Envy X360 15: Intel Core i5 8250U @ 1.6GHz 4C:8T / 8GB DDR4 / Intel UHD620 + Nvidia GeForce MX150 4GB / Intel 120GB SSD / Win10 Pro x64

 

HP Envy x360 BP series Intel 8th gen

AMD ThreadRipper 2!

5820K & 6800K 3-way SLI mobo support list

 

Link to comment
Share on other sites

Link to post
Share on other sites

Just now, NumLock21 said:

So anyone running linus don't get a samsung drive. Got it!

Ironically enough, I'm running one that is blacklisted at the moment with Linux (840 EVO), it just doesn't support all TRIM functions.

[Out-of-date] Want to learn how to make your own custom Windows 10 image?

 

Desktop: AMD R9 3900X | ASUS ROG Strix X570-F | Radeon RX 5700 XT | EVGA GTX 1080 SC | 32GB Trident Z Neo 3600MHz | 1TB 970 EVO | 256GB 840 EVO | 960GB Corsair Force LE | EVGA G2 850W | Phanteks P400S

Laptop: Intel M-5Y10c | Intel HD Graphics | 8GB RAM | 250GB Micron SSD | Asus UX305FA

Server 01: Intel Xeon D 1541 | ASRock Rack D1541D4I-2L2T | 32GB Hynix ECC DDR4 | 4x8TB Western Digital HDDs | 32TB Raw 16TB Usable

Server 02: Intel i7 7700K | Gigabye Z170N Gaming5 | 16GB Trident Z 3200MHz

Link to comment
Share on other sites

Link to post
Share on other sites

2 hours ago, GoodBytes said:

Same for Linux. If you want support for LTS from the big distros, they are charging you enterprises pricing.

Nope, as a simple consumer i cannot get the LTS version of windows...

Link to comment
Share on other sites

Link to post
Share on other sites

Just now, Jito463 said:

Well, not legitimately anyway.

Thats my point...

 

@GoodBytes

As for the updates for Ubuntu 19 IDK since i didnt updated to it...

Link to comment
Share on other sites

Link to post
Share on other sites

8 minutes ago, jagdtigger said:

Nope, as a simple consumer i cannot get the LTS version of windows...

Yes you can, you need to register yourself as a business to Microsoft and go through the channel, as a business, to get it.

Same for LTS support from the big distros.

 

Link to comment
Share on other sites

Link to post
Share on other sites

6 minutes ago, jagdtigger said:

 

@GoodBytes

As for the updates for Ubuntu 19 IDK since i didnt updated to it...

And that is a huge issue right there.

 

Link to comment
Share on other sites

Link to post
Share on other sites

11 minutes ago, GoodBytes said:

And that is a huge issue right there.

 

Im on 18.04.2 LTS so no issues ;) .

 

/EDIT

Just installed it in vbox. It behaves the same way as previously. And the settings arent buried either...

Edited by jagdtigger
Link to comment
Share on other sites

Link to post
Share on other sites

@Sauron yeh I got that it was a security measure, but windows could argue the same thing, instead of being a kernel panic.

could they have found a way to avoid bringing down the whole thing even as a security risk issue.

 

"That's a bit drastic... wouldn't that cause certain data loss instead of a small chance of it?"

yes and no, defintely a major data loss, but it would also mean companies would have to re-hire people instead of replacing them with robots for everything.

Im a great believer in Technology should assist us, not take over for us.

 

I'll leave the testing thing alone, other to say that the Qand A does not appear to be quite as good as it used to be, that doesnt mean there werent issue's before, but the latest seem to be pretty massive, regardless of OS

current main system: as of 1st Jan 2023

motherboard : Gigabyte B450M DS3H V2

CPU: Ryzen 5 3600

ram : 16Gig Corsair Vengeance 3600mhz

OS :multi-boot

Video Card : RX 550 4 GIG

Monitor: BENQ 21 inch

 

Link to comment
Share on other sites

Link to post
Share on other sites

I really should look into this Samsung TRIM issue a bit more.   Everything here is on Samsung SSDs and I'm moving it all over from Win7 to Linux later this year. 

Never noticed any issues with the Laptop's drive in the 3 or so years that I've had that one on Mint, but the desktops are where the important info is at.  

Link to comment
Share on other sites

Link to post
Share on other sites

1 minute ago, Captain Chaos said:

I really should look into this Samsung TRIM issue a bit more.   Everything here is on Samsung SSDs and I'm moving it all over from Win7 to Linux later this year. 

Never noticed any issues with the Laptop's drive in the 3 or so years that I've had that one on Mint, but the desktops are where the important info is at.  

The safest security measure imo would be always make backups of your important data in cloud services...

 

GNOME desktop has a feature which can make cloud backups of your home folder weekly, with a service you choose (Google drive, Dropbox etc) but should work on other desktops as well

Link to comment
Share on other sites

Link to post
Share on other sites

9 hours ago, cretsiah said:

@Sauron yeh I got that it was a security measure, but windows could argue the same thing, instead of being a kernel panic.

...no, a kernel panic is something completely different. I'm pretty sure you can restart the DE and be just fine. Regardless I'd rather kernel panic than have my system pwned - but windows doesn't only kernel panic for security reasons.

9 hours ago, cretsiah said:

"That's a bit drastic... wouldn't that cause certain data loss instead of a small chance of it?"

yes and no, defintely a major data loss, but it would also mean companies would have to re-hire people instead of replacing them with robots for everything.

Im a great believer in Technology should assist us, not take over for us.

Oh please, if that's your problem blame the exploitative nature of capitalism, not technology.

Don't ask to ask, just ask... please 🤨

sudo chmod -R 000 /*

Link to comment
Share on other sites

Link to post
Share on other sites

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now

×