Testing on Disco
================
$ lsb_release -cs
disco
$ uname -rv
5.0.0-36-generic #39-Ubuntu SMP Tue Nov 12 09:46:06 UTC 2019
Original: (ETIMEDOUT causes unsuccessful run)
--------
$ dpkg -s stress-ng | grep Version:
Version: 0.09.57-0ubuntu3
$ stress-ng --af-alg 2 -t 120
stress-ng: info: [6902] dispatching hogs: 2 af-alg
stress-ng: info: [6902] successful run completed in 120.00s (2 mins, 0.00 secs)
$ 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: [2550] dispatching hogs: 2 af-alg
stress-ng: fail: [2552] stress-ng-af-alg: bind failed, errno=110 (Connection
timed out)
stress-ng: error: [2550] process 2552 (stress-ng-af-alg) terminated with an
error, exit status=1 (stress-ng core failure)
stress-ng: info: [2550] unsuccessful run completed in 120.00s (2 mins, 0.00
secs)
$ sudo rmmod kmod
$ grep -e ETIMEDOUT -e 'exited with' stress-ng_strace_bind.updates_kmod
2552 <... bind resumed> ) = -1 ETIMEDOUT (Connection timed out)
2552 +++ exited with 1 +++
2551 +++ exited with 0 +++
2550 +++ exited with 2 +++
[ 709.176027] hello
[ 732.529743] security_kernel_module_request() module 'crypto-md4', comm
'stress-ng-af-al', pid '2552', (original) return value '10'
[ 732.530311] security_kernel_module_request() module 'crypto-md4', comm
'stress-ng-af-al', pid '2551', (original) return value '10'
[ 732.533286] security_kernel_module_request() module 'crypto-md4', comm
'stress-ng-af-al', pid '2552', (modified) return value '-62' (FIRST PID) return
address 'ffffffffac8c2a8f' -- ensure crypto_larval_lookup() calls
crypto_larval_add().
[ 732.536551] security_kernel_module_request() module 'crypto-md4', comm
'stress-ng-af-al', pid '2551', sleep for 10 seconds (OTHER PID) -- wait FIRST
PID/crypto_larval_add()/down_write(&crypto_rwsem)
[ 732.545221] down_write(&crypto_alg_sem) in FIRST PID, FIRST CALL. sleep 15
seconds -- wait OTHER PID/__crypto_register_alg()
[ 742.773053] security_kernel_module_request() module 'crypto-md4', comm
'stress-ng-af-al', pid '2551', slept for 10 seconds (OTHER PID)
[ 742.792739] crypto_alg_tested("md4-generic"), sleep 70 seconds. pid = 2556
-- expire the 60-second timeout of
FIRST_PID/crypto_larval_add()/crypto_larval_wait()
[ 747.637060] down_write(&crypto_alg_sem) in FIRST PID, FIRST CALL. slept 15
seconds
[ 814.453112] crypto_alg_tested("md4-generic"), slept 70 seconds
[ 814.630120] CPU feature 'AVX registers' is not supported.
[ 872.908469] bye
Modified: (ETIMEDOUT but still successful run)
--------
$ sudo reboot
$ apt-cache madison stress-ng | grep ppa
stress-ng | 0.09.57-0ubuntu4 | http://ppa.launchpad.net/mfo/lp1851553/ubuntu
disco/main amd64 Packages
$ sudo apt install stress-ng
$ dpkg -s stress-ng | grep Version:
Version: 0.09.57-0ubuntu4
$ stress-ng --af-alg 2 -t 120
stress-ng: info: [973] dispatching hogs: 2 af-alg
stress-ng: info: [973] successful run completed in 118.84s (1 min, 58.84 secs)
$ 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: [1276] dispatching hogs: 2 af-alg
stress-ng: info: [1276] successful run completed in 120.00s (2 mins, 0.00 secs)
$ grep -e ETIMEDOUT -e 'exited with' stress-ng_strace_bind.test-ppa_kmod
1278 <... bind resumed> ) = -1 ETIMEDOUT (Connection timed out)
1277 +++ exited with 0 +++
1278 +++ exited with 0 +++
1276 +++ exited with 0 +++
Console:
[ 247.254557] hello
[ 250.850844] security_kernel_module_request() module 'crypto-md4', comm
'stress-ng-af-al', pid '1278', (original) return value '10'
[ 250.852201] security_kernel_module_request() module 'crypto-md4', comm
'stress-ng-af-al', pid '1277', (original) return value '10'
[ 250.854055] security_kernel_module_request() module 'crypto-md4', comm
'stress-ng-af-al', pid '1278', (modified) return value '-62' (FIRST PID) return
address 'ffffffffb8ac2a8f' -- ensure crypto_larval_lookup() calls
crypto_larval_add().
[ 250.874032] security_kernel_module_request() module 'crypto-md4', comm
'stress-ng-af-al', pid '1277', sleep for 10 seconds (OTHER PID) -- wait FIRST
PID/crypto_larval_add()/down_write(&crypto_rwsem)
[ 250.887133] down_write(&crypto_alg_sem) in FIRST PID, FIRST CALL. sleep 15
seconds -- wait OTHER PID/__crypto_register_alg()
[ 261.090424] security_kernel_module_request() module 'crypto-md4', comm
'stress-ng-af-al', pid '1277', slept for 10 seconds (OTHER PID)
[ 261.118493] crypto_alg_tested("md4-generic"), sleep 70 seconds. pid = 1282
-- expire the 60-second timeout of
FIRST_PID/crypto_larval_add()/crypto_larval_wait()
[ 265.954373] down_write(&crypto_alg_sem) in FIRST PID, FIRST CALL. slept 15
seconds
[ 331.234630] crypto_alg_tested("md4-generic"), slept 70 seconds
[ 331.430396] CPU feature 'AVX registers' is not supported.
[ 331.481278] CPU feature 'AVX registers' is not supported.
[ 388.584495] 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
[email protected]
https://lists.ubuntu.com/mailman/listinfo/ubuntu-bugs