← Back to team overview

kernel-packages team mailing list archive

[Bug 1259829] Re: htree_dirblock_to_tree:920: inode #53629599: block 214443464: comm rm: bad entry in directory: rec_len % 4 != 0 - offset=0(0), inode=1667681412, rec_len=45654, name_len=39

 

@Jeffrey, I don't know for sure, but I'd say it's likely that two drives
from the same manufacturer using the same controller will at the very
least be both derived from the same firmware code base, and their
firmware will therefore likely have a lot of bugs (and features) in
common. Since your drive is from another manufacturer (or is it just a
relabelled Crucial drive?), it's maybe more likely to have significantly
different firmware, and maybe less likely to have the corruption bug. My
bet would be the corruption problem is a firmware problem, one that
could be fixed. If it is indeed a silicon problem, it could be worked
around in the firmware, or features could be disabled to ensure data
integrity.

-- 
You received this bug notification because you are a member of Kernel
Packages, which is subscribed to linux in Ubuntu.
https://bugs.launchpad.net/bugs/1259829

Title:
  htree_dirblock_to_tree:920: inode #53629599: block 214443464: comm rm:
  bad entry in directory: rec_len % 4 != 0 - offset=0(0),
  inode=1667681412, rec_len=45654, name_len=39

Status in “linux” package in Ubuntu:
  Triaged

