What changed in procps-ng from 3 to 4

6 releases numbered after v3.3.17 up to and including v4.0.7, stable releases only. v3.3.17 and v4.0.7 are the newest stable releases of 3 and 4 we track; this page follows them as new ones ship.

162 changes across 6 releases

Added 69

v4.0.6

  • pgrep can match on process ID
  • pgrep adds process_mrelease support
  • pgrep adds shell quoting
  • pgrep adds a --quiet option
  • pmap adds a -k option to print raw names from the kernel
  • ps adds a --delimiter option
  • top provides a way to ignore configuration file(s)
  • top adds a new help screen for specialized keys
  • top adds a feature to show physical core percentages
  • w adds a terminal mode to show all terminal sessions
  • watch adds a --follow option
  • watch adds 256 color support

v4.0.5

  • zswap and zswapped fields added to the meminfo API
  • Schedule class field added to the pids API
  • Disk sleep field added to the pids API and sleep value revised
  • Docker containers field added to the pids API
  • procps_users() exported function added
  • procps_container_uptime() function added
  • SecPageTables and Unaccepted fields added to the meminfo API
  • Open file descriptors provided by the pids API
  • procps_sigmask_names() function added
  • procps_capability_names() function added
  • PIDS_CAP_PRM permitted capabilities field added
  • --disable-pidwait build option added and its logic fixed
  • pgrep can select processes by environment variable
  • ps environ field added
  • ps htprv and htshr fields added for HugeTables
  • ps docker containers field added, similar to lxc
  • ps can display open file descriptors for each task
  • ps -o pcap and pcaps options added to show permitted capabilities
  • slabtop --human option added for slab size
  • sysctl glob excludes added
  • top CLS scheduling class field added, like ps
  • top docker containers field added, similar to lxc
  • top provides additional control over colors
  • top can display open file descriptors for each task
  • top can display a task's permitted capabilities (^A)
  • uptime container uptime option added
  • vmstat page allocation added to --stats
  • w container uptime option added
  • hugetop utility added to show huge page information

v4.0.4

  • Add -L option to free for one line output
  • Add -t option to pidof to show threads
  • Add --signames option to ps to show signal names in masks
  • top includes VM (guest) tics with the ! toggle

v4.0.3

  • pgrep: Add -H match on userspace signal handler
  • top: E/P-core toggle ('5' key) added to help
  • w: Add --pids option
  • watch: Pass through beep
  • watch: -r option to not re-exec on SIGWINCH

v4.0.0

  • free: Add committed line option
  • library: add support for accessing smaps_rollup
  • library: add support for accessing autogroups
  • library: add support for LIBPROC_HIDE_KERNEL env var
  • library: add support for cpu utilization to pids interface
  • pgrep: Select on cgroup v2 paths
  • ps: Add OOM and OOMADJ fields
  • ps: Add IO Accounting fields
  • ps: Add PSS and USS fields
  • ps: Add two new autogroup fields
  • sysctl: Add support for systemd glob patterns
  • top: added LOGID similar to 3.3.13 ps LUID
  • top: added EXE identical to 3.3.17 ps EXE
  • top: added four new IO accounting fields
  • top: 'F' key is now a new forest view 'focus' toggle
  • top: added two new autogroup fields
  • top: added long versions of command line options
  • top: added cpu utilization and 2 time related fields
  • vmstat: add -y option to remove first line
Changed 33

v4.0.6

  • Library version revised from 1 to 1:1:0
  • Library uses openat for files under /proc/<PID>
  • Library no longer checks for sd_booted
  • pgrep uses pidfd_send_signal()
  • pgrep man page notes that timing is limited to 100th of a second
  • ps man page documents cols and collums as aliases for the width option
  • ps man page adds format equivalents
  • slabtop column width is increased
  • w no longer checks for sd_booted
  • watch man page warns about the -d permanent option

v4.0.5

  • Library version incremented: current, revision and age set to 0 (1:0:0)
  • Only user sessions are counted
  • procps_uptime_snprint() uses the given upseconds value
  • pgrep pidfile reading reworked to include stdin
  • ps uses quick mode when possible
  • top exploits library addition of disk sleep
  • w caches the pids list
  • watch uses clock_gettime()

v4.0.4

  • Library tolerates all potential 'cpuinfo' formats
  • Remove the library's own process from the proc count
  • Refactor the escape code in the library
  • sysctl -N shows names
  • top exits with EXIT_FAILURE on bad command line arguments
  • top includes VM (guest) tics in the system overhead

