#991957 /usr/bin/linux.uml: Checking PROT_EXEC mmap in /dev/shm...Operation not permitted

Package:
user-mode-linux
Source:
user-mode-linux
Description:
User-mode Linux (kernel)
Submitter:
Ian Jackson
Date:
2021-08-06 17:21:03 UTC
Severity:
normal
#991957#5
Date:
2021-08-06 17:01:11 UTC
From:
To:
Observed behaviour:

$ linux.uml
Core dump limits :
        soft - 0
        hard - NONE
Checking that ptrace can change system call numbers...OK
Checking syscall emulation patch for ptrace...OK
Checking advanced syscall emulation patch for ptrace...OK
Checking environment variables for a tempdir...none found
Checking if /dev/shm is on tmpfs...OK
Checking PROT_EXEC mmap in /dev/shm...Operation not permitted
/dev/shm must be not mounted noexec
$

Expected behaviour: it works, without me having to reconfigure
/dev/shm to a less-secure configuration.

Workaround:

bwrap --dev-bind / / --tmpfs /dev/shm linux.uml ...

FYI I first encountered this with uml from buster,
  4.19-1um-1+deb10u1+b1
but the bug is in sid too.