Page MenuHomeFreeBSD

tests/sys/kern/procdesc.c: mark grandchild var in pdopenpid_capmode() as volatile
Needs ReviewPublic

Authored by kib on Sun, Aug 30, 11:51 PM.
Tags
None
Referenced Files
F169085633: D59282.id185462.diff
Mon, Aug 31, 9:11 AM
F169078321: D59282.id.diff
Mon, Aug 31, 8:44 AM
F169074829: D59282.diff
Mon, Aug 31, 8:28 AM
F168983615: D59282.diff
Mon, Aug 31, 1:29 AM
F168982936: D59282.id185462.diff
Mon, Aug 31, 1:27 AM
Subscribers

Details

Reviewers
markj
Summary
The variable is written in the child process which shares the address
space with the parent.  The data flow must not be optimized by a compiler.

Fixes:  ddf62c83fc0a ("sys/tests/kern/pdopenpid: pdopenpid(2) is allowed in cap mode")

Diff Detail

Repository
rG FreeBSD src repository
Lint
Lint Skipped
Unit
Tests Skipped