v4.0.3

  • ps.1: Match drs description from top.1

v4.0.0

  • Rename pwait to pidwait
  • free: Better spacing for Chinese language
  • library: renamed to libproc-2 and reset to 0:0:0
  • ps: Ignore SIGURG
  • sysctl.conf.5: Note max line length
  • top: exploit some library smaps_rollup provisions
  • top: summary area memory lines can print two abreast
  • top: the time related fields can now be user scaled
Fixed 56

v4.0.6

  • Library race condition that could lead to a segfault is addressed
  • Local library guards SIGPOLL for MacOS
  • pgrep unhex handling for signal numbers is repaired
  • ps parses --help correctly
  • ps f forest output works under pid 1
  • ps no longer fails with many pids and the p option
  • ps avoids a potential segfault due to a library race
  • ps -ad option conflict is fixed
  • ps accepts a ppid of 0 by fixing the parser
  • sysctl returns an error on EPERM or EISDIR
  • sysctl uses options after --system
  • top avoids a potential segfault due to a library race
  • w uses process TTY as a backup for user TTY
  • w uses the correct return value for sd_get_sessions
  • w no longer crashes with pids in terminal mode

v4.0.5

  • Days and users are handled correctly when value is 0
  • Minutes are incremented instead of printing 60s in uptime output
  • Stat API remaining CPU distortions are fixed
  • Recovery from meminfo seek failure under LXC
  • Stat API no longer counts guest ticks twice
  • kill correctly parses negative PIDs
  • pmap no longer escapes correct UTF-8 characters
  • ps restores lost tasks for --sort with -H
  • ps AIX free-format restored
  • ps signal names scanning fixed
  • ps zombies shown in the command name
  • snice help screen minor fix
  • sysctl --all skips stat_refresh
  • top corrected CPU percentage for hosts with qemu processes
  • top remains functional if /proc is mounted with subset=pid
  • w no longer segfaults with -s option

v4.0.4

  • Restore the proper main thread tics valuations in the library
  • pgrep uses only the --signal option for signal handling
  • pgrep suppresses the >15 warning when using a regex
  • pmap resets totals between processes
  • ps fixes missing or corrupted fields with the -m option
  • tests no longer compare floats with ==
  • tests skip when maps are missing
  • top avoids keystroke induced %Cpu distortions
  • top lessens summary cpu distortions on first display

v4.0.3

  • Stop installing English manpages twice
  • pgrep: make --terminal respect other criteria
  • ps: c flag shows command name again
  • skill: Match on -p again
  • vmstat: Refresh memory statistics
  • vmstat: Fix initial si,so,bi,bo,in & cs values
  • vmstat: Fix conversion errors due to precision
  • watch: find eol with --no-linewrap

v4.0.0

  • free: Fix -h --si combined options
  • free: Fix first column justification
  • pkill: Check for lt- variants of program name
  • pgrep: Add newline after regex error message
  • pgrep: Fix selection where uid/gid > 2^31
  • slabtop: Don't combine d and o options
  • sysctl: return non-zero if EINVAL return for write
  • uptime: print short/pretty format correctly
Removed 1

v4.0.5

  • info parameter removed from all VAL macros
Security 3

v4.0.6

  • top fixes a legacy configuration file vulnerability

v4.0.4

  • Fix buffer overflow in the ps -C option (CVE-2023-4016)

v4.0.0

  • sysctl: Check resolved path to be under /proc/sys

One release in the range carries no categorized changes yet: v4.0.7. Their original notes, where the vendor published any, are below.

Original release notes, newest first

The list above is our reading of these notes; the originals from procps-ng are here, one fold per release.

v4.0.7Version 4.0.7

The vendor published no notes for this release.

View originalPermalink

