Skip to content

Create new pseudo 1.99.0 version

Mark Hatle yocto-patches 2 versions New

Get series with b4
b4 am [email protected]

Versions newest first · linked by author and title

  1. v2 Latest23 patches 0 repliesNew
  2. v123 patches 4 repliesSuperseded

Changes in v2 from the cover letter

test/test-openat2-func.c typo corrected

Patches in v2 No applies recorded yet

#Subject and filesSizeRepliesApplied
1/23Makefile.in: Move version to 1.99.0 to prep for 2.0 developmentMakefile.in+1 -10 replies
2/23pseudo_util: Add log severity flagspseudo.c pseudo.h pseudo_util.c+51 -10 replies
3/23pseudo: Add new logging macrosenums/sev.in pseudo.h+18 -10 replies
4/23pseudo_util: Change pseudo_diag() calls to appropriate logging macrospseudo_util.c+44 -440 replies
5/23pseudo_db: Change pseudo_diag() calls to appropriate macrospseudo_db.c+61 -610 replies
6/23pseudo_client: Change pseudo_diag() calls to appropriate macrospseudo_client.c+47 -490 replies
7/23pseudo_server: Change pseudo_diag() calls to appropriate macrospseudo_server.c+46 -460 replies
8/23pseudo.c: Change pseudo_diag() calls to appropriate macrospseudo.c+50 -500 replies
9/23pseudolog.c: Change pseudo_diag() calls to appropriate macrospseudolog.c+38 -380 replies
10/23wrappers: Change pseudo_diag() calls to appropriate macrosports/darwin/pseudo_wrappers.c ports/linux/guts/fcntl.c ports/linux/guts/fcntl64.c +13 more+20 -240 replies
11/23pseudo: Change pseudo_diag() name to pseudo_log()pseudo.h pseudo_util.c+8 -80 replies
12/23pseudo_util: Add default log severity valuespseudo.h pseudo_util.c+6 -30 replies
13/23pseudo_util.c: strchr now returns const charpseudo_util.c+1 -10 replies
14/23test/test-openat2-func.c: Remove unusuaed saved_errnotest/test-openat2-func.c+0 -10 replies
15/23pseudo.h: Avoid accessing unallocated memorypseudo.h+1 -10 replies
16/23pseudo_util: Avoid accidental free calls for without_libpseudo()pseudo_util.c+3 -30 replies
17/23pseudo_util: Ensure pseudo_setupenvp handles memory consistentlypseudo_util.c+2 -20 replies
18/23pseudo_util: Avoid a memory leak in pseudo_dropenv()pseudo_util.c+1 -00 replies
19/23pseudo_util: Clean up memory handling for setupenvp resultsports/common/guts/execve.c ports/common/guts/posix_spawn.c ports/common/guts/posix_spawnp.c +2 more+12 -50 replies
20/23exec*: Replace bash workaround to avoid memory corruptionports/common/guts/execv.c ports/common/guts/execvp.c ports/unix/guts/popen.c +4 more+55 -320 replies
21/23pseudo_util: Correctly free memory allocated by pseudo_setupenvpports/common/guts/execv.c ports/common/guts/execve.c ports/common/guts/execvp.c +6 more+19 -70 replies
22/23test-bash-exec-env: Add bash env test casetest/test-bash-exec-env.c test/test-bash-exec-env.sh+701 -00 replies
23/23test: various: Move to makefile compilationtest/test-chroot.c test/test-chroot.sh test/test-execl.c +4 more+28 -410 replies

Reviews trailers per patch

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

Read the v2 thread

Cover letter [pseudo][PATCH v2 00/23] Create new pseudo 1.99.0 version

The changes from Dmitry and some others that are planned are enough I want to start planning for a 2.0 version of pseudo.

(I have already created a pseudo-1.9 branch so we can backport stable changes as needed.)

I have pushed the following changes to 'master-next'. I'd like feedback before I push them to master. (Including if the environment changes specifically should go back to the stable branch. At this point I think they should based on the symptoms.)

Changes from v1:
test/test-openat2-func.c typo corrected

test/test-bash-exec-env test case fully reworked

This reworked test introduces GPL v3.0 or newer licensed code, as well as requires the use of valgrind for the test to run properly. The GPL v3.0 should be fine as this is a test case and not something in the library itself. As for valgrind, we attempt to detect it's availablility and skip the test if valgrind is not available.

