GV

GeezerVison

The World Wide Web, restored to 800 pixels of glory.

Home|About|Gaming cabinet|Archives|How it works|Starter sites

On this site

  • Sign in
  • ActionsCI/CD and automation
  • CodespacesCloud development environments
  • All Features
  • Documentation
  • Training
  • Certifications
  • Build with Copilot
  • Customize Copilot
  • Integrations
  • Trending repos
  • GitHub Sponsors
  • Developer articles
  • Enterprises

This view

  • Original page
  • New address

GeezerVison is showing github.com — Temporarily skip `test_aead_aes_gcm` for buildbots with Linux kernel between 6.16.0 and 6.17.x · Issue #139310 · python/cpython

Temporarily skip test_aead_aes_gcm for buildbots with Linux kernel between 6.16.0 and 6.17.x #139310

New issue
Copy link
New issue
Copy link
Closed
Closed
Temporarily skip test_aead_aes_gcm for buildbots with Linux kernel between 6.16.0 and 6.17.x#139310
Copy link
Labels
OS-linuxtestsTests in the Lib/test dirTests in the Lib/test dirtype-bugAn unexpected behavior, bug, or errorAn unexpected behavior, bug, or error

Description

@hroncok
hroncok
opened on Sep 24, 2025
Issue body actions

Bug report

Bug description:

We have recently started to see the following test failure on Fedora CI with Python 3.14.0rc3 and 3.13.7 (possibly others as well, not tested yet):

======================================================================
ERROR: test_aead_aes_gcm (test.test_socket.LinuxKernelCryptoAPI.test_aead_aes_gcm)
----------------------------------------------------------------------
Traceback (most recent call last):
  File "/usr/lib64/python3.14/test/test_socket.py", line 7071, in test_aead_aes_gcm
    op.sendall(plain)
    ~~~~~~~~~~^^^^^^^
OSError: [Errno 22] Invalid argument
platform.architecture: 64bit ELF
platform.freedesktop_os_release[ID]: fedora
platform.freedesktop_os_release[NAME]: Fedora Linux
platform.freedesktop_os_release[VARIANT_ID]: cloud
platform.freedesktop_os_release[VERSION]: 44 (Cloud Edition Prerelease)
platform.freedesktop_os_release[VERSION_ID]: 44
platform.libc_ver: glibc 2.42.9000
platform.platform: Linux-6.17.0-0.rc7.56.fc44.x86_64-x86_64-with-glibc2.42.9000
platform.python_implementation: CPython

This is similar to #73510 and seems to have regressed again. Not sure if this is a kernel bug or CPython bug yet.

CPython versions tested on:

3.14, 3.13

Operating systems tested on:

Linux

Linked PRs

  • gh-139310: skip test_aead_aes_gcm for Linux kernel between 6.16.0 and 6.17.x #139552
  • [3.13] gh-139310: skip test_aead_aes_gcm for Linux kernel between 6.16.0 and 6.17.x (GH-139552) #139593
  • [3.14] gh-139310: skip test_aead_aes_gcm for Linux kernel between 6.16.0 and 6.17.x (GH-139552) #139594
  • [3.10] gh-139310: skip test_aead_aes_gcm for Linux kernel between 6.16.0 and 6.17.x (GH-139552) #139761
  • [3.11] gh-139310: skip test_aead_aes_gcm for Linux kernel between 6.16.0 and 6.17.x (GH-139552) #139762
  • [3.9] gh-139310: skip test_aead_aes_gcm for Linux kernel between 6.16.0 and 6.17.x (GH-139552) #139763
  • [3.12] gh-139310: skip test_aead_aes_gcm for Linux kernel between 6.16.0 and 6.17.x (GH-139552) #139764
  • gh-139310: Revert test skip for test_aead_aes_gcm (GH-139552) #149687

Activity