v4.0.64.0.6
  • library version: inc revision to 1 now 1:1:0 internal: Use openat for files under /proc/ internal: Don't check for sd_booted Debian #1108549 internal: Address potential race leading to segfault issues #380, #390
  • local: guard SIGPOLL for MacOS merge !246
  • pgrep: Fix unhex breakage for signal numbers issue #369
  • pgrep: Match on process ID Debian #612146
  • pgrep: Add process_mrelease merge !250
  • pgrep: Add shell quoting merge !248
  • pgrep: Use pidfd_send_signal() issue #207
  • pgrep.1: Note that we can only go to 100th of second issue #376
  • pgrep: Add --quiet option issue #404
  • pmap: add -k option to print raw names from kernel merge !251
  • ps: parse --help correctly issue #381
  • ps: Add --delimiter option issue #118
  • ps: ps f forest works under pid 1 issue #102
  • ps: no longer fails with many pids & the 'p' option issue #387
  • ps.1: cols and collums alias width option Debian #926361
  • ps.1: Add format equivalents Debian #925437
  • ps: avoid potential segfault due to library race issue #380
  • ps: Fix -ad option conflict issue #395
  • ps: ppid of 0 is ok, fix parser issue #405
  • slabtop: Increase column width Debian #959375
  • sysctl: Return error if EPERM or EISDIR merge !228
  • sysctl: Use options after --system Debian #978989
  • top: provides for ignoring configuration file(s) issue #365
  • top: fix legacy configuration file vulnerability issue #384
  • top: added a new help screen for specialized keys
  • top: avoid potential segfault due to library race issue #390
  • top: new feature to show physical core percentages
  • w: Add terminal mode to show all terminal sessions issue #375
  • w: Use process TTY as backup for user TTY Debian #1080335
  • w: Use correct return value for sd_get_sessions Debian #1068904
  • w: Don't check for sd_booted Debian #1108549
  • w: Don't crash with pids in terminal mode issue #407
  • watch: Add --follow option Debian #469156
  • watch: 256 color support issue #44
  • watch.1: Warn about -d permanent option Debian #883638

View originalPermalink

v4.0.5
  • library increment current, revision and age to 0: 1:0:0
    • Internal Changes:
      • days/users when value is 0 #303
      • Don't print 60s but increment minute #302
      • stat api fixed remaining cpu distortions #321
      • Only count user sessions
      • Recover from meminfo seek using LXC Debian #1072831
      • stat api no longer counts guest tics twice #339
    • External Changes:
      • zswap & zswapped added to meminfo api
      • Schedule class added to pids api
      • Disk sleep added to pids api, sleep revised #265
      • Docker containers added to pids api
      • procps_users() new exported function
      • procps_uptime_snprint() uses given upseconds
      • Addprocps_container_uptime()
      • meminfo api adds SecPageTables, Unaccepted
      • pids api now provides open file descriptors
      • info parm removed from all 'VAL' macros #332
      • Add procps_sigmask_names()
      • Add procps_capability_names()
      • Add PIDS_CAP_PRM Permitted Capabilities
  • build-sys: Added --disable-pidwait and fixed logic #352
  • kill: Correctly parse negative pids #354
  • pgrep: select process by environment variable #167
  • pgrep: Rework pidfile reading to include stdin #318
  • pmap: Don't escape correct UTF-8 characters
  • ps: Add environ field
  • ps: Add htprv and htshr fields for HugeTables
  • ps: restore lost tasks for options --sort with -H #304
  • ps: add 'docker' containers field, similar to 'lxc'
  • ps: Restore AIX free-format #323
  • ps: can display open file descriptors for each task
  • ps: Fix signames scanning #341
  • ps: Add -o pcap,pcaps to show permitted capabilities
  • ps: Zombies show in the commandname #355
  • ps: Use quick mode if possible !239
  • slabtop: Add --human option for slab size
  • snice: Minor fix for help screen Debian #1086441
  • sysctl: Add glob excludes !206
  • sysctl: --all skips stat_refresh Debian #978688
  • top: added a 'CLS' scheduling class field, like ps
  • top: exploit library addition of 'disk sleep' #265
  • top: add 'docker' containers field, similar to lxc
  • top: provides additional control over colors
  • top: can display open file descriptors for each task
  • top: corrected cpu % for hosts with qemu processes #339
  • top: remains functional if /proc mounted subset=pid
  • top: can display a task's permitted capabilities (^A)
  • uptime: Add container uptime option #300
  • vmstat: Add page allocation to --stats
  • vmstat.8: si/so are changed by --unit Debian #1061944
  • w: Don't segfault with -s option #301
  • w: Cache pids list #305
  • w: Add container uptime option
  • w.1: Note utmp is for non-systemd Debian #1080333
  • watch: use clock_gettime() #295
  • watch.1: --chgexit only works for visible changes Debian #729569
  • hugetop: a new utility to show huge page information !214

