Skip to contentSkip to conversation

Broken hd or filesystem access after resume from suspend2disk

DISCUSSION Andreas Hartmann 2 participants 5 messages Nov 27, 2011 – Dec 2, 2011

lore
Share & tools
lore
#0 lore raw

Hello,

I'm often having trouble accessing the hd / filesystem after a resume from suspend2disk. Sometimes, the machine completely hangs after resume or it cannot be suspended at all.

Today, I faced the following problem after resuming:

Using wpa_supplicant failed with the message:

wpa_supplicant -t -c /etc/wpa_supplicant/wpa_supplicant.conf -f /var/log/wpa_supplicant.log -Dnl80211 -iwlan0
wpa_supplicant: symbol lookup error: /lib64/libssl.so.1.0.0: undefined
symbol: RAND_add

ldd which wpa_supplicant

        linux-vdso.so.1 =>  (0x00007fffd84b9000)
        libnl.so.1 => /lib64/libnl.so.1 (0x00007fe5ac0bd000)
        libdl.so.2 => /lib64/libdl.so.2 (0x00007fe5abeb9000)
        libssl.so.1.0.0 => /lib64/libssl.so.1.0.0 (0x00007fe5abc5d000)
        libcrypto.so.1.0.0 => /lib64/libcrypto.so.1.0.0 (0x00007fe5ab8ad000)
        libdbus-1.so.3 => /lib64/libdbus-1.so.3 (0x00007fe5ab668000)
        libc.so.6 => /lib64/libc.so.6 (0x00007fe5ab2d9000)
        libm.so.6 => /lib64/libm.so.6 (0x00007fe5ab082000)
        /lib64/ld-linux-x86-64.so.2 (0x00007fe5ac30f000)
        libz.so.1 => /lib64/libz.so.1 (0x00007fe5aae6a000)
        libpthread.so.0 => /lib64/libpthread.so.0 (0x00007fe5aac4d000)
        librt.so.1 => /lib64/librt.so.1 (0x00007fe5aaa45000)

rpm -qVf /lib64/libssl.so.1.0.0
5........ /lib64/libcrypto.so.1.0.0

-> The libcrypto-library seems to be broken.

In order to check, if there are more broken libraries (after the resume), I did a md5sum on the complete /lib64 directory to have it at base for a recheck after a reboot.

The recheck after the reboot showed two more broken files:

cd /lib64
md5sum -c md5sum.out | grep FAILED libcrypto.so.1.0.0: FAILED libkeyutils.so.1: FAILED libkeyutils.so.1.4: FAILED
md5sum: WARNING: 3 computed checksums did NOT match

Apparently, there is something completely broken after resume.

The machine is a MSI CR620 notebook and kernel is 3.1.

