zram03 in kernel_misc from ubuntu_ltp failed with Failed to close FILE on E-oracle / B-5.4-oracle / F-5.4 / F-5.8 / F-5.11

Bug #1887742 reported by Po-Hsu Lin
12
This bug affects 2 people
Affects Status Importance Assigned to Milestone
ubuntu-kernel-tests
New
Undecided
Unassigned

Bug Description

Issue found on E-Oracle 5.3.0-1030.32

Only spotted on instance VM.Standard2.1 passed on VM.Standard2.16

 tag=zram03 stime=1594710365 dur=0 exit=exited stat=2 core=no cu=0 cs=0
 startup='Tue Jul 14 07:06:05 2020'
 zram03 0 TINFO : create a zram device with 536870912 bytes in size.
 zram03 1 TBROK : safe_file_ops.c:299: Failed to close FILE '/sys/block/zram0/disksize' at zram03.c:87: errno=EBUSY(16): Device or resource busy
 zram03 2 TBROK : safe_file_ops.c:299: Remaining cases broken

Might be caused by the echo error in the previous zram02 test:
 tag=zram02 stime=1594710360 dur=0 exit=exited stat=0 core=no cu=4 cs=19
 startup='Tue Jul 14 07:06:00 2020'
 zram02 1 TINFO: timeout per run is 0h 5m 0s
 zram02 1 TINFO: create '1' zram device(s)
 zram02 1 TPASS: test succeeded
 zram02 1 TCONF: The device attribute max_comp_streams was introduced in kernel 3.15 and deprecated in 4.7
 zram02 2 TINFO: set disk size to zram device(s)
 zram02 2 TINFO: /sys/block/zram0/disksize = '107374182400' (1/1)
 zram02 2 TPASS: test succeeded
 zram02 3 TINFO: set memory limit to zram device(s)
 zram02 3 TINFO: /sys/block/zram0/mem_limit = '1M' (1/1)
 zram02 3 TPASS: test succeeded
 zram02 4 TINFO: make swap with zram device(s)
 Setting up swapspace version 1, size = 100 GiB (107374178304 bytes)
 no label, UUID=75d269f2-80d0-4ca0-b327-9b4553944447
 zram02 4 TINFO: done with /dev/zram0
 zram02 4 TPASS: making zram swap succeeded
 zram02 5 TPASS: swapoff completed
 /opt/ltp/testcases/bin/zram02.sh: 27: echo: echo: I/O error

 Summary:
 passed 5
 failed 0
 skipped 1
 warnings 0

Po-Hsu Lin (cypressyew)
tags: added: 5.3 eoan kqa-blocker oracle sru-20200629 ubuntu-ltp
Revision history for this message
Po-Hsu Lin (cypressyew) wrote : Re: zram03 in kernel_misc from ubuntu_ltp failed with Failed to close FILE on E-oracle / B-5.4-oracle

Failed on VM.DenseIO2.8 passed with VM.Standard2.1

 5.4.0-1021.21~18.04.1 B-oracle-5.4

tags: added: 5.4 sru-20200720
summary: zram03 in kernel_misc from ubuntu_ltp failed with Failed to close FILE
- on E-oracle
+ on E-oracle / B-5.4-oracle
Revision history for this message
Po-Hsu Lin (cypressyew) wrote :

Spotted on VM.DenseIO2.8 with 4.15.0-1051.55-oracle
(passed on VM.Standard2.1)

tags: added: 4.15 bionic
tags: added: sru-20200810
Revision history for this message
Po-Hsu Lin (cypressyew) wrote :

Spotted on F-5.4 amd64 generic / lowlatency on node amaura
5.4.0-44.48

tags: added: focal
summary: zram03 in kernel_misc from ubuntu_ltp failed with Failed to close FILE
- on E-oracle / B-5.4-oracle
+ on E-oracle / B-5.4-oracle / F-5.4
Revision history for this message
Kelsey Steele (kelsey-steele) wrote : Re: zram03 in kernel_misc from ubuntu_ltp failed with Failed to close FILE on E-oracle / B-5.4-oracle / F-5.4

