Bug 16117 - AB-INT: do_package: Error executing a python function in exec_func_python() autogenerated
Summary: AB-INT: do_package: Error executing a python function in exec_func_python() a...
Status: RESOLVED FIXED
Alias: None
Product: OE-Core
Classification: Build System, Metadata & Runtime
Component: core (show other bugs)
Version: 4.0.33
Hardware: x86 Multiple
: High normal
Target Milestone: 4.0.33
Assignee: Yoann Congal
QA Contact:
URL:
Whiteboard: AB-INT
Depends on:
Blocks:
 
Reported: 2025-12-30 10:41 UTC by Mathieu Dubois-Briand
Modified: 2026-02-12 13:49 UTC (History)
8 users (show)

See Also:
OS type for building Yocto: ---
Type of Regression: ---
Verified:
Documentation change: No (bug/feature does not impact docs)


Attachments
Some do_package log files (4.10 KB, application/x-bzip2)
2025-12-30 10:41 UTC, Mathieu Dubois-Briand
no flags Details

Note You need to log in before you can comment on or make changes to this bug.
Description Mathieu Dubois-Briand 2025-12-30 10:41:20 UTC
Created attachment 5166 [details]
Some do_package log files

Lot of errors in a single build, I'm not sure to get what went wrong here.

Maybe some error with pseudo database?

So first we have errors with the do_package of various recipes:
2025-12-30 03:01:49,525 - oe-selftest - INFO -       ERROR: initscripts-1.0-r0 do_package: Error executing a python function in exec_func_python() autogenerated:
2025-12-30 03:01:49,525 - oe-selftest - INFO -       
2025-12-30 03:01:49,525 - oe-selftest - INFO -       The stack trace of python calls that resulted in this exception/failure was:
2025-12-30 03:01:49,525 - oe-selftest - INFO -       File: 'exec_func_python() autogenerated', lineno: 2, function: <module>
2025-12-30 03:01:49,525 - oe-selftest - INFO -            0001:
2025-12-30 03:01:49,525 - oe-selftest - INFO -        *** 0002:perform_packagecopy(d)
2025-12-30 03:01:49,525 - oe-selftest - INFO -            0003:
2025-12-30 03:01:49,525 - oe-selftest - INFO -       File: '/srv/pokybuild/yocto-worker/reproducible/build/layers/openembedded-core/meta/classes-global/package.bbclass', lineno: 365, function: perform_packagecopy
2025-12-30 03:01:49,525 - oe-selftest - INFO -            0361:        rpath_replace (dvar, d)
2025-12-30 03:01:49,525 - oe-selftest - INFO -            0362:}
2025-12-30 03:01:49,526 - oe-selftest - INFO - Found ERROR (line 6674):
2025-12-30 03:01:49,526 - oe-selftest - INFO -       tar: ./var/lib: Cannot mkdir: Bad address
2025-12-30 03:01:49,526 - oe-selftest - INFO -       tar: ./var/lib/urandom: Cannot mkdir: No such file or directory
2025-12-30 03:01:49,526 - oe-selftest - INFO -       tar: Exiting with failure status due to previous errors
2025-12-30 03:01:49,526 - oe-selftest - INFO -       
2025-12-30 03:01:49,526 - oe-selftest - INFO -       NOTE: recipe libxcomposite-1_0.4.6-r0: task do_unpack: Succeeded
2025-12-30 03:01:49,526 - oe-selftest - INFO -       NOTE: recipe encodings-1_1.1.0-r0: task do_unpack: Started
2025-12-30 03:01:49,526 - oe-selftest - INFO -       NOTE: Running task 2415 of 22091 (/srv/pokybuild/yocto-worker/reproducible/build/layers/openembedded-core/meta/recipes-graphics/xorg-lib/libxcomposite_0.4.6.bb:do_patch)
2025-12-30 03:01:49,526 - oe-selftest - INFO -       NOTE: Running task 2416 of 22091 (/srv/pokybuild/yocto-worker/reproducible/build/layers/openembedded-core/meta/recipes-extended/bash/bash_5.3.bb:do_deploy_source_date_epoch)
2025-12-30 03:01:49,526 - oe-selftest - INFO -       NOTE: recipe at-spi2-core-2.56.4-r0: task do_unpack: Started
2025-12-30 03:01:49,526 - oe-selftest - INFO -       NOTE: recipe sed-4.9-r0: task do_unpack: Started

