Skip to content

Various fixes

Mark Hatle yocto-patches 1 version New

Get series with b4
b4 am [email protected]

Versions newest first

  1. v1 Latest34 patches 0 repliesNew

Patches in v1 No applies recorded yet

#Subject and filesSizeRepliesApplied
1/34pseudo_client: serialize path changes across clientsmakewrappers ports/linux/statx/wrapfuncs.in ports/linux/wrapfuncs.in +5 more+121 -200 replies
2/34ports: hold the path lock in create and metadata wrappersports/linux/wrapfuncs.in ports/linux/xattr/wrapfuncs.in ports/unix/wrapfuncs.in+39 -390 replies
3/34ports: check created files under the path lock before recording themports/linux/guts/fopen64.c ports/linux/guts/freopen64.c ports/linux/guts/openat.c +5 more+56 -60 replies
4/34test-parallel-ops: Add a parallel create/rename/link/chmod testtest/test-parallel-ops.sh+53 -00 replies
5/34ports: Remove PSEUDO_NO_REAL_AT_FUNCTIONSports/linux/guts/__fxstatat.c ports/linux/guts/__fxstatat64.c ports/linux/guts/__xmknodat.c +14 more+8 -2830 replies
6/34ports/unix: Remove guts overridden by the Linux portREADME.security ports/unix/guts/lchown.c ports/unix/guts/lutimes.c +5 more+1 -1520 replies
7/34ports: Let the port define how pseudo stats filesports/linux/guts/__xmknodat.c ports/linux/guts/fopen64.c ports/linux/guts/freopen64.c +10 more+46 -430 replies
8/34patches/yocto-older-glibc-symbols.patch: Update to latest YP versionpatches/yocto-older-glibc-symbols.patch+2 -20 replies
9/34Remove unused #if 0 debug codepseudo_client.c pseudo_util.c+0 -210 replies
10/34Replace #if 0 strerror() debug messages with a commentports/unix/pseudo_wrappers.c templates/wrapfuncs.c+2 -120 replies
11/34pseudo_util: Remove stale with_libpseudo() commentpseudo_util.c+0 -30 replies
12/34ports/common/subports: Show the unknown OS name in the errorports/common/subports+1 -10 replies
13/34ports/linux: Drop redundant PSEUDO_LINK_SYMLINK_BEHAVIOR overrideports/linux/portdefs.h pseudo.h+2 -100 replies
14/34pseudo_server: Skip events for clients closed earlier in the batchpseudo_server.c+3 -10 replies
15/34pseudo_server: Drop an idle client when out of file descriptorspseudo_server.c+24 -20 replies
16/34pseudo_server: Always use epollMakefile.in configure pseudo_server.c+17 -2350 replies
17/34configure: Fix --disable-* optionsconfigure+1 -10 replies
18/34pseudo_server: Lower highest_client when the highest client closespseudo_server.c+1 -10 replies
19/34pseudo_server: Set highest_client to the new client when growingpseudo_server.c+1 -10 replies
20/34pseudo_util: Store PSEUDO_SEVERITY as severity namespseudo_util.c+12 -10 replies
21/34pseudo: Fix the -k severity optionpseudo.c+3 -20 replies
22/34pseudo_util: Make -v and numeric PSEUDO_DEBUG add debug flagspseudo_util.c test/test-debug-flags.sh+67 -40 replies
23/34AGENTS.md: Add to assist future developersAGENTS.md+85 -00 replies
24/34pseudo_util: Fix the date format in the event log dumppseudo_util.c+2 -20 replies
25/34pseudo: List -p in the usage messagepseudo.c+1 -10 replies
26/34pseudo_util: Write the event log to PSEUDO_EVLOG_FILEdoc/program_flow pseudo.h pseudo_client.c +2 more+12 -60 replies
27/34pseudo.1: Update to match the current codepseudo.1+281 -370 replies
28/34ports/linux: Don't require <linux/mount.h>ports/linux/portdefs.h test/test-open_tree_attr-syscall.c+5 -30 replies
29/34configure: Require GCC 5 or laterREADME configure+28 -00 replies
30/34doc: Update README and doc/ to match the codeREADME README.security doc/chroot +6 more+139 -650 replies
31/34configure: Fix the --enable-profiling defaultconfigure+1 -10 replies
32/34pseudo_util: Skip unneeded lstat calls when canonicalizing pathspseudo_util.c+28 -120 replies
33/34wrappers: Don't re-block signals in nested wrapper callsdoc/program_flow pseudo_wrappers.c templates/wrapfuncs.c+24 -70 replies
34/34Wrap execvpe(), fexecve() and execveat()ports/common/guts/execveat.c ports/common/guts/execvpe.c ports/common/guts/fexecve.c +6 more+304 -170 replies

