Bug 289285 - Linuxlator fails to run the chrome browser: unsupported prctl option 1398164801; unsupported sigaction flag 0x800; PTRAGE_GETREGSET NT_PRFPREG not implemented
Summary: Linuxlator fails to run the chrome browser: unsupported prctl option 13981648...
Status: Closed FIXED
Alias: None
Product: Base System
Classification: Unclassified
Component: kern (show other bugs)
Version: 14.3-STABLE
Hardware: amd64 Any
: --- Affects Only Me
Assignee: Pouria Mousavizadeh Tehrani
URL:
Keywords:
Depends on:
Blocks: 247219
  Show dependency tree / graph
 
Reported: 2025-09-04 02:32 UTC by Yuri Victorovich
Modified: 2026-11-06 18:25 UTC (History)
6 users (show)

See Also:
pouria: mfc-stable15+
pouria: mfc-stable14-


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description Yuri Victorovich freebsd_committer freebsd_triage 2025-09-04 02:32:19 UTC
I am not sure if chrome is expected to run fine, but it fails.

How to reproduce:

1. Download and unpack this archive: https://cdn.playwright.dev/dbazure/download/playwright/builds/chromium/1187/chromium-linux.zip
2. Have packages listed below installed.
3. Run chrome-linux/chrome

Failure log:
$ chrome-linux/chrome
[12918:12918:0903/193058.910338:FATAL:content/browser/zygote_host/zygote_host_impl_linux.cc:132] No usable sandbox! If you are running on Ubuntu 23.10+ or another Linux distro that has disabled unprivileged user namespaces with AppArmor, see https://chromium.googlesource.com/chromium/src/+/main/docs/security/apparmor-userns-restrictions.md. Otherwise see https://chromium.googlesource.com/chromium/src/+/main/docs/linux/suid_sandbox_development.md for more information on developing with the (older) SUID sandbox. If you want to live dangerously and need an immediate workaround, you can try using --no-sandbox.
[0903/193059.015716:ERROR:third_party/crashpad/crashpad/util/linux/ptracer.cc:44] ptrace: Invalid argument (22)
[0903/193059.016045:WARNING:third_party/crashpad/crashpad/snapshot/linux/process_reader_linux.cc:400] Couldn't initialize main thread.
[0903/193059.016202:ERROR:third_party/crashpad/crashpad/util/linux/proc_task_reader.cc:47] format error
[0903/193059.016316:WARNING:third_party/crashpad/crashpad/snapshot/linux/exception_snapshot_linux.cc:391] thread ID 12918 not found in process
[0903/193059.016466:ERROR:third_party/crashpad/crashpad/snapshot/linux/process_snapshot_linux.cc:129] thread not found 12918
[0903/193059.017058:ERROR:third_party/crashpad/crashpad/util/linux/proc_task_reader.cc:47] format error
Trace/BPT trap             chrome-linux/chrome