2025-12-30 03:01:49,526 - oe-selftest - INFO -       ERROR: update-rc.d-0.8+git-r0 do_package: Error executing a python function in exec_func_python() autogenerated:
2025-12-30 03:01:49,526 - oe-selftest - INFO -       
2025-12-30 03:01:49,526 - oe-selftest - INFO -       The stack trace of python calls that resulted in this exception/failure was:
2025-12-30 03:01:49,526 - oe-selftest - INFO -       File: 'exec_func_python() autogenerated', lineno: 2, function: <module>
2025-12-30 03:01:49,526 - oe-selftest - INFO -            0001:
2025-12-30 03:01:49,526 - oe-selftest - INFO -        *** 0002:perform_packagecopy(d)
2025-12-30 03:01:49,526 - oe-selftest - INFO -            0003:
2025-12-30 03:01:49,526 - oe-selftest - INFO -       File: '/srv/pokybuild/yocto-worker/reproducible/build/layers/openembedded-core/meta/classes-global/package.bbclass', lineno: 365, function: perform_packagecopy
2025-12-30 03:01:49,526 - oe-selftest - INFO -            0361:        rpath_replace (dvar, d)
2025-12-30 03:01:49,526 - oe-selftest - INFO -            0362:}
2025-12-30 03:01:49,526 - oe-selftest - INFO - Found ERROR (line 6760):
2025-12-30 03:01:49,526 - oe-selftest - INFO -       NOTE: recipe at-spi2-core-2.56.4-r0: task do_patch: Succeeded
2025-12-30 03:01:49,526 - oe-selftest - INFO -       NOTE: Running task 2424 of 22091 (/srv/pokybuild/yocto-worker/reproducible/build/layers/openembedded-core/meta/recipes-devtools/e2fsprogs/e2fsprogs_1.47.3.bb:do_deploy_source_date_epoch)
2025-12-30 03:01:49,526 - oe-selftest - INFO -       NOTE: Running task 2425 of 22091 (/srv/pokybuild/yocto-worker/reproducible/build/layers/openembedded-core/meta/recipes-graphics/xorg-lib/xkeyboard-config_2.45.bb:do_deploy_source_date_epoch)
2025-12-30 03:01:49,526 - oe-selftest - INFO -       NOTE: recipe fmt-12.1.0-r0: task do_patch: Succeeded
2025-12-30 03:01:49,526 - oe-selftest - INFO -       NOTE: recipe wayland-protocols-1.45-r0: task do_populate_sysroot: Started
2025-12-30 03:01:49,527 - oe-selftest - INFO -       NOTE: Running task 2426 of 22091 (/srv/pokybuild/yocto-worker/reproducible/build/layers/openembedded-core/meta/recipes-core/coreutils/coreutils_9.9.bb:do_deploy_source_date_epoch)
2025-12-30 03:01:49,527 - oe-selftest - INFO -       NOTE: recipe sed-4.9-r0: task do_patch: Succeeded
2025-12-30 03:01:49,527 - oe-selftest - INFO -       NOTE: recipe wayland-protocols-1.45-r0: task do_package: Started
2025-12-30 03:01:49,527 - oe-selftest - INFO -       NOTE: Running task 2429 of 22091 (/srv/pokybuild/yocto-worker/reproducible/build/layers/openembedded-core/meta/recipes-extended/diffutils/diffutils_3.12.bb:do_fetch)
2025-12-30 03:01:49,527 - oe-selftest - INFO -       NOTE: recipe mpfr-4.2.2-r0: task do_unpack: Succeeded

2025-12-30 03:01:49,527 - oe-selftest - INFO -       ERROR: base-files-3.0.14-r0 do_package: Error executing a python function in exec_func_python() autogenerated:
2025-12-30 03:01:49,527 - oe-selftest - INFO -       
2025-12-30 03:01:49,527 - oe-selftest - INFO -       The stack trace of python calls that resulted in this exception/failure was:
2025-12-30 03:01:49,527 - oe-selftest - INFO -       File: 'exec_func_python() autogenerated', lineno: 2, function: <module>
2025-12-30 03:01:49,527 - oe-selftest - INFO -            0001:
2025-12-30 03:01:49,527 - oe-selftest - INFO -        *** 0002:perform_packagecopy(d)
2025-12-30 03:01:49,527 - oe-selftest - INFO -            0003:
2025-12-30 03:01:49,527 - oe-selftest - INFO -       File: '/srv/pokybuild/yocto-worker/reproducible/build/layers/openembedded-core/meta/classes-global/package.bbclass', lineno: 365, function: perform_packagecopy
2025-12-30 03:01:49,527 - oe-selftest - INFO -            0361:        rpath_replace (dvar, d)
2025-12-30 03:01:49,527 - oe-selftest - INFO -            0362:}
2025-12-30 03:01:49,527 - oe-selftest - INFO - Found ERROR (line 7045):
2025-12-30 03:01:49,527 - oe-selftest - INFO -       NOTE: recipe xkeyboard-config-2.45-r0: task do_deploy_source_date_epoch: Succeeded
2025-12-30 03:01:49,527 - oe-selftest - INFO -       NOTE: recipe coreutils-9.9-r0: task do_deploy_source_date_epoch: Succeeded
2025-12-30 03:01:49,527 - oe-selftest - INFO -       NOTE: Running task 2442 of 22091 (/srv/pokybuild/yocto-worker/reproducible/build/layers/openembedded-core/meta/recipes-devtools/orc/orc_0.4.41.bb:do_unpack)
2025-12-30 03:01:49,527 - oe-selftest - INFO -       NOTE: recipe libtheora-1.2.0-r0: task do_fetch: Succeeded
2025-12-30 03:01:49,527 - oe-selftest - INFO -       NOTE: Running task 2443 of 22091 (/srv/pokybuild/yocto-worker/reproducible/build/layers/openembedded-core/meta/recipes-graphics/xorg-lib/libxtst_1.2.5.bb:do_deploy_source_date_epoch)
2025-12-30 03:01:49,527 - oe-selftest - INFO -       NOTE: Running task 2444 of 22091 (/srv/pokybuild/yocto-worker/reproducible/build/layers/openembedded-core/meta/recipes-gnome/gtk+/gtk+3_3.24.51.bb:do_fetch)
2025-12-30 03:01:49,527 - oe-selftest - INFO -       NOTE: Running task 2445 of 22091 (/srv/pokybuild/yocto-worker/reproducible/build/layers/openembedded-core/meta/recipes-extended/gawk/gawk_5.3.2.bb:do_fetch)
2025-12-30 03:01:49,527 - oe-selftest - INFO -       NOTE: recipe wayland-protocols-1.45-r0: task do_populate_sysroot: Succeeded
2025-12-30 03:01:49,527 - oe-selftest - INFO -       NOTE: recipe linux-libc-headers-6.18-r0: task do_populate_sysroot: Started
2025-12-30 03:01:49,527 - oe-selftest - INFO -       NOTE: Running task 2446 of 22091 (/srv/pokybuild/yocto-worker/reproducible/build/layers/openembedded-core/meta/recipes-multimedia/flac/flac_1.5.0.bb:do_deploy_source_date_epoch)

2025-12-30 03:01:49,527 - oe-selftest - INFO -       ERROR: wayland-protocols-1.45-r0 do_package: Error executing a python function in exec_func_python() autogenerated:
2025-12-30 03:01:49,527 - oe-selftest - INFO -       
2025-12-30 03:01:49,528 - oe-selftest - INFO -       The stack trace of python calls that resulted in this exception/failure was:
2025-12-30 03:01:49,528 - oe-selftest - INFO -       File: 'exec_func_python() autogenerated', lineno: 2, function: <module>
2025-12-30 03:01:49,528 - oe-selftest - INFO -            0001:
2025-12-30 03:01:49,528 - oe-selftest - INFO -        *** 0002:perform_packagecopy(d)
2025-12-30 03:01:49,528 - oe-selftest - INFO -            0003:
2025-12-30 03:01:49,528 - oe-selftest - INFO -       File: '/srv/pokybuild/yocto-worker/reproducible/build/layers/openembedded-core/meta/classes-global/package.bbclass', lineno: 365, function: perform_packagecopy
2025-12-30 03:01:49,528 - oe-selftest - INFO -            0361:        rpath_replace (dvar, d)
2025-12-30 03:01:49,528 - oe-selftest - INFO -            0362:}
2025-12-30 03:01:49,528 - oe-selftest - INFO - Found ERROR (line 8607):
2025-12-30 03:01:49,528 - oe-selftest - INFO -       NOTE: recipe libfontenc-1_1.1.8-r0: task do_recipe_qa: Started
2025-12-30 03:01:49,528 - oe-selftest - INFO -       NOTE: recipe findutils-4.10.0-r0: task do_recipe_qa: Succeeded
2025-12-30 03:01:49,528 - oe-selftest - INFO -       NOTE: recipe libepoxy-1.5.10-r0: task do_write_config: Succeeded
2025-12-30 03:01:49,528 - oe-selftest - INFO -       NOTE: Running task 2496 of 22091 (/srv/pokybuild/yocto-worker/reproducible/build/layers/openembedded-core/meta/recipes-extended/findutils/findutils_4.10.0.bb:do_fetch)
2025-12-30 03:01:49,528 - oe-selftest - INFO -       NOTE: recipe sbc-2.1-r0: task do_fetch: Started
2025-12-30 03:01:49,528 - oe-selftest - INFO -       NOTE: Running task 2497 of 22091 (/srv/pokybuild/yocto-worker/reproducible/build/layers/openembedded-core/meta/recipes-support/ptest-runner/ptest-runner_2.4.5.1.bb:do_unpack)
2025-12-30 03:01:49,528 - oe-selftest - INFO -       NOTE: recipe libinput-1.29.2-r0: task do_fetch: Started
2025-12-30 03:01:49,528 - oe-selftest - INFO -       NOTE: recipe sbc-2.1-r0: task do_fetch: Succeeded
2025-12-30 03:01:49,528 - oe-selftest - INFO -       NOTE: Running task 2498 of 22091 (/srv/pokybuild/yocto-worker/reproducible/build/layers/openembedded-core/meta/recipes-extended/diffutils/diffutils_3.12.bb:do_unpack)
2025-12-30 03:01:49,528 - oe-selftest - INFO -       NOTE: recipe findutils-4.10.0-r0: task do_fetch: Started

...

2025-12-30 03:01:49,530 - oe-selftest - INFO -       ERROR: Logfile of failure stored in: /srv/pokybuild/yocto-worker/reproducible/build/build-st/reproducibleB-extended/tmp/work/x86-64-v3-poky-linux/initscripts/1.0/temp/log.do_package.2441373
...
2025-12-30 03:01:49,530 - oe-selftest - INFO -       ERROR: Logfile of failure stored in: /srv/pokybuild/yocto-worker/reproducible/build/build-st/reproducibleB-extended/tmp/work/all-poky-linux/update-rc.d/0.8+git/temp/log.do_package.2441850
...
2025-12-30 03:01:49,533 - oe-selftest - INFO -       ERROR: Logfile of failure stored in: /srv/pokybuild/yocto-worker/reproducible/build/build-st/reproducibleB-extended/tmp/work/qemux86_64-poky-linux/base-files/3.0.14/temp/log.do_package.2444422
...

I'm joining some of the said log files, but they do contain a lot of errors, like:

