Testing on Bionic
=================

$ lsb_release -cs
bionic

$ uname -rv
4.15.0-66-generic #75-Ubuntu SMP Tue Oct 1 05:24:09 UTC 2019


Original: (ETIMEDOUT causes unsuccessful run)
--------

$ dpkg -s stress-ng | grep Version:
Version: 0.09.25-1ubuntu4

$ stress-ng --af-alg 2 -t 120

$ sudo modprobe -r md4
$ sudo insmod kmod.ko

$ strace -e bind -o stress-ng_strace_bind.updates_kmod -f -- stress-ng --af-alg 
2 -t 120
stress-ng: info:  [24185] dispatching hogs: 2 af-alg
stress-ng: fail:  [24187] stress-ng-af-alg: bind failed, errno=110 (Connection 
timed out)
stress-ng: error: [24185] process 24187 (stress-ng-af_alg) terminated with an 
error, exit status=1 (stress-ng core failure)
stress-ng: info:  [24185] unsuccessful run completed in 120.12s (2 mins, 0.12 
secs)

$ sudo rmmod kmod

$ grep -e ETIMEDOUT -e 'exited with' stress-ng_strace_bind.updates_kmod 
24187 <... bind resumed> )              = -1 ETIMEDOUT (Connection timed out)
24187 +++ exited with 1 +++
24186 +++ exited with 0 +++
24185 +++ exited with 2 +++

Console:
[ 1447.068493] hello
[ 1454.324451] security_kernel_module_request() module 'crypto-md4', comm 
'stress-ng-af-al', pid '24187', (original) return value '0'
[ 1454.329008] security_kernel_module_request() module 'crypto-md4', comm 
'stress-ng-af-al', pid '24186', (original) return value '0'
[ 1454.332156] security_kernel_module_request() module 'crypto-md4', comm 
'stress-ng-af-al', pid '24187', (modified) return value '-62' (FIRST PID) -- 
ensure crypto_larval_lookup() calls crypto_larval_add().
[ 1454.335468] security_kernel_module_request() module 'crypto-md4', comm 
'stress-ng-af-al', pid '24186', sleep for 10 seconds (OTHER PID) -- wait FIRST 
PID/crypto_larval_add()/down_write(&crypto_rwsem)
[ 1454.344373] down_write(&crypto_alg_sem) in FIRST PID, FIRST CALL. sleep 15 
seconds -- wait OTHER PID/__crypto_register_alg()
[ 1464.467346] security_kernel_module_request() module 'crypto-md4', comm 
'stress-ng-af-al', pid '24186', slept for 10 seconds (OTHER PID)
[ 1464.485379] crypto_alg_tested("md4-generic"), sleep 70 seconds. pid = 24190 
-- expire the 60-second timeout of 
FIRST_PID/crypto_larval_add()/crypto_larval_wait()
[ 1469.587269] down_write(&crypto_alg_sem) in FIRST PID, FIRST CALL. slept 15 
seconds
[ 1534.610212] crypto_alg_tested("md4-generic"), slept 70 seconds
[ 1534.788821] CPU feature 'AVX registers' is not supported.
[ 1616.714910] bye


Modified: (ETIMEDOUT but still successful run)
--------

$ sudo reboot

$ apt-cache madison stress-ng | grep ppa
 stress-ng | 0.09.25-1ubuntu5 | http://ppa.launchpad.net/mfo/lp1851553/ubuntu 
bionic/main amd64 Packages

$ apt install stress-ng

$ dpkg -s stress-ng | grep Version:
Version: 0.09.25-1ubuntu5

$ stress-ng --af-alg 2 -t 120

$ sudo modprobe -r md4
$ sudo insmod kmod.ko

$ strace -e bind -o stress-ng_strace_bind.test-ppa_kmod -f -- stress-ng 
--af-alg 2 -t 120
stress-ng: info:  [5263] dispatching hogs: 2 af-alg
stress-ng: info:  [5263] successful run completed in 120.15s (2 mins, 0.15 secs)

$ sudo rmmod kmod

$ grep -e ETIMEDOUT -e 'exited with' stress-ng_strace_bind.test-ppa_kmod 
5265  <... bind resumed> )              = -1 ETIMEDOUT (Connection timed out)
5265  +++ exited with 0 +++
5264  +++ exited with 0 +++
5263  +++ exited with 0 +++

Console:

[  181.908670] security_kernel_module_request() module 'crypto-md4', comm 
'stress-ng-af-al', pid '5265', (original) return value '0'
[  181.913681] security_kernel_module_request() module 'crypto-md4', comm 
'stress-ng-af-al', pid '5264', (original) return value '0'
[  181.915063] security_kernel_module_request() module 'crypto-md4', comm 
'stress-ng-af-al', pid '5265', (modified) return value '-62' (FIRST PID) -- 
ensure crypto_larval_lookup() calls crypto_larval_add().
[  181.918165] security_kernel_module_request() module 'crypto-md4', comm 
'stress-ng-af-al', pid '5264', sleep for 10 seconds (OTHER PID) -- wait FIRST 
PID/crypto_larval_add()/down_write(&crypto_rwsem)
[  181.925744] down_write(&crypto_alg_sem) in FIRST PID, FIRST CALL. sleep 15 
seconds -- wait OTHER PID/__crypto_register_alg()
[  191.964132] security_kernel_module_request() module 'crypto-md4', comm 
'stress-ng-af-al', pid '5264', slept for 10 seconds (OTHER PID)
[  191.979817] crypto_alg_tested("md4-generic"), sleep 70 seconds. pid = 5269 
-- expire the 60-second timeout of 
FIRST_PID/crypto_larval_add()/crypto_larval_wait()
[  197.084134] down_write(&crypto_alg_sem) in FIRST PID, FIRST CALL. slept 15 
seconds
[  263.132190] crypto_alg_tested("md4-generic"), slept 70 seconds
[  263.342852] CPU feature 'AVX registers' is not supported.
[  263.396340] CPU feature 'AVX registers' is not supported.
[  395.333437] bye

-- 
You received this bug notification because you are a member of Ubuntu
Bugs, which is subscribed to Ubuntu.
https://bugs.launchpad.net/bugs/1851553

Title:
  stress-ng-af-alg: bind failed, errno=110 (Connection timed out)

To manage notifications about this bug go to:
https://bugs.launchpad.net/ubuntu/+source/stress-ng/+bug/1851553/+subscriptions

-- 
ubuntu-bugs mailing list
ubuntu-bugs@lists.ubuntu.com
https://lists.ubuntu.com/mailman/listinfo/ubuntu-bugs

Reply via email to