---dependencies---
linux-rl9-alsa-lib-1.2.13      Advanced Linux Sound Architecture libraries (Rocky Linux 9.6)
linux-rl9-at-spi2-atk-2.38.0_1 Assistive technology ATK bridge (Rocky Linux 9.6)
linux-rl9-at-spi2-core-2.40.3_1 Assistive technology service provider interface (Rocky Linux 9.6)
linux-rl9-atk-2.36.0_1         Accessibility Toolkit (Rocky Linux 9.6)
linux-rl9-avahi-libs-0.8_6     Libraries for Avahi (Rocky Linux 9.6)
linux-rl9-cairo-1.17.4_2       Vector graphics library Cairo (Rocky Linux 9.6)
linux-rl9-cairo-gobject-1.17.4_2 Vector graphics library Cairo (Rocky Linux 9.6)
linux-rl9-cups-libs-2.3.3_8    Common UNIX Printing System libraries
linux-rl9-dbus-libs-1.12.20_3  Libraries for accessing D-BUS (Rocky Linux 9.6)
linux-rl9-dri-24.2.8           Mesa libGL runtime libraries (Rocky Linux 9.6)
linux-rl9-elfutils-libelf-0.192 ELF file handling library (Rocky Linux 9.6)
linux-rl9-elfutils-libs-0.192  ELF file handling libraries (Rocky Linux 9.6)
linux-rl9-expat-2.5.0_7        XML 1.0 parser written in C (Rocky Linux 9.6)
linux-rl9-fontconfig-2.14.0_2  XML-based font configuration API for X Windows (Rocky Linux 9.6)
linux-rl9-freetype-2.10.4_3    Font rendering engine (Rocky Linux 9.6)
linux-rl9-fribidi-1.0.10_1     Unicode Bidirectional Algorithm (Rocky Linux 9.6)
linux-rl9-gdk-pixbuf2-2.42.6_7 Graphic library for GTK+ (Rocky Linux 9.6)
linux-rl9-gnutls-3.8.3_3       GNU Transport Layer Security library (Rocky Linux 9.6)
linux-rl9-graphite2-1.3.14_1   Rendering capabilities for complex non-Roman writing systems (Rocky Linux 9.6)
linux-rl9-gstreamer1-1.22.12   GStreamer1 library (Rocky Linux 9.6)
linux-rl9-gtk3-3.24.31_5       GTK+ library, version 3.X (Rocky Linux 9.6)
linux-rl9-harfbuzz-2.7.4_2     OpenType text shaping engine (Rocky Linux 9.6)
linux-rl9-icu-67.1_1           International Components for Unicode (Rocky Linux 9.6)
linux-rl9-imageformats-libs-1  Libraries for working with image formats (Rocky Linux 9.6)
linux-rl9-libdrm-2.4.123       Interface to kernel Direct Rendering Module (Rocky Linux 9.6)
linux-rl9-libepoxy-1.5.5_1     Library to handle OpenGL function pointer management (Rocky Linux 9.6)
linux-rl9-libevent-2.1.12_2    API for executing callback functions on events or timeouts (Rocky Linux 9.6)
linux-rl9-libgcrypt-1.10.0_2   Crypto library based on code used in GnuPG (Rocky Linux 9.6)
linux-rl9-libglvnd-1.3.4_1     GL Vendor-Neutral Dispatch library (Rocky Linux 9.6)
linux-rl9-libgpg-error-1.42_1  Common error values for all GnuPG components (Rocky Linux 9.6)
linux-rl9-libjxl-0.7.0_2       JPEG XL reference encoder/decoder
linux-rl9-libnghttp2-1.43.0_3  HTTP/2 C Library (Rocky Linux 9.6)
linux-rl9-libpciaccess-0.16_2  Generic PCI access library (Rocky Linux 9.6)
linux-rl9-librsvg2-2.50.7_5    Parse and render SVG vector graphics (Rocky Linux 9.6)
linux-rl9-libstemmer-0         C stemming algorithm library (Rocky Linux 9.6)
linux-rl9-libtasn1-4.16.0_2    ASN.1 structure parser library (Rocky Linux 9.6)
linux-rl9-libthai-0.1.28_1     Thai language support library (Rocky Linux 9.6)
linux-rl9-libtracker-sparql-3.1.2_1 Low-footprint RDF triple store with SPARQL interface (Rocky Linux 9.6)
linux-rl9-libxkbcommon-1.0.3_2 Keymap handling library (Rocky Linux 9.6)
linux-rl9-libxml2-2.9.13_7     Library providing XML and HTML support (Rocky Linux 9.6)
linux-rl9-llvm-19.1.7          The Low Level Virtual Machine suite (Rocky Linux 9.6)
linux-rl9-lz4-1.9.3_1          LZ4 compression library and utilities (Rocky Linux 9.6)
linux-rl9-nettle-3.10.1        Low-level cryptographic library (Rocky Linux 9.6)
linux-rl9-nspr-4.35.0_4        Netscape Portable Runtime (Rocky Linux 9.6)
linux-rl9-nss-3.101.0_3        Network Security Services (Rocky Linux 9.6)
linux-rl9-orc-0.4.31_4         Library and toolset to operate arrays of data (Rocky Linux 9.6)
linux-rl9-p11-kit-0.25.3_2     Library for loading and enumerating of PKCS#11 modules (Rocky Linux 9.6)
linux-rl9-pango-1.48.7_1       Pango library (Rocky Linux 9.6)
linux-rl9-pixman-0.40.0_2      Low-level pixel manipulation library (Rocky Linux 9.6)
linux-rl9-python39-3.9.21_1    Python Language (Rocky Linux 9.6)
linux-rl9-systemd-libs-252_9   Libraries for accessing systemd (Rocky Linux 9.6)
linux-rl9-vulkan-loader-1.4.304.0 Driver loader for the Vulkan graphics API (Rocky Linux 9.6)
linux-rl9-wayland-1.21.0_1     Wayland compositor libraries (Rocky Linux 9.6)
linux-rl9-xorg-libs-7.7_4      Xorg libraries (Rocky Linux 9.6)
linux_base-rl9-9.6             Base set of packages needed in Linux mode (Rocky Linux 9.6)
Comment 1 Ed Maste freebsd_committer freebsd_triage 2025-09-04 16:14:31 UTC
Please make sure that the compat.linux.debug sysctl is set (should be 3 by default, I think) and then check for any kernel messages from the linuxulator (they will start with "linux:"). This may give a clue about unimplemented functionality.
Comment 2 Gleb Popov freebsd_committer freebsd_triage 2025-09-04 18:03:21 UTC
(In reply to Yuri Victorovich from comment #0)
> I am not sure if chrome is expected to run fine, but it fails.

Vanilla chrome downloaded from the net? Not really.

We have a port that passes necessary flags to make it run.
Comment 3 Yuri Victorovich freebsd_committer freebsd_triage 2025-09-05 18:50:04 UTC
This is not a vanilla Chrome.
This is the Chrome browser instrumented to handle some additional requests that is used by the www/py-playwright Python module to run requests in browsers.
www/py-playwright is by Microsoft, and they distribute this specially built Chrome.

And even vanilla chrome should run find in Linuxlator. I don't see why is should be expected not to run.
Comment 4 Yuri Victorovich freebsd_committer freebsd_triage 2025-09-05 19:02:31 UTC
(In reply to Ed Maste from comment #1)



The kernel messages are:
Sep  5 12:00:36 yv kernel: linux: jid 0 pid 72442 (chrome): unsupported prctl option 1398164801
Sep  5 12:00:37 yv kernel: linux: jid 0 pid 72442 (chrome): unsupported sigaction flag 0x800
Sep  5 12:00:37 yv kernel: linux: jid 0 pid 72585 (chrome_crashpad_han): unsupported prctl option 1398164801
Sep  5 12:00:37 yv kernel: linux: jid 0 pid 72585 (chrome_crashpad_han): unsupported sigaction flag 0x800
Sep  5 12:00:37 yv kernel: linux: jid 0 pid 72591 (chrome_crashpad_han): unsupported prctl option 1398164801
Sep  5 12:00:37 yv kernel: linux: jid 0 pid 72585 (chrome_crashpad_han): PTRAGE_GETREGSET NT_PRFPREG not implemented; returning EINVAL
Comment 5 Ricardo Branco 2026-04-26 09:48:15 UTC
I'm afraid this bug can't be solved other than passing --no-sandbox.  I'll be submitting some fixes to mute some warnings and let Chrome ptrace itself.

The first is:

linux: Ignore sigaction(2) flags SA_UNSUPPORTED and SA_EXPOSE_TAGBITS
https://github.com/freebsd/freebsd-src/pull/2163
Comment 6 Ricardo Branco 2026-04-26 15:16:16 UTC
https://github.com/freebsd/freebsd-src/pull/2165
Comment 7 commit-hook freebsd_committer freebsd_triage 2026-04-27 11:55:20 UTC
A commit in branch main references this bug:

URL: https://cgit.FreeBSD.org/src/commit/?id=fdea83a5f63b881ade91c6cc9dfbf173137512c5

commit fdea83a5f63b881ade91c6cc9dfbf173137512c5
Author:     Ricardo Branco <rbranco@suse.de>
AuthorDate: 2026-04-26 09:44:53 +0000
Commit:     Pouria Mousavizadeh Tehrani <pouria@FreeBSD.org>
CommitDate: 2026-04-27 11:50:39 +0000

    linux: Ignore sigaction(2) flags SA_UNSUPPORTED and SA_EXPOSE_TAGBITS

    SA_UNSUPPORTED was introduced in Linux 5.11 to probe support
    for other flags such as SA_EXPOSE_TAGBITS, introduced
    at the same time. Ignore both.

    Signed-off-by:  Ricardo Branco <rbranco@suse.de>
    PR:             289285
    Reviewed by:    pouria, kib
    Pull-Request:   https://github.com/freebsd/freebsd-src/pull/2163

 sys/amd64/linux/linux.h         | 2 ++
 sys/amd64/linux32/linux.h       | 2 ++
 sys/arm64/linux/linux.h         | 2 ++
 sys/compat/linux/linux_signal.c | 8 ++++++++
 sys/i386/linux/linux.h          | 2 ++
 5 files changed, 16 insertions(+)
Comment 8 commit-hook freebsd_committer freebsd_triage 2026-06-02 07:26:50 UTC
A commit in branch main references this bug:

URL: https://cgit.FreeBSD.org/src/commit/?id=c515e6040614434a9262ee8b5ac54b81476ec7ff

commit c515e6040614434a9262ee8b5ac54b81476ec7ff
Author:     Ricardo Branco <rbranco@suse.de>
AuthorDate: 2026-04-26 14:45:35 +0000
Commit:     Pouria Mousavizadeh Tehrani <pouria@FreeBSD.org>
CommitDate: 2026-06-02 07:25:37 +0000

    linux: Implement PTRACE_GETREGSET NT_PRFPREG and NT_X86_XSTATE

    Implement NT_PRFPREG and NT_X86_XSTATE for PTRACE_GETREGSET on amd64.
    Chrome's crashpad handler uses these to collect floating-point and
    extended CPU register state for crash dumps.

    Other architectures retain the previous EINVAL stub behavior.

    Signed-off-by:  Ricardo Branco <rbranco@suse.de>
    PR:             289285
    Reviewed by:    kib
    Pull-Request:   https://github.com/freebsd/freebsd-src/pull/2165

 sys/compat/linux/linux_ptrace.c | 91 ++++++++++++++++++++++++++++++++++++++---
 1 file changed, 85 insertions(+), 6 deletions(-)
Comment 9 Pouria Mousavizadeh Tehrani freebsd_committer freebsd_triage 2026-09-26 19:13:44 UTC
@kib: Do these commits need an MFC?
Comment 10 Konstantin Belousov freebsd_committer freebsd_triage 2026-09-26 19:15:32 UTC
(In reply to Pouria Mousavizadeh Tehrani from comment #9)
Need is too strong word.  I do not see why they couldn't be merged at least to 15.
Comment 11 commit-hook freebsd_committer freebsd_triage 2026-10-25 22:00:58 UTC
A commit in branch stable/15 references this bug:

URL: https://cgit.FreeBSD.org/src/commit/?id=8328ca324c3623b038230f99b40411892a99c669

commit 8328ca324c3623b038230f99b40411892a99c669
Author:     Ricardo Branco <rbranco@suse.de>
AuthorDate: 2026-04-26 14:45:35 +0000
Commit:     Pouria Mousavizadeh Tehrani <pouria@FreeBSD.org>
CommitDate: 2026-10-25 21:53:16 +0000

    linux: Implement PTRACE_GETREGSET NT_PRFPREG and NT_X86_XSTATE

    Implement NT_PRFPREG and NT_X86_XSTATE for PTRACE_GETREGSET on amd64.
    Chrome's crashpad handler uses these to collect floating-point and
    extended CPU register state for crash dumps.

    Other architectures retain the previous EINVAL stub behavior.

    Signed-off-by:  Ricardo Branco <rbranco@suse.de>
    PR:             289285
    Reviewed by:    kib
    Pull-Request:   https://github.com/freebsd/freebsd-src/pull/2165

    (cherry picked from commit c515e6040614434a9262ee8b5ac54b81476ec7ff)

 sys/compat/linux/linux_ptrace.c | 91 ++++++++++++++++++++++++++++++++++++++---
 1 file changed, 85 insertions(+), 6 deletions(-)
Comment 12 commit-hook freebsd_committer freebsd_triage 2026-10-25 22:01:00 UTC
A commit in branch stable/15 references this bug:

URL: https://cgit.FreeBSD.org/src/commit/?id=29b79c586b20d1da70df3e316e01faa710462a97

commit 29b79c586b20d1da70df3e316e01faa710462a97
Author:     Ricardo Branco <rbranco@suse.de>
AuthorDate: 2026-04-26 09:44:53 +0000
Commit:     Pouria Mousavizadeh Tehrani <pouria@FreeBSD.org>
CommitDate: 2026-10-25 21:51:33 +0000

    linux: Ignore sigaction(2) flags SA_UNSUPPORTED and SA_EXPOSE_TAGBITS

    SA_UNSUPPORTED was introduced in Linux 5.11 to probe support
    for other flags such as SA_EXPOSE_TAGBITS, introduced
    at the same time. Ignore both.

    Signed-off-by:  Ricardo Branco <rbranco@suse.de>
    PR:             289285
    Reviewed by:    pouria, kib
    Pull-Request:   https://github.com/freebsd/freebsd-src/pull/2163

    (cherry picked from commit fdea83a5f63b881ade91c6cc9dfbf173137512c5)

 sys/amd64/linux/linux.h         | 2 ++
 sys/amd64/linux32/linux.h       | 2 ++
 sys/arm64/linux/linux.h         | 2 ++
 sys/compat/linux/linux_signal.c | 8 ++++++++
 sys/i386/linux/linux.h          | 2 ++
 5 files changed, 16 insertions(+)