Testing on Eoan ===============
$ lsb_release -cs eoan
$ uname -rv 5.3.0-19-generic #20-Ubuntu SMP Fri Oct 18 09:04:39 UTC 2019
Original: (ETIMEDOUT causes unsuccessful run) --------
$ dpkg -s stress-ng | grep Version: Version: 0.10.07-1ubuntu1
$ stress-ng --af-alg 2 -t 120 stress-ng: info: [9855] dispatching hogs: 2 af-alg stress-ng: info: [9855] 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: [10875] dispatching hogs: 2 af-alg stress-ng: fail: [10877] stress-ng-af-alg: bind failed, errno=110 (Connection timed out) stress-ng: error: [10875] process 10877 (stress-ng-af-alg) terminated with an error, exit status=1 (stress-ng core failure) stress-ng: info: [10875] 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 10877 <... bind resumed> ) = -1 ETIMEDOUT (Connection timed out) 10877 +++ exited with 1 +++ 10876 +++ exited with 0 +++ 10875 +++ exited with 2 +++
Console:
[ 6743.872738] hello [ 6750.849145] security_kernel_module_request() module 'crypto-md4', comm 'stress-ng-af-al', pid '10877', (original) return value '10' [ 6750.850112] security_kernel_module_request() module 'crypto-md4', comm 'stress-ng-af-al', pid '10876', (original) return value '10' [ 6750.856261] security_kernel_module_request() module 'crypto-md4', comm 'stress-ng-af-al', pid '10877', (modified) return value '-62' (FIRST PID) return address 'ffffffff892c6f5a' -- ensure crypto_larval_lookup() calls crypto_larval_add(). [ 6750.859332] security_kernel_module_request() module 'crypto-md4', comm 'stress-ng-af-al', pid '10876', sleep for 10 seconds (OTHER PID) -- wait FIRST PID/crypto_larval_add()/down_write(&crypto_rwsem) [ 6750.870830] down_write(&crypto_alg_sem) in FIRST PID, FIRST CALL. sleep 15 seconds -- wait OTHER PID/__crypto_register_alg() [ 6760.875908] security_kernel_module_request() module 'crypto-md4', comm 'stress-ng-af-al', pid '10876', slept for 10 seconds (OTHER PID) [ 6760.891766] crypto_alg_tested("md4-generic"), sleep 70 seconds. pid = 10881 -- expire the 60-second timeout of FIRST_PID/crypto_larval_add()/crypto_larval_wait() [ 6765.995913] down_write(&crypto_alg_sem) in FIRST PID, FIRST CALL. slept 15 seconds [ 6831.531954] crypto_alg_tested("md4-generic"), slept 70 seconds [ 6831.705902] CPU feature 'AVX registers' is not supported. [ 6875.780559] bye
Modified: (ETIMEDOUT but still successful run) --------
$ sudo reboot
$ apt-cache madison stress-ng | grep ppa stress-ng | 0.10.07-1ubuntu2 | http://ppa.launchpad.net/mfo/lp1851553/ubuntu eoan/main amd64 Packages
$ sudo apt install stress-ng
$ dpkg -s stress-ng | grep Version: Version: 0.10.07-1ubuntu2
$ stress-ng --af-alg 2 -t 120 stress-ng: info: [974] dispatching hogs: 2 af-alg stress-ng: info: [974] successful run completed in 118.81s (1 min, 58.81 secs)
$ strace -e bind -o stress-ng_strace_bind.test-ppa_kmod -f -- stress-ng --af-alg 2 -t 120 stress-ng: info: [1250] dispatching hogs: 2 af-alg stress-ng: info: [1250] successful run completed in 120.00s (2 mins, 0.00 secs)
$ grep -e ETIMEDOUT -e 'exited with' stress-ng_strace_bind.test-ppa_kmod 1252 <... bind resumed> ) = -1 ETIMEDOUT (Connection timed out) 1251 +++ exited with 0 +++ 1252 +++ exited with 0 +++ 1250 +++ exited with 0 +++
[ 178.423467] hello [ 195.578735] security_kernel_module_request() module 'crypto-md4', comm 'stress-ng-af-al', pid '1252', (original) return value '10' [ 195.578740] security_kernel_module_request() module 'crypto-md4', comm 'stress-ng-af-al', pid '1252', (modified) return value '-62' (FIRST PID) return address 'ffffffff8d6c6f5a' -- ensure crypto_larval_lookup() calls crypto_larval_add(). [ 195.579607] security_kernel_module_request() module 'crypto-md4', comm 'stress-ng-af-al', pid '1251', (original) return value '10' [ 195.579609] security_kernel_module_request() module 'crypto-md4', comm 'stress-ng-af-al', pid '1251', sleep for 10 seconds (OTHER PID) -- wait FIRST PID/crypto_larval_add()/down_write(&crypto_rwsem) [ 195.582565] down_write(&crypto_alg_sem) in FIRST PID, FIRST CALL. sleep 15 seconds -- wait OTHER PID/__crypto_register_alg() [ 205.754961] security_kernel_module_request() module 'crypto-md4', comm 'stress-ng-af-al', pid '1251', slept for 10 seconds (OTHER PID) [ 205.764738] crypto_alg_tested("md4-generic"), sleep 70 seconds. pid = 1331 -- expire the 60-second timeout of FIRST_PID/crypto_larval_add()/crypto_larval_wait() [ 210.618994] down_write(&crypto_alg_sem) in FIRST PID, FIRST CALL. slept 15 seconds $ [ 275.899046] crypto_alg_tested("md4-generic"), slept 70 seconds [ 276.078957] CPU feature 'AVX registers' is not supported. [ 403.156991] bye
Testing on Eoan
===============
$ lsb_release -cs
eoan
$ uname -rv
5.3.0-19-generic #20-Ubuntu SMP Fri Oct 18 09:04:39 UTC 2019
Original: (ETIMEDOUT causes unsuccessful run)
--------
$ dpkg -s stress-ng | grep Version:
Version: 0.10.07-1ubuntu1
$ stress-ng --af-alg 2 -t 120
stress-ng: info: [9855] dispatching hogs: 2 af-alg
stress-ng: info: [9855] 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: [10875] dispatching hogs: 2 af-alg
stress-ng: fail: [10877] stress-ng-af-alg: bind failed, errno=110 (Connection timed out)
stress-ng: error: [10875] process 10877 (stress-ng-af-alg) terminated with an error, exit status=1 (stress-ng core failure)
stress-ng: info: [10875] 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
10877 <... bind resumed> ) = -1 ETIMEDOUT (Connection timed out)
10877 +++ exited with 1 +++
10876 +++ exited with 0 +++
10875 +++ exited with 2 +++
Console:
[ 6743.872738] hello kernel_ module_ request( ) module 'crypto-md4', comm 'stress-ng-af-al', pid '10877', (original) return value '10' kernel_ module_ request( ) module 'crypto-md4', comm 'stress-ng-af-al', pid '10876', (original) return value '10' kernel_ module_ request( ) module 'crypto-md4', comm 'stress-ng-af-al', pid '10877', (modified) return value '-62' (FIRST PID) return address 'ffffffff892c6f5a' -- ensure crypto_ larval_ lookup( ) calls crypto_ larval_ add(). kernel_ module_ request( ) module 'crypto-md4', comm 'stress-ng-af-al', pid '10876', sleep for 10 seconds (OTHER PID) -- wait FIRST PID/crypto_ larval_ add()/down_ write(& crypto_ rwsem) &crypto_ alg_sem) in FIRST PID, FIRST CALL. sleep 15 seconds -- wait OTHER PID/__crypto_ register_ alg() kernel_ module_ request( ) module 'crypto-md4', comm 'stress-ng-af-al', pid '10876', slept for 10 seconds (OTHER PID) alg_tested( "md4-generic" ), sleep 70 seconds. pid = 10881 -- expire the 60-second timeout of FIRST_PID/ crypto_ larval_ add()/crypto_ larval_ wait() &crypto_ alg_sem) in FIRST PID, FIRST CALL. slept 15 seconds alg_tested( "md4-generic" ), slept 70 seconds
[ 6750.849145] security_
[ 6750.850112] security_
[ 6750.856261] security_
[ 6750.859332] security_
[ 6750.870830] down_write(
[ 6760.875908] security_
[ 6760.891766] crypto_
[ 6765.995913] down_write(
[ 6831.531954] crypto_
[ 6831.705902] CPU feature 'AVX registers' is not supported.
[ 6875.780559] bye
Modified: (ETIMEDOUT but still successful run)
--------
$ sudo reboot
$ apt-cache madison stress-ng | grep ppa ppa.launchpad. net/mfo/ lp1851553/ ubuntu eoan/main amd64 Packages
stress-ng | 0.10.07-1ubuntu2 | http://
$ sudo apt install stress-ng
$ dpkg -s stress-ng | grep Version:
Version: 0.10.07-1ubuntu2
$ stress-ng --af-alg 2 -t 120
stress-ng: info: [974] dispatching hogs: 2 af-alg
stress-ng: info: [974] successful run completed in 118.81s (1 min, 58.81 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: [1250] dispatching hogs: 2 af-alg
stress-ng: info: [1250] successful run completed in 120.00s (2 mins, 0.00 secs)
$ sudo rmmod kmod
$ grep -e ETIMEDOUT -e 'exited with' stress- ng_strace_ bind.test- ppa_kmod
1252 <... bind resumed> ) = -1 ETIMEDOUT (Connection timed out)
1251 +++ exited with 0 +++
1252 +++ exited with 0 +++
1250 +++ exited with 0 +++
Console:
[ 178.423467] hello kernel_ module_ request( ) module 'crypto-md4', comm 'stress-ng-af-al', pid '1252', (original) return value '10' kernel_ module_ request( ) module 'crypto-md4', comm 'stress-ng-af-al', pid '1252', (modified) return value '-62' (FIRST PID) return address 'ffffffff8d6c6f5a' -- ensure crypto_ larval_ lookup( ) calls crypto_ larval_ add(). kernel_ module_ request( ) module 'crypto-md4', comm 'stress-ng-af-al', pid '1251', (original) return value '10' kernel_ module_ request( ) module 'crypto-md4', comm 'stress-ng-af-al', pid '1251', sleep for 10 seconds (OTHER PID) -- wait FIRST PID/crypto_ larval_ add()/down_ write(& crypto_ rwsem) &crypto_ alg_sem) in FIRST PID, FIRST CALL. sleep 15 seconds -- wait OTHER PID/__crypto_ register_ alg() kernel_ module_ request( ) module 'crypto-md4', comm 'stress-ng-af-al', pid '1251', slept for 10 seconds (OTHER PID) alg_tested( "md4-generic" ), sleep 70 seconds. pid = 1331 -- expire the 60-second timeout of FIRST_PID/ crypto_ larval_ add()/crypto_ larval_ wait() &crypto_ alg_sem) in FIRST PID, FIRST CALL. slept 15 seconds alg_tested( "md4-generic" ), slept 70 seconds
[ 195.578735] security_
[ 195.578740] security_
[ 195.579607] security_
[ 195.579609] security_
[ 195.582565] down_write(
[ 205.754961] security_
[ 205.764738] crypto_
[ 210.618994] down_write(
$ [ 275.899046] crypto_
[ 276.078957] CPU feature 'AVX registers' is not supported.
[ 403.156991] bye