View originalPermalink

v4.0.4Release 4.0.4

Security Update

Library

  • API & ABI unchanged
  • increment revision: 0:2:0
  • tolerates all potential 'cpuinfo' formats #272
  • Restore the proper main thread tics valuations #280
  • Remove myself from proc count !193
  • Refactor the escape code https://bugs.debian.org/1035649

Programs

  • free: -L one line output #156
  • pgrep: Use only --signal option for signal https://bugs.debian.org/1031765
  • pgrep: suppress >15 warning if using regex https://bugs.debian.org/1037450
  • pidof: Add -t option to show threads !190
  • pmap: Reset totals between processes #298
  • ps: fixed missing or corrupted fields with -m option #279 https://bugs.debian.org/1036631
  • ps: Add --signames to show signal names in masks !98
  • sysctl: -N show names !198, RH #2222056
  • tests: dont compare floats with == #271
  • tests: skips tests if maps missing !197, Gentoo #583036
  • top: bad command line arguments yield EXIT_FAILURE #273
  • top: avoids keystroke induced '%Cpu' distortions
  • top: includes VM (guest) tics in 'system' overhead #274
  • top: includes VM (guest) tics with '!' toggle !179
  • top: lessen summary cpu distortions on first display !180
  • top: better backspace handling with line edits #278
  • vmstat: Print guest time in non-wide mode
  • w: Fix musl UT_HOSTSIZE issue
  • watch: Add color support at compile time #296

View originalPermalink

v4.0.3Release v4.0.3
  • docs: Don't install English manpages twice
  • pgrep: Add -H match on userspace signal handler !165
  • pgrep: make --terminal respect other criteria
  • ps: c flag shows command name again Debian #1026326
  • ps.1: Match drs description from top.1 !156
  • skill: Match on -p again Debian #1025915
  • top: E/P-core toggle ('5' key) added to help
  • vmstat: Referesh memory statistics Debian #1027963
  • vmstat: Fix initial si,so,bi,bo,in & cs values #15 Debian #668580
  • vmstat: Fix conversion errors due to precision !75
  • w: Add --pids option !159
  • watch: Pass through beep #104
  • watch: -r option to not re-exec on SIGWINCH !125
  • watch: find eol with --no-linewrap !157

View originalPermalink

v4.0.0Release v4.0.0

Brand new library with improved API!

This release is for testing out the new library.

  • Rename pwait to pidwait
  • free: Add committed line option merge #25
  • free: Fix -h --si combined options issue #133, #223
  • free: Fix first column justification issue #229, #204, #206, Debian #1001689
  • free: Better spacing for Chinese language issue #213
  • library: renamed to libproc-2 and reset to 0:0:0
  • library: add support for accessing smaps_rollup issue #112, #201
  • library: add support for accessing autogroups
  • library: add support for LIBPROC_HIDE_KERNEL env var merge #147
  • library: add support for cpu utilization to pids i/f
  • pkill: Check for lt- variants of program name issue #192
  • pgrep: Add newline after regex error message merge #91
  • pgrep: Fix selection where uid/gid > 2^31 merge !146
  • pgrep: Select on cgroup v2 paths issue #168
  • ps: Add OOM and OOMADJ fields issue #198
  • ps: Add IO Accounting fields issue #184
  • ps: Add PSS and USS fields issue #112
  • ps: Add two new autogroup fields
  • ps: Ignore SIGURG merge !142
  • slabtop: Don't combine d and o options issue #160
  • sysctl: Add support for systemd glob patterns issue #191
  • sysctl: Check resolved path to be under /proc/sys issue #179
  • sysctl: return non-zero if EINVAL return for write merge #76
  • sysctl.conf.5: Note max line length issue #77
  • top: added LOGID similar to 3.3.13 ps LUID
  • top: added EXE identical to 3.3.17 ps EXE
  • top: exploit some library smaps_rollup provisions issue #112
  • top: added four new IO accounting fields issue #184
  • top: 'F' key is now a new forest view 'focus' toggle
  • top: summary area memory lines can print two abreast
  • top: added two new autogroup fields
  • top: added long versions of command line options
  • top: added cpu utilization & 2 time related fields
  • top: the time related fields can now be user scaled
  • uptime: print short/pretty format correctly issue #217
  • vmstat: add -y option to remove first line merge !72

View originalPermalink