cve-2018-1000204 failed in cve from ubuntu_ltp on Focal/Groovy/Hirsute/Impish

Bug #1899413 reported by Kelsey Steele
20
This bug affects 3 people
Affects Status Importance Assigned to Milestone
ubuntu-kernel-tests
Fix Released
High
Krzysztof Kozlowski

Bug Description

65432. 10/09 23:16:14 DEBUG| utils:0153| [stdout] tst_test.c:1248: TINFO: Timeout per run is 0h 05m 00s
65433. 10/09 23:16:14 DEBUG| utils:0153| [stdout] ioctl_sg01.c:81: TINFO: Found SCSI device /dev/sg2
65434. 10/09 23:16:14 DEBUG| utils:0153| [stdout] tst_test.c:1294: TINFO: If you are running on slow machine, try exporting LTP_TIMEOUT_MUL > 1
65435. 10/09 23:16:14 DEBUG| utils:0153| [stdout] tst_test.c:1296: TBROK: Test killed! (timeout?)
65436. 10/09 23:16:14 DEBUG| utils:0153| [stdout]
65437. 10/09 23:16:14 DEBUG| utils:0153| [stdout] Summary:
65438. 10/09 23:16:14 DEBUG| utils:0153| [stdout] passed 0
65439. 10/09 23:16:14 DEBUG| utils:0153| [stdout] failed 0
65440. 10/09 23:16:14 DEBUG| utils:0153| [stdout] skipped 0
65441. 10/09 23:16:14 DEBUG| utils:0153| [stdout] warnings 0
65442. 10/09 23:16:14 DEBUG| utils:0153| [stdout] tag=cve-2018-1000204 stime=1602284878 dur=47 exit=exited stat=2 core=no cu=789 cs=3863

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

Spotted on 5.4.0-1030.32~18.04.1 with VM.DenseIO2.8

As this test is calling the ioctl_sg01, I think we can port the fix for ubuntu_ltp_syscalls in bug 1895281 to ubuntu_ltp

Changed in ubuntu-kernel-tests:
assignee: nobody → Po-Hsu Lin (cypressyew)
status: New → In Progress
Revision history for this message
Po-Hsu Lin (cypressyew) wrote :

BTW for comment #1 it's oracle kernel.

https://kernel.ubuntu.com/git/ubuntu/autotest-client-tests.git/commit/?id=4c7df183775f8d23493e1a844ed47adf522c2e1f

Re-testing Azure / Oracle instances that failed with this.

Revision history for this message
Po-Hsu Lin (cypressyew) wrote :

For Azure Focal kernel, I can see this failing on:
5.4.0-1032.33-azure Standard_DS5_v2

Re-testing this.

Revision history for this message
Po-Hsu Lin (cypressyew) wrote :

With 3x timeout (15 mins) this test is still failing on 5.4.0-1030.32~18.04.1 with VM.DenseIO2.8 and 5.4.0-1032.33-azure Standard_DS5_v2.

This will need more tests.

Revision history for this message
Po-Hsu Lin (cypressyew) wrote :

Found on F-azure 5.4.0-1035.36

Changed in ubuntu-kernel-tests:
assignee: Po-Hsu Lin (cypressyew) → nobody
status: In Progress → Confirmed
tags: added: sru-20201130
tags: added: sru-20210315
Revision history for this message
Kelsey Steele (kelsey-steele) wrote :

Spotted on Groovy 5.8.0-51.57 host wright-kernel

tags: added: 5.8 groovy sru-20210412
tags: added: hwe hwe-5.8
tags: added: 5.11 hirsute sru-20210510
Revision history for this message
Krzysztof Kozlowski (krzk) wrote :

Found on focal/azure 5.8.0-1034.36~20.04.1-azure

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

Found on focal/oracle 5.8.0-1032.33~20.04.1

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

Found on groovy/oracle 5.8.0-1032.33

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

Observed with focal/linux: 5.4.0-76.85.

summary: - cve-2018-1000204 failed in cve from ubuntu_ltp on Focal/azure
+ cve-2018-1000204 failed in cve from ubuntu_ltp on Focal/Groovy/Hirsute
summary: - cve-2018-1000204 failed in cve from ubuntu_ltp on Focal/Groovy/Hirsute
+ cve-2018-1000204 failed in cve from ubuntu_ltp on
+ Focal/Groovy/Hirsute/Impish
Revision history for this message
Krzysztof Kozlowski (krzk) wrote :

The test is killed not because of timeout (LTP_TIMEOUT_MUL does not matter) but out of memory:

[78071.145199] LTP: starting cve-2018-1000204 (ioctl_sg01)
[78171.386374] ioctl_sg01 invoked oom-killer: gfp_mask=0x100dca(GFP_HIGHUSER_MOVABLE|__GFP_ZERO), order=0, oom_score_adj=0
...
[78171.386673] [ 446891] 0 446891 48988960 48987056 392708096 0 0 ioctl_sg01
...
[78171.386702] Out of memory: Killed process 446891 (ioctl_sg01) total-vm:195955840kB, anon-rss:195946880kB, file-rss:1344kB, shmem-rss:0kB, UID:0 pgtables:383504kB oom_score_adj:0

Changed in ubuntu-kernel-tests:
importance: Undecided → High
assignee: nobody → Krzysztof Kozlowski (krzk)
Changed in ubuntu-kernel-tests:
status: Confirmed → In Progress
Revision history for this message
Krzysztof Kozlowski (krzk) wrote :
Revision history for this message
Krzysztof Kozlowski (krzk) wrote :

Previously discussed in LTP also here: https://patchwork<email address hidden>/

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

Committed upstream.

Changed in ubuntu-kernel-tests:
status: In Progress → Fix Released
Revision history for this message
Po-Hsu Lin (cypressyew) wrote :

Note that even with krzk's patch applied, this test still took 11 min to run on H-oracle-5.11 BM.Standard2.52

tag=cve-2018-1000204 stime=1633698520 dur=668 exit=exited stat=0 core=no cu=18189 cs=48615

So the commit to bump timeout is still essential:
https://kernel.ubuntu.com/git/ubuntu/autotest-client-tests.git/commit/?id=4c7df183775f8d23493e1a844ed47adf522c2e1f

To post a comment you must log in.
This report contains Public information  
Everyone can see this information.

Duplicates of this bug

Other bug subscribers

Remote bug watches

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