Skip to content

DSA and IAA demos fail with "mmap: Operation not permitted" #1779

@tkatila

Description

@tkatila

Describe the bug
As Ubuntu hwe kernel updated from 6.5.0-35 to 6.5.0-41, DSA e2e started to fail. The failure seems to be related to a change in the kernel where (due to a security issue) access to the DSA/IAA accelerators is being denied without SYS_RAWIO capability: https://git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git/commit/?id=796aec4a5b5850967af0c42d4e84df2d748d570b

To Reproduce

  • Upgrade kernel to Ubuntu HWE >=6.5.0-41 or use new enough vanilla kernel (6.9.3 is known to fail).
  • Run DSA demo example.

Expected behavior
Pod Completes successfully.

System (please complete the following information):

  • OS version: Ubuntu 22.04
  • Kernel version: HWE 6.5.0-41
  • Device plugins version: 0.30.0, not relevant
  • Hardware info: SPR with DSA

Additional context
Adding:

   securityContext:
      capabilities:
        add: ["SYS_RAWIO"]

might fix it temporarily.

Metadata

Metadata

Assignees

No one assigned

    Labels

    bugSomething isn't workingdsaDSA device plugin related issueiaaIAA device plugin related issue

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions