From: "Steve Sakoman" <steve@sakoman.com>
To: openembedded-core@lists.openembedded.org
Subject: [OE-core][dunfell 00/47] Patch review - pseudo file mode corruption fix V2
Date: Mon, 25 Jan 2021 04:50:32 -1000 [thread overview]
Message-ID: <cover.1611585425.git.steve@sakoman.com> (raw)
Issues with undetected file mode corruption in pseudo have been identified.
Fixes have been merged into master and gatesgarth over the past several months and
things seem to have stabilized enough that we can consider backporting these fixes
to dunfell.
This is a somewhat more invasive change than normal. Specifically the user will
be required to clean TMPDIR after this merge. It may also expose issues with
other layers, though master and gategarth have probably helped to pave the way for
this change.
Personally I think that this fixes a serious enough issue that we should consider
this series for dunfell.
This second version includes the wic patches which have been the gating item for
merging this series.
Note also that there is an associated bitbake patch for stable/1.46:
lib/bb/utils.py: Do not preserve TERM in the environment
This is due to taking:
bitbake.conf: Remove TERM from default BB_HASHBASE_WHITELIST
which was needed to do clean cherry-picks of the pseudo changes.
Let me know if you think this is an issue, or if you are aware of any other pseudo
issues which would necessitate delaying the merge of this series.
Please have comments back by Wednesday evening.
Passed a-full on autobuilder:
https://autobuilder.yoctoproject.org/typhoon/#/builders/83/builds/1779
The following changes since commit 897822233faef0f8f35dc1d8a39e1c4bc0550f1e:
ppp: Whitelist CVE-2020-15704 (2021-01-19 04:22:10 -1000)
are available in the Git repository at:
git://git.openembedded.org/openembedded-core-contrib stable/dunfell-nut
http://cgit.openembedded.org/openembedded-core-contrib/log/?h=stable/dunfell-nut
Jack Mitchell (1):
distutils3: allow setup.py to be run from a different directory to
${S}
Jacob Kroon (1):
bitbake.conf: Remove TERM from default BB_HASHBASE_WHITELIST
Joe Slater (1):
pseudo: fix renaming to self
Martin Jansa (2):
base.bbclass: use os.path.normpath instead of just comparing WORKDIR
and S as strings
license.bbclass: Add COMMON_LICENSE_DIR and LICENSE_PATH dirs to
PSEUDO_IGNORE_PATHS
Mingli Yu (2):
tcl: adapt to potential pseudo changes
bitbake.conf: Exclude ${CCACHE_DIR} from pseudo database
Paul Barker (8):
bitbake.conf: Prevent pyc file generation in pseudo context
wic: Add workdir argument
wic: Allow exec_native_cmd to run HOSTTOOLS
wic: Ensure internal workdir is not reused
image_types_wic: Move wic working directory
wic: Update pseudo db when excluding content from rootfs
wic: Copy rootfs dir if fstab needs updating
wic: Optimise fstab modification for ext2/3/4 and msdos partitions
Peter Kjellerstedt (4):
pseudo: Simplify pseudo_client_ignore_path_chroot()
lib/oe/path: Add canonicalize()
bitbake.conf: Canonicalize paths in PSEUDO_IGNORE_PATHS
wic: Pass canonicalized paths in PSEUDO_IGNORE_PATHS
Ricardo Ribalda Delgado (4):
wic: Fix permissions when using exclude or include path
wic: Fix multi images .wks with bitbake
wic: Avoid creating invalid pseudo directory
wic: Add --change-directory argument
Richard Purdie (23):
pseudo: Switch to oe-core branch in git repo
pseudo: merge in fixes for setfacl issue
pseudo: Update to add OFC fcntl lock updates
pseudo: Ignore mismatched inodes from the db
pseudo: Add support for ignoring paths from the pseudo DB
pseudo: Abort on mismatch patch
psuedo: Add tracking of linked files for fds
pseudo: Fix xattr segfault
pseudo: Add may unlink patch
pseudo: Add pathfix patch
base/bitbake.conf: Enable pseudo path filtering
wic: Handle new PSEUDO_IGNORE_PATHS variable
pseudo: Fix statx function usage
bitbake.conf: Extend PSEUDO_IGNORE_PATHS to ${COREBASE}/meta
abi_version,sanity: Tell users TMPDIR must be clean after pseudo
changes
pseudo: Update to account for patches merged on branch
pseudo: Upgrade to include mkostemp64 wrapper
oeqa/selftest/runtime_test: Exclude gpg directory from pseudo database
uninative: Don't use single sstate for pseudo-native
pseudo: Drop patches merged into upstream branch
bitbake.conf: Add /run/ to PSEUDO_IGNORE_PATHS
pseudo: Add lchmod wrapper
pseudo: Update for arm host and memleak fixes/cleanup
Tomasz Dziendzielski (1):
pseudo: Update to print PSEUDO_LOGFILE in abort message on path
mismatches
meta-selftest/lib/pseudo_pyc_test1.py | 1 +
meta-selftest/lib/pseudo_pyc_test2.py | 1 +
.../pseudo-pyc-test/pseudo-pyc-test.bb | 15 ++
meta/classes/archiver.bbclass | 2 +-
meta/classes/base.bbclass | 6 +
meta/classes/distutils3.bbclass | 10 +-
meta/classes/image_types_wic.bbclass | 20 ++-
meta/classes/license.bbclass | 1 +
meta/classes/populate_sdk_base.bbclass | 2 +
meta/classes/sanity.bbclass | 3 +
meta/classes/sstate.bbclass | 4 +
meta/conf/abi_version.conf | 2 +-
meta/conf/bitbake.conf | 13 +-
meta/lib/oe/path.py | 21 +++
meta/lib/oe/sstatesig.py | 4 +-
meta/lib/oeqa/selftest/cases/pseudo.py | 27 ++++
meta/lib/oeqa/selftest/cases/runtime_test.py | 1 +
.../pseudo/files/0001-Add-statx.patch | 106 --------------
...001-maketables-wrappers-use-Python-3.patch | 34 -----
...ixup-remove-files-that-do-not-exist-.patch | 49 -------
.../0001-pseudo_ipc.h-Fix-enum-typedef.patch | 31 ----
...1-realpath.c-Remove-trailing-slashes.patch | 57 --------
...xattr-adjust-for-attr-2.4.48-release.patch | 48 ------
.../pseudo/files/moreretries.patch | 19 ---
.../pseudo/files/seccomp.patch | 137 ------------------
.../pseudo/files/toomanyfiles.patch | 71 ---------
.../pseudo/files/xattr_version.patch | 54 -------
meta/recipes-devtools/pseudo/pseudo_git.bb | 14 +-
meta/recipes-devtools/tcltk/tcl_8.6.10.bb | 1 +
scripts/lib/wic/help.py | 6 +
scripts/lib/wic/ksparser.py | 1 +
scripts/lib/wic/misc.py | 7 +-
scripts/lib/wic/partition.py | 66 ++++++---
scripts/lib/wic/plugins/imager/direct.py | 48 +++---
scripts/lib/wic/plugins/source/rootfs.py | 85 +++++++++--
scripts/postinst-intercepts/update_font_cache | 2 +
scripts/wic | 2 +
37 files changed, 281 insertions(+), 690 deletions(-)
create mode 100644 meta-selftest/lib/pseudo_pyc_test1.py
create mode 100644 meta-selftest/lib/pseudo_pyc_test2.py
create mode 100644 meta-selftest/recipes-test/pseudo-pyc-test/pseudo-pyc-test.bb
create mode 100644 meta/lib/oeqa/selftest/cases/pseudo.py
delete mode 100644 meta/recipes-devtools/pseudo/files/0001-Add-statx.patch
delete mode 100644 meta/recipes-devtools/pseudo/files/0001-maketables-wrappers-use-Python-3.patch
delete mode 100644 meta/recipes-devtools/pseudo/files/0001-pseudo-On-a-DB-fixup-remove-files-that-do-not-exist-.patch
delete mode 100644 meta/recipes-devtools/pseudo/files/0001-pseudo_ipc.h-Fix-enum-typedef.patch
delete mode 100644 meta/recipes-devtools/pseudo/files/0001-realpath.c-Remove-trailing-slashes.patch
delete mode 100644 meta/recipes-devtools/pseudo/files/0006-xattr-adjust-for-attr-2.4.48-release.patch
delete mode 100644 meta/recipes-devtools/pseudo/files/moreretries.patch
delete mode 100644 meta/recipes-devtools/pseudo/files/seccomp.patch
delete mode 100644 meta/recipes-devtools/pseudo/files/toomanyfiles.patch
delete mode 100644 meta/recipes-devtools/pseudo/files/xattr_version.patch
--
2.25.1
next reply other threads:[~2021-01-25 14:51 UTC|newest]
Thread overview: 54+ messages / expand[flat|nested] mbox.gz Atom feed top
2021-01-25 14:50 Steve Sakoman [this message]
2021-01-25 14:50 ` [OE-core][dunfell 01/47] pseudo: Switch to oe-core branch in git repo Steve Sakoman
2021-01-25 14:50 ` [OE-core][dunfell 02/47] pseudo: merge in fixes for setfacl issue Steve Sakoman
2021-01-25 14:50 ` [OE-core][dunfell 03/47] pseudo: Update to add OFC fcntl lock updates Steve Sakoman
2021-01-25 14:50 ` [OE-core][dunfell 04/47] pseudo: fix renaming to self Steve Sakoman
2021-01-25 14:50 ` [OE-core][dunfell 05/47] pseudo: Ignore mismatched inodes from the db Steve Sakoman
2021-01-25 14:50 ` [OE-core][dunfell 06/47] pseudo: Add support for ignoring paths from the pseudo DB Steve Sakoman
2021-01-25 14:50 ` [OE-core][dunfell 07/47] pseudo: Abort on mismatch patch Steve Sakoman
2021-01-25 14:50 ` [OE-core][dunfell 08/47] psuedo: Add tracking of linked files for fds Steve Sakoman
2021-01-25 14:50 ` [OE-core][dunfell 09/47] pseudo: Fix xattr segfault Steve Sakoman
2021-01-25 14:50 ` [OE-core][dunfell 10/47] pseudo: Add may unlink patch Steve Sakoman
2021-01-25 14:50 ` [OE-core][dunfell 11/47] pseudo: Add pathfix patch Steve Sakoman
2021-01-25 14:50 ` [OE-core][dunfell 12/47] bitbake.conf: Remove TERM from default BB_HASHBASE_WHITELIST Steve Sakoman
2021-01-25 14:50 ` [OE-core][dunfell 13/47] base/bitbake.conf: Enable pseudo path filtering Steve Sakoman
2021-01-25 14:50 ` [OE-core][dunfell 14/47] wic: Fix permissions when using exclude or include path Steve Sakoman
2021-01-25 14:50 ` [OE-core][dunfell 15/47] wic: Fix multi images .wks with bitbake Steve Sakoman
2021-01-25 14:50 ` [OE-core][dunfell 16/47] wic: Avoid creating invalid pseudo directory Steve Sakoman
2021-01-25 14:50 ` [OE-core][dunfell 17/47] wic: Handle new PSEUDO_IGNORE_PATHS variable Steve Sakoman
2021-01-25 14:50 ` [OE-core][dunfell 18/47] pseudo: Fix statx function usage Steve Sakoman
2021-01-25 14:50 ` [OE-core][dunfell 19/47] bitbake.conf: Extend PSEUDO_IGNORE_PATHS to ${COREBASE}/meta Steve Sakoman
2021-01-25 14:50 ` [OE-core][dunfell 20/47] abi_version,sanity: Tell users TMPDIR must be clean after pseudo changes Steve Sakoman
2021-01-25 14:50 ` [OE-core][dunfell 21/47] pseudo: Update to account for patches merged on branch Steve Sakoman
2021-01-25 14:50 ` [OE-core][dunfell 22/47] pseudo: Upgrade to include mkostemp64 wrapper Steve Sakoman
2021-01-25 14:50 ` [OE-core][dunfell 23/47] base.bbclass: use os.path.normpath instead of just comparing WORKDIR and S as strings Steve Sakoman
2021-01-25 14:50 ` [OE-core][dunfell 24/47] oeqa/selftest/runtime_test: Exclude gpg directory from pseudo database Steve Sakoman
2021-01-25 14:50 ` [OE-core][dunfell 25/47] tcl: adapt to potential pseudo changes Steve Sakoman
2021-01-25 14:50 ` [OE-core][dunfell 26/47] bitbake.conf: Exclude ${CCACHE_DIR} from pseudo database Steve Sakoman
2021-01-25 14:50 ` [OE-core][dunfell 27/47] uninative: Don't use single sstate for pseudo-native Steve Sakoman
2021-01-25 14:51 ` [OE-core][dunfell 28/47] pseudo: Simplify pseudo_client_ignore_path_chroot() Steve Sakoman
2021-01-25 14:51 ` [OE-core][dunfell 29/47] pseudo: Update to print PSEUDO_LOGFILE in abort message on path mismatches Steve Sakoman
2021-01-25 14:51 ` [OE-core][dunfell 30/47] distutils3: allow setup.py to be run from a different directory to ${S} Steve Sakoman
2021-01-25 14:51 ` [OE-core][dunfell 31/47] pseudo: Drop patches merged into upstream branch Steve Sakoman
2021-01-25 14:51 ` [OE-core][dunfell 32/47] lib/oe/path: Add canonicalize() Steve Sakoman
2021-01-25 14:51 ` [OE-core][dunfell 33/47] bitbake.conf: Canonicalize paths in PSEUDO_IGNORE_PATHS Steve Sakoman
2021-01-25 14:51 ` [OE-core][dunfell 34/47] wic: Pass canonicalized " Steve Sakoman
2021-01-25 14:51 ` [OE-core][dunfell 35/47] bitbake.conf: Prevent pyc file generation in pseudo context Steve Sakoman
2021-01-25 14:51 ` [OE-core][dunfell 36/47] license.bbclass: Add COMMON_LICENSE_DIR and LICENSE_PATH dirs to PSEUDO_IGNORE_PATHS Steve Sakoman
2021-01-25 14:51 ` [OE-core][dunfell 37/47] bitbake.conf: Add /run/ " Steve Sakoman
2021-01-25 14:51 ` [OE-core][dunfell 38/47] pseudo: Add lchmod wrapper Steve Sakoman
2021-01-25 14:51 ` [OE-core][dunfell 39/47] pseudo: Update for arm host and memleak fixes/cleanup Steve Sakoman
2021-01-25 14:51 ` [OE-core][dunfell 40/47] wic: Add workdir argument Steve Sakoman
2021-01-25 14:51 ` [OE-core][dunfell 41/47] wic: Allow exec_native_cmd to run HOSTTOOLS Steve Sakoman
2021-01-25 14:51 ` [OE-core][dunfell 42/47] wic: Ensure internal workdir is not reused Steve Sakoman
2021-01-25 14:51 ` [OE-core][dunfell 43/47] image_types_wic: Move wic working directory Steve Sakoman
2021-01-25 14:51 ` [OE-core][dunfell 44/47] wic: Update pseudo db when excluding content from rootfs Steve Sakoman
2021-01-25 14:51 ` [OE-core][dunfell 45/47] wic: Add --change-directory argument Steve Sakoman
2021-01-25 14:51 ` [OE-core][dunfell 46/47] wic: Copy rootfs dir if fstab needs updating Steve Sakoman
2021-01-25 14:51 ` [OE-core][dunfell 47/47] wic: Optimise fstab modification for ext2/3/4 and msdos partitions Steve Sakoman
2021-01-25 15:42 ` [OE-core][dunfell 00/47] Patch review - pseudo file mode corruption fix V2 Paul Barker
2021-01-25 16:25 ` Steve Sakoman
2021-01-25 16:32 ` Paul Barker
2021-01-27 3:19 ` Anuj Mittal
2021-01-27 15:01 ` Steve Sakoman
2021-01-27 16:17 ` Richard Purdie
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=cover.1611585425.git.steve@sakoman.com \
--to=steve@sakoman.com \
--cc=openembedded-core@lists.openembedded.org \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.