Subprocess output:
got *at() syscall for unknown directory, fd 4
unknown base path for fd 4, path rc5.d
couldn't allocate absolute path for 'rc5.d'.
tar: ./etc/rc5.d: Cannot mkdir: Bad address
got *at() syscall for unknown directory, fd 4
unknown base path for fd 4, path rc5.d
couldn't allocate absolute path for 'rc5.d'.
got *at() syscall for unknown directory, fd 4
unknown base path for fd 4, path rc5.d
couldn't allocate absolute path for 'rc5.d'.
tar: ./etc/rc5.d: Cannot mkdir: Bad address
tar: ./etc/rc5.d/S99rmnologin.sh: Cannot open: No such file or directory
got *at() syscall for unknown directory, fd 4
unknown base path for fd 4, path rc5.d
...
Comment 2 Mathieu Dubois-Briand 2025-12-30 15:58:51 UTC
qemuarm64-alt stream9-vk-1 mathieu/master-next completed at 2025-12-30 09:38:57+00:00
https://autobuilder.yoctoproject.org/valkyrie/#/builders/9/builds/2922/steps/13/logs/stdio

musl-qemux86 stream9-vk-1 mathieu/master-next-tests&mathieu/master-next completed at 2025-12-30 14:39:10+00:00
https://autobuilder.yoctoproject.org/valkyrie/#/builders/6/builds/2964/steps/12/logs/stdio

qemuriscv64 stream9-vk-1 mathieu/master-next-tests&mathieu/master-next completed at 2025-12-30 14:41:17+00:00
https://autobuilder.yoctoproject.org/valkyrie/#/builders/45/builds/873/steps/13/logs/stdio
Comment 3 Mathieu Dubois-Briand 2026-01-05 08:32:33 UTC
no-x11 stream9-vk-1 mathieu/master-next completed at 2025-12-31 15:19:51+00:00
https://autobuilder.yoctoproject.org/valkyrie/#/builders/25/builds/2945/steps/12/logs/stdio

meta-virt stream9-vk-1 master completed at 2026-01-01 02:46:08+00:00
https://autobuilder.yoctoproject.org/valkyrie/#/builders/89/builds/2804/steps/13/logs/stdio

genericx86 stream9-vk-1 mathieu/master-next completed at 2026-01-01 22:06:26+00:00
https://autobuilder.yoctoproject.org/valkyrie/#/builders/19/builds/2952/steps/12/logs/stdio

qemux86-64 stream9-vk-1 mathieu/master-next completed at 2026-01-01 22:12:09+00:00
https://autobuilder.yoctoproject.org/valkyrie/#/builders/68/builds/3028/steps/13/logs/stdio

beaglebone stream9-vk-1 mathieu/master-next completed at 2026-01-02 17:50:27+00:00
https://autobuilder.yoctoproject.org/valkyrie/#/builders/2/builds/2970/steps/12/logs/stdio

genericx86 stream9-vk-1 mathieu/master-next completed at 2026-01-02 17:47:56+00:00
https://autobuilder.yoctoproject.org/valkyrie/#/builders/19/builds/2958/steps/12/logs/stdio

qemux86-64-alt stream9-vk-1 mathieu/master-next completed at 2026-01-02 17:44:29+00:00
https://autobuilder.yoctoproject.org/valkyrie/#/builders/95/builds/2917/steps/13/logs/stdio

beaglebone-alt stream9-vk-1 mathieu/master-next completed at 2026-01-03 18:02:39+00:00
https://autobuilder.yoctoproject.org/valkyrie/#/builders/10/builds/2960/steps/12/logs/stdio
Comment 4 Mathieu Dubois-Briand 2026-01-05 09:48:29 UTC
qa-extras2 stream9-vk-1 master completed at 2026-01-02 16:52:22+00:00
https://autobuilder.yoctoproject.org/valkyrie/#/builders/26/builds/2939/steps/12/logs/stdio
Comment 5 Mathieu Dubois-Briand 2026-01-05 12:19:01 UTC
oe-selftest-fedora stream9-vk-1 master completed at 2025-12-31 03:18:40+00:00
https://autobuilder.yoctoproject.org/valkyrie/#/builders/48/builds/2826/steps/15/logs/stdio

400MB log file, but no more useful data than on other failures
Comment 7 Mathieu Dubois-Briand 2026-01-06 09:32:46 UTC
beaglebone stream9-vk-1 master completed at 2026-01-06 01:13:02+00:00
https://autobuilder.yoctoproject.org/valkyrie/#/builders/2/builds/2992/steps/12/logs/stdio

qemuriscv64 stream9-vk-1 master completed at 2026-01-06 01:16:26+00:00
https://autobuilder.yoctoproject.org/valkyrie/#/builders/45/builds/891/steps/14/logs/stdio
Comment 8 Yoann Congal 2026-01-06 23:54:08 UTC
no-x11 stream9-vk-1 stable/whinlatter-nut
https://autobuilder.yoctoproject.org/valkyrie/?#/builders/25/builds/2988/steps/12/logs/stdio


NOTE: Always the same worker "stream9-vk-1"
Comment 9 Mathieu Dubois-Briand 2026-01-07 16:56:46 UTC
pkgman-non-rpm stream9-vk-1 mathieu/master-next completed at 2026-01-06 11:32:35+00:00
https://autobuilder.yoctoproject.org/valkyrie/#/builders/67/builds/3014/steps/12/logs/stdio

genericx86-64-alt stream9-vk-1 mathieu/master-next completed at 2026-01-06 13:04:51+00:00
https://autobuilder.yoctoproject.org/valkyrie/#/builders/93/builds/2977/steps/12/logs/stdio

