af_alg07 in crypto / cve-2019-8912 in cve from ubuntu_ltp failed on B/F/J

Bug #1892860 reported by Po-Hsu Lin
18
This bug affects 3 people
Affects Status Importance Assigned to Milestone
ubuntu-kernel-tests
New
Undecided
Unassigned
linux (Ubuntu)
Incomplete
Undecided
Unassigned

Bug Description

Issue found on 4.15.0-114.115-generic with ARM64 node appleton-kernel and wright-kernel.

Looks like this is a new test case added 13 days ago:
https://github.com/linux-test-project/ltp/commit/fdff6139e43aa9b19f27907f6d7f2cb4765632a1#diff-8a83d6b2c6c7d74e750e3af47e3f4a79

The test will fail with:
 startup='Fri Aug 14 10:13:27 2020'
 tst_test.c:1247: INFO: Timeout per run is 0h 05m 00s
 tst_taint.c:88: CONF: Ignoring already set kernel warning taint
 ../../../include/tst_fuzzy_sync.h:507: INFO: Minimum sampling period ended
 ../../../include/tst_fuzzy_sync.h:331: INFO: loop = 1024, delay_bias = 0
 ../../../include/tst_fuzzy_sync.h:320: INFO: start_a - start_b: { avg = -2259470ns, avg_dev = 13695382ns, dev_ratio = 6.06 }
 ../../../include/tst_fuzzy_sync.h:320: INFO: end_a - start_a : { avg = 13968ns, avg_dev = 4310ns, dev_ratio = 0.31 }
 ../../../include/tst_fuzzy_sync.h:320: INFO: end_b - start_b : { avg = 15975ns, avg_dev = 50ns, dev_ratio = 0.00 }
 ../../../include/tst_fuzzy_sync.h:320: INFO: end_a - end_b : { avg = -2261477ns, avg_dev = 13699742ns, dev_ratio = 6.06 }
 ../../../include/tst_fuzzy_sync.h:320: INFO: spins : { avg = 3575095 , avg_dev = 4553 , dev_ratio = 0.00 }
 ../../../include/tst_fuzzy_sync.h:637: INFO: Exceeded execution time, requesting exit
 af_alg07.c:97: FAIL: fchownat() failed to fail, kernel may be vulnerable

 HINT: You _MAY_ be missing kernel fixes, see:

 https://git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git/commit/?id=9060cb719e61

 HINT: You _MAY_ be vulnerable to CVE(s), see:

 https://cve.mitre.org/cgi-bin/cvename.cgi?name=CVE-2019-8912

 Summary:
 passed 0
 failed 1
 skipped 1
 warnings 0
 tag=af_alg07 stime=1597400007 dur=150 exit=exited stat=33 core=no cu=15051 cs=0

Po-Hsu Lin (cypressyew)
tags: added: arm64
summary: - af_alg07 in crypto from ubuntu_ltp failed on B-arm64
+ af_alg07 in crypto / cve-2019-8912 in cve from ubuntu_ltp failed on
+ B-arm64
Revision history for this message
Ubuntu Kernel Bot (ubuntu-kernel-bot) wrote : Missing required logs.

This bug is missing log files that will aid in diagnosing the problem. While running an Ubuntu kernel (not a mainline or third-party kernel) please enter the following command in a terminal window:

apport-collect 1892860

and then change the status of the bug to 'Confirmed'.

If, due to the nature of the issue you have encountered, you are unable to run this command, please add a comment stating that fact and change the bug status to 'Confirmed'.

This change has been made by an automated script, maintained by the Ubuntu Kernel Team.

Changed in linux (Ubuntu):
status: New → Incomplete
Revision history for this message
Po-Hsu Lin (cypressyew) wrote : Re: af_alg07 in crypto / cve-2019-8912 in cve from ubuntu_ltp failed on B-arm64

Can be found on Focal OEM 5.6 as well.

tags: added: 5.8 focal
tags: added: 5.6
removed: 5.8
Revision history for this message
Po-Hsu Lin (cypressyew) wrote :