00:00.0 Host bridge: Intel Corporation Core Processor DRAM Controller (rev 02)
00:02.0 VGA compatible controller: Intel Corporation Core Processor Integrated Graphics Controller (rev 02)
00:16.0 Communication controller: Intel Corporation 5 Series/3400 Series Chipset HECI Controller (rev 06)
00:1a.0 USB Controller: Intel Corporation 5 Series/3400 Series Chipset USB2 Enhanced Host Controller (rev 05)
00:1b.0 Audio device: Intel Corporation 5 Series/3400 Series Chipset High Definition Audio (rev 05)
00:1c.0 PCI bridge: Intel Corporation 5 Series/3400 Series Chipset PCI Express Root Port 1 (rev 05)
00:1c.1 PCI bridge: Intel Corporation 5 Series/3400 Series Chipset PCI Express Root Port 2 (rev 05)
00:1c.3 PCI bridge: Intel Corporation 5 Series/3400 Series Chipset PCI Express Root Port 4 (rev 05)
00:1c.5 PCI bridge: Intel Corporation 5 Series/3400 Series Chipset PCI Express Root Port 6 (rev 05)
00:1d.0 USB Controller: Intel Corporation 5 Series/3400 Series Chipset USB2 Enhanced Host Controller (rev 05)
00:1e.0 PCI bridge: Intel Corporation 82801 Mobile PCI Bridge (rev a5) 00:1f.0 ISA bridge: Intel Corporation Mobile 5 Series Chipset LPC Interface Controller (rev 05)
00:1f.2 SATA controller: Intel Corporation 5 Series/3400 Series Chipset 4 port SATA AHCI Controller (rev 05)
00:1f.3 SMBus: Intel Corporation 5 Series/3400 Series Chipset SMBus Controller (rev 05)
00:1f.6 Signal processing controller: Intel Corporation 5 Series/3400 Series Chipset Thermal Subsystem (rev 05)
05:00.0 Network controller: Atheros Communications Inc. AR9285 Wireless Network Adapter (PCI-Express) (rev 01)
06:00.0 Ethernet controller: Realtek Semiconductor Co., Ltd. RTL8101E/RTL8102E PCI Express Fast Ethernet controller (rev 02) 3f:00.0 Host bridge: Intel Corporation Core Processor QuickPath Architecture Generic Non-core Registers (rev 02)
3f:00.1 Host bridge: Intel Corporation Core Processor QuickPath Architecture System Address Decoder (rev 02)
3f:02.0 Host bridge: Intel Corporation Core Processor QPI Link 0 (rev 02) 3f:02.1 Host bridge: Intel Corporation Core Processor QPI Physical 0 (rev 02)
3f:02.2 Host bridge: Intel Corporation Core Processor Reserved (rev 02) 3f:02.3 Host bridge: Intel Corporation Core Processor Reserved (rev 02)

Does anybody has an idea how to fix / or further analyze this problem?

Thank you,
kind regards,
Andreas

#1 lore raw
Quoted 98 lines · Andreas Hartmann

Hello,

I'm often having trouble accessing the hd / filesystem after a resume from  suspend2disk. Sometimes, the machine completely hangs after resume or it cannot be suspended at all.

Today, I faced the following problem after resuming:

Using wpa_supplicant failed with the message:

wpa_supplicant -t -c /etc/wpa_supplicant/wpa_supplicant.conf -f /var/log/wpa_supplicant.log -Dnl80211 -iwlan0
wpa_supplicant: symbol lookup error: /lib64/libssl.so.1.0.0: undefined
symbol: RAND_add

ldd which wpa_supplicant
       linux-vdso.so.1 =>  (0x00007fffd84b9000)
       libnl.so.1 => /lib64/libnl.so.1 (0x00007fe5ac0bd000) libdl.so.2 => /lib64/libdl.so.2 (0x00007fe5abeb9000) libssl.so.1.0.0 => /lib64/libssl.so.1.0.0 (0x00007fe5abc5d000) libcrypto.so.1.0.0 => /lib64/libcrypto.so.1.0.0 (0x00007fe5ab8ad000) libdbus-1.so.3 => /lib64/libdbus-1.so.3 (0x00007fe5ab668000) libc.so.6 => /lib64/libc.so.6 (0x00007fe5ab2d9000) libm.so.6 => /lib64/libm.so.6 (0x00007fe5ab082000) /lib64/ld-linux-x86-64.so.2 (0x00007fe5ac30f000) libz.so.1 => /lib64/libz.so.1 (0x00007fe5aae6a000) libpthread.so.0 => /lib64/libpthread.so.0 (0x00007fe5aac4d000) librt.so.1 => /lib64/librt.so.1 (0x00007fe5aaa45000)

rpm -qVf /lib64/libssl.so.1.0.0
5........    /lib64/libcrypto.so.1.0.0

-> The libcrypto-library seems to be broken.

In order to check, if there are more broken libraries (after the resume), I did a md5sum on the complete /lib64 directory to have it at base for a recheck after a reboot.

The recheck after the reboot showed two more broken files:

cd /lib64
md5sum -c md5sum.out | grep FAILED libcrypto.so.1.0.0: FAILED libkeyutils.so.1: FAILED libkeyutils.so.1.4: FAILED
md5sum: WARNING: 3 computed checksums did NOT match

Apparently, there is something completely broken after resume.

The machine is a MSI CR620 notebook and kernel is 3.1.

00:00.0 Host bridge: Intel Corporation Core Processor DRAM Controller (rev 02)
00:02.0 VGA compatible controller: Intel Corporation Core Processor Integrated Graphics Controller (rev 02)
00:16.0 Communication controller: Intel Corporation 5 Series/3400 Series Chipset HECI Controller (rev 06)
00:1a.0 USB Controller: Intel Corporation 5 Series/3400 Series Chipset USB2 Enhanced Host Controller (rev 05)
00:1b.0 Audio device: Intel Corporation 5 Series/3400 Series Chipset High Definition Audio (rev 05)
00:1c.0 PCI bridge: Intel Corporation 5 Series/3400 Series Chipset PCI Express Root Port 1 (rev 05)
00:1c.1 PCI bridge: Intel Corporation 5 Series/3400 Series Chipset PCI Express Root Port 2 (rev 05)
00:1c.3 PCI bridge: Intel Corporation 5 Series/3400 Series Chipset PCI Express Root Port 4 (rev 05)
00:1c.5 PCI bridge: Intel Corporation 5 Series/3400 Series Chipset PCI Express Root Port 6 (rev 05)
00:1d.0 USB Controller: Intel Corporation 5 Series/3400 Series Chipset USB2 Enhanced Host Controller (rev 05)
00:1e.0 PCI bridge: Intel Corporation 82801 Mobile PCI Bridge (rev a5) 00:1f.0 ISA bridge: Intel Corporation Mobile 5 Series Chipset LPC Interface Controller (rev 05)
00:1f.2 SATA controller: Intel Corporation 5 Series/3400 Series Chipset 4 port SATA AHCI Controller (rev 05)
00:1f.3 SMBus: Intel Corporation 5 Series/3400 Series Chipset SMBus Controller (rev 05)
00:1f.6 Signal processing controller: Intel Corporation 5 Series/3400 Series Chipset Thermal Subsystem (rev 05)
05:00.0 Network controller: Atheros Communications Inc. AR9285 Wireless Network Adapter (PCI-Express) (rev 01)
06:00.0 Ethernet controller: Realtek Semiconductor Co., Ltd. RTL8101E/RTL8102E PCI Express Fast Ethernet controller (rev 02) 3f:00.0 Host bridge: Intel Corporation Core Processor QuickPath Architecture Generic Non-core Registers (rev 02)
3f:00.1 Host bridge: Intel Corporation Core Processor QuickPath Architecture System Address Decoder (rev 02)
3f:02.0 Host bridge: Intel Corporation Core Processor QPI Link 0 (rev 02) 3f:02.1 Host bridge: Intel Corporation Core Processor QPI Physical 0 (rev 02)
3f:02.2 Host bridge: Intel Corporation Core Processor Reserved (rev 02) 3f:02.3 Host bridge: Intel Corporation Core Processor Reserved (rev 02)

Quoted 2 lines

Does anybody has an idea how to fix / or further analyze this problem?

Hmmm, maybe this related to my problem:
http://thread.gmane.org/gmane.linux.kernel/1116939/focus=1117113

First I thought the issue is no longer present in newer kernels. But my netbook still suffers on it.

Signature · 2 lines
Thanks,
//richard
#2 lore raw
Quoted 52 lines · richard -rw- weinberger
Quoted 50 lines · Andreas Hartmann

Hello,

I'm often having trouble accessing the hd / filesystem after a resume from suspend2disk. Sometimes, the machine completely hangs after resume or it cannot be suspended at all.

Today, I faced the following problem after resuming:

Using wpa_supplicant failed with the message:

wpa_supplicant -t -c /etc/wpa_supplicant/wpa_supplicant.conf -f /var/log/wpa_supplicant.log -Dnl80211 -iwlan0
wpa_supplicant: symbol lookup error: /lib64/libssl.so.1.0.0: undefined
symbol: RAND_add

ldd which wpa_supplicant

       linux-vdso.so.1 =>  (0x00007fffd84b9000)
       libnl.so.1 => /lib64/libnl.so.1 (0x00007fe5ac0bd000)
       libdl.so.2 => /lib64/libdl.so.2 (0x00007fe5abeb9000)
       libssl.so.1.0.0 => /lib64/libssl.so.1.0.0 (0x00007fe5abc5d000)
       libcrypto.so.1.0.0 => /lib64/libcrypto.so.1.0.0 (0x00007fe5ab8ad000)
       libdbus-1.so.3 => /lib64/libdbus-1.so.3 (0x00007fe5ab668000)
       libc.so.6 => /lib64/libc.so.6 (0x00007fe5ab2d9000)
       libm.so.6 => /lib64/libm.so.6 (0x00007fe5ab082000)
       /lib64/ld-linux-x86-64.so.2 (0x00007fe5ac30f000)
       libz.so.1 => /lib64/libz.so.1 (0x00007fe5aae6a000)
       libpthread.so.0 => /lib64/libpthread.so.0 (0x00007fe5aac4d000)
       librt.so.1 => /lib64/librt.so.1 (0x00007fe5aaa45000)

rpm -qVf /lib64/libssl.so.1.0.0
5........ /lib64/libcrypto.so.1.0.0

-> The libcrypto-library seems to be broken.

In order to check, if there are more broken libraries (after the resume), I did a md5sum on the complete /lib64 directory to have it at base for a recheck after a reboot.

The recheck after the reboot showed two more broken files:

cd /lib64
md5sum -c md5sum.out | grep FAILED libcrypto.so.1.0.0: FAILED libkeyutils.so.1: FAILED libkeyutils.so.1.4: FAILED
md5sum: WARNING: 3 computed checksums did NOT match

Apparently, there is something completely broken after resume.

[...]

Quoted 6 lines

Hmmm, maybe this related to my problem:
http://thread.gmane.org/gmane.linux.kernel/1116939/focus=1117113

First I thought the issue is no longer present in newer kernels. But my netbook still suffers on it.

I just looked at the link above and can say that I face this problem since opensuse 11.3 (kernel 2.6.34 ...) with my machine (64 bit). The problem is, that the effects are always different, addicted to the file which actually is corrupted. I even could see this kernel bug after resume from s2disk, which seems to be filesystem related, too:

http://permalink.gmane.org/gmane.linux.kernel/1214998

I'm using a crypted lvm partition:

fdisk -l

Disk /dev/sda: 250.1 GB, 250059350016 bytes
255 heads, 63 sectors/track, 30401 cylinders, total 488397168 sectors Units = sectors of 1 * 512 = 512 bytes
Sector size (logical/physical): 512 bytes / 512 bytes
I/O size (minimum/optimal): 512 bytes / 512 bytes
Disk identifier: 0xbab21f87

   Device Boot      Start         End      Blocks   Id  System
/dev/sda1   *        2048      321535      159744   83  Linux
/dev/sda2          321536   488396799   244037632   8e  Linux LVM

pvdisplay
--- Physical volume ---

  PV Name               /dev/mapper/cr_sda2
  VG Name               system
  PV Size               232.73 GiB / not usable 4.00 MiB
  Allocatable           yes
  PE Size               4.00 MiB
  Total PE              59578
  Free PE               43519
  Allocated PE          16059

lvdisplay
--- Logical volume ---

  LV Name                /dev/system/home
  VG Name                system
  LV Write Access        read/write
  LV Status              available
  # open                 1
  LV Size                25.00 GiB
  Current LE             6400
  Segments               1
  Allocation             inherit
  Read ahead sectors     auto
  - currently set to     3072
  Block device           253:1

--- Logical volume ---

  LV Name                /dev/system/opt
  VG Name                system
  LV Write Access        read/write
  LV Status              available
  # open                 1
  LV Size                1.00 GiB
  Current LE             256
  Segments               1
  Allocation             inherit
  Read ahead sectors     auto
  - currently set to     3072
  Block device           253:2

