This issue tracker has been migrated to GitHub, and is currently read-only.
For more information, see the GitHub FAQs in the Python's Developer Guide.

classification
Title: use of uninitialized value with msan from subprocess_fork_exec
Type: enhancement Stage:
Components: Library (Lib) Versions: Python 3.11, Python 3.10, Python 3.9
process
Status: open Resolution:
Dependencies: Superseder:
Assigned To: Nosy List: gregory.p.smith, yilei
Priority: normal Keywords:

Created on 2022-03-02 00:48 by yilei, last changed 2022-04-11 14:59 by admin.

Messages (1)
msg414320 - (view) Author: Yilei Yang (yilei) * Date: 2022-03-02 00:48
The uid & gid variable from https://github.com/python/cpython/blob/9833bb91e4d5c2606421d9ec2085f5c2dfb6f72c/Modules/_posixsubprocess.c#L737-L738 can be passed to the `do_fork_exec` call below uninitialized and cause msan to report use-of-uninitialized-value errors.

Those variables are guarded by call_setgid/call_setuid so they aren't really used uninitialized in practice. It would just be great if we can make it msan clean.

Ideally, the long list of do_fork_exec arguments could also be rewritten in a struct.
History
Date User Action Args
2022-04-11 14:59:56adminsetgithub: 91055
2022-03-02 00:48:44yileicreate