Still affecting AWS 4.15.0-1083.87 ARM64 (passed on AMD64)

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

It's failing with B-azure-5.4 on some instances (Standard_D48_v3 and Standard_DS15_v2) passed with Standard_F2s_v2

Revision history for this message
Thadeu Lima de Souza Cascardo (cascardo) wrote :

It seems that you *can* chown a socket, so this call just works fine. No races with close needed. So, it seems to be a bogus assumption on the part of the test.

Cascardo.

Revision history for this message
Thadeu Lima de Souza Cascardo (cascardo) wrote :

UCT mentions commits 9060cb719e61b685ec0102574e10337fa5f445ea (specific to AF_ALG) and ff7b11aa481f682e0e9711abfeb7d03f5cd612bf (all sockets).

The other commit we should care about is 6d8c50dcb029872b298eea68cc6209c866fd3e14 ("socket: close race condition between sock_close() and sockfs_setattr()").

If you have that one, you should expect ENOENT (which is what the test case expects), but only if sock_close wins the race. If it doesn't, you might still succeed at sockfs_setattr, and then we get this test failure.

Cascardo.

Revision history for this message
Kelsey Steele (kelsey-steele) wrote :

found on aws : 5.4.0-1026.26 : amd64 t2.small

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

Spotted on Focal/azure : 5.4.0-1029.29 : amd64

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

On F-5.8, this can be found on PowerPC but not AMD64 (ARM64 not tested)

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

Still visible on F-azure 5.4.0-1032.33, but only with instance Standard_D48_v3

We might need to test this manually on this instance to see if it needs more time to run.

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

Found on Groovy/linux 5.8.0-31.33 ppc64el (P9)

tags: added: 5.8 groovy
tags: added: ppc64el
Revision history for this message
Po-Hsu Lin (cypressyew) wrote :

Found on B-5.4 P9 baltar as well.

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

Found on B-azure-4.15 Standard_D48_v3

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

Need to double check if this issue still exists on other kernel / arches

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

This bug still exist on F-oem 5.6.0-1037.41 with amd64 node glameow

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

I can see this on B-azure-fips 4.15 with instance Standard_D48_v3 only

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

Found on F-OEM-5.10 5.10.0-1017.18

tags: added: sru-20210222
tags: added: sru-20210315
tags: added: hwe
tags: added: hwe-5.4
tags: added: sru-20210412
Revision history for this message
Kleber Sacilotto de Souza (kleber-souza) wrote :

Found with bionic/linux-hwe-5.4 5.4.0-84.94~18.04.1 on node dryden (ppc64el).

tags: added: sru-20210816
summary: - af_alg07 in crypto / cve-2019-8912 in cve from ubuntu_ltp failed on
- B-arm64
+ af_alg07 in crypto / cve-2019-8912 in cve from ubuntu_ltp failed on B/F
+ arm64
summary: af_alg07 in crypto / cve-2019-8912 in cve from ubuntu_ltp failed on B/F
- arm64
Revision history for this message
Kleber Sacilotto de Souza (kleber-souza) wrote : Re: af_alg07 in crypto / cve-2019-8912 in cve from ubuntu_ltp failed on B/F

This is also affecting jammy/linux 5.15 on node dazzle (arm64).

summary: - af_alg07 in crypto / cve-2019-8912 in cve from ubuntu_ltp failed on B/F
+ af_alg07 in crypto / cve-2019-8912 in cve from ubuntu_ltp failed on
+ B/F/J
Revision history for this message
Andrei Gherzan (agherzan) wrote :

Ran into this on the 2023-03-20 cycle:

SRU Cycle: 2023.03.20
Series: focal
Package: linux-hwe-5.15
Version: 5.15.0-70.77~20.04.1
Cloud: metal
Instance: howzit-kernel
Region: serverenablement
Operation: sru

tags: added: sru-20230320
Revision history for this message
Roxana Nicolescu (roxanan) wrote :

Ran into this for 2023.08.07 cycle, bionic:hwe-5.4, version 5.4.0-162.179~18.04.1 on cloud cpu2-ram4-disk20, ppc64el

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.