Bug description:
  fs goes into read-only mode while building LibreOffice.

  WORKAROUND: Disable discard option - /dev/mapper/volumegroup-root    /
  ext4    discard,noatime,nodiratime,errors=remount-ro    0    1

  disabling ncq has no effect.

  $ dmesg
  ...
  [ 2045.473249] virbr0: port 1(vnet0) entered forwarding state
  [ 2045.473283] IPv6: ADDRCONF(NETDEV_CHANGE): virbr0: link becomes ready
  [10660.961381] perf samples too long (2505 > 2500), lowering kernel.perf_event_max_sample_rate to 50000
  [11822.935891] EXT4-fs error (device dm-1): htree_dirblock_to_tree:920: inode #53629599: block 214443464: comm rm: bad entry in directory: rec_len % 4 != 0 - offset=0(0), inode=1667681412, rec_len=45654, name_len=39
  [11822.935896] Aborting journal on device dm-1-8.
  [11822.935998] EXT4-fs (dm-1): Remounting filesystem read-only
  [11822.960425] EXT4-fs error (device dm-1): htree_dirblock_to_tree:920: inode #53629605: block 214443466: comm rm: bad entry in directory: directory entry across range - offset=0(0), inode=2707156714, rec_len=19312, name_len=162
  [11850.985003] EXT4-fs error (device dm-1): htree_dirblock_to_tree:920: inode #53629557: block 214443458: comm rm: bad entry in directory: rec_len % 4 != 0 - offset=0(0), inode=512948573, rec_len=8858, name_len=176
  [11850.985276] EXT4-fs error (device dm-1): htree_dirblock_to_tree:920: inode #53629465: block 214443455: comm rm: bad entry in directory: rec_len % 4 != 0 - offset=0(0), inode=160939375, rec_len=26085, name_len=126
  [11850.985499] EXT4-fs error (device dm-1): htree_dirblock_to_tree:920: inode #53629325: block 214443451: comm rm: bad entry in directory: rec_len % 4 != 0 - offset=0(0), inode=2322664969, rec_len=33791, name_len=132
  [11850.985927] EXT4-fs error (device dm-1): htree_dirblock_to_tree:920: inode #53629467: block 214443456: comm rm: bad entry in directory: rec_len % 4 != 0 - offset=0(0), inode=954332768, rec_len=21653, name_len=30
  [11850.986409] EXT4-fs error (device dm-1): htree_dirblock_to_tree:920: inode #53629074: block 214443433: comm rm: bad entry in directory: directory entry across range - offset=0(0), inode=2061605548, rec_len=4984, name_len=3
  [11850.986831] EXT4-fs error (device dm-1): htree_dirblock_to_tree:920: inode #53628835: block 214443432: comm rm: bad entry in directory: rec_len % 4 != 0 - offset=0(0), inode=3523041938, rec_len=53167, name_len=41
  [11850.987001] EXT4-fs error (device dm-1): htree_dirblock_to_tree:920: inode #53629098: block 214443436: comm rm: bad entry in directory: rec_len % 4 != 0 - offset=0(0), inode=4225920287, rec_len=35138, name_len=75
  [11850.987466] EXT4-fs error (device dm-1): htree_dirblock_to_tree:920: inode #53629275: block 214443449: comm rm: bad entry in directory: rec_len % 4 != 0 - offset=0(0), inode=923253145, rec_len=44001, name_len=144
  [11850.988115] EXT4-fs error (device dm-1): htree_dirblock_to_tree:920: inode #53629270: block 214443448: comm rm: bad entry in directory: rec_len % 4 != 0 - offset=0(0), inode=1892288796, rec_len=55247, name_len=58
  [11851.042303] EXT4-fs error (device dm-1): htree_dirblock_to_tree:920: inode #53629300: block 214443450: comm rm: bad entry in directory: directory entry across range - offset=0(0), inode=1809316884, rec_len=4208, name_len=195
  [11851.042938] EXT4-fs error (device dm-1): htree_dirblock_to_tree:920: inode #53629401: block 214443453: comm rm: bad entry in directory: rec_len % 4 != 0 - offset=0(0), inode=4223616103, rec_len=36326, name_len=130
  [11851.045745] EXT4-fs error (device dm-1): htree_dirblock_to_tree:920: inode #53629406: block 214443454: comm rm: bad entry in directory: rec_len % 4 != 0 - offset=0(0), inode=415237227, rec_len=24702, name_len=59
  [11851.125849] EXT4-fs error (device dm-1): htree_dirblock_to_tree:920: inode #53629101: block 214443437: comm rm: bad entry in directory: directory entry across range - offset=0(0), inode=23292377, rec_len=28820, name_len=135
  [11851.126086] EXT4-fs error (device dm-1): htree_dirblock_to_tree:920: inode #53629543: block 214443457: comm rm: bad entry in directory: rec_len % 4 != 0 - offset=0(0), inode=2624043515, rec_len=58633, name_len=250
  [11851.126292] EXT4-fs error (device dm-1): htree_dirblock_to_tree:920: inode #53629244: block 214443446: comm rm: bad entry in directory: rec_len % 4 != 0 - offset=0(0), inode=194839831, rec_len=15430, name_len=123
  [11851.126529] EXT4-fs error (device dm-1): htree_dirblock_to_tree:920: inode #53629345: block 214443452: comm rm: bad entry in directory: directory entry across range - offset=0(0), inode=3316601052, rec_len=49124, name_len=10
  [11851.126751] EXT4-fs error (device dm-1): htree_dirblock_to_tree:920: inode #53629080: block 214443434: comm rm: bad entry in directory: directory entry across range - offset=0(0), inode=2978861680, rec_len=55340, name_len=75
  [11851.127326] EXT4-fs error (device dm-1): htree_dirblock_to_tree:920: inode #53629254: block 214443447: comm rm: bad entry in directory: directory entry across range - offset=0(0), inode=2927900409, rec_len=17708, name_len=67
  [11851.191574] EXT4-fs error (device dm-1): htree_dirblock_to_tree:920: inode #53628436: block 214443431: comm rm: bad entry in directory: rec_len % 4 != 0 - offset=0(0), inode=3175406590, rec_len=48803, name_len=238
  [11851.191832] EXT4-fs error (device dm-1): htree_dirblock_to_tree:920: inode #53629561: block 214443459: comm rm: bad entry in directory: rec_len % 4 != 0 - offset=0(0), inode=880872205, rec_len=23750, name_len=202
  [11851.192102] EXT4-fs error (device dm-1): htree_dirblock_to_tree:920: inode #53629565: block 214443460: comm rm: bad entry in directory: directory entry across range - offset=0(0), inode=3673769297, rec_len=36964, name_len=8
  [11851.193231] EXT4-fs error (device dm-1): htree_dirblock_to_tree:920: inode #53629577: block 214443462: comm rm: bad entry in directory: directory entry across range - offset=0(0), inode=164744460, rec_len=27548, name_len=230
  [ritesh@x230t libreoffice-4.1.2~rc3]$ ^C
  [ritesh@x230t libreoffice-4.1.2~rc3]$ smartctl  -a /dev/sda
  smartctl 6.2 2013-07-26 r3841 [x86_64-linux-3.12.0-7-generic] (local build)
  Copyright (C) 2002-13, Bruce Allen, Christian Franke, www.smartmontools.org

  [ritesh@x230t libreoffice-4.1.2~rc3]$ sudo smartctl  -a /dev/sda
  sudo: unable to open /var/lib/sudo/ritesh/4: No such file or directory
  smartctl 6.2 2013-07-26 r3841 [x86_64-linux-3.12.0-7-generic] (local build)
  Copyright (C) 2002-13, Bruce Allen, Christian Franke, www.smartmontools.org

  === START OF INFORMATION SECTION ===
  Device Model:     Crucial_CT960M500SSD1
  Serial Number:    1335094BE7CA
  LU WWN Device Id: 5 00a075 1094be7ca
  Firmware Version: MU03
  User Capacity:    960,197,124,096 bytes [960 GB]
  Sector Sizes:     512 bytes logical, 4096 bytes physical
  Rotation Rate:    Solid State Device
  Device is:        Not in smartctl database [for details use: -P showall]
  ATA Version is:   ACS-2, ATA8-ACS T13/1699-D revision 6
  SATA Version is:  SATA 3.1, 6.0 Gb/s (current: 6.0 Gb/s)
  Local Time is:    Wed Dec 11 11:38:48 2013 IST
  SMART support is: Available - device has SMART capability.
  SMART support is: Enabled

  === START OF READ SMART DATA SECTION ===
  SMART overall-health self-assessment test result: PASSED

  General SMART Values:
  Offline data collection status:  (0x80)	Offline data collection activity
       was never started.
       Auto Offline Data Collection: Enabled.
  Self-test execution status:      (   0)	The previous self-test routine completed
       without error or no self-test has ever
       been run.
  Total time to complete Offline
  data collection: 		( 4470) seconds.
  Offline data collection
  capabilities: 			 (0x7b) SMART execute Offline immediate.
       Auto Offline data collection on/off support.
       Suspend Offline collection upon new
       command.
       Offline surface scan supported.
       Self-test supported.
       Conveyance Self-test supported.
       Selective Self-test supported.
  SMART capabilities:            (0x0003)	Saves SMART data before entering
       power-saving mode.
       Supports SMART auto save timer.
  Error logging capability:        (0x01)	Error logging supported.
       General Purpose Logging supported.
  Short self-test routine
  recommended polling time: 	 (   2) minutes.
  Extended self-test routine
  recommended polling time: 	 (  74) minutes.
  Conveyance self-test routine
  recommended polling time: 	 (   3) minutes.
  SCT capabilities: 	       (0x0035)	SCT Status supported.
       SCT Feature Control supported.
       SCT Data Table supported.

  SMART Attributes Data Structure revision number: 16
  Vendor Specific SMART Attributes with Thresholds:
  ID# ATTRIBUTE_NAME          FLAG     VALUE WORST THRESH TYPE      UPDATED  WHEN_FAILED RAW_VALUE
    1 Raw_Read_Error_Rate     0x002f   100   100   000    Pre-fail  Always       -       21
    5 Reallocated_Sector_Ct   0x0033   100   100   000    Pre-fail  Always       -       0
    9 Power_On_Hours          0x0032   100   100   000    Old_age   Always       -       287
   12 Power_Cycle_Count       0x0032   100   100   000    Old_age   Always       -       32
  171 Unknown_Attribute       0x0032   100   100   000    Old_age   Always       -       0
  172 Unknown_Attribute       0x0032   100   100   000    Old_age   Always       -       0
  173 Unknown_Attribute       0x0032   100   100   000    Old_age   Always       -       1
  174 Unknown_Attribute       0x0032   100   100   000    Old_age   Always       -       13
  180 Unused_Rsvd_Blk_Cnt_Tot 0x0033   000   000   000    Pre-fail  Always       -       16523
  183 Runtime_Bad_Block       0x0032   100   100   000    Old_age   Always       -       0
  184 End-to-End_Error        0x0032   100   100   000    Old_age   Always       -       0
  187 Reported_Uncorrect      0x0032   100   100   000    Old_age   Always       -       0
  194 Temperature_Celsius     0x0022   056   050   000    Old_age   Always       -       44 (Min/Max 22/50)
  196 Reallocated_Event_Count 0x0032   100   100   000    Old_age   Always       -       16
  197 Current_Pending_Sector  0x0032   100   100   000    Old_age   Always       -       0
  198 Offline_Uncorrectable   0x0030   100   100   000    Old_age   Offline      -       0
  199 UDMA_CRC_Error_Count    0x0032   100   100   000    Old_age   Always       -       0
  202 Unknown_SSD_Attribute   0x0031   100   100   000    Pre-fail  Offline      -       0
  206 Unknown_SSD_Attribute   0x000e   100   100   000    Old_age   Always       -       0
  210 Unknown_Attribute       0x0032   100   100   000    Old_age   Always       -       4
  246 Unknown_Attribute       0x0032   100   100   ---    Old_age   Always       -       2001841864
  247 Unknown_Attribute       0x0032   100   100   ---    Old_age   Always       -       63823477
  248 Unknown_Attribute       0x0032   100   100   ---    Old_age   Always       -       84291328

  SMART Error Log Version: 1
  No Errors Logged

  SMART Self-test log structure revision number 1
  Num  Test_Description    Status                  Remaining  LifeTime(hours)  LBA_of_first_error
  # 1  Vendor (0xff)       Completed without error       00%       279         -
  # 2  Extended offline    Completed without error       00%       273         -
  # 3  Vendor (0xff)       Completed without error       00%        90         -
  # 4  Vendor (0xff)       Completed without error       00%         5         -
  # 5  Short offline       Aborted by host               00%         2         -
  # 6  Vendor (0xff)       Completed without error       00%         2         -

  SMART Selective self-test log data structure revision number 1
   SPAN  MIN_LBA  MAX_LBA  CURRENT_TEST_STATUS
      1        0        0  Not_testing
      2        0        0  Not_testing
      3        0        0  Not_testing
      4        0        0  Not_testing
      5        0        0  Not_testing
  Selective self-test flags (0x0):
    After scanning selected spans, do NOT read-scan remainder of disk.
  If Selective self-test is pending on power-up, resume after 0 minute delay.

  [ritesh@x230t libreoffice-4.1.2~rc3]$ uname  -a
  Linux x230t 3.12.0-7-generic #15-Ubuntu SMP Sun Dec 8 23:39:27 UTC 2013 x86_64 x86_64 x86_64 GNU/Linux

  $ mount
  /dev/mapper/ubuntu--vg-root on / type ext4 (rw,noatime,errors=remount-ro,discard)
  proc on /proc type proc (rw,noexec,nosuid,nodev)
  sysfs on /sys type sysfs (rw,noexec,nosuid,nodev)
  none on /sys/fs/cgroup type tmpfs (rw)
  none on /sys/fs/fuse/connections type fusectl (rw)
  none on /sys/kernel/debug type debugfs (rw)
  none on /sys/kernel/security type securityfs (rw)
  none on /sys/firmware/efi/efivars type efivarfs (rw)
  udev on /dev type devtmpfs (rw,mode=0755)
  devpts on /dev/pts type devpts (rw,noexec,nosuid,gid=5,mode=0620)
  tmpfs on /tmp type tmpfs (rw,noatime,mode=1777)
  tmpfs on /run type tmpfs (rw,noexec,nosuid,size=10%,mode=0755)
  none on /run/lock type tmpfs (rw,noexec,nosuid,nodev,size=5242880)
  none on /run/shm type tmpfs (rw,nosuid,nodev)
  none on /run/user type tmpfs (rw,noexec,nosuid,nodev,size=104857600,mode=0755)
  none on /sys/fs/pstore type pstore (rw)
  tmpfs on /var/tmp type tmpfs (rw,noatime,mode=1777)
  tmpfs on /var/log type tmpfs (rw,noatime,mode=0755)
  cgroup on /sys/fs/cgroup/cpuset type cgroup (rw,relatime,cpuset)
  cgroup on /sys/fs/cgroup/cpu type cgroup (rw,relatime,cpu)
  cgroup on /sys/fs/cgroup/cpuacct type cgroup (rw,relatime,cpuacct)
  cgroup on /sys/fs/cgroup/memory type cgroup (rw,relatime,memory)
  cgroup on /sys/fs/cgroup/devices type cgroup (rw,relatime,devices)
  cgroup on /sys/fs/cgroup/freezer type cgroup (rw,relatime,freezer)
  cgroup on /sys/fs/cgroup/blkio type cgroup (rw,relatime,blkio)
  cgroup on /sys/fs/cgroup/perf_event type cgroup (rw,relatime,perf_event)
  cgroup on /sys/fs/cgroup/hugetlb type cgroup (rw,relatime,hugetlb)
  /dev/sda2 on /boot type ext2 (rw)
  /dev/sda1 on /boot/efi type vfat (rw)
  systemd on /sys/fs/cgroup/systemd type cgroup (rw,noexec,nosuid,nodev,none,name=systemd)
  gvfsd-fuse on /run/user/1000/gvfs type fuse.gvfsd-fuse (rw,nosuid,nodev,user=ritesh)

  fsck/badblock (read only)  says disk is clean.
  ---
  ApportVersion: 2.12.7-0ubuntu1
  Architecture: amd64
  AudioDevicesInUse:
   USER        PID ACCESS COMMAND
   /dev/snd/controlC1:  ritesh     2141 F.... pulseaudio
   /dev/snd/controlC0:  ritesh     2141 F.... pulseaudio
  CRDA:
   country IN:
    (2402 - 2482 @ 40), (N/A, 20)
    (5170 - 5250 @ 40), (N/A, 20)
    (5250 - 5330 @ 40), (N/A, 20), DFS
    (5735 - 5835 @ 40), (N/A, 20)
  CurrentDesktop: Unity
  DistroRelease: Ubuntu 14.04
  HibernationDevice: RESUME=UUID=f9f2cec2-98f6-4f05-850a-9f60676c3299
  MachineType: ASUSTeK Computer Inc. K43SA
  MarkForUpload: True
  Package: linux (not installed)
  ProcFB: 0 radeondrmfb
  ProcKernelCmdLine: BOOT_IMAGE=/vmlinuz-3.12.0-7-generic root=/dev/mapper/ubuntu--vg-root ro radeon.dpm=1 quiet splash
  ProcVersionSignature: Ubuntu 3.12.0-7.15-generic 3.12.4
  RelatedPackageVersions:
   linux-restricted-modules-3.12.0-7-generic N/A
   linux-backports-modules-3.12.0-7-generic  N/A
   linux-firmware                            1.117
  StagingDrivers: rts5139
  Tags:  trusty staging
  Uname: Linux 3.12.0-7-generic x86_64
  UpgradeStatus: No upgrade log present (probably fresh install)
  UserGroups: adm cdrom dip kvm libvirtd lpadmin plugdev sambashare sudo
  WifiSyslog:

  dmi.bios.date: 11/17/2011
  dmi.bios.vendor: American Megatrends Inc.
  dmi.bios.version: K43SA.211
  dmi.board.asset.tag: ATN12345678901234567
  dmi.board.name: K43SA
  dmi.board.vendor: ASUSTeK Computer Inc.
  dmi.board.version: 1.0
  dmi.chassis.asset.tag: No Asset Tag
  dmi.chassis.type: 10
  dmi.chassis.vendor: ASUSTeK Computer Inc.
  dmi.chassis.version: 1.0
  dmi.modalias: dmi:bvnAmericanMegatrendsInc.:bvrK43SA.211:bd11/17/2011:svnASUSTeKComputerInc.:pnK43SA:pvr1.0:rvnASUSTeKComputerInc.:rnK43SA:rvr1.0:cvnASUSTeKComputerInc.:ct10:cvr1.0:
  dmi.product.name: K43SA
  dmi.product.version: 1.0
  dmi.sys.vendor: ASUSTeK Computer Inc.
  ---
  ApportVersion: 2.12.7-0ubuntu3
  Architecture: amd64
  CurrentDesktop: Unity
  DistroRelease: Ubuntu 14.04
  InstallationDate: Installed on 2013-12-19 (1 days ago)
  InstallationMedia: Ubuntu 14.04 LTS "Trusty Tahr" - Release amd64 (20131021.1)
  MarkForUpload: True
  Package: linux (not installed)
  Tags:  trusty
  Uname: Linux 3.13.0-999-generic x86_64
  UnreportableReason: The running kernel is not an Ubuntu kernel
  UpgradeStatus: No upgrade log present (probably fresh install)
  UserGroups: adm cdrom dip lpadmin plugdev sambashare sudo

To manage notifications about this bug go to:
https://bugs.launchpad.net/ubuntu/+source/linux/+bug/1259829/+subscriptions


References