Spotted on Bionic aws : 4.15.0-1084.88 : amd64

tags: added: sru-20200921
Revision history for this message
Po-Hsu Lin (cypressyew) wrote :

Still visible on 5.4.0-1030.32~18.04.1 - oracle
VM.DenseIO2.8 only

tags: added: sru-20201109
Revision history for this message
Kelsey Steele (kelsey-steele) wrote :

Found on Groovy/linux 5.8.0-31.33

tags: added: 5.8 amd64 groovy
Revision history for this message
Kelsey Steele (kelsey-steele) wrote :

Found on bionic/ibm-gt 4.15.0-1084.93

tags: added: ibm-gt sru-20210104
tags: added: hwe-5.8
tags: added: sru-20210222
tags: added: sru-20210315
tags: added: hwe
Revision history for this message
Marcelo Cerri (mhcerri) wrote :

Also seen in bionic linux-fips 4.15.0-1057.65 for sru-20210315

tags: added: sru-20210412
tags: removed: ibm-gt
tags: added: fips
Revision history for this message
Kleber Sacilotto de Souza (kleber-souza) wrote :

Seen with bionic/linux 4.15.0-144.148, SRU Cycle 2021.05.10.

tags: added: sru-20210510
Revision history for this message
Po-Hsu Lin (cypressyew) wrote :

Found on 5.11.0-1005.5 - intel with node kili / spitfire.

tags: added: sru-20210531
summary: zram03 in kernel_misc from ubuntu_ltp failed with Failed to close FILE
- on E-oracle / B-5.4-oracle / F-5.4
+ on E-oracle / B-5.4-oracle / F-5.4 / F-5.11
tags: added: 5.11
tags: added: hirsute
Revision history for this message
Krzysztof Kozlowski (krzk) wrote : Re: zram03 in kernel_misc from ubuntu_ltp failed with Failed to close FILE on E-oracle / B-5.4-oracle / F-5.4 / F-5.11

Found on focal/oracle 5.8.0-1032.33~20.04.1 (instance VM.DenseIO2.8).
Looks like failure of cleanup from zram02 (previous) test:

zram02 5 TINFO: done with /dev/zram0
zram02 5 TPASS: making zram swap succeeded
zram02 6 TPASS: swapoff completed
/opt/ltp/testcases/bin/zram02.sh: 29: echo: echo: I/O error
...
zram03 0 TINFO : create a zram device with 536870912 bytes in size.
zram03 1 TBROK : zram03.c:87: Failed to close FILE '/sys/block/zram0/disksize': errno=EBUSY(16): Device or resource busy
zram03 2 TBROK : zram03.c:87: Remaining cases broken

summary: zram03 in kernel_misc from ubuntu_ltp failed with Failed to close FILE
- on E-oracle / B-5.4-oracle / F-5.4 / F-5.11
+ on E-oracle / B-5.4-oracle / F-5.4 / F-5.8 / F-5.11
Revision history for this message
Krzysztof Kozlowski (krzk) wrote (last edit ):

Found on groovy/oracle 5.8.0-1032.33 (only instance VM.DenseIO2.8, passed on VM.Standard2.1).

Changed in ubuntu-kernel-tests:
assignee: nobody → Krzysztof Kozlowski (krzk)
Revision history for this message
Krzysztof Kozlowski (krzk) wrote :

Found on hirsute/gcp 5.11.0-1009.10-gcp (only few instances, e.g.: n1-standard-8, n1-standard-64, n1-highmem-8).

tags: added: gcp
Revision history for this message
Krzysztof Kozlowski (krzk) wrote (last edit ):

