Skip to content

kernel bug causing data corruption on USB drives (Super Top M6116) #230

Closed

Description

@ikarsokolov

Current raspbian kernel has bug causing data corruption on USB drives / USB 2.5"-3.5"enclosure boxes with Super Top M6116 SATA chipset (very common among cheap boxes).

More info

Activity

  1. popcornmix commented on Feb 25, 2013

    @popcornmix
    Collaborator

    It sounds like this still affects the latest (3.8) upstream linux kernel.
    That is where the bug should be fixed, and we can cherry-pick the fix.

    Do you know if this has been reported as bug in upstream kernel?

  2. ikarsokolov commented on Feb 25, 2013

    @ikarsokolov
    Author

    Do you know if this has been reported as bug in upstream kernel?

    launchpad issue has comments about reporting it to upstream debian, but I dont know current status.

    That is where the bug should be fixed, and we can cherry-pick the fix.

    I think earlier patch against upstream kernel should be considered because
    a) fix is trivial http://www.mail-archive.com/linux-usb@vger.kernel.org/msg14819.html (one liner)
    b) this bug critically affects RaPi users because most of them attach external USB storage of some sort

  3. asb commented on Feb 25, 2013

    @asb

    Looks like the patch has been posted to linux-usb and the stable
    mailing list for inclusion:
    http://thread.gmane.org/gmane.linux.usb.general/80193

  4. popcornmix commented on Feb 25, 2013

    @popcornmix
    Collaborator

    Alex, do you know how long it typically is for a patch like that to be accepted?
    From my searching, the fix seems to have been verified by only a couple of people, and seems somewhat arbitrary.
    1.60 wants the patch, 2.20 doesn't want the patch, so lets say 2.19 is the threshold based on a sample size of 2.
    I'm not completely confident that this won't cause corruption for people on, say, 2.30, or 1.80 wouldn't have been a better threshold.

    It would be nice to hear the guy responsible for this upstream code to say yes, the patch is good.

  5. ikarsokolov commented on Feb 25, 2013

    @ikarsokolov
    Author

    I can confirm that this patch works for me. But I have 2.20 too.

  6. popcornmix commented on Feb 25, 2013

    @popcornmix
    Collaborator

    @Happy-Neko
    I imagine the patch is probably an improvement, and it sounds like a particularly dangerous bug, so I'll pick it up sooner rather than later, but I may just wait a day or so to see if there are positive noises from the mailing list.

  7. asb commented on Feb 25, 2013

    @asb

    On 25 February 2013 19:10, popcornmix notifications@github.com wrote:

    Alex, do you know how long it typically is for a patch like that to be
    accepted?

    Hard to say. I imagine it has to go through the subsystem maintainer
    so it will depend on their schedule.

  8. ikarsokolov commented on Mar 7, 2013

    @ikarsokolov
    Author

    This issue seems to be fixed in kernel 3.8.1
    commit 18e0331

  9. popcornmix commented on Mar 7, 2013

    @popcornmix
    Collaborator

    Okay, I've cherry-picked it.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions