← Back to team overview

canonical-ubuntu-qa team mailing list archive

[Bug 2051352] Re: posix_ipc test from test_regression_testsuite of ubuntu_qrt_apparmor failed with F-aws-5.15 T3A (could not mq_notify: Connection timed out)

 

I was able to reproduce it in the AWS instances for both Focal and Jammy.
In focal, I was able to reproduce the issue up until version 5.4.0-1009-aws, so it's not a regression.
We didn't catch this before because the AppArmor tests only run when the feature is present, which only happened now for mqueue. 

To reproduce on earlier kernel versions I ran the following commands
$ sudo apt install dpkg-dev pkg-config libapparmor-dev
$ apt source apparmor
$ cd apparmor-*/tests/regression/apparmor
$ USE_SYSTEM=1 make
$ result=PASS; while [ "$result" == "PASS" ]; do result=""; result=$(sudo ~/apparmor-*/tests/regression/apparmor/posix_mq_rcv -c ~/apparmor-*/tests/regression/apparmor/posix_mq_snd -k /queuename -n mq_notify); done

The last command only returns if we are able to reproduce the issue. It
usually reproduces in less than 10 seconds

-- 
You received this bug notification because you are a member of Canonical
Platform QA Team, which is subscribed to ubuntu-kernel-tests.
https://bugs.launchpad.net/bugs/2051352

Title:
  posix_ipc test from test_regression_testsuite of ubuntu_qrt_apparmor
  failed with F-aws-5.15 T3A (could not mq_notify: Connection timed out)

Status in QA Regression Testing:
  New
Status in ubuntu-kernel-tests:
  New

Bug description:
  Issue found on AWS AMD 64 instance t3a.2xlarge with:
   * F-aws-5.15.0-1053.58~20.04.1
   * J-aws-5.15.0-1053.58 

  This is reproducible, 4 out of 4 attempts on
  F-aws-5.15.0-1053.58~20.04.1

  There is no such issue on t3a.2xlarge with
  F-aws-5.15.0-1052.57~20.04.1 nor J-aws-5.15.0-1052.57. Therefore it
  appears to be a possible regression.

  The posix_ipc test in test_regression_testsuite will fail with:
    Error: posix_mq_rcv failed. Test 'POSIX MQUEUE (confined receiver root - unconfined sender : mq_notify)' was expected to 'pass'. Reason for failure 'FAIL - could not mq_notify: Connection timed out'

  Test log:
  ubuntu@t3a:~/testlibp8PXk0/source/focal/apparmor-2.13.3/tests/regression/apparmor$ sudo bash posix_ipc.sh
  Error: posix_mq_rcv failed. Test 'POSIX MQUEUE (confined root - mqueue : mq_notify)' was expected to 'pass'. Reason for failure 'FAIL - could not mq_notify: Connection timed out'
  xpass: POSIX MQUEUE (confined root - mqueue label 1)
  xpass: POSIX MQUEUE (confined root - mqueue label 1 : mq_notify)
  xpass: POSIX MQUEUE (confined root - mqueue label 1 : select)
  xpass: POSIX MQUEUE (confined root - mqueue label 1 : poll)
  xpass: POSIX MQUEUE (confined root - mqueue label 1 : epoll)
  xpass: POSIX MQUEUE (confined root - mqueue label 2)
  xpass: POSIX MQUEUE (confined root - mqueue label 2 : mq_notify)
  xpass: POSIX MQUEUE (confined root - mqueue label 2 : select)
  xpass: POSIX MQUEUE (confined root - mqueue label 2 : poll)
  xpass: POSIX MQUEUE (confined root - mqueue label 2 : epoll)
  Error: posix_mq_rcv failed. Test 'POSIX MQUEUE (confined 1001 - mqueue : mq_notify)' was expected to 'pass'. Reason for failure 'FAIL - could not mq_notify: Connection timed out'
  Error: posix_mq_rcv failed. Test 'POSIX MQUEUE (confined receiver 1001 - unconfined sender : mq_notify)' was expected to 'pass'. Reason for failure 'FAIL - could not mq_notify: Connection timed out'
  xpass: POSIX MQUEUE (confined 1001 - mqueue label 1)
  xpass: POSIX MQUEUE (confined 1001 - mqueue label 1 : mq_notify)
  xpass: POSIX MQUEUE (confined 1001 - mqueue label 1 : select)
  xpass: POSIX MQUEUE (confined 1001 - mqueue label 1 : poll)
  xpass: POSIX MQUEUE (confined 1001 - mqueue label 1 : epoll)
  xpass: POSIX MQUEUE (confined 1001 - mqueue label 2)
  xpass: POSIX MQUEUE (confined 1001 - mqueue label 2 : mq_notify)
  xpass: POSIX MQUEUE (confined 1001 - mqueue label 2 : select)
  xpass: POSIX MQUEUE (confined 1001 - mqueue label 2 : poll)
  xpass: POSIX MQUEUE (confined 1001 - mqueue label 2 : epoll)

To manage notifications about this bug go to:
https://bugs.launchpad.net/qa-regression-testing/+bug/2051352/+subscriptions



References