Tried to reproduce it manually with autotest on Oracle VM.DenseIO2.8, Focal v5.8, but everything worked fine. However when scheduled a test build it failed there as usual on Oracle VM.DenseIO2.8:
16:07:14 DEBUG| [stdout] /opt/ltp/testcases/bin/zram02.sh: 29: echo: echo: I/O error
...
16:07:14 DEBUG| [stdout] zram03 1 TBROK : zram03.c:87: Failed to close FILE '/sys/block/zram0/disksize': errno=EBUSY(16): Device or resource busy

Revision history for this message
Krzysztof Kozlowski (krzk) wrote :

Found on groovy/aws 5.8.0-1036.38-aws (only instance x1e.xlarge).

tags: added: impish
tags: added: sru-20210621
Revision history for this message
Krzysztof Kozlowski (krzk) wrote :

Fouund on groovy 5.8.0-61.68 metal-dryden.ppc64el

tags: added: sru-20210719
tags: added: hinted
Revision history for this message
Stefan Bader (smb) wrote :

Seen on arm64, generic-64k on helo-kernel for sru-20210906

tags: added: sru-20210906
Revision history for this message
Kleber Sacilotto de Souza (kleber-souza) wrote :

Found with focal/linux 5.4.0-85.95 on node dryden ppc64el.

Revision history for this message
Ian May (ian-may) wrote :

Found with bionic/linux-oracle-5.4: 5.4.0-1056.60~18.04.1 n1-highcpu-4

tags: added: sru-20211129
Revision history for this message
Thadeu Lima de Souza Cascardo (cascardo) wrote :

On focal/linux-gcp 5.4.0-1093, instance type n2d-standard-2, saw:

   18425 tst_test.c:1526: TINFO: Timeout per run is 0h 00m 30s
      18426 zram03.c:181: TINFO: zram module already loaded, kernel supports zram-control interface
      18427 zram03.c:40: TINFO: create a zram device with 536870912 bytes in size
      18428 zram03.c:50: TINFO: map this zram device into memory
      18429 zram03.c:54: TINFO: write all the memory
      18430 zram03.c:105: TINFO: /sys/block/zram1
      18431 zram03.c:108: TINFO: /sys/block/zram1/initstate is 1
      18432 zram03.c:105: TINFO: /sys/block/zram1
      18433 zram03.c:108: TINFO: /sys/block/zram1/disksize is 536870912
      18434 zram03.c:131: TINFO: orig_data_size from /sys/block/zram1/mm_stat is 536870912
      18435 zram03.c:132: TINFO: compr_data_size from /sys/block/zram1/mm_stat is 46
      18436 zram03.c:133: TINFO: mem_used_total from /sys/block/zram1/mm_stat is 4096
      18437 zram03.c:134: TINFO: zero/same_pages from /sys/block/zram1/mm_stat is 131071
      18438 zram03.c:118: TINFO: num_reads from /sys/block/zram1/stat is 131072
      18439 zram03.c:119: TINFO: num_writes from /sys/block/zram1/stat is 131072
      18440 zram03.c:68: TINFO: verify contents from device
      18441 zram03.c:85: TPASS: data read from zram device is consistent with those are written
      18442 zram03.c:96: TINFO: Reset zram
      18443 zram03.c:98: TBROK: Failed to close FILE '/sys/block/zram1/reset': EBUSY (16)
      18444 zram03.c:230: TWARN: Failed to close FILE '/sys/class/zram-control/hot_remove': EBUSY (16)

This may be caused by fclose calling write, and the reset_store and zram_remove may return -EBUSY in case there are still openers of the block device. This could be caused by udev looking at the block device, for example.

Po-Hsu Lin (cypressyew)
tags: added: gke sru-20230227
Po-Hsu Lin (cypressyew)
Changed in ubuntu-kernel-tests:
assignee: Krzysztof Kozlowski (krzk) → nobody
tags: added: ubuntu-ltp-kernel-misc
removed: ubuntu-ltp
To post a comment you must log in.
This report contains Public information  
Everyone can see this information.

Other bug subscribers

Remote bug watches

Bug watches keep track of this bug in other bug trackers.