pkgman-non-rpm stream9-vk-1 mathieu/master-next completed at 2026-01-06 17:47:52+00:00
https://autobuilder.yoctoproject.org/valkyrie/#/builders/67/builds/3016/steps/12/logs/stdio

wic stream9-vk-1 mathieu/master-next completed at 2026-01-06 16:40:39+00:00
https://autobuilder.yoctoproject.org/valkyrie/#/builders/15/builds/2932/steps/12/logs/stdio

pkgman-non-rpm stream9-vk-1 mathieu/master-next-tests&mathieu/master-next completed at 2026-01-07 11:51:16+00:00
https://autobuilder.yoctoproject.org/valkyrie/#/builders/67/builds/3021/steps/12/logs/stdio

qemux86 stream9-vk-1 mathieu/master-next-tests&mathieu/master-next completed at 2026-01-07 11:34:05+00:00
https://autobuilder.yoctoproject.org/valkyrie/#/builders/30/builds/2960/steps/13/logs/stdio
Comment 10 Paul Barker 2026-01-07 19:07:13 UTC
Looking around in the Centos/RHEL bug tracker I found "tar --xattrs -xf failure" (https://issues.redhat.com/browse/RHEL-136277), which looks related (it affects tar, it's on RHEL 9 / CentOS 9, and it's very recent) but I'm not sure if it exactly matches the issue were seeing.
Comment 11 Paul Barker 2026-01-07 19:07:48 UTC
We also got an email on the list from a user seeing the same error: https://lists.yoctoproject.org/g/poky/topic/error_from_package_bbclass/117138541.
Comment 12 Paul Barker 2026-01-07 19:27:46 UTC
Further thoughts... (sorry for the notification spam!)

The fix for CVE-2025-45582 appears to use openat2() via gnulib: https://cgit.git.savannah.gnu.org/cgit/tar.git/commit/?id=75b03fdff48916bd0654677ed21379bdb0db016d

This may cause issues in pseudo if we're not handling that call correctly. It makes sense that we then see lots of noise from pseudo as it's not intercepting all of the relevant calls.

The following messages are from pseudo:

- "got *at() syscall for unknown directory..."
- "unknown base path for fd..."
- "couldn't allocate absolute path for..."

And I confirmed that the above patches is indeed applied in CentOS 9: https://gitlab.com/redhat/centos-stream/rpms/tar/-/commit/afa468847b44e3157cb55cb03e956a2198a61b94

So, we probably need to teach pseudo to handle this. For now, let's disable the affected worker to reduce noise while we work on the fix.
Comment 13 Mathieu Dubois-Briand 2026-01-08 08:08:23 UTC
meta-agl-core stream9-vk-1 mathieu/master-next completed at 2026-01-07 17:00:08+00:00
https://autobuilder.yoctoproject.org/valkyrie/#/builders/55/builds/2828/steps/13/logs/stdio

no-x11 stream9-vk-1 stable/2.16-nut&stable/whinlatter-nut&whinlatter-next completed at 2026-01-07 17:01:30+00:00
https://autobuilder.yoctoproject.org/valkyrie/#/builders/25/builds/2993/steps/12/logs/stdio
Comment 14 Randy MacLeod 2026-01-08 15:58:45 UTC
Paul to own and look at what to do.
Comment 15 Yoann Congal 2026-01-12 17:02:49 UTC
Looks like Alma9 and Rocky9 finally imported the tar patch that trigger this bug. A lot of builds failed on those.


=> I paused alma9-vk-2, rocky9-vk-1, rocky9-vk-2, rocky9-vk-3
Comment 16 Khem Raj 2026-01-12 18:11:34 UTC
(In reply to Paul Barker from comment #12)
> Further thoughts... (sorry for the notification spam!)
> 
> The fix for CVE-2025-45582 appears to use openat2() via gnulib:
> https://cgit.git.savannah.gnu.org/cgit/tar.git/commit/
> ?id=75b03fdff48916bd0654677ed21379bdb0db016d
> 
> This may cause issues in pseudo if we're not handling that call correctly.
> It makes sense that we then see lots of noise from pseudo as it's not
> intercepting all of the relevant calls.
> 
> The following messages are from pseudo:
> 
> - "got *at() syscall for unknown directory..."
> - "unknown base path for fd..."
> - "couldn't allocate absolute path for..."
> 
> And I confirmed that the above patches is indeed applied in CentOS 9:
> https://gitlab.com/redhat/centos-stream/rpms/tar/-/commit/
> afa468847b44e3157cb55cb03e956a2198a61b94
> 
> So, we probably need to teach pseudo to handle this. For now, let's disable
> the affected worker to reduce noise while we work on the fix.



gnulib’s openat2() implementation does this:

If SYS_openat2 exists at build time, it tries the actual syscall:
syscall(SYS_openat2, ...)

If the syscall fails with ENOSYS (old kernel < 5.6 / not supported), it falls back to a user-space emulation instead of just failing.

So I guess if we trap the openat2 syscall should help out here.
Comment 17 Paul Barker 2026-01-13 10:40:18 UTC
Richard has sent a patch to trap syscall(SYS_openat2, ...) and return ENOSYS: https://lore.kernel.org/yocto-patches/20260112221224.774302-1-richard.purdie@linuxfoundation.org/T/#u. Since the offending CVE patch looks like it can handle ENOSYS, this should (*fingers crossed*) be enough to unblock the CentOS Stream/Rocky Linux/AlmaLinux 9 workers and close this issue.

We do need to implement a wrapper for openat2(), but that's already tracked under https://bugzilla.yoctoproject.org/show_bug.cgi?id=16126.
Comment 18 Paul Barker 2026-01-13 11:29:05 UTC
Making this high priority as we have too many autobuilder workers blocked.
Comment 19 Antonin Godard 2026-01-13 13:28:49 UTC
oe-selftest-fedora alma9-vk-2 agodard/master-next&agodard/master-next-bis completed at 2026-01-12 12:55:36+00:00
https://autobuilder.yoctoproject.org/valkyrie/#/builders/48/builds/2891/steps/15/logs/stdio

genericx86-64-alt rocky9-vk-3 agodard/master-next&agodard/master-next-bis completed at 2026-01-12 11:19:07+00:00
https://autobuilder.yoctoproject.org/valkyrie/#/builders/93/builds/3005/steps/12/logs/stdio

musl-qemux86-64 rocky9-vk-2 agodard/master-next&agodard/master-next-bis completed at 2026-01-12 11:50:53+00:00
https://autobuilder.yoctoproject.org/valkyrie/#/builders/3/builds/3064/steps/12/logs/stdio

qemuarm-oecore alma9-vk-2 agodard/master-next&agodard/master-next-bis completed at 2026-01-12 12:07:11+00:00
https://autobuilder.yoctoproject.org/valkyrie/#/builders/40/builds/2990/steps/12/logs/stdio

qemux86-tc rocky9-vk-3 agodard/master-next&agodard/master-next-bis completed at 2026-01-12 11:08:39+00:00
https://valkyrie.yocto.io/pub/non-release/20260112-46/testresults/qemux86-tc/
https://autobuilder.yoctoproject.org/valkyrie/#/builders/28/builds/2943/steps/13/logs/stdio

wic rocky9-vk-1 agodard/master-next&agodard/master-next-bis completed at 2026-01-12 11:55:40+00:00
https://autobuilder.yoctoproject.org/valkyrie/#/builders/15/builds/2961/steps/12/logs/stdio

genericx86-64-alt alma9-vk-2 agodard/master-next&agodard/master-next-bis completed at 2026-01-12 13:45:59+00:00
https://autobuilder.yoctoproject.org/valkyrie/#/builders/93/builds/3007/steps/12/logs/stdio

meta-agl-core rocky9-vk-3 agodard/master-next completed at 2026-01-12 16:05:33+00:00
https://autobuilder.yoctoproject.org/valkyrie/#/builders/55/builds/2852/steps/13/logs/stdio

qemuarmv5 alma9-vk-2 agodard/master-next completed at 2026-01-12 16:05:29+00:00
https://autobuilder.yoctoproject.org/valkyrie/#/builders/80/builds/2847/steps/13/logs/stdio

qemux86-64-ptest rocky9-vk-1 agodard/master-next completed at 2026-01-12 16:00:39+00:00
https://valkyrie.yocto.io/pub/non-release/20260112-69/testresults/qemux86-64-ptest/
https://autobuilder.yoctoproject.org/valkyrie/#/builders/73/builds/2906/steps/12/logs/stdio

meta-virt rocky9-vk-3 agodard/master-next&agodard/master-next-bis-bisect completed at 2026-01-12 16:18:07+00:00
https://autobuilder.yoctoproject.org/valkyrie/#/builders/89/builds/2866/steps/13/logs/stdio

qemuarm rocky9-vk-2 agodard/master-next&agodard/master-next-bis-bisect completed at 2026-01-12 16:07:30+00:00
https://autobuilder.yoctoproject.org/valkyrie/#/builders/16/builds/3044/steps/13/logs/stdio

qemuarm-oecore rocky9-vk-1 agodard/master-next&agodard/master-next-bis-bisect completed at 2026-01-12 16:04:46+00:00
https://autobuilder.yoctoproject.org/valkyrie/#/builders/40/builds/2993/steps/12/logs/stdio

qemux86-64-ptest alma9-vk-2 agodard/master-next&agodard/master-next-bis-bisect completed at 2026-01-12 16:13:04+00:00
https://valkyrie.yocto.io/pub/non-release/20260112-73/testresults/qemux86-64-ptest/
https://autobuilder.yoctoproject.org/valkyrie/#/builders/73/builds/2907/steps/12/logs/stdio

meta-qcom rocky9-vk-1 master completed at 2026-01-12 07:55:26+00:00
https://autobuilder.yoctoproject.org/valkyrie/#/builders/113/builds/22/steps/13/logs/stdio

poky-tiny rocky9-vk-2 master completed at 2026-01-12 07:57:52+00:00
https://autobuilder.yoctoproject.org/valkyrie/#/builders/50/builds/3044/steps/12/logs/stdio

qemux86-world-alt rocky9-vk-2 master completed at 2026-01-12 08:16:22+00:00
https://autobuilder.yoctoproject.org/valkyrie/#/builders/17/builds/2846/steps/12/logs/stdio

wic alma9-vk-2 master completed at 2026-01-12 08:21:20+00:00
https://autobuilder.yoctoproject.org/valkyrie/#/builders/15/builds/2957/steps/12/logs/stdio

qemuarm-alt alma9-vk-2 master completed at 2026-01-12 08:23:43+00:00
https://autobuilder.yoctoproject.org/valkyrie/#/builders/74/builds/2986/steps/14/logs/stdio

qemux86-64-ltp rocky9-vk-1 master completed at 2026-01-12 08:02:33+00:00
https://autobuilder.yoctoproject.org/valkyrie/#/builders/63/builds/2826/steps/12/logs/stdio

beaglebone rocky9-vk-3 master completed at 2026-01-12 08:13:35+00:00
https://autobuilder.yoctoproject.org/valkyrie/#/builders/2/builds/3021/steps/12/logs/stdio
Comment 22 Antonin Godard 2026-01-15 13:21:42 UTC
qemuarm64 rocky9-vk-3 master completed at 2026-01-12 08:33:40+00:00
https://autobuilder.yoctoproject.org/valkyrie/#/builders/36/builds/3005/steps/14/logs/stdio

beaglebone-alt rocky9-vk-2 agodard/master-next&agodard/master-next-success&agodard/master-next-sqlite-update completed at 2026-01-13 14:50:04+00:00
https://autobuilder.yoctoproject.org/valkyrie/#/builders/10/builds/3019/steps/12/logs/stdio

qa-extras rocky9-vk-2 agodard/master-next&agodard/master-next-success&agodard/master-next-sqlite-update completed at 2026-01-13 15:47:39+00:00
https://autobuilder.yoctoproject.org/valkyrie/#/builders/99/builds/3011/steps/12/logs/stdio

qemux86-64-ptest rocky9-vk-2 agodard/master-next&agodard/master-next-success&agodard/master-next-sqlite-update completed at 2026-01-13 14:57:18+00:00
https://valkyrie.yocto.io/pub/non-release/20260113-81/testresults/qemux86-64-ptest/
https://autobuilder.yoctoproject.org/valkyrie/#/builders/73/builds/2916/steps/12/logs/stdio

build-appliance stream9-vk-1 agodard/master-next completed at 2026-01-13 19:00:05+00:00
https://autobuilder.yoctoproject.org/valkyrie/#/builders/78/builds/3053/steps/14/logs/stdio

genericx86 rocky9-vk-2 agodard/master-next completed at 2026-01-13 18:36:33+00:00
https://autobuilder.yoctoproject.org/valkyrie/#/builders/19/builds/3025/steps/12/logs/stdio

meta-agl-core rocky9-vk-1 agodard/master-next completed at 2026-01-13 20:13:12+00:00
https://autobuilder.yoctoproject.org/valkyrie/#/builders/55/builds/2864/steps/13/logs/stdio

qa-extras rocky8-vk-1 master-next completed at 2026-01-13 12:00:10+00:00
https://autobuilder.yoctoproject.org/valkyrie/#/builders/99/builds/3009/steps/13/logs/stdio

musl-qemux86-64 rocky9-vk-1 agodard/master-next&agodard/master-next-success&agodard/master-next-sqlite-update completed at 2026-01-13 16:03:06+00:00
https://autobuilder.yoctoproject.org/valkyrie/#/builders/3/builds/3076/steps/12/logs/stdio

qemuarmv5 rocky9-vk-3 agodard/master-next&agodard/master-next-success&agodard/master-next-sqlite-update completed at 2026-01-13 14:52:58+00:00
https://autobuilder.yoctoproject.org/valkyrie/#/builders/80/builds/2858/steps/13/logs/stdio

genericarm64 rocky9-vk-3 agodard/master-next completed at 2026-01-13 19:04:03+00:00
https://autobuilder.yoctoproject.org/valkyrie/#/builders/60/builds/3020/steps/12/logs/stdio

qemux86-64-x32 debian11-vk-1 master-next completed at 2026-01-13 11:52:49+00:00
https://autobuilder.yoctoproject.org/valkyrie/#/builders/11/builds/2985/steps/12/logs/stdio

qemuarm-tc alma9-vk-2 agodard/master-next&agodard/master-next-success&agodard/master-next-sqlite-update completed at 2026-01-13 15:06:30+00:00
https://valkyrie.yocto.io/pub/non-release/20260113-81/testresults/qemuarm-tc/
https://autobuilder.yoctoproject.org/valkyrie/#/builders/42/builds/2951/steps/13/logs/stdio

qemux86-64-alt stream9-vk-1 agodard/master-next&agodard/master-next-success&agodard/master-next-sqlite-update completed at 2026-01-13 15:43:53+00:00
https://autobuilder.yoctoproject.org/valkyrie/#/builders/95/builds/2982/steps/13/logs/stdio

genericx86-alt rocky9-vk-3 agodard/master-next completed at 2026-01-13 19:03:59+00:00
https://autobuilder.yoctoproject.org/valkyrie/#/builders/65/builds/3012/steps/12/logs/stdio

meta-aws stream9-vk-1 agodard/master-next completed at 2026-01-13 17:50:40+00:00
https://autobuilder.yoctoproject.org/valkyrie/#/builders/14/builds/2866/steps/13/logs/stdio

poky-tiny rocky9-vk-2 agodard/master-next completed at 2026-01-13 18:21:54+00:00
https://autobuilder.yoctoproject.org/valkyrie/#/builders/50/builds/3062/steps/12/logs/stdio

qemuarm-oecore rocky9-vk-3 agodard/master-next completed at 2026-01-13 19:31:04+00:00
https://autobuilder.yoctoproject.org/valkyrie/#/builders/40/builds/3004/steps/12/logs/stdio

qemux86-tc rocky9-vk-1 agodard/master-next completed at 2026-01-13 20:18:59+00:00
https://valkyrie.yocto.io/pub/non-release/20260113-100/testresults/qemux86-tc/
https://autobuilder.yoctoproject.org/valkyrie/#/builders/28/builds/2957/steps/13/logs/stdio

qemux86-tc rocky9-vk-2 agodard/master-next completed at 2026-01-14 09:11:02+00:00
https://valkyrie.yocto.io/pub/non-release/20260113-100/testresults/qemux86-tc/
https://autobuilder.yoctoproject.org/valkyrie/#/builders/28/builds/2963/steps/13/logs/stdio

genericx86-alt opensuse155-vk-2 master-next completed at 2026-01-13 12:01:05+00:00
https://autobuilder.yoctoproject.org/valkyrie/#/builders/65/builds/3008/steps/13/logs/stdio

poky-tiny alma8-vk-1 master-next completed at 2026-01-13 11:53:20+00:00
https://autobuilder.yoctoproject.org/valkyrie/#/builders/50/builds/3057/steps/13/logs/stdio

oe-selftest-fedora rocky9-vk-3 master completed at 2026-01-14 20:57:10+00:00
https://autobuilder.yoctoproject.org/valkyrie/#/builders/48/builds/2910/steps/15/logs/stdio
Comment 24 Yoann Congal 2026-01-21 10:51:17 UTC
Reopening while waiting for fixes to merge on impacted stables branches (kirkstone, scarthgap and whinlatter).
They should merge around 2026/01/23.
Comment 25 Yoann Congal 2026-01-27 10:16:13 UTC
Fixes backported to stable branches:

Kirkstone:
pseudo: Upgrade to version 1.9.1 https://git.openembedded.org/openembedded-core/commit/?h=kirkstone&id=b3140c624504b19a2b2faec8df89f57a99cefce1
pseudo: 1.9.0 -> 1.9.2 https://git.openembedded.org/openembedded-core/commit/?h=kirkstone&id=2093a9c80e391795abbac8766569583a3547e43b
pseudo: Update to pull in memleak fix https://git.openembedded.org/openembedded-core/commit/?h=kirkstone&id=d789b03d33d9a0fce335080f667c29ed45515726
pseudo: Add hard sstate dependencies for pseudo-native https://git.openembedded.org/openembedded-core/commit/?h=kirkstone&id=e3c07672d22343cd7ac68cb84716b05ec7cd438b
pseudo: Update to pull in openat2 and efault return code changes https://git.openembedded.org/openembedded-core/commit/?h=kirkstone&id=edc8c8e0ae511b03cb9d0501d472bb42fbea2c8b
pseudo: Update to pull in 'makewrappers: Fix EFAULT implementation' https://git.openembedded.org/openembedded-core/commit/?h=kirkstone&id=e514b1ac74ae8a69b15e3459cb3b327a35cabff8

Scarthgap:
pseudo: Upgrade to version 1.9.1 https://git.openembedded.org/openembedded-core/commit/?h=scarthgap&id=a019d270cd6f41c751e685f36581c00e65287b9d
pseudo: 1.9.0 -> 1.9.2 https://git.openembedded.org/openembedded-core/commit/?h=scarthgap&id=89256d7c891c0053028a4d8679ccebc24f36577c
pseudo: Update to pull in memleak fix https://git.openembedded.org/openembedded-core/commit/?h=scarthgap&id=b6e48eac4b61d66b240b80f35b1d97752e814d15
pseudo: Add hard sstate dependencies for pseudo-native https://git.openembedded.org/openembedded-core/commit/?h=scarthgap&id=c73e9513f26cd9e073fc2eb0a67378ad7864d677
pseudo: Update to pull in openat2 and efault return code changes https://git.openembedded.org/openembedded-core/commit/?h=scarthgap&id=a872357343b29530d05823368cfc8863a798412d
pseudo: Update to pull in 'makewrappers: Fix EFAULT implementation' https://git.openembedded.org/openembedded-core/commit/?h=scarthgap&id=a845c75096c381f45c13451b1baedc7774e4eff2

Whinlatter:
pseudo: Update to pull in openat2 and efault return code changes https://git.openembedded.org/openembedded-core/commit/?h=whinlatter&id=8bd4d5f315037f13d617edb956767db898e38768
pseudo: Update to pull in 'makewrappers: Fix EFAULT implementation' https://git.openembedded.org/openembedded-core/commit/?h=whinlatter&id=fd142216dabc413502c5acbc3b9401bdd878e17a

Note: master still has a subsequent pseudo update that I should backport, but the above series are enough to fix this bug for the stable branches.

=> Closing
Comment 26 Yoann Congal 2026-02-11 22:17:25 UTC
scarthgap qemuarm-oecore rocky9-vk-1 https://autobuilder.yoctoproject.org/valkyrie/?#/builders/40/builds/3140
^ that a stable/scarthgap-nut branch with the pseudo 1.9.3 update
Comment 27 Yoann Congal 2026-02-12 08:58:10 UTC
(In reply to Yoann Congal from comment #26)
> scarthgap qemuarm-oecore rocky9-vk-1
> https://autobuilder.yoctoproject.org/valkyrie/?#/builders/40/builds/3140
> ^ that a stable/scarthgap-nut branch with the pseudo 1.9.3 update

After discussion with Mathieu, this should be in #16143, I'll move this comment there and close this bug again (sorry for the noise)
Comment 28 Yoann Congal 2026-02-12 13:49:01 UTC
Closing this in favor of #16143