Dmitry Sakhonchik (11):
pseudo_util: Add log severity flags
pseudo: Add new logging macros
pseudo_util: Change pseudo_diag() calls to appropriate logging macros
pseudo_db: Change pseudo_diag() calls to appropriate macros
pseudo_client: Change pseudo_diag() calls to appropriate macros
pseudo_server: Change pseudo_diag() calls to appropriate macros pseudo.c: Change pseudo_diag() calls to appropriate macros pseudolog.c: Change pseudo_diag() calls to appropriate macros
wrappers: Change pseudo_diag() calls to appropriate macros
pseudo: Change pseudo_diag() name to pseudo_log()
pseudo_util: Add default log severity values

Mark Hatle (5):
Makefile.in: Move version to 1.99.0 to prep for 2.0 development pseudo_util.c: strchr now returns const char test/test-openat2-func.c: Remove unusuaed saved_errno
test-bash-exec-env: Add bash env test case
test: various: Move to makefile compilation

Richard Purdie (7):
pseudo.h: Avoid accessing unallocated memory
pseudo_util: Avoid accidental free calls for without_libpseudo()
pseudo_util: Ensure pseudo_setupenvp handles memory consistently
pseudo_util: Avoid a memory leak in pseudo_dropenv()
pseudo_util: Clean up memory handling for setupenvp results exec*: Replace bash workaround to avoid memory corruption
pseudo_util: Correctly free memory allocated by pseudo_setupenvp

 Makefile.in                         |   2 +-
 enums/sev.in                        |   2 +-
 ports/common/guts/execv.c           |  19 +-
 ports/common/guts/execve.c          |   4 +-
 ports/common/guts/execvp.c          |  15 +-
 ports/common/guts/posix_spawn.c     |   4 +-
 ports/common/guts/posix_spawnp.c    |   4 +-
 ports/darwin/pseudo_wrappers.c      |   3 +-
 ports/linux/guts/fcntl.c            |   2 +-
 ports/linux/guts/fcntl64.c          |   2 +-
 ports/linux/guts/getpw.c            |   2 +-
 ports/linux/guts/openat.c           |   3 +-
 ports/linux/openat2/guts/openat2.c  |   3 +-
 ports/linux/xattr/pseudo_wrappers.c |   3 +-
 ports/unix/guts/getcwd.c            |   6 +-
 ports/unix/guts/linkat.c            |   2 +-
 ports/unix/guts/nftw_wrapper_base.c |   6 +-
 ports/unix/guts/popen.c             |  16 +-
 ports/unix/guts/symlinkat.c         |   2 +-
 ports/unix/guts/system.c            |  16 +-
 ports/unix/guts/tempnam.c           |   2 +-
 ports/unix/guts/tmpnam.c            |   2 +-
 ports/unix/guts/unlinkat.c          |   2 +-
 pseudo.c                            | 105 +++---
 pseudo.h                            |  33 +-
 pseudo_client.c                     |  96 +++---
 pseudo_client.h                     |   3 -
 pseudo_db.c                         | 122 +++----
 pseudo_ipc.c                        |   2 +-
 pseudo_server.c                     |  92 ++---
 pseudo_util.c                       | 174 ++++++----
 pseudo_wrappers.c                   |   8 +-
 pseudolog.c                         |  76 ++--
 test/test-bash-exec-env.c           | 667 ++++++++++++++++++++++++++++++++++++
 test/test-bash-exec-env.sh          |  34 ++
 test/test-chroot.c                  |  10 +
 test/test-chroot.sh                 |  14 +-
 test/test-execl.c                   |   4 +
 test/test-execl.sh                  |  13 +-
 test/test-linkat-chroot.sh          |   4 +-
 test/test-openat2-func.c            |   1 -
 test/test-reexec-chroot.c           |  10 +
 test/test-reexec-chroot.sh          |  14 +-
 43 files changed, 1199 insertions(+), 405 deletions(-)
 create mode 100644 test/test-bash-exec-env.c
 create mode 100755 test/test-bash-exec-env.sh
 create mode 100644 test/test-chroot.c
 create mode 100644 test/test-execl.c
 create mode 100644 test/test-reexec-chroot.c
Signature · 1 line
1.8.3.1