Reviews trailers per patch

No Reviewed-by, Acked-by or Tested-by trailers for v1 yet.

Read the v1 thread

Cover letter [pseudo][PATCH 00/34] Various fixes

This is a large set. It fixes pretty much all of the issues I'm aware of, including many found during recent development.

The first 4 changes are related to the long standing issue of parallel symlink/renames. This is effectively fixed by putting in a shared lock that serializes disk operations across processes.

Much of the additional work was syncronization for newer Linux systems, removal of non Linux ports, removal of obsolete code, etc.

Update the pseudo.1 man page and other documentation to match the current state of the implementation. These files had slowly gone out of sync over the past about 10 years.

Some simple performance optimizations were also included in this set. The goal is to eliminate various calls in an attempt to offset the serialized path lock usage. The items look like they do improve performance over large numbers of files, but without a significantly large build, it's unclear if they will make a measurable difference.

Mark Hatle (34):
pseudo_client: serialize path changes across clients
ports: hold the path lock in create and metadata wrappers
ports: check created files under the path lock before recording them
test-parallel-ops: Add a parallel create/rename/link/chmod test
ports: Remove PSEUDO_NO_REAL_AT_FUNCTIONS
ports/unix: Remove guts overridden by the Linux port
ports: Let the port define how pseudo stats files patches/yocto-older-glibc-symbols.patch: Update to latest YP version Remove unused #if 0 debug code
Replace #if 0 strerror() debug messages with a comment
pseudo_util: Remove stale with_libpseudo() comment ports/common/subports: Show the unknown OS name in the error ports/linux: Drop redundant PSEUDO_LINK_SYMLINK_BEHAVIOR override
pseudo_server: Skip events for clients closed earlier in the batch
pseudo_server: Drop an idle client when out of file descriptors
pseudo_server: Always use epoll
configure: Fix --disable-* options
pseudo_server: Lower highest_client when the highest client closes
pseudo_server: Set highest_client to the new client when growing
pseudo_util: Store PSEUDO_SEVERITY as severity names
pseudo: Fix the -k severity option
pseudo_util: Make -v and numeric PSEUDO_DEBUG add debug flags AGENTS.md: Add to assist future developers
pseudo_util: Fix the date format in the event log dump
pseudo: List -p in the usage message
pseudo_util: Write the event log to PSEUDO_EVLOG_FILE pseudo.1: Update to match the current code
ports/linux: Don't require <linux/mount.h>
configure: Require GCC 5 or later
doc: Update README and doc/ to match the code
configure: Fix the --enable-profiling default
pseudo_util: Skip unneeded lstat calls when canonicalizing paths
wrappers: Don't re-block signals in nested wrapper calls Wrap execvpe(), fexecve() and execveat()

 AGENTS.md                               |  85 +++++++++
 Makefile.in                             |   3 +-
 README                                  |  41 +++-
 README.security                         |   4 +-
 configure                               |  47 +++--
 doc/chroot                              |  10 +-
 doc/database                            |  75 +++++---
 doc/overview                            |  21 +--
 doc/passwd                              |   7 +-
 doc/program_flow                        |  16 +-
 doc/pseudo_ipc                          |  37 ++--
 doc/utils                               |   6 +-
 makewrappers                            |  17 ++
 patches/yocto-older-glibc-symbols.patch |   4 +-
 ports/common/guts/execveat.c            |  29 +++
 ports/common/guts/execvpe.c             |  29 +++
 ports/common/guts/fexecve.c             |  21 +++
 ports/common/pseudo_wrappers.c          | 141 ++++++++++++++
 ports/common/subports                   |   2 +-
 ports/common/wrapfuncs.in               |   3 +
 ports/linux/guts/__fxstatat.c           |  12 --
 ports/linux/guts/__fxstatat64.c         |  14 --
 ports/linux/guts/__xmknodat.c           |  23 +--
 ports/linux/guts/fopen64.c              |  11 +-
 ports/linux/guts/freopen64.c            |  11 +-
 ports/linux/guts/mkostemp64.c           |   4 +-
 ports/linux/guts/open_tree.c            |   4 +-
 ports/linux/guts/open_tree_attr.c       |   4 +-
 ports/linux/guts/openat.c               |  51 ++---
 ports/linux/openat2/guts/openat2.c      |  44 ++---
 ports/linux/portdefs.h                  |  26 +--
 ports/linux/statx/wrapfuncs.in          |   2 +-
 ports/linux/wrapfuncs.in                |  40 ++--
 ports/linux/xattr/wrapfuncs.in          |  16 +-
 ports/unix/guts/faccessat2.c            |  12 --
 ports/unix/guts/fchmodat.c              |  18 --
 ports/unix/guts/fchownat.c              |  12 --
 ports/unix/guts/fopen.c                 |   5 +-
 ports/unix/guts/freopen.c               |   5 +-
 ports/unix/guts/lchown.c                |  15 --
 ports/unix/guts/linkat.c                |  11 --
 ports/unix/guts/lutimes.c               |  16 --
 ports/unix/guts/mkdirat.c               |  17 --
 ports/unix/guts/mkfifoat.c              |  22 ---
 ports/unix/guts/mknod.c                 |  15 --
 ports/unix/guts/mknodat.c               |  81 --------
 ports/unix/guts/readlinkat.c            |   8 -
 ports/unix/guts/renameat.c              |  12 --
 ports/unix/guts/symlinkat.c             |  12 --
 ports/unix/guts/tmpnam.c                |  20 --
 ports/unix/guts/unlinkat.c              |  25 ---
 ports/unix/guts/utimes.c                |  15 --
 ports/unix/pseudo_wrappers.c            |   7 +-
 ports/unix/wrapfuncs.in                 |  56 +++---
 pseudo.1                                | 318 ++++++++++++++++++++++++++++----
 pseudo.c                                |   5 +-
 pseudo.h                                |  30 ++-
 pseudo_client.c                         | 128 +++++++++++--
 pseudo_client.h                         |  16 +-
 pseudo_server.c                         | 265 +++++---------------------
 pseudo_util.c                           |  93 ++++++----
 pseudo_wrappers.c                       |   9 +-
 templates/wrapfuncs.c                   |  30 +--
 test/test-debug-flags.sh                |  59 ++++++
 test/test-exec.c                        |  50 +++++
 test/test-exec.sh                       |  31 ++++
 test/test-execl.c                       |   4 -
 test/test-execl.sh                      |  13 --
 test/test-open_tree_attr-syscall.c      |   1 -
 test/test-parallel-ops.sh               |  53 ++++++
 70 files changed, 1364 insertions(+), 985 deletions(-)
 create mode 100644 AGENTS.md
 create mode 100644 ports/common/guts/execveat.c
 create mode 100644 ports/common/guts/execvpe.c
 create mode 100644 ports/common/guts/fexecve.c
 delete mode 100644 ports/unix/guts/lchown.c
 delete mode 100644 ports/unix/guts/lutimes.c
 delete mode 100644 ports/unix/guts/mknod.c
 delete mode 100644 ports/unix/guts/mknodat.c
 delete mode 100644 ports/unix/guts/tmpnam.c
 delete mode 100644 ports/unix/guts/utimes.c
 create mode 100755 test/test-debug-flags.sh
 create mode 100644 test/test-exec.c
 create mode 100755 test/test-exec.sh
 delete mode 100644 test/test-execl.c
 delete mode 100755 test/test-execl.sh
 create mode 100755 test/test-parallel-ops.sh
Signature · 1 line
1.8.3.1