--- Logical volume ---

  LV Name                /dev/system/root
  VG Name                system
  LV Write Access        read/write
  LV Status              available
  # open                 1
  LV Size                2.00 GiB
  Current LE             512
  Segments               1
  Allocation             inherit
  Read ahead sectors     auto
  - currently set to     3072
  Block device           253:3

--- Logical volume ---

  LV Name                /dev/system/swap
  VG Name                system
  LV Write Access        read/write
  LV Status              available
  # open                 2
  LV Size                4.00 GiB
  Current LE             1024
  Segments               2
  Allocation             inherit
  Read ahead sectors     auto
  - currently set to     256
  Block device           253:4

--- Logical volume ---

  LV Name                /dev/system/usr
  VG Name                system
  LV Write Access        read/write
  LV Status              available
  # open                 1
  LV Size                20.00 GiB
  Current LE             5120
  Segments               1
  Allocation             inherit
  Read ahead sectors     auto
  - currently set to     3072
  Block device           253:5

--- Logical volume ---

  LV Name                /dev/system/var
  VG Name                system
  LV Write Access        read/write
  LV Status              available
  # open                 1
  LV Size                10.73 GiB
  Current LE             2747
  Segments               1
  Allocation             inherit
  Read ahead sectors     auto
  - currently set to     3072
  Block device           253:6

cryptsetup status cr_sda2
/dev/mapper/cr_sda2 is active and is in use.
type: LUKS1
cipher: aes-cbc-essiv:sha256
keysize: 256 bits

  device:  /dev/sda2
  offset:  4096 sectors
  size:    488071168 sectors
  mode:    read/write

The resume partition is /dev/system/swap

Kind regards,
Andreas Hartmann

#3 lore raw
In reply to richard -rw- weinberger
Quoted 100 lines · richard -rw- weinberger
Quoted 98 lines · Andreas Hartmann

Hello,

I'm often having trouble accessing the hd / filesystem after a resume from suspend2disk. Sometimes, the machine completely hangs after resume or it cannot be suspended at all.

Today, I faced the following problem after resuming:

Using wpa_supplicant failed with the message:

wpa_supplicant -t -c /etc/wpa_supplicant/wpa_supplicant.conf -f /var/log/wpa_supplicant.log -Dnl80211 -iwlan0
wpa_supplicant: symbol lookup error: /lib64/libssl.so.1.0.0: undefined
symbol: RAND_add

ldd which wpa_supplicant

       linux-vdso.so.1 =>  (0x00007fffd84b9000)
       libnl.so.1 => /lib64/libnl.so.1 (0x00007fe5ac0bd000)
       libdl.so.2 => /lib64/libdl.so.2 (0x00007fe5abeb9000)
       libssl.so.1.0.0 => /lib64/libssl.so.1.0.0 (0x00007fe5abc5d000)
       libcrypto.so.1.0.0 => /lib64/libcrypto.so.1.0.0 (0x00007fe5ab8ad000)
       libdbus-1.so.3 => /lib64/libdbus-1.so.3 (0x00007fe5ab668000)
       libc.so.6 => /lib64/libc.so.6 (0x00007fe5ab2d9000)
       libm.so.6 => /lib64/libm.so.6 (0x00007fe5ab082000)
       /lib64/ld-linux-x86-64.so.2 (0x00007fe5ac30f000)
       libz.so.1 => /lib64/libz.so.1 (0x00007fe5aae6a000)
       libpthread.so.0 => /lib64/libpthread.so.0 (0x00007fe5aac4d000)
       librt.so.1 => /lib64/librt.so.1 (0x00007fe5aaa45000)

rpm -qVf /lib64/libssl.so.1.0.0
5........ /lib64/libcrypto.so.1.0.0

-> The libcrypto-library seems to be broken.

In order to check, if there are more broken libraries (after the resume), I did a md5sum on the complete /lib64 directory to have it at base for a recheck after a reboot.

The recheck after the reboot showed two more broken files:

