Comment 15 for bug 2028327

Revision history for this message
nikhil kshirsagar (nkshirsagar) wrote :

The "module load" autopkgtest failure ( https://autopkgtest.ubuntu.com/results/autopkgtest-jammy/jammy/amd64/s/sosreport/20220114_150307_778d8@/log.gz ) has been debugged as an issue related to openssl version used in python 3.10, and can be reproduced by this simple python code - rmmod tls and then run,

#!/usr/bin/env python3
import socket
import ssl
ctx = ssl.create_default_context()
sock = socket.create_connection(("example.com", 443))
sock = ctx.wrap_socket(sock, server_hostname="example.com")
print(sock)

This will cause the tls module to be left loaded after the code executes.

Another simple reproducer, -

$ sudo rmmod tls; echo "pre"; lsmod | grep tls; echo "user"; wget https://canonical.com -q -o /dev/null; lsmod | grep tls; sudo wget https://canonical.com -q -o /dev/null; echo "post"; lsmod | grep tls;

The openssl change https://github.com/openssl/openssl/commit/50ec750567e056fcecff2344c2d9044d81cc731b came with openssl 3.0

fixed in sosreport 4.5.7 onwards by a predicate - https://github.com/sosreport/sos/issues/3326