Skip to content

build(deps-dev): bump psutil from 5.0.1 to 5.6.6#2

Closed
dependabot[bot] wants to merge 1 commit into
masterfrom
dependabot/pip/psutil-5.6.6
Closed

build(deps-dev): bump psutil from 5.0.1 to 5.6.6#2
dependabot[bot] wants to merge 1 commit into
masterfrom
dependabot/pip/psutil-5.6.6

Conversation

@dependabot
Copy link
Copy Markdown

@dependabot dependabot Bot commented on behalf of github May 2, 2022

Bumps psutil from 5.0.1 to 5.6.6.

Changelog

Sourced from psutil's changelog.

5.6.6

2019-11-25

Bug fixes

  • 1179_, [Linux]: Process.cmdline()_ now takes into account misbehaving processes renaming the command line and using inappropriate chars to separate args.
  • 1616_, [critical]: use of Py_DECREF instead of Py_CLEAR will result in double free() and segfault (CVE-2019-18874 <https://cve.mitre.org/cgi-bin/cvename.cgi?name=CVE-2019-18874>__). (patch by Riccardo Schirone)
  • 1619_, [OpenBSD], [critical]: compilation fails due to C syntax error. (patch by Nathan Houghton)

5.6.5

2019-11-06

Bug fixes

  • 1615_: remove pyproject.toml as it was causing installation issues.

5.6.4

2019-11-04

Enhancements

  • 1527_, [Linux]: added Process.cpu_times()_ iowait counter, which is the time spent waiting for blocking I/O to complete.
  • 1565_: add PEP 517/8 build backend and requirements specification for better pip integration. (patch by Bernát Gábor)

Bug fixes

  • 875_, [Windows], [critical]: Process.cmdline(), Process.environ() or Process.cwd()_ may occasionally fail with ERROR_PARTIAL_COPY which now gets translated to AccessDenied_.
  • 1126_, [Linux], [critical]: Process.cpu_affinity()_ segfaults on CentOS 5 / manylinux. Process.cpu_affinity()_ support for CentOS 5 was removed.
  • 1528_, [AIX], [critical]: compilation error on AIX 7.2 due to 32 vs 64 bit differences. (patch by Arnon Yaari)
  • 1535_: type and family fields returned by net_connections()_ are not always turned into enums.
  • 1536_, [NetBSD]: Process.cmdline()_ erroneously raise ZombieProcess_ error if cmdline has non encodable chars.

... (truncated)

Commits
  • c6cd256 pre release
  • b2414b8 revert #1595
  • c63369e updat HISTORY
  • edb20f6 linux, cmdline(), fix for #1179, comment 552984549: sometimes string ends wit...
  • d739cbb use PROCESS_QUERY_LIMITED_INFORMATION
  • f7e898b #1595: use psutil_pid_is_running() instead of GetExitCodeProcess
  • 72c84cb #fix #1595 / windows: kill() may not raise AccessDenied
  • 1f8d432 Merge branch 'master' of github.com:giampaolo/psutil
  • e6faebc release gil around users()/BSD (#1425)
  • 5cb1b0b Merge branch 'master' of github.com:giampaolo/psutil
  • Additional commits viewable in compare view

Dependabot compatibility score

Dependabot will resolve any conflicts with this PR as long as you don't alter it yourself. You can also trigger a rebase manually by commenting @dependabot rebase.


Dependabot commands and options

You can trigger Dependabot actions by commenting on this PR:

  • @dependabot rebase will rebase this PR
  • @dependabot recreate will recreate this PR, overwriting any edits that have been made to it
  • @dependabot merge will merge this PR after your CI passes on it
  • @dependabot squash and merge will squash and merge this PR after your CI passes on it
  • @dependabot cancel merge will cancel a previously requested merge and block automerging
  • @dependabot reopen will reopen this PR if it is closed
  • @dependabot close will close this PR and stop Dependabot recreating it. You can achieve the same result by closing it manually
  • @dependabot ignore this major version will close this PR and stop Dependabot creating any more for this major version (unless you reopen the PR or upgrade to it yourself)
  • @dependabot ignore this minor version will close this PR and stop Dependabot creating any more for this minor version (unless you reopen the PR or upgrade to it yourself)
  • @dependabot ignore this dependency will close this PR and stop Dependabot creating any more for this dependency (unless you reopen the PR or upgrade to it yourself)
  • @dependabot use these labels will set the current labels as the default for future PRs for this repo and language
  • @dependabot use these reviewers will set the current reviewers as the default for future PRs for this repo and language
  • @dependabot use these assignees will set the current assignees as the default for future PRs for this repo and language
  • @dependabot use this milestone will set the current milestone as the default for future PRs for this repo and language

You can disable automated security fix PRs for this repo from the Security Alerts page.

Bumps [psutil](https://github.com/giampaolo/psutil) from 5.0.1 to 5.6.6.
- [Release notes](https://github.com/giampaolo/psutil/releases)
- [Changelog](https://github.com/giampaolo/psutil/blob/master/HISTORY.rst)
- [Commits](giampaolo/psutil@release-5.0.1...release-5.6.6)

---
updated-dependencies:
- dependency-name: psutil
  dependency-type: direct:development
...

Signed-off-by: dependabot[bot] <support@github.com>
@dependabot dependabot Bot added the dependencies Pull requests that update a dependency file label May 2, 2022
@dependabot @github
Copy link
Copy Markdown
Author

dependabot Bot commented on behalf of github May 7, 2022

Looks like psutil is up-to-date now, so this is no longer needed.

@dependabot dependabot Bot closed this May 7, 2022
@dependabot dependabot Bot deleted the dependabot/pip/psutil-5.6.6 branch May 7, 2022 13:40
nicopauss pushed a commit that referenced this pull request Feb 12, 2026
Because our el_wake API didn't use explicit memory barriers between the
read/write synchronizations points TSAN reported data race such as the
one below:

WARNING: ThreadSanitizer: data race
  Write of size 8 by main thread:
    #0 close <null>
    #1 el_fd_unregister ./src/core/el-epoll.in.c:109:13
    #2 el_wake_unregister ./src/core/el.blk:1645:9
    #3 el_unregister ./src/core/el.blk:1894:36
    #4 dns_resolv_ctx_wipe ./src/net/addr.blk:239:5
    #5 dns_resolv_ctx_delete ./src/net/addr.blk:245:1
    #6 ____addr_info_async_block_invoke ./src/net/addr.blk:297:9
    #7 el_wake_on_event ./src/core/el.blk:1607:9
    #8 el_fd_fire ./src/core/el.blk:1307:13
    #9 el_fds_loop ./src/core/el.blk:1461:17
    #10 z_connect_ics_from_addr_and_wait ./tests/zchk-iop-rpc.c:316:13
    #11 __z_iop_rpc_block_invoke_6 ./tests/zchk-iop-rpc.c:608:9
    #12 z_iop_rpc ./tests/zchk-iop-rpc.c:640:7
    #13 z_run ./src/core/z.blk:1545:9
    #14 main ./tests/zchk.c:1206:12

  Previous read of size 8 by thread T8:
    #0 write <null>
    #1 el_wake_fire ./src/core/el.blk:1660:5
    #2 ____addr_info_async_block_invoke_2 ./src/net/addr.blk:331:9
    #3 job_run ./src/core/thr-job.blk:281:9
    #4 thr_run_deque_entry ./src/core/thr-job.blk:381:12
    #5 thr_job_try_steal ./src/core/thr-job.blk:473:20
    #6 thr_job_steal ./src/core/thr-job.blk:513:15
    #7 thr_job_main ./src/core/thr-job.blk:874:13
    #8 thr_hooks_wrapper ./src/core/thr.c:89:11

Indeed even if the eventfd() API ensures the thread safety of the
write/read sequence we still have to ensure no more usage of the fd
itself is possible before closing it.

Thus we add an explicit memory barrier in the form of an atomic counter.

Change-Id: I519147361d912e155341eec76f1fb4018699235c
Priv-Id: b1aef4b55b87f433f478950e7b79207846a0f623
nicopauss pushed a commit that referenced this pull request Feb 12, 2026
thr_queue_drain() seemed to assume that no other thread is running the
queue when used and thus started with an `atomic_store(&q->running_on,
id)` without taking care of the current `running_on` value.

But when destroying a queue (`thr_queue_destroy`) TSAN reported this
race:

WARNING: ThreadSanitizer: data race
  Write of size 8  by main thread:
    #0 free <null>
    #1 libc_free ./src/core/mem.blk:140:9
    #2 mp_ifree ./src/core/mem.blk:351:5
    #3 thr_queue_delete ./src/core/thr-job.blk:574:1
    #4 thr_queue_drain ./src/core/thr-job.blk:618:9
    #5 thr_queue_sync ./src/core/thr-job.blk:705:13
    #6 thr_queue_destroy ./src/core/thr-job.blk:730:9
    #7 test_queue ./tests/zchk-thrjob.blk:381:9
    #8 __z_thrjobs_block_invoke_4 ./tests/zchk-thrjob.blk:647:9
    #9 z_thrjobs ./tests/zchk-thrjob.blk:648:7
    #10 z_run ./src/core/z.blk:1545:9
    #11 main ./tests/zchk.c:1206:12

  Previous atomic write of size 8 at 0x7210000001e0 by thread T28:
    #0 thr_queue_drain ./src/core/thr-job.blk:614:5
    #1 thr_queue_run ./src/core/thr-job.blk:624:5
    #2 job_run ./src/core/thr-job.blk:285:9
    #3 thr_run_deque_entry ./src/core/thr-job.blk:381:12
    #4 thr_job_try_steal ./src/core/thr-job.blk:473:20
    #5 thr_job_steal ./src/core/thr-job.blk:513:15
    #6 thr_job_main ./src/core/thr-job.blk:884:25
    #7 thr_hooks_wrapper ./src/core/thr.c:89:11

Indeed when finishing to drain the queue, another would finished by:

    do {
        […]
    } while (!mpsc_queue_drain_end(&it, &thr_qnode_destroy));
    atomic_compare_exchange_strong(&q->running_on, &id,
                                   THR_QUEUE_NOT_RUNNING);

So after removing the last element of the queue (`mpsc_queue_drain_end`)
the queue's `running_on` is reset to THR_QUEUE_NOT_RUNNING.

But when destroying, the sole condition to immediately drain the queue
is:

    if (mpsc_queue_push(&q->q, &n->qnode)) {
        thr_queue_drain(q);

So the race is obvious here, as soon as the queued is emptied, the
destroying thread could already be freeing the queue while the previous
thread could still be trying to reset `q->running_on`.

To fix we now actually wait for the queue to be release before draining
it again.

Change-Id: I159d6426ec7ace01d0e7aaf685a7e32a6bf31749
Priv-Id: 07021192cda3217760c2ba85fc0fa12af17ef20f
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

dependencies Pull requests that update a dependency file

Projects

None yet

Development

Successfully merging this pull request may close these issues.

0 participants