cd /lib64
md5sum -c md5sum.out | grep FAILED libcrypto.so.1.0.0: FAILED libkeyutils.so.1: FAILED libkeyutils.so.1.4: FAILED
md5sum: WARNING: 3 computed checksums did NOT match

Apparently, there is something completely broken after resume.

The machine is a MSI CR620 notebook and kernel is 3.1.

00:00.0 Host bridge: Intel Corporation Core Processor DRAM Controller (rev 02)
00:02.0 VGA compatible controller: Intel Corporation Core Processor Integrated Graphics Controller (rev 02)
00:16.0 Communication controller: Intel Corporation 5 Series/3400 Series Chipset HECI Controller (rev 06)
00:1a.0 USB Controller: Intel Corporation 5 Series/3400 Series Chipset USB2 Enhanced Host Controller (rev 05)
00:1b.0 Audio device: Intel Corporation 5 Series/3400 Series Chipset High Definition Audio (rev 05)
00:1c.0 PCI bridge: Intel Corporation 5 Series/3400 Series Chipset PCI Express Root Port 1 (rev 05)
00:1c.1 PCI bridge: Intel Corporation 5 Series/3400 Series Chipset PCI Express Root Port 2 (rev 05)
00:1c.3 PCI bridge: Intel Corporation 5 Series/3400 Series Chipset PCI Express Root Port 4 (rev 05)
00:1c.5 PCI bridge: Intel Corporation 5 Series/3400 Series Chipset PCI Express Root Port 6 (rev 05)
00:1d.0 USB Controller: Intel Corporation 5 Series/3400 Series Chipset USB2 Enhanced Host Controller (rev 05)
00:1e.0 PCI bridge: Intel Corporation 82801 Mobile PCI Bridge (rev a5) 00:1f.0 ISA bridge: Intel Corporation Mobile 5 Series Chipset LPC Interface Controller (rev 05)
00:1f.2 SATA controller: Intel Corporation 5 Series/3400 Series Chipset 4 port SATA AHCI Controller (rev 05)
00:1f.3 SMBus: Intel Corporation 5 Series/3400 Series Chipset SMBus Controller (rev 05)
00:1f.6 Signal processing controller: Intel Corporation 5 Series/3400 Series Chipset Thermal Subsystem (rev 05)
05:00.0 Network controller: Atheros Communications Inc. AR9285 Wireless Network Adapter (PCI-Express) (rev 01)
06:00.0 Ethernet controller: Realtek Semiconductor Co., Ltd. RTL8101E/RTL8102E PCI Express Fast Ethernet controller (rev 02) 3f:00.0 Host bridge: Intel Corporation Core Processor QuickPath Architecture Generic Non-core Registers (rev 02)
3f:00.1 Host bridge: Intel Corporation Core Processor QuickPath Architecture System Address Decoder (rev 02)
3f:02.0 Host bridge: Intel Corporation Core Processor QPI Link 0 (rev 02) 3f:02.1 Host bridge: Intel Corporation Core Processor QPI Physical 0 (rev 02)
3f:02.2 Host bridge: Intel Corporation Core Processor Reserved (rev 02) 3f:02.3 Host bridge: Intel Corporation Core Processor Reserved (rev 02)

Quoted 8 lines
Quoted 2 lines

Does anybody has an idea how to fix / or further analyze this problem?

Hmmm, maybe this related to my problem:
http://thread.gmane.org/gmane.linux.kernel/1116939/focus=1117113

First I thought the issue is no longer present in newer kernels. But my netbook still suffers on it.

Well, I've got two notebooks: one suffers on it, the other not. The core differences between these two notebooks:

32 bit vs 64 bit
single threaded vs multi threaded (intel Core i5)

The single threaded notebook does not suffer on this problem, the multi threaded does. The problem doesn't happen every time. I think it's dependent from the files affected. I even saw a broken ~/.xsession-errors file. It contained a lot of 0x00 "characters" in one row.

If this happens to a library or binary, which is used for resuming, resuming won't work, too. That is to say the next problem I suffer on:
resuming - even s2disk just doesn't work at all some times.

Kind regards,
Andreas