Next
  1. hroncok
    added
    type-bugAn unexpected behavior, bug, or errorAn unexpected behavior, bug, or error
    on Sep 24, 2025
  2. StanFromIreland
    added
    testsTests in the Lib/test dirTests in the Lib/test dir
    OS-linux
    on Sep 24, 2025
  3. python
    deleted a comment from mowmanminer on Sep 24, 2025
  4. Zheaoli commented on Sep 25, 2025

    @Zheaoli
    Zheaoli
    on Sep 25, 2025
    Contributor
    More actions

    confirm it on 3.15, seems kernel change some api. Working on it

    Reacted by Miro Hrončok
  5. Zheaoli commented on Sep 25, 2025

    @Zheaoli
    Zheaoli
    on Sep 25, 2025
    Contributor
    More actions

    Confirm the root cause. I think it's related with this commit in the kernel torvalds/linux@1b34cbb

    I'm not sure if this a bug. I'm sending a report to kernel mail group

    Reacted by Miro Hrončok and yihong
  6. Zheaoli commented on Sep 25, 2025

    @Zheaoli
    Zheaoli
    on Sep 25, 2025
    Contributor
    More actions

    FYI https://bugzilla.kernel.org/show_bug.cgi?id=220603

  7. picnixz commented on Sep 25, 2025

    @picnixz
    picnixz
    on Sep 25, 2025
    Member
    More actions

    The previous regression was caused by how the data was actually sent. In addition, EINVAL (22) is returned by the kernel if the data is not correct (see https://docs.kernel.org/crypto/userspace-if.html#aead-cipher-api).

    The problem was fixed in torvalds/linux@d0ca0df because we use op.sendall(assoc, socket.MSG_MORE) just before, but socket.MSG_MORE is an even number. Because of this, af_alg_ctx.more which was previously marked as a uint32_t of 1 bit will be 0 instead because of mod 2 conversion. So the latest 6.17 kernel should not have this bug anymore.

  8. picnixz
    added
    pendingThe issue will be closed if no feedback is providedThe issue will be closed if no feedback is provided
    on Sep 25, 2025
  9. Zheaoli commented on Sep 25, 2025

    @Zheaoli
    Zheaoli
    on Sep 25, 2025
    Contributor
    More actions

    @picnixz Yes, I think this is fixed in main branch of the kernel. I think the 6.17 will not be a issue anymore

  10. Zheaoli commented on Sep 30, 2025

    @Zheaoli
    Zheaoli
    on Sep 30, 2025
    Contributor
    More actions

    This bug has been fixed in 6.17 release. I think this issue could be closed as resloved

  11. hroncok commented on Sep 30, 2025

    @hroncok
    hroncok
    on Sep 30, 2025
    ContributorAuthor
    More actions

    Thanks.

  12. hroncok
    closed this as completedon Sep 30, 2025
  13. StanFromIreland
    closed this as not plannedon Sep 30, 2025
  14. picnixz
    removed
    pendingThe issue will be closed if no feedback is providedThe issue will be closed if no feedback is provided
    on Oct 1, 2025
  15. 30 remaining items

  16. ambv
    added a commit that references this issue on Oct 9, 2025

    [3.9] gh-139310: skip `test_aead_aes_gcm` for Linux kernel between 6.…

    f972874
  17. picnixz
    removed their assignment
    on Apr 12, 2026
  18. picnixz commented on Apr 12, 2026

    @picnixz
    picnixz
    on Apr 12, 2026
    Member
    More actions

    @hroncok Can we revert the skip or is there some reason to keep it (and maybe refine it for exact versions?)

  19. hroncok commented on Apr 12, 2026

    @hroncok
    hroncok
    on Apr 12, 2026
    ContributorAuthor
    More actions

    I don't know if you can revert it. In Fedora, we are likely on newer kernel already everywhere.

  20. picnixz commented on Apr 12, 2026

    @picnixz
    picnixz
    on Apr 12, 2026
    Member
    More actions

    Ok, I think we can keep the guard. I don't know the exact minor version but skipping between 6.16 and 6.17 should be ok. 6.18+ have the tests enabled.

    @encukou I'm going to keep the check because we are also skipping on v4.9 even if there shouldn't be lots of people on 4.9 anymore.

  21. picnixz
    closed this as completedon Apr 12, 2026
  22. github-project-automation
    moved this from In Progress to Done in Release and Deferred blockers 🚫on Apr 12, 2026
  23. encukou commented on Apr 13, 2026

    @encukou
    encukou
    on Apr 13, 2026
    Member
    More actions

    Let's revert this in 3.16 when the branch opens, to clean the code up.

  24. encukou
    reopened this on Apr 13, 2026
  25. github-project-automation
    moved this from Done to In Progress in Release and Deferred blockers 🚫on Apr 13, 2026
  26. picnixz commented on Apr 13, 2026

    @picnixz
    picnixz
    on Apr 13, 2026
    Member
    More actions

    Let's revert this in 3.16 when the branch opens, to clean the code up.

    But what if someone is using an old kernel because they did not update theirs? I'm ok with keeping this guard to avoid possibly annoying reports. We already have guards for 4.9 so...

  27. encukou commented on May 11, 2026

    @encukou
    encukou
    on May 11, 2026
    Member
    More actions

    But what if someone is using an old kernel because they did not update theirs?

    When they run the CPython test suite, they get notified that a feature is missing. They can either update or skip the test themselves.

    We already have guards for 4.9 so

    The alpha period is best for cleaning those up. (Assuming they're for bugs the kernel, not just features that didn't exist yet.)

  28. encukou
    added a commit that references this issue on May 26, 2026

    gh-139310: Revert test skip for `test_aead_aes_gcm` (GH-139552) (GH-1…

    d8a97cb
  29. encukou
    closed this as completedon May 27, 2026
  30. github-project-automation
    moved this from In Progress to Done in Release and Deferred blockers 🚫on May 27, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    OS-linuxtestsTests in the Lib/test dirTests in the Lib/test dirtype-bugAn unexpected behavior, bug, or errorAn unexpected behavior, bug, or error

    Projects

    • Release and Deferred blockers 🚫
      Status
      Done
      Show more project fields

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions

    You are visitor 01402503 — GeezerVison does not store the pages you look up.
    Best viewed with Netscape Navigator 4.7 or Internet Explorer 